Chulinz/Text2SQL-Decisions
Text2SQL-Decisions v0.3 28,081 English-only examples across two separate configurations. Both are template-generated, execution-validated drafts, not human-reviewed benchmarks. No model has been fine-tuned as part of this release. Configuration Rows Task License default 25,000 Four-candidate SQL plan selection on public sensor and e-commerce data CC BY 4.0 meter 3,081 Bounded meter planning decisions, including conversational context CC0-1.0 The configurations… See the full description on the dataset page: https://huggingface.co/datasets/Chulinz/Text2SQL-Decisions.
067
1{"category":"single_table/or/having","domain":"commerce","family_id":"47726bc5c3947132fc6c44c5","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"c65c1a9531347c82abe3db924c77a59428f8affadcd067fd394da1f1c19afe4e","language":"en","license":"CC-BY-4.0","query":"Return the maximum of administrative for shopping sessions where (administrative is greater than 7 or product_related is at most 226), grouped by month, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[7,226,2],\\\"sql\\\":\\\"SELECT month, MAX(administrative) AS value FROM shopping_sessions WHERE (administrative > ? AND product_related <= ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[7,226,2],\\\"sql\\\":\\\"SELECT month, MAX(administrative) AS value FROM shopping_sessions WHERE (administrative > ? OR product_related <= ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[7,226,2],\\\"sql\\\":\\\"SELECT month, MAX(administrative) AS value FROM shopping_sessions WHERE (administrative > ? OR product_related <= ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value ASC, month ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[7,226,2],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (administrative > ? OR product_related <= ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Nov\",27],[\"June\",24],[\"Mar\",24],[\"May\",24],[\"Aug\",23]]","source":"online_shoppers","split":"dev","sql":"SELECT month, MAX(administrative) AS value FROM shopping_sessions WHERE (administrative > ? OR product_related <= ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5","sql_parameters":"[7,226,2]","state":"{\"question\":\"Return the maximum of administrative for shopping sessions where (administrative is greater than 7 or product_related is at most 226), grouped by month, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}2{"category":"join/null/date/and/having","domain":"commerce","family_id":"0c7df688c3b39283f30af327","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"91906b171204ebe1da38490824cb8ca4539496f0b09cdc03687e6f07942dc066","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail lines joined to their invoices where (i.invoice_date is before '2010-12-02' and 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\",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 < ? OR i.customer_id IS NOT NULL) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"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 < ? AND i.customer_id IS NOT NULL) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\",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 < ? AND i.customer_id IS NOT NULL) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\",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 < ? AND i.customer_id IS NOT NULL) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-03-07\",10],[\"2010-01-05\",11],[\"2009-12-23\",12]]","source":"online_retail_ii","split":"dev","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 < ? AND i.customer_id IS NOT NULL) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3","sql_parameters":"[\"2010-12-02\",10]","state":"{\"question\":\"Return the number of rows for retail lines joined to their invoices where (i.invoice_date is before '2010-12-02' and 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.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}3{"category":"join/or/ranked","domain":"commerce","family_id":"0c59c0bacb03836bdaf4e1c4","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"b26811466580f8bac14a93d29b8355a786a60a984ab286fb57b197fa95c89d5b","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.unit_price for retail lines joined to their invoices where (i.country equals 'Finland' or l.quantity is greater than 92), grouped by i.invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Finland\\\",92],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.unit_price) 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 ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Finland\\\",92],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.unit_price) 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 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Finland\\\",92],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.unit_price) 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 ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Finland\\\",92],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) 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 ASC, i.invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-12-15\",0.19],[\"2010-05-16\",0.21],[\"2009-12-05\",0.25]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.invoice_date, SUM(l.unit_price) 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 ASC, i.invoice_date ASC LIMIT 3","sql_parameters":"[\"Finland\",92]","state":"{\"question\":\"Return the sum of l.unit_price for retail lines joined to their invoices where (i.country equals 'Finland' or l.quantity is greater than 92), grouped by i.invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}4{"category":"single_table/and/aggregate","domain":"sensor","family_id":"df4fb9b5d35490f81f82d4d9","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"e017c4de975ac24b0c066505506d7ffe59c4952becbe0a92d015cfb8aec4b0d2","language":"en","license":"CC-BY-4.0","query":"Return the minimum of eps1_mean for hydraulic cycles where (cooler equals 20 and ts1_mean is greater than 36.33327).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[20,36.33327],\\\"sql\\\":\\\"SELECT MIN(eps1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? OR ts1_mean > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[20,36.33327],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (cooler = ? AND ts1_mean > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[20,36.33327],\\\"sql\\\":\\\"SELECT MIN(eps1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? AND ts1_mean > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[20,36.33327],\\\"sql\\\":\\\"SELECT SUM(eps1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? AND ts1_mean > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[2380.354]]","source":"hydraulic","split":"dev","sql":"SELECT MIN(eps1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? AND ts1_mean > ?)","sql_parameters":"[20,36.33327]","state":"{\"question\":\"Return the minimum of eps1_mean for hydraulic cycles where (cooler equals 20 and ts1_mean is greater than 36.33327).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}5{"category":"join/distinct_invoice/and/ranked","domain":"commerce","family_id":"019902a75e1a535ef114ae12","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"8b00031eee0b1562316ed85689db53bcb51d2fa507e914aab1ef50b3814bafcb","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.customer_id equals '12364' and l.unit_price is greater than 49.95), grouped by i.country; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12364\\\",49.95],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) 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.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12364\\\",49.95],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? AND l.unit_price > ?) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12364\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? AND l.unit_price > ?) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 5","sql_parameters":"[\"12364\",49.95]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.customer_id equals '12364' and l.unit_price is greater than 49.95), grouped by i.country; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}6{"category":"single_table/date/and/grouped","domain":"commerce","family_id":"4d4f53f0166cbbfb53eadfb9","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"1b3c81b126d6296e810b30d092adbd91f87e22297c080f2654c03fb7086ea062","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (unit_price is greater than 0.55 and invoice_date is before '2011-09-29'), grouped by invoice_date, ordered by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[0.55,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[0.55,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (unit_price > ? AND invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[0.55,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (unit_price > ? AND invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[0.55,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (unit_price > ? AND invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-01\",7.95],[\"2009-12-02\",34.95],[\"2009-12-03\",79.95],[\"2009-12-04\",12.75],[\"2009-12-05\",12.75],[\"2009-12-06\",49.95],[\"2009-12-07\",50.0],[\"2009-12-08\",15.95],[\"2009-12-09\",79.95],[\"2009-12-10\",49.95],[\"2009-12-11\",39.95],[\"2009-12-13\",40.0],[\"2009-12-14\",14.95],[\"2009-12-15\",35.95],[\"2009-12-16\",39.95],[\"2009-12-17\",12.75],[\"2009-12-18\",10.95],[\"2009-12-20\",9.95],[\"2009-12-21\",10.95],[\"2009-12-22\",16.48],[\"2009-12-23\",3.75],[\"2010-01-04\",6.95],[\"2010-01-05\",45.95],[\"2010-01-06\",7.95],[\"2010-01-07\",18.0],[\"2010-01-08\",16.95],[\"2010-01-10\",7.95],[\"2010-01-11\",34.95],[\"2010-01-12\",21.95],[\"2010-01-13\",8.5],[\"2010-01-14\",9.95],[\"2010-01-15\",39.95],[\"2010-01-17\",4.95],[\"2010-01-18\",2.25],[\"2010-01-19\",14.95],[\"2010-01-20\",12.75],[\"2010-01-21\",12.75],[\"2010-01-22\",35.95],[\"2010-01-24\",12.75],[\"2010-01-25\",14.26],[\"2010-01-26\",39.95],[\"2010-01-27\",9.95],[\"2010-01-28\",12.75],[\"2010-01-29\",28.0],[\"2010-01-31\",9.95],[\"2010-02-01\",45.95],[\"2010-02-02\",79.95],[\"2010-02-03\",79.95],[\"2010-02-04\",16.95],[\"2010-02-05\",21.95],[\"2010-02-07\",4.95],[\"2010-02-08\",14.95],[\"2010-02-09\",10.95],[\"2010-02-10\",40.0],[\"2010-02-11\",6.95],[\"2010-02-12\",8.49],[\"2010-02-14\",26.95],[\"2010-02-15\",12.75],[\"2010-02-16\",45.95],[\"2010-02-17\",8.5],[\"2010-02-18\",12.75],[\"2010-02-19\",13.57],[\"2010-02-21\",12.75],[\"2010-02-22\",79.95],[\"2010-02-23\",45.95],[\"2010-02-24\",10.95],[\"2010-02-25\",18.0],[\"2010-02-26\",45.95],[\"2010-02-28\",12.75],[\"2010-03-01\",12.75],[\"2010-03-02\",12.75],[\"2010-03-03\",45.95],[\"2010-03-04\",26.95],[\"2010-03-05\",18.0],[\"2010-03-07\",7.95],[\"2010-03-08\",39.95],[\"2010-03-09\",12.75],[\"2010-03-10\",10.95],[\"2010-03-11\",12.75],[\"2010-03-12\",9.95],[\"2010-03-14\",16.95],[\"2010-03-15\",25.52],[\"2010-03-16\",18.0],[\"2010-03-17\",9.95],[\"2010-03-18\",29.95],[\"2010-03-19\",14.95],[\"2010-03-21\",12.75],[\"2010-03-22\",12.75],[\"2010-03-23\",12.75],[\"2010-03-24\",867.79],[\"2010-03-25\",40.0],[\"2010-03-26\",16.95],[\"2010-03-28\",4.95],[\"2010-03-29\",8.5],[\"2010-03-30\",18.95],[\"2010-03-31\",34.95],[\"2010-04-01\",10.95],[\"2010-04-06\",15.95],[\"2010-04-07\",10.95],[\"2010-04-08\",12.75],[\"2010-04-09\",12.75],[\"2010-04-11\",7.95],[\"2010-04-12\",12.75],[\"2010-04-13\",9.95],[\"2010-04-14\",12.75],[\"2010-04-15\",12.75],[\"2010-04-16\",12.75],[\"2010-04-18\",14.95],[\"2010-04-19\",26.95],[\"2010-04-20\",10.75],[\"2010-04-21\",125.0],[\"2010-04-22\",18.0],[\"2010-04-23\",45.95],[\"2010-04-25\",12.75],[\"2010-04-26\",39.95],[\"2010-04-27\",25.49],[\"2010-04-28\",7.65],[\"2010-04-29\",12.75],[\"2010-04-30\",14.95],[\"2010-05-02\",15.0],[\"2010-05-04\",230.0],[\"2010-05-05\",12.75],[\"2010-05-06\",19.95],[\"2010-05-07\",15.95],[\"2010-05-09\",16.95],[\"2010-05-10\",29.95],[\"2010-05-11\",16.95],[\"2010-05-12\",12.75],[\"2010-05-13\",12.75],[\"2010-05-14\",16.98],[\"2010-05-16\",8.5],[\"2010-05-17\",12.75],[\"2010-05-18\",18.95],[\"2010-05-19\",79.95],[\"2010-05-20\",12.75],[\"2010-05-21\",12.75],[\"2010-05-23\",12.75],[\"2010-05-24\",14.95],[\"2010-05-25\",19.95],[\"2010-05-26\",25.49],[\"2010-05-27\",12.75],[\"2010-05-28\",15.95],[\"2010-05-30\",12.75],[\"2010-06-01\",15.95],[\"2010-06-02\",12.75],[\"2010-06-03\",12.75],[\"2010-06-04\",25.49],[\"2010-06-06\",9.95],[\"2010-06-07\",18.0],[\"2010-06-08\",12.75],[\"2010-06-09\",40.0],[\"2010-06-10\",12.75],[\"2010-06-11\",39.95],[\"2010-06-13\",16.95],[\"2010-06-14\",16.95],[\"2010-06-15\",12.75],[\"2010-06-16\",19.95],[\"2010-06-17\",12.75],[\"2010-06-18\",10.95],[\"2010-06-20\",12.75],[\"2010-06-21\",12.75],[\"2010-06-22\",19.95],[\"2010-06-23\",19.95],[\"2010-06-24\",25.49],[\"2010-06-25\",12.75],[\"2010-06-27\",12.75],[\"2010-06-28\",14.95],[\"2010-06-29\",125.0],[\"2010-06-30\",19.95],[\"2010-07-01\",18.95],[\"2010-07-02\",8.95],[\"2010-07-04\",24.95],[\"2010-07-05\",18.0],[\"2010-07-06\",19.95],[\"2010-07-07\",12.75],[\"2010-07-08\",125.0],[\"2010-07-09\",15.95],[\"2010-07-11\",15.95],[\"2010-07-12\",295.0],[\"2010-07-13\",40.0],[\"2010-07-14\",12.75],[\"2010-07-15\",18.0],[\"2010-07-16\",34.95],[\"2010-07-18\",4.95],[\"2010-07-19\",10.95],[\"2010-07-20\",12.75],[\"2010-07-21\",15.95],[\"2010-07-22\",28.0],[\"2010-07-23\",10.95],[\"2010-07-25\",15.0],[\"2010-07-26\",18.0],[\"2010-07-27\",19.95],[\"2010-07-28\",10.95],[\"2010-07-29\",10.95],[\"2010-07-30\",12.75],[\"2010-08-01\",12.75],[\"2010-08-02\",295.0],[\"2010-08-03\",295.0],[\"2010-08-04\",12.75],[\"2010-08-05\",12.95],[\"2010-08-06\",8.5],[\"2010-08-08\",34.95],[\"2010-08-09\",6.68],[\"2010-08-10\",5.95],[\"2010-08-11\",18.0],[\"2010-08-12\",16.95],[\"2010-08-13\",10.65],[\"2010-08-15\",12.75],[\"2010-08-16\",12.75],[\"2010-08-17\",9.95],[\"2010-08-18\",12.75],[\"2010-08-19\",12.75],[\"2010-08-20\",15.0],[\"2010-08-22\",8.5],[\"2010-08-23\",14.95],[\"2010-08-24\",295.0],[\"2010-08-25\",12.75],[\"2010-08-26\",8.5],[\"2010-08-27\",7.49],[\"2010-08-29\",8.5],[\"2010-08-31\",9.95],[\"2010-09-01\",79.95],[\"2010-09-02\",39.95],[\"2010-09-03\",15.0],[\"2010-09-05\",10.95],[\"2010-09-06\",18.0],[\"2010-09-07\",10.95],[\"2010-09-08\",2.55],[\"2010-09-09\",110.0],[\"2010-09-10\",6.75],[\"2010-09-12\",16.95],[\"2010-09-13\",12.75],[\"2010-09-14\",12.75],[\"2010-09-15\",16.95],[\"2010-09-16\",18.0],[\"2010-09-17\",79.95],[\"2010-09-19\",14.95],[\"2010-09-20\",129.95],[\"2010-09-21\",9.95],[\"2010-09-22\",7.95],[\"2010-09-23\",18.95],[\"2010-09-24\",14.95],[\"2010-09-26\",12.75],[\"2010-09-27\",16.95],[\"2010-09-28\",16.95],[\"2010-09-29\",50.0],[\"2010-09-30\",16.98],[\"2010-10-01\",18.95],[\"2010-10-03\",5.45],[\"2010-10-04\",29.95],[\"2010-10-05\",12.75],[\"2010-10-06\",50.0],[\"2010-10-07\",12.75],[\"2010-10-08\",16.95],[\"2010-10-10\",14.95],[\"2010-10-11\",79.95],[\"2010-10-12\",10.95],[\"2010-10-13\",16.95],[\"2010-10-14\",52.78],[\"2010-10-15\",16.98],[\"2010-10-17\",14.95],[\"2010-10-18\",18.0],[\"2010-10-19\",21.95],[\"2010-10-20\",34.95],[\"2010-10-21\",145.0],[\"2010-10-22\",145.0],[\"2010-10-24\",39.95],[\"2010-10-25\",14.95],[\"2010-10-26\",9.95],[\"2010-10-27\",14.95],[\"2010-10-28\",12.75],[\"2010-10-29\",39.95],[\"2010-10-31\",18.0],[\"2010-11-01\",9.95],[\"2010-11-02\",40.0],[\"2010-11-03\",165.0],[\"2010-11-04\",14.95],[\"2010-11-05\",14.95],[\"2010-11-07\",8.95],[\"2010-11-08\",32.69],[\"2010-11-09\",50.0],[\"2010-11-10\",16.95],[\"2010-11-11\",14.95],[\"2010-11-12\",15.0],[\"2010-11-14\",28.0],[\"2010-11-15\",40.0],[\"2010-11-16\",24.95],[\"2010-11-17\",295.0],[\"2010-11-18\",34.95],[\"2010-11-19\",253.0],[\"2010-11-21\",14.95],[\"2010-11-22\",12.75],[\"2010-11-23\",12.75],[\"2010-11-24\",79.95],[\"2010-11-25\",65.0],[\"2010-11-26\",8.5],[\"2010-11-28\",110.0],[\"2010-11-29\",18.0],[\"2010-11-30\",24.95],[\"2010-12-01\",19.95],[\"2010-12-02\",10.95],[\"2010-12-03\",40.0],[\"2010-12-05\",18.0],[\"2010-12-06\",14.95],[\"2010-12-07\",19.84],[\"2010-12-08\",21.95],[\"2010-12-09\",18.0],[\"2010-12-10\",16.95],[\"2010-12-12\",19.95],[\"2010-12-13\",12.75],[\"2010-12-14\",29.95],[\"2010-12-15\",12.75],[\"2010-12-16\",39.95],[\"2010-12-17\",18.0],[\"2010-12-19\",8.5],[\"2010-12-20\",22.0],[\"2010-12-21\",18.0],[\"2010-12-22\",4.95],[\"2010-12-23\",5.95],[\"2011-01-04\",8.5],[\"2011-01-05\",12.75],[\"2011-01-06\",8.5],[\"2011-01-07\",39.95],[\"2011-01-09\",12.75],[\"2011-01-10\",18.0],[\"2011-01-11\",18.0],[\"2011-01-12\",165.0],[\"2011-01-13\",8.5],[\"2011-01-14\",18.0],[\"2011-01-16\",3.95],[\"2011-01-17\",12.75],[\"2011-01-18\",6.95],[\"2011-01-19\",18.0],[\"2011-01-20\",8.95],[\"2011-01-21\",40.0],[\"2011-01-23\",14.95],[\"2011-01-24\",12.75],[\"2011-01-25\",40.0],[\"2011-01-26\",12.75],[\"2011-01-27\",18.0],[\"2011-01-28\",7.95],[\"2011-01-30\",2.95],[\"2011-01-31\",14.95],[\"2011-02-01\",14.95],[\"2011-02-02\",12.75],[\"2011-02-03\",15.0],[\"2011-02-04\",295.0],[\"2011-02-07\",12.75],[\"2011-02-08\",4.95],[\"2011-02-09\",15.0],[\"2011-02-10\",165.0],[\"2011-02-11\",145.0],[\"2011-02-13\",5.95],[\"2011-02-14\",16.95],[\"2011-02-15\",10.95],[\"2011-02-16\",8.5],[\"2011-02-17\",18.0],[\"2011-02-18\",14.95],[\"2011-02-20\",10.95],[\"2011-02-21\",12.75],[\"2011-02-22\",10.95],[\"2011-02-23\",34.95],[\"2011-02-24\",10.95],[\"2011-02-25\",40.0],[\"2011-02-27\",18.0],[\"2011-02-28\",125.0],[\"2011-03-01\",376.5],[\"2011-03-02\",10.95],[\"2011-03-03\",40.0],[\"2011-03-04\",28.0],[\"2011-03-06\",10.95],[\"2011-03-07\",125.0],[\"2011-03-08\",10.95],[\"2011-03-09\",40.0],[\"2011-03-10\",14.95],[\"2011-03-11\",16.95],[\"2011-03-14\",10.95],[\"2011-03-15\",9.95],[\"2011-03-16\",10.95],[\"2011-03-17\",10.95],[\"2011-03-18\",18.0],[\"2011-03-20\",18.0],[\"2011-03-21\",10.95],[\"2011-03-22\",9.95],[\"2011-03-23\",16.95],[\"2011-03-24\",8.5],[\"2011-03-25\",18.0],[\"2011-03-27\",12.75],[\"2011-03-28\",150.0],[\"2011-03-29\",10.65],[\"2011-03-30\",12.75],[\"2011-03-31\",18.0],[\"2011-04-01\",16.95],[\"2011-04-03\",10.95],[\"2011-04-04\",2382.92],[\"2011-04-05\",125.0],[\"2011-04-06\",8.5],[\"2011-04-07\",12.75],[\"2011-04-08\",18.0],[\"2011-04-10\",10.95],[\"2011-04-11\",8.5],[\"2011-04-12\",10.95],[\"2011-04-13\",12.75],[\"2011-04-14\",18.0],[\"2011-04-15\",40.0],[\"2011-04-17\",9.95],[\"2011-04-18\",12.75],[\"2011-04-19\",5.95],[\"2011-04-20\",14.95],[\"2011-04-21\",40.0],[\"2011-04-26\",40.0],[\"2011-04-27\",50.0],[\"2011-04-28\",295.0],[\"2011-05-01\",9.95],[\"2011-05-03\",110.0],[\"2011-05-04\",9.95],[\"2011-05-05\",39.95],[\"2011-05-06\",40.0],[\"2011-05-08\",16.95],[\"2011-05-09\",12.75],[\"2011-05-10\",16.95],[\"2011-05-11\",18.0],[\"2011-05-12\",12.5],[\"2011-05-13\",34.95],[\"2011-05-15\",16.95],[\"2011-05-16\",10.4],[\"2011-05-17\",12.5],[\"2011-05-18\",40.0],[\"2011-05-19\",39.95],[\"2011-05-20\",16.95],[\"2011-05-22\",9.95],[\"2011-05-23\",18.0],[\"2011-05-24\",29.95],[\"2011-05-25\",8.5],[\"2011-05-26\",125.0],[\"2011-05-27\",10.95],[\"2011-05-29\",5.45],[\"2011-05-31\",12.75],[\"2011-06-01\",16.95],[\"2011-06-02\",40.0],[\"2011-06-03\",18.0],[\"2011-06-05\",34.95],[\"2011-06-06\",12.75],[\"2011-06-07\",12.75],[\"2011-06-08\",15.0],[\"2011-06-09\",18.0],[\"2011-06-10\",18.0],[\"2011-06-12\",19.95],[\"2011-06-13\",19.95],[\"2011-06-14\",15.0],[\"2011-06-15\",12.75],[\"2011-06-16\",25.0],[\"2011-06-17\",16.95],[\"2011-06-19\",7.95],[\"2011-06-20\",1917.0],[\"2011-06-21\",25.0],[\"2011-06-22\",15.0],[\"2011-06-23\",9.95],[\"2011-06-24\",16.95],[\"2011-06-26\",28.0],[\"2011-06-27\",4.95],[\"2011-06-28\",12.75],[\"2011-06-29\",24.95],[\"2011-06-30\",165.0],[\"2011-07-01\",50.0],[\"2011-07-03\",10.95],[\"2011-07-04\",12.75],[\"2011-07-05\",15.0],[\"2011-07-06\",12.75],[\"2011-07-07\",15.0],[\"2011-07-08\",85.0],[\"2011-07-10\",2.55],[\"2011-07-11\",18.0],[\"2011-07-12\",10.95],[\"2011-07-13\",85.0],[\"2011-07-14\",14.95],[\"2011-07-15\",16.95],[\"2011-07-17\",18.0],[\"2011-07-18\",16.95],[\"2011-07-19\",18.0],[\"2011-07-20\",28.0],[\"2011-07-21\",14.95],[\"2011-07-22\",8.5],[\"2011-07-24\",24.95],[\"2011-07-25\",15.0],[\"2011-07-26\",16.95],[\"2011-07-27\",7.65],[\"2011-07-28\",15.0],[\"2011-07-29\",12.75],[\"2011-07-31\",12.5],[\"2011-08-01\",4.95],[\"2011-08-02\",8.5],[\"2011-08-03\",12.75],[\"2011-08-04\",49.95],[\"2011-08-05\",18.0],[\"2011-08-07\",8.5],[\"2011-08-08\",40.0],[\"2011-08-09\",18.0],[\"2011-08-10\",12.75],[\"2011-08-11\",15.0],[\"2011-08-12\",6.75],[\"2011-08-14\",39.95],[\"2011-08-15\",5.95],[\"2011-08-16\",18.0],[\"2011-08-17\",3.39],[\"2011-08-18\",12.75],[\"2011-08-19\",14.95],[\"2011-08-21\",8.5],[\"2011-08-22\",10.95],[\"2011-08-23\",7.65],[\"2011-08-24\",18.0],[\"2011-08-25\",34.95],[\"2011-08-26\",85.0],[\"2011-08-28\",5.95],[\"2011-08-30\",40.0],[\"2011-08-31\",18.0],[\"2011-09-01\",12.75],[\"2011-09-02\",10.95],[\"2011-09-04\",18.0],[\"2011-09-05\",6.35],[\"2011-09-06\",18.0],[\"2011-09-07\",10.75],[\"2011-09-08\",19.95],[\"2011-09-09\",15.0],[\"2011-09-11\",7.5],[\"2011-09-12\",9.95],[\"2011-09-13\",40.0],[\"2011-09-14\",9.95],[\"2011-09-15\",50.0],[\"2011-09-16\",18.0],[\"2011-09-18\",9.95],[\"2011-09-19\",8.5],[\"2011-09-20\",9.95],[\"2011-09-21\",12.75],[\"2011-09-22\",18.0],[\"2011-09-23\",49.95],[\"2011-09-25\",40.0],[\"2011-09-26\",12.5],[\"2011-09-27\",12.5],[\"2011-09-28\",15.0]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (unit_price > ? AND invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC","sql_parameters":"[0.55,\"2011-09-29\"]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines where (unit_price is greater than 0.55 and invoice_date is before '2011-09-29'), 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\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}7{"category":"join/null/and/ranked","domain":"commerce","family_id":"9ce0f7c1226ee9076719b3a5","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"ba1ae91c3ea25df56b2ece23b667dec2bc86c60f592028f6ba344e61b50aec87","language":"en","license":"CC-BY-4.0","query":"Return the average of l.unit_price for retail lines joined to their invoices where (l.quantity is greater than 648 and i.customer_id is missing), grouped by i.invoice_date; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[648],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ? AND i.customer_id IS NULL) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[648],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(l.unit_price) 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.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[648],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(l.unit_price) 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\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","sql":"SELECT i.invoice_date, AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ? AND i.customer_id IS NULL) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5","sql_parameters":"[648]","state":"{\"question\":\"Return the average of l.unit_price for retail lines joined to their invoices where (l.quantity is greater than 648 and i.customer_id is missing), 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_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}8{"category":"single_table/having","domain":"sensor","family_id":"86ab2aac52fe93913ff037dd","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"f2747f4f554f1db5fe7a7e050c0482fa7074227339039132779ed8e2c8163781","language":"en","license":"CC-BY-4.0","query":"Return the minimum of fs1_mean for hydraulic cycles where (fs1_mean is at most 3.36184), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[3.36184,2],\\\"sql\\\":\\\"SELECT valve, MIN(fs1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[3.36184,2],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[3.36184,2],\\\"sql\\\":\\\"SELECT valve, SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[3.36184,2],\\\"sql\\\":\\\"SELECT valve, MIN(fs1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[100,2.12356],[80,2.06356],[90,2.05852],[73,2.01857]]","source":"hydraulic","split":"dev","sql":"SELECT valve, MIN(fs1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 5","sql_parameters":"[3.36184,2]","state":"{\"question\":\"Return the minimum of fs1_mean for hydraulic cycles where (fs1_mean is at most 3.36184), 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\":{\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}9{"category":"single_table/grouped","domain":"commerce","family_id":"054cb2637c3b83cef4217a21","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"aea41b154c7a588d9990eab3a0afa06a7cdf41fc6a3dcbb7b2b83af5886d3b65","language":"en","license":"CC-BY-4.0","query":"Return the sum of product_duration for shopping sessions where (administrative is at most 18), grouped by visitor_type, ordered by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[18],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (administrative <= ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[18],\\\"sql\\\":\\\"SELECT visitor_type, SUM(product_duration) AS value FROM shopping_sessions WHERE (administrative <= ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[18],\\\"sql\\\":\\\"SELECT visitor_type, AVG(product_duration) AS value FROM shopping_sessions WHERE (administrative <= ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[18],\\\"sql\\\":\\\"SELECT visitor_type, MIN(product_duration) AS value FROM shopping_sessions WHERE (administrative <= ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"New_Visitor\",1078050.34209326],[\"Other\",48484.41329114],[\"Returning_Visitor\",13434343.685087234]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, SUM(product_duration) AS value FROM shopping_sessions WHERE (administrative <= ?) GROUP BY visitor_type ORDER BY visitor_type ASC","sql_parameters":"[18]","state":"{\"question\":\"Return the sum of product_duration for shopping sessions where (administrative is at most 18), grouped by visitor_type, ordered by visitor_type ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}10{"category":"single_table/and/aggregate","domain":"commerce","family_id":"f76ac7700da9777b1eda1374","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"d2e9b9d67cb88e6ab6bede0a2b43a917f8377ac7ef8c59177c9ce018c92ceeb1","language":"en","license":"CC-BY-4.0","query":"Return the average of administrative for shopping sessions where (month equals 'Sep' and traffic_type equals 10).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Sep\\\",10],\\\"sql\\\":\\\"SELECT AVG(administrative) AS value FROM shopping_sessions WHERE (month = ? OR traffic_type = ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Sep\\\",10],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (month = ? AND traffic_type = ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Sep\\\",10],\\\"sql\\\":\\\"SELECT AVG(administrative) AS value FROM shopping_sessions WHERE (month = ? AND traffic_type = ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT AVG(administrative) AS value FROM shopping_sessions\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[null]]","source":"online_shoppers","split":"dev","sql":"SELECT AVG(administrative) AS value FROM shopping_sessions WHERE (month = ? AND traffic_type = ?)","sql_parameters":"[\"Sep\",10]","state":"{\"question\":\"Return the average of administrative for shopping sessions where (month equals 'Sep' and traffic_type equals 10).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}11{"category":"single_table/and/having","domain":"sensor","family_id":"4855da43d95114065770d18a","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"c7b613f2d0ca91349c3b310ee423338d059d013056b6094d9fa9ec53ded64ca5","language":"en","license":"CC-BY-4.0","query":"Return the average of eps1_mean for hydraulic cycles where (accumulator equals 115 and eps1_mean is greater than 2398.143), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[115,2398.143,2],\\\"sql\\\":\\\"SELECT valve, AVG(eps1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ? OR eps1_mean > ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[115,2398.143,2],\\\"sql\\\":\\\"SELECT valve, AVG(eps1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ? AND eps1_mean > ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[115,2398.143,2],\\\"sql\\\":\\\"SELECT valve, AVG(eps1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ? AND eps1_mean > ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[115,2398.143,2],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (accumulator = ? AND eps1_mean > ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[90,2541.1753134177216],[80,2539.656814230769],[73,2534.238141282051],[100,2523.8319568468464]]","source":"hydraulic","split":"dev","sql":"SELECT valve, AVG(eps1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ? AND eps1_mean > ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 5","sql_parameters":"[115,2398.143,2]","state":"{\"question\":\"Return the average of eps1_mean for hydraulic cycles where (accumulator equals 115 and eps1_mean is greater than 2398.143), 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\":{\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}12{"category":"single_table/or/aggregate","domain":"commerce","family_id":"3c7d71a55ee5fba8f0039ccd","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"e102bd131e9a0bd0e7aa219eaeaf5287b2db4edac1dc15b74e5a6cb8c2fe703a","language":"en","license":"CC-BY-4.0","query":"Return the minimum of product_duration for shopping sessions where (region equals 6 or traffic_type equals 11).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[6,11],\\\"sql\\\":\\\"SELECT MIN(product_duration) AS value FROM shopping_sessions WHERE (region = ? AND traffic_type = ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[6,11],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (region = ? OR traffic_type = ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[6,11],\\\"sql\\\":\\\"SELECT SUM(product_duration) AS value FROM shopping_sessions WHERE (region = ? OR traffic_type = ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[6,11],\\\"sql\\\":\\\"SELECT MIN(product_duration) AS value FROM shopping_sessions WHERE (region = ? OR traffic_type = ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0.0]]","source":"online_shoppers","split":"dev","sql":"SELECT MIN(product_duration) AS value FROM shopping_sessions WHERE (region = ? OR traffic_type = ?)","sql_parameters":"[6,11]","state":"{\"question\":\"Return the minimum of product_duration for shopping sessions where (region equals 6 or traffic_type equals 11).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}13{"category":"single_table/date/grouped","domain":"commerce","family_id":"80dac642a79110b2ada29786","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"aa5513c25a3ed08df216977ce85440b763dbcc67eea0cd7b69a619ea0323e568","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail invoice lines where (invoice_date is before '2010-12-02'), grouped by country, ordered by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT country, MIN(quantity) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country ORDER BY country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",19],[\"Austria\",3],[\"Bahrain\",7],[\"Belgium\",17],[\"Channel Islands\",12],[\"Cyprus\",16],[\"Denmark\",4],[\"EIRE\",79],[\"Finland\",8],[\"France\",58],[\"Germany\",158],[\"Italy\",9],[\"Japan\",4],[\"Netherlands\",74],[\"Norway\",6],[\"Poland\",4],[\"Portugal\",17],[\"Spain\",37],[\"Sweden\",72],[\"Switzerland\",8],[\"USA\",3],[\"United Arab Emirates\",2],[\"United Kingdom\",12579]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country ORDER BY country ASC","sql_parameters":"[\"2010-12-02\"]","state":"{\"question\":\"Return the number of rows for retail invoice lines where (invoice_date is before '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\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}14{"category":"single_table/or/ranked","domain":"commerce","family_id":"81e49f7985f6199b0fe548fa","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"abacca28098ca2a403940d10f8b23fda4c2ebc082b6ad2eee6bde4f7946ffef3","language":"en","license":"CC-BY-4.0","query":"Return the minimum of product_duration for shopping sessions where (region equals 4 or traffic_type equals 18), grouped by visitor_type; return at most 3 groups ordered by aggregate value ASC, breaking ties by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[4,18],\\\"sql\\\":\\\"SELECT visitor_type, MIN(product_duration) AS value FROM shopping_sessions WHERE (region = ? OR traffic_type = ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[4,18],\\\"sql\\\":\\\"SELECT visitor_type, MIN(product_duration) AS value FROM shopping_sessions WHERE (region = ? AND traffic_type = ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[4,18],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (region = ? OR traffic_type = ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[4,18],\\\"sql\\\":\\\"SELECT visitor_type, SUM(product_duration) AS value FROM shopping_sessions WHERE (region = ? OR traffic_type = ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"New_Visitor\",0.0],[\"Other\",0.0],[\"Returning_Visitor\",0.0]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, MIN(product_duration) AS value FROM shopping_sessions WHERE (region = ? OR traffic_type = ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3","sql_parameters":"[4,18]","state":"{\"question\":\"Return the minimum of product_duration for shopping sessions where (region equals 4 or traffic_type equals 18), grouped by visitor_type; return at most 3 groups ordered by aggregate value ASC, breaking ties by visitor_type ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}15{"category":"join/date/having","domain":"commerce","family_id":"c4c6f87dc35603f27088d677","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"63e74169735637a8cb87578d337020a4f8ea5ed2b30cff87cafa69c1ba763d75","language":"en","license":"CC-BY-4.0","query":"Return the maximum of l.unit_price for retail lines joined to their invoices where (i.invoice_date is before '2011-05-10'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT i.country, MAX(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\\\":[\\\"2011-05-10\\\",10],\\\"sql\\\":\\\"SELECT i.country, MAX(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\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\",10],\\\"sql\\\":\\\"SELECT i.country, MAX(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 DESC, i.country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\",10],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) 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\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Channel Islands\",1.85],[\"Cyprus\",7.95],[\"Australia\",8.95]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, MAX(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","sql_parameters":"[\"2011-05-10\",10]","state":"{\"question\":\"Return the maximum of l.unit_price for retail lines joined to their invoices where (i.invoice_date is before '2011-05-10'), 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_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}16{"category":"single_table/aggregate","domain":"commerce","family_id":"4d3949ee36c9065dab987ecd","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"f0ce9c2dcace6b16bd3eee7672df637b1f6ae0bffda57392a26fd3470410503b","language":"en","license":"CC-BY-4.0","query":"Return the average of product_duration for shopping sessions where (traffic_type equals 1).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[1],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (traffic_type = ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[1],\\\"sql\\\":\\\"SELECT AVG(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[1],\\\"sql\\\":\\\"SELECT SUM(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[1],\\\"sql\\\":\\\"SELECT MIN(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1234.034177098311]]","source":"online_shoppers","split":"dev","sql":"SELECT AVG(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ?)","sql_parameters":"[1]","state":"{\"question\":\"Return the average of product_duration for shopping sessions where (traffic_type 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\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}17{"category":"single_table/or/having","domain":"commerce","family_id":"44348205a7b34247f858ab5c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"18435ee03e3dffdd30ea55fc238d6ba498f8816dc212f3997d482c8a5abbf3e1","language":"en","license":"CC-BY-4.0","query":"Return the average of administrative for shopping sessions where (administrative is greater than 2 or product_duration is at most 472.4166667), grouped by revenue, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by revenue ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2,472.4166667,2],\\\"sql\\\":\\\"SELECT revenue, AVG(administrative) AS value FROM shopping_sessions WHERE (administrative > ? OR product_duration <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2,472.4166667,2],\\\"sql\\\":\\\"SELECT revenue, AVG(administrative) AS value FROM shopping_sessions WHERE (administrative > ? AND product_duration <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2,472.4166667,2],\\\"sql\\\":\\\"SELECT revenue, AVG(administrative) AS value FROM shopping_sessions WHERE (administrative > ? OR product_duration <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2,472.4166667,2],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (administrative > ? OR product_duration <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1,5.0407816482582835],[0,2.7756024096385543]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, AVG(administrative) AS value FROM shopping_sessions WHERE (administrative > ? OR product_duration <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 5","sql_parameters":"[2,472.4166667,2]","state":"{\"question\":\"Return the average of administrative for shopping sessions where (administrative is greater than 2 or product_duration is at most 472.4166667), grouped by revenue, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by revenue ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}18{"category":"single_table/and/having","domain":"commerce","family_id":"c81f9f922ef9fc771c097c84","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"f0a67e94661ff14c0d049f5243e3100181419a1c2eafcb66c5e514aad6027e3a","language":"en","license":"CC-BY-4.0","query":"Return the minimum of product_duration for shopping sessions where (region equals 4 and product_duration is greater than 3395.729484), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[4,3395.729484,10],\\\"sql\\\":\\\"SELECT visitor_type, MIN(product_duration) AS value FROM shopping_sessions WHERE (region = ? AND product_duration > ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[4,3395.729484,10],\\\"sql\\\":\\\"SELECT visitor_type, MIN(product_duration) AS value FROM shopping_sessions WHERE (region = ? OR product_duration > ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[4,3395.729484,10],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (region = ? AND product_duration > ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[4,3395.729484,10],\\\"sql\\\":\\\"SELECT visitor_type, SUM(product_duration) AS value FROM shopping_sessions WHERE (region = ? AND product_duration > ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Returning_Visitor\",3418.696975]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, MIN(product_duration) AS value FROM shopping_sessions WHERE (region = ? AND product_duration > ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value ASC, visitor_type ASC LIMIT 3","sql_parameters":"[4,3395.729484,10]","state":"{\"question\":\"Return the minimum of product_duration for shopping sessions where (region equals 4 and product_duration is greater than 3395.729484), 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_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}19{"category":"single_table/or/ranked","domain":"sensor","family_id":"a77f214d84469be6dc596082","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"8b1b93a168b9c88f8803152ac1417aacebc9a5e2d4ab8f4814d0ab8839e1ae32","language":"en","license":"CC-BY-4.0","query":"Return the minimum of vs1_mean for hydraulic cycles where (ps2_mean is greater than 122.4767 or fs1_mean is greater than 6.57291), grouped by pump_leakage; return at most 5 groups ordered by aggregate value DESC, breaking ties by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[122.4767,6.57291],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? AND fs1_mean > ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[122.4767,6.57291],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? OR fs1_mean > ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[122.4767,6.57291],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? OR fs1_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[122.4767,6.57291],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? OR fs1_mean > ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[2,0.70913],[1,0.69738],[0,0.52437]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, MIN(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? OR fs1_mean > ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 5","sql_parameters":"[122.4767,6.57291]","state":"{\"question\":\"Return the minimum of vs1_mean for hydraulic cycles where (ps2_mean is greater than 122.4767 or fs1_mean is greater than 6.57291), 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\",\"eps1_mean\":\"REAL\",\"fs1_mean\":\"REAL\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}20{"category":"join/or/ranked","domain":"commerce","family_id":"0c9fe4ee73c8a5144d69654e","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"53c2c9a27c801a04d2a2b78565cd23897567aff6672b8636653c01da67799a6a","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.quantity for retail lines joined to their invoices where (i.customer_id equals '12359' or l.unit_price is greater than 4.77), grouped by i.country; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12359\\\",4.77],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? AND l.unit_price > ?) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12359\\\",4.77],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) 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.country ORDER BY value ASC, i.country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12359\\\",4.77],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) 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.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12359\\\",4.77],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) 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.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"United Kingdom\",59995],[\"EIRE\",984],[\"Germany\",806],[\"Netherlands\",382],[\"Cyprus\",234]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, SUM(l.quantity) 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.country ORDER BY value DESC, i.country ASC LIMIT 5","sql_parameters":"[\"12359\",4.77]","state":"{\"question\":\"Return the sum of l.quantity for retail lines joined to their invoices where (i.customer_id equals '12359' or l.unit_price is greater than 4.77), grouped by i.country; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}21{"category":"join/and/grouped","domain":"commerce","family_id":"39f68a36472d6acbda719373","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"20e326d9631609af2393ce2a7fa2fbb9ebc423a3236d138d1c414527e49f0a02","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.unit_price for retail lines joined to their invoices where (i.customer_id equals '12353' and l.unit_price is at most 4.77), grouped by i.invoice_date, ordered by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12353\\\",4.77],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(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\\\":[\\\"12353\\\",4.77],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(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 <= ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12353\\\",4.77],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? AND l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12353\\\",4.77],\\\"sql\\\":\\\"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.customer_id = ? AND l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-05-19\",4.4]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.invoice_date, SUM(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 <= ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC","sql_parameters":"[\"12353\",4.77]","state":"{\"question\":\"Return the sum of l.unit_price for retail lines joined to their invoices where (i.customer_id equals '12353' and l.unit_price is at most 4.77), grouped by i.invoice_date, ordered by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}22{"category":"single_table/aggregate","domain":"sensor","family_id":"0ba5ff0b95c37f8988eba1db","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"68aa3ad052f888a0dc7f75cb32808040907467dd675357d746630dc6ab4d01a8","language":"en","license":"CC-BY-4.0","query":"Return the average of ps1_mean for hydraulic cycles where (fs1_mean is greater than 6.57291).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[6.57291],\\\"sql\\\":\\\"SELECT AVG(ps1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[6.57291],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (fs1_mean > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[6.57291],\\\"sql\\\":\\\"SELECT SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[6.57291],\\\"sql\\\":\\\"SELECT MIN(ps1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[159.0802080765806]]","source":"hydraulic","split":"dev","sql":"SELECT AVG(ps1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ?)","sql_parameters":"[6.57291]","state":"{\"question\":\"Return the average of ps1_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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}23{"category":"single_table/aggregate","domain":"sensor","family_id":"d810d746fcd1371bfa648fbf","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"f97eddf1cbfbc68481336db451213ba16615e92e9e845cc62ea949d070e386db","language":"en","license":"CC-BY-4.0","query":"Return the minimum of fs1_mean for hydraulic cycles where (ps2_mean is at most 122.4767).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[122.4767],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[122.4767],\\\"sql\\\":\\\"SELECT MIN(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[122.4767],\\\"sql\\\":\\\"SELECT SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[122.4767],\\\"sql\\\":\\\"SELECT AVG(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[3.21726]]","source":"hydraulic","split":"dev","sql":"SELECT MIN(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ?)","sql_parameters":"[122.4767]","state":"{\"question\":\"Return the minimum of fs1_mean for hydraulic cycles where (ps2_mean is at most 122.4767).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}24{"category":"join/date/or/having","domain":"commerce","family_id":"071ef00e494b55ac3f8a6527","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"eec76b9a57fa482195d654d4f40a8bc77915052eff24816ceb3d6bb49f49ee99","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.quantity for retail lines joined to their invoices where (l.quantity is at most 92 or i.invoice_date is on or after '2011-05-10'), grouped by i.invoice_date, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[92,\\\"2011-05-10\\\",2],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.quantity) 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.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[92,\\\"2011-05-10\\\",2],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.quantity) 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.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[92,\\\"2011-05-10\\\",2],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.quantity) 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.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[92,\\\"2011-05-10\\\",2],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) 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.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-11-09\",6634],[\"2011-11-03\",6577],[\"2011-05-23\",6036],[\"2011-09-02\",5932],[\"2011-08-24\",5870]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.invoice_date, SUM(l.quantity) 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.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5","sql_parameters":"[92,\"2011-05-10\",2]","state":"{\"question\":\"Return the sum of l.quantity for retail lines joined to their invoices where (l.quantity is at most 92 or i.invoice_date is on or after '2011-05-10'), grouped by i.invoice_date, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}25{"category":"join/date/and/aggregate","domain":"commerce","family_id":"c135e0cecc4fde268357fdea","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"60e67f56ef6e9d7b3f09937e6c88379cad839d28361197b680150a10fef7a6dc","language":"en","license":"CC-BY-4.0","query":"Return the maximum of l.quantity for retail lines joined to their invoices where (l.unit_price is at most 0.55 and i.invoice_date is before '2010-07-14').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[0.55,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price <= ? AND i.invoice_date < ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[0.55,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price <= ? AND i.invoice_date < ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[0.55,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT MAX(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price <= ? AND i.invoice_date < ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[0.55,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price <= ? AND i.invoice_date < ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[10000]]","source":"online_retail_ii","split":"dev","sql":"SELECT MAX(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price <= ? AND i.invoice_date < ?)","sql_parameters":"[0.55,\"2010-07-14\"]","state":"{\"question\":\"Return the maximum of l.quantity for retail lines joined to their invoices where (l.unit_price is at most 0.55 and i.invoice_date is before '2010-07-14').\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}26{"category":"join/and/grouped","domain":"commerce","family_id":"ef33c930d42df10c3b88448f","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"d1d15913bc56015894dac0a6d8a9a3a37daa5530657e9a326998a47087553e1b","language":"en","license":"CC-BY-4.0","query":"Return the average of l.quantity for retail lines joined to their invoices where (i.country equals 'Canada' and l.unit_price is at most 49.95), grouped by i.country, ordered by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Canada\\\",49.95],\\\"sql\\\":\\\"SELECT i.country, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR l.unit_price <= ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Canada\\\",49.95],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND l.unit_price <= ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Canada\\\",49.95],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND l.unit_price <= ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Canada\\\",49.95],\\\"sql\\\":\\\"SELECT i.country, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND l.unit_price <= ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Canada\",10.4]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND l.unit_price <= ?) GROUP BY i.country ORDER BY i.country ASC","sql_parameters":"[\"Canada\",49.95]","state":"{\"question\":\"Return the average of l.quantity for retail lines joined to their invoices where (i.country equals 'Canada' and l.unit_price is at most 49.95), grouped by i.country, ordered by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}27{"category":"single_table/having","domain":"sensor","family_id":"3123fb1c597d0951aef6f692","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"8796f73803cdfd5db74def96b83e2ea898313b696db456d4a86341362ff256b8","language":"en","license":"CC-BY-4.0","query":"Return the maximum of eps1_mean for hydraulic cycles where (fs1_mean is greater than 6.57291), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[6.57291,2],\\\"sql\\\":\\\"SELECT cooler, MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[6.57291,2],\\\"sql\\\":\\\"SELECT cooler, MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value ASC, cooler ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[6.57291,2],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (fs1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[6.57291,2],\\\"sql\\\":\\\"SELECT cooler, SUM(eps1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[100,2555.55997],[3,2538.92917],[20,2472.5912]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5","sql_parameters":"[6.57291,2]","state":"{\"question\":\"Return the maximum of eps1_mean for hydraulic cycles where (fs1_mean is greater than 6.57291), 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_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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}28{"category":"join/distinct_invoice/grouped","domain":"commerce","family_id":"497112d6e327c55380ae546c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"e315060351057cba80cd619fbc48f771a6facbde580c10e371c93110e99986a0","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.unit_price is at most 8.5), grouped by i.country, ordered by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[8.5],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price <= ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[8.5],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price <= ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[8.5],\\\"sql\\\":\\\"SELECT i.country, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price <= ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[8.5],\\\"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 <= ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",13],[\"Austria\",4],[\"Bahrain\",3],[\"Belgium\",17],[\"Canada\",1],[\"Channel Islands\",6],[\"Cyprus\",5],[\"Denmark\",3],[\"EIRE\",49],[\"Finland\",18],[\"France\",59],[\"Germany\",115],[\"Israel\",2],[\"Italy\",3],[\"Japan\",5],[\"Netherlands\",35],[\"Norway\",3],[\"Poland\",2],[\"Portugal\",4],[\"Spain\",25],[\"Sweden\",26],[\"Switzerland\",10],[\"USA\",1],[\"United Kingdom\",6529]]","source":"online_retail_ii","split":"dev","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 <= ?) GROUP BY i.country ORDER BY i.country ASC","sql_parameters":"[8.5]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.unit_price is at most 8.5), grouped by i.country, ordered by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}29{"category":"join/date/and/ranked","domain":"commerce","family_id":"f55fe751b14e6484f9280d59","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"f7d869827c79f7154a72f71caa2990ef3b8db09b6205342fb3dcb4fdccee99f2","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail lines joined to their invoices where (l.unit_price is at most 0.55 and i.invoice_date is before '2010-07-14'), grouped by i.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[0.55,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) 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\":\"{\\\"parameters\\\":[0.55,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) 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 value DESC, i.country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[0.55,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) 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 value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[0.55,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) 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 value ASC, i.country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Cyprus\",1],[\"Netherlands\",1],[\"Portugal\",3]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, COUNT(*) 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 value ASC, i.country ASC LIMIT 3","sql_parameters":"[0.55,\"2010-07-14\"]","state":"{\"question\":\"Return the number of rows for retail lines joined to their invoices where (l.unit_price is at most 0.55 and i.invoice_date is before '2010-07-14'), grouped by i.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}30{"category":"single_table/and/aggregate","domain":"sensor","family_id":"1b45cc35b8922167bdb8de3f","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"c24de2b284773d6d79ed3c8a72deb43777627732a2664802e999ede0f23ef8d4","language":"en","license":"CC-BY-4.0","query":"Return the maximum of fs1_mean for hydraulic cycles where (ps1_mean is at most 172.56377 and ts1_mean is greater than 52.59775).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[172.56377,52.59775],\\\"sql\\\":\\\"SELECT MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR ts1_mean > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[172.56377,52.59775],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? AND ts1_mean > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[172.56377,52.59775],\\\"sql\\\":\\\"SELECT MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? AND ts1_mean > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[172.56377,52.59775],\\\"sql\\\":\\\"SELECT SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? AND ts1_mean > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[6.62953]]","source":"hydraulic","split":"dev","sql":"SELECT MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? AND ts1_mean > ?)","sql_parameters":"[172.56377,52.59775]","state":"{\"question\":\"Return the maximum of fs1_mean for hydraulic cycles where (ps1_mean is at most 172.56377 and ts1_mean is greater than 52.59775).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}31{"category":"single_table/or/grouped","domain":"commerce","family_id":"bf8250d88d7c98c501502151","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"875e7c3eca1ebb39173b9ef31395db2c25b32c7660e08b8f2b2abfa83dec6bfc","language":"en","license":"CC-BY-4.0","query":"Return the average of administrative for shopping sessions where (administrative is at most 13 or product_duration is greater than 1564.0), grouped by visitor_type, ordered by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[13,1564.0],\\\"sql\\\":\\\"SELECT visitor_type, AVG(administrative) AS value FROM shopping_sessions WHERE (administrative <= ? AND product_duration > ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[13,1564.0],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_duration > ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[13,1564.0],\\\"sql\\\":\\\"SELECT visitor_type, AVG(administrative) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_duration > ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[13,1564.0],\\\"sql\\\":\\\"SELECT visitor_type, SUM(administrative) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_duration > ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"New_Visitor\",2.5366430260047284],[\"Other\",1.3214285714285714],[\"Returning_Visitor\",2.243677505229131]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, AVG(administrative) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_duration > ?) GROUP BY visitor_type ORDER BY visitor_type ASC","sql_parameters":"[13,1564.0]","state":"{\"question\":\"Return the average of administrative for shopping sessions where (administrative is at most 13 or product_duration is greater than 1564.0), grouped by visitor_type, ordered by visitor_type ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}32{"category":"single_table/and/aggregate","domain":"commerce","family_id":"8cab554bb34b539aa2eb4010","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"cb19f1c21057b809bf6b1be443510a163e2a5cb985a79e891734b09be6c3842b","language":"en","license":"CC-BY-4.0","query":"Return the sum of product_related for shopping sessions where (visitor_type equals 'Returning_Visitor' and revenue equals 1).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Returning_Visitor\\\",1],\\\"sql\\\":\\\"SELECT SUM(product_related) AS value FROM shopping_sessions WHERE (visitor_type = ? OR revenue = ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Returning_Visitor\\\",1],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (visitor_type = ? AND revenue = ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Returning_Visitor\\\",1],\\\"sql\\\":\\\"SELECT SUM(product_related) AS value FROM shopping_sessions WHERE (visitor_type = ? AND revenue = ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Returning_Visitor\\\",1],\\\"sql\\\":\\\"SELECT AVG(product_related) AS value FROM shopping_sessions WHERE (visitor_type = ? AND revenue = ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[82187]]","source":"online_shoppers","split":"dev","sql":"SELECT SUM(product_related) AS value FROM shopping_sessions WHERE (visitor_type = ? AND revenue = ?)","sql_parameters":"[\"Returning_Visitor\",1]","state":"{\"question\":\"Return the sum of product_related for shopping sessions where (visitor_type equals 'Returning_Visitor' and revenue 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\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}33{"category":"single_table/date/and/grouped","domain":"commerce","family_id":"cd93b160130aad9a9cff0f71","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"2ecad0de31e3809f5a82959ff6c66e77079886d1f5bbfbf6ac1a66474e9e04dd","language":"en","license":"CC-BY-4.0","query":"Return the maximum of quantity for retail invoice lines where (unit_price is greater than 49.95 and invoice_date is before '2010-07-14'), grouped by invoice_date, ordered by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[49.95,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MAX(quantity) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[49.95,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (unit_price > ? AND invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[49.95,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MAX(quantity) AS value FROM retail_lines WHERE (unit_price > ? AND invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[49.95,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (unit_price > ? AND invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-03\",1],[\"2009-12-07\",1],[\"2009-12-09\",1],[\"2010-02-02\",1],[\"2010-02-03\",1],[\"2010-02-22\",16],[\"2010-03-24\",1],[\"2010-04-21\",1],[\"2010-05-04\",1],[\"2010-05-19\",1],[\"2010-06-29\",1],[\"2010-07-08\",1],[\"2010-07-12\",1]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MAX(quantity) AS value FROM retail_lines WHERE (unit_price > ? AND invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC","sql_parameters":"[49.95,\"2010-07-14\"]","state":"{\"question\":\"Return the maximum of quantity for retail invoice lines where (unit_price is greater than 49.95 and invoice_date is before '2010-07-14'), 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\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}34{"category":"single_table/or/having","domain":"sensor","family_id":"ae7518fdd0963bf127ffc379","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"93c3b432cdec2c189043650209ae4750c2ee4b4121be0ee5d2a963e7302abd04","language":"en","license":"CC-BY-4.0","query":"Return the average of ts1_mean for hydraulic cycles where (cooler equals 100 or vs1_mean is greater than 0.71948), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[100,0.71948,2],\\\"sql\\\":\\\"SELECT pump_leakage, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? AND vs1_mean > ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[100,0.71948,2],\\\"sql\\\":\\\"SELECT pump_leakage, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? OR vs1_mean > ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value ASC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[100,0.71948,2],\\\"sql\\\":\\\"SELECT pump_leakage, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? OR vs1_mean > ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[100,0.71948,2],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (cooler = ? OR vs1_mean > ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[2,43.82730395522388],[1,42.4756279661017],[0,37.10697082191781]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? OR vs1_mean > ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 5","sql_parameters":"[100,0.71948,2]","state":"{\"question\":\"Return the average of ts1_mean for hydraulic cycles where (cooler equals 100 or vs1_mean is greater than 0.71948), 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\":{\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}35{"category":"single_table/and/having","domain":"commerce","family_id":"7f69c7b5f0974f14ff09315c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"a076e8d368caa234f4fdcb1ef1af50c990a894e9984e32d0ee43621e0e14c43a","language":"en","license":"CC-BY-4.0","query":"Return the minimum of unit_price for retail invoice lines where (quantity is greater than 92 and 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[92,2.25,2],\\\"sql\\\":\\\"SELECT country, MIN(unit_price) AS value FROM retail_lines WHERE (quantity > ? OR unit_price > ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[92,2.25],\\\"sql\\\":\\\"SELECT country, MIN(unit_price) AS value FROM retail_lines WHERE (quantity > ? AND unit_price > ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[92,2.25,2],\\\"sql\\\":\\\"SELECT country, MIN(unit_price) AS value FROM retail_lines WHERE (quantity > ? AND unit_price > ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[92,2.25,2],\\\"sql\\\":\\\"SELECT country, MIN(unit_price) AS value FROM retail_lines WHERE (quantity > ? AND unit_price > ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Spain\",3.39],[\"EIRE\",2.55],[\"Netherlands\",2.55],[\"United Kingdom\",2.26]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, MIN(unit_price) AS value FROM retail_lines WHERE (quantity > ? AND unit_price > ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5","sql_parameters":"[92,2.25,2]","state":"{\"question\":\"Return the minimum of unit_price for retail invoice lines where (quantity is greater than 92 and 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_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}36{"category":"single_table/grouped","domain":"commerce","family_id":"61e348ca2f74af67c9824c18","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"7a6f049ae13f7fea37e6b9480b136d2465e736998004621f19dbd07eed1bb5c5","language":"en","license":"CC-BY-4.0","query":"Return the minimum of administrative for shopping sessions where (product_duration is greater than 3395.729484), grouped by revenue, ordered by revenue ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[3395.729484],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (product_duration > ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[3395.729484],\\\"sql\\\":\\\"SELECT revenue, SUM(administrative) AS value FROM shopping_sessions WHERE (product_duration > ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[3395.729484],\\\"sql\\\":\\\"SELECT revenue, MIN(administrative) AS value FROM shopping_sessions WHERE (product_duration > ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[3395.729484],\\\"sql\\\":\\\"SELECT revenue, AVG(administrative) AS value FROM shopping_sessions WHERE (product_duration > ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,0],[1,0]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, MIN(administrative) AS value FROM shopping_sessions WHERE (product_duration > ?) GROUP BY revenue ORDER BY revenue ASC","sql_parameters":"[3395.729484]","state":"{\"question\":\"Return the minimum of administrative for shopping sessions where (product_duration is greater than 3395.729484), grouped by revenue, ordered by revenue ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}37{"category":"join/and/aggregate","domain":"commerce","family_id":"d0504d1574bad6d8c86728c9","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"72c1763554095ee4b36a110410d91331a0c1a35f2b1283dd0171d8919610a41d","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.unit_price for retail lines joined to their invoices where (l.quantity is at most 648 and l.unit_price is at most 4.77).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[648,4.77],\\\"sql\\\":\\\"SELECT SUM(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? OR l.unit_price <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[648,4.77],\\\"sql\\\":\\\"SELECT SUM(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? AND l.unit_price <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[648,4.77],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? AND l.unit_price <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[648,4.77],\\\"sql\\\":\\\"SELECT AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? AND l.unit_price <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[38934.11]]","source":"online_retail_ii","split":"dev","sql":"SELECT SUM(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? AND l.unit_price <= ?)","sql_parameters":"[648,4.77]","state":"{\"question\":\"Return the sum of l.unit_price for retail lines joined to their invoices where (l.quantity is at most 648 and 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\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}38{"category":"join/date/grouped","domain":"commerce","family_id":"0a3bf68bf7bd411d31df6add","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"ed5b333cd3810cadd3c0da3b2a5c9d8654a46f233ec4901356762c0592994faf","language":"en","license":"CC-BY-4.0","query":"Return the minimum of l.quantity for retail lines joined to their invoices where (i.invoice_date is before '2011-09-29'), grouped by i.invoice_date, ordered by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, MIN(l.quantity) 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-09-29\\\"],\\\"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_3\":\"{\\\"parameters\\\":[\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.quantity) 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_4\":\"{\\\"parameters\\\":[\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(l.quantity) 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\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-01\",1],[\"2009-12-02\",1],[\"2009-12-03\",1],[\"2009-12-04\",1],[\"2009-12-05\",1],[\"2009-12-06\",1],[\"2009-12-07\",1],[\"2009-12-08\",1],[\"2009-12-09\",1],[\"2009-12-10\",1],[\"2009-12-11\",1],[\"2009-12-13\",1],[\"2009-12-14\",1],[\"2009-12-15\",1],[\"2009-12-16\",1],[\"2009-12-17\",1],[\"2009-12-18\",1],[\"2009-12-20\",1],[\"2009-12-21\",1],[\"2009-12-22\",1],[\"2009-12-23\",1],[\"2010-01-04\",1],[\"2010-01-05\",1],[\"2010-01-06\",1],[\"2010-01-07\",1],[\"2010-01-08\",3],[\"2010-01-10\",2],[\"2010-01-11\",1],[\"2010-01-12\",1],[\"2010-01-13\",1],[\"2010-01-14\",1],[\"2010-01-15\",1],[\"2010-01-17\",6],[\"2010-01-18\",6],[\"2010-01-19\",2],[\"2010-01-20\",1],[\"2010-01-21\",1],[\"2010-01-22\",1],[\"2010-01-24\",3],[\"2010-01-25\",1],[\"2010-01-26\",1],[\"2010-01-27\",1],[\"2010-01-28\",1],[\"2010-01-29\",1],[\"2010-01-31\",1],[\"2010-02-01\",1],[\"2010-02-02\",1],[\"2010-02-03\",1],[\"2010-02-04\",1],[\"2010-02-05\",1],[\"2010-02-07\",1],[\"2010-02-08\",1],[\"2010-02-09\",1],[\"2010-02-10\",1],[\"2010-02-11\",1],[\"2010-02-12\",1],[\"2010-02-14\",1],[\"2010-02-15\",2],[\"2010-02-16\",1],[\"2010-02-17\",1],[\"2010-02-18\",1],[\"2010-02-19\",1],[\"2010-02-21\",1],[\"2010-02-22\",1],[\"2010-02-23\",1],[\"2010-02-24\",1],[\"2010-02-25\",1],[\"2010-02-26\",1],[\"2010-02-28\",1],[\"2010-03-01\",2],[\"2010-03-02\",1],[\"2010-03-03\",1],[\"2010-03-04\",1],[\"2010-03-05\",1],[\"2010-03-07\",1],[\"2010-03-08\",1],[\"2010-03-09\",1],[\"2010-03-10\",1],[\"2010-03-11\",1],[\"2010-03-12\",2],[\"2010-03-14\",1],[\"2010-03-15\",1],[\"2010-03-16\",1],[\"2010-03-17\",1],[\"2010-03-18\",1],[\"2010-03-19\",1],[\"2010-03-21\",1],[\"2010-03-22\",1],[\"2010-03-23\",1],[\"2010-03-24\",1],[\"2010-03-25\",1],[\"2010-03-26\",1],[\"2010-03-28\",12],[\"2010-03-29\",1],[\"2010-03-30\",1],[\"2010-03-31\",1],[\"2010-04-01\",1],[\"2010-04-06\",1],[\"2010-04-07\",6],[\"2010-04-08\",1],[\"2010-04-09\",1],[\"2010-04-11\",2],[\"2010-04-12\",1],[\"2010-04-13\",1],[\"2010-04-14\",1],[\"2010-04-15\",1],[\"2010-04-16\",1],[\"2010-04-18\",1],[\"2010-04-19\",1],[\"2010-04-20\",1],[\"2010-04-21\",1],[\"2010-04-22\",1],[\"2010-04-23\",1],[\"2010-04-25\",2],[\"2010-04-26\",1],[\"2010-04-27\",1],[\"2010-04-28\",1],[\"2010-04-29\",1],[\"2010-04-30\",1],[\"2010-05-02\",1],[\"2010-05-04\",1],[\"2010-05-05\",1],[\"2010-05-06\",1],[\"2010-05-07\",1],[\"2010-05-09\",1],[\"2010-05-10\",1],[\"2010-05-11\",1],[\"2010-05-12\",1],[\"2010-05-13\",1],[\"2010-05-14\",1],[\"2010-05-16\",2],[\"2010-05-17\",1],[\"2010-05-18\",1],[\"2010-05-19\",1],[\"2010-05-20\",1],[\"2010-05-21\",1],[\"2010-05-23\",1],[\"2010-05-24\",1],[\"2010-05-25\",1],[\"2010-05-26\",1],[\"2010-05-27\",1],[\"2010-05-28\",1],[\"2010-05-30\",1],[\"2010-06-01\",1],[\"2010-06-02\",1],[\"2010-06-03\",1],[\"2010-06-04\",1],[\"2010-06-06\",1],[\"2010-06-07\",2],[\"2010-06-08\",1],[\"2010-06-09\",1],[\"2010-06-10\",1],[\"2010-06-11\",1],[\"2010-06-13\",1],[\"2010-06-14\",1],[\"2010-06-15\",1],[\"2010-06-16\",2],[\"2010-06-17\",1],[\"2010-06-18\",1],[\"2010-06-20\",1],[\"2010-06-21\",2],[\"2010-06-22\",1],[\"2010-06-23\",1],[\"2010-06-24\",1],[\"2010-06-25\",1],[\"2010-06-27\",1],[\"2010-06-28\",2],[\"2010-06-29\",1],[\"2010-06-30\",1],[\"2010-07-01\",1],[\"2010-07-02\",1],[\"2010-07-04\",1],[\"2010-07-05\",1],[\"2010-07-06\",2],[\"2010-07-07\",1],[\"2010-07-08\",1],[\"2010-07-09\",1],[\"2010-07-11\",1],[\"2010-07-12\",1],[\"2010-07-13\",1],[\"2010-07-14\",1],[\"2010-07-15\",1],[\"2010-07-16\",1],[\"2010-07-18\",4],[\"2010-07-19\",1],[\"2010-07-20\",1],[\"2010-07-21\",1],[\"2010-07-22\",1],[\"2010-07-23\",1],[\"2010-07-25\",1],[\"2010-07-26\",1],[\"2010-07-27\",1],[\"2010-07-28\",1],[\"2010-07-29\",1],[\"2010-07-30\",1],[\"2010-08-01\",1],[\"2010-08-02\",1],[\"2010-08-03\",1],[\"2010-08-04\",1],[\"2010-08-05\",1],[\"2010-08-06\",1],[\"2010-08-08\",2],[\"2010-08-09\",2],[\"2010-08-10\",1],[\"2010-08-11\",1],[\"2010-08-12\",1],[\"2010-08-13\",1],[\"2010-08-15\",1],[\"2010-08-16\",2],[\"2010-08-17\",1],[\"2010-08-18\",1],[\"2010-08-19\",1],[\"2010-08-20\",1],[\"2010-08-22\",1],[\"2010-08-23\",1],[\"2010-08-24\",1],[\"2010-08-25\",1],[\"2010-08-26\",1],[\"2010-08-27\",3],[\"2010-08-29\",1],[\"2010-08-31\",1],[\"2010-09-01\",1],[\"2010-09-02\",1],[\"2010-09-03\",1],[\"2010-09-05\",2],[\"2010-09-06\",2],[\"2010-09-07\",2],[\"2010-09-08\",6],[\"2010-09-09\",1],[\"2010-09-10\",4],[\"2010-09-12\",1],[\"2010-09-13\",1],[\"2010-09-14\",1],[\"2010-09-15\",1],[\"2010-09-16\",1],[\"2010-09-17\",1],[\"2010-09-19\",2],[\"2010-09-20\",1],[\"2010-09-21\",1],[\"2010-09-22\",1],[\"2010-09-23\",1],[\"2010-09-24\",1],[\"2010-09-26\",1],[\"2010-09-27\",1],[\"2010-09-28\",1],[\"2010-09-29\",1],[\"2010-09-30\",1],[\"2010-10-01\",1],[\"2010-10-03\",4],[\"2010-10-04\",1],[\"2010-10-05\",1],[\"2010-10-06\",1],[\"2010-10-07\",1],[\"2010-10-08\",1],[\"2010-10-10\",1],[\"2010-10-11\",1],[\"2010-10-12\",1],[\"2010-10-13\",1],[\"2010-10-14\",1],[\"2010-10-15\",1],[\"2010-10-17\",1],[\"2010-10-18\",1],[\"2010-10-19\",1],[\"2010-10-20\",1],[\"2010-10-21\",1],[\"2010-10-22\",2],[\"2010-10-24\",1],[\"2010-10-25\",1],[\"2010-10-26\",1],[\"2010-10-27\",1],[\"2010-10-28\",1],[\"2010-10-29\",1],[\"2010-10-31\",1],[\"2010-11-01\",3],[\"2010-11-02\",1],[\"2010-11-03\",1],[\"2010-11-04\",1],[\"2010-11-05\",1],[\"2010-11-07\",1],[\"2010-11-08\",1],[\"2010-11-09\",1],[\"2010-11-10\",1],[\"2010-11-11\",1],[\"2010-11-12\",1],[\"2010-11-14\",1],[\"2010-11-15\",1],[\"2010-11-16\",1],[\"2010-11-17\",1],[\"2010-11-18\",1],[\"2010-11-19\",1],[\"2010-11-21\",1],[\"2010-11-22\",1],[\"2010-11-23\",1],[\"2010-11-24\",1],[\"2010-11-25\",1],[\"2010-11-26\",1],[\"2010-11-28\",1],[\"2010-11-29\",1],[\"2010-11-30\",1],[\"2010-12-01\",1],[\"2010-12-02\",1],[\"2010-12-03\",1],[\"2010-12-05\",1],[\"2010-12-06\",1],[\"2010-12-07\",1],[\"2010-12-08\",1],[\"2010-12-09\",1],[\"2010-12-10\",1],[\"2010-12-12\",1],[\"2010-12-13\",1],[\"2010-12-14\",1],[\"2010-12-15\",1],[\"2010-12-16\",1],[\"2010-12-17\",1],[\"2010-12-19\",1],[\"2010-12-20\",1],[\"2010-12-21\",1],[\"2010-12-22\",1],[\"2010-12-23\",1],[\"2011-01-04\",4],[\"2011-01-05\",1],[\"2011-01-06\",6],[\"2011-01-07\",1],[\"2011-01-09\",2],[\"2011-01-10\",1],[\"2011-01-11\",1],[\"2011-01-12\",1],[\"2011-01-13\",2],[\"2011-01-14\",1],[\"2011-01-16\",1],[\"2011-01-17\",1],[\"2011-01-18\",3],[\"2011-01-19\",1],[\"2011-01-20\",1],[\"2011-01-21\",1],[\"2011-01-23\",1],[\"2011-01-24\",1],[\"2011-01-25\",1],[\"2011-01-26\",2],[\"2011-01-27\",1],[\"2011-01-28\",4],[\"2011-01-30\",12],[\"2011-01-31\",1],[\"2011-02-01\",1],[\"2011-02-02\",1],[\"2011-02-03\",2],[\"2011-02-04\",1],[\"2011-02-07\",1],[\"2011-02-08\",3],[\"2011-02-09\",1],[\"2011-02-10\",1],[\"2011-02-11\",1],[\"2011-02-13\",4],[\"2011-02-14\",1],[\"2011-02-15\",1],[\"2011-02-16\",2],[\"2011-02-17\",1],[\"2011-02-18\",1],[\"2011-02-20\",3],[\"2011-02-21\",1],[\"2011-02-22\",1],[\"2011-02-23\",2],[\"2011-02-24\",2],[\"2011-02-25\",1],[\"2011-02-27\",1],[\"2011-02-28\",1],[\"2011-03-01\",1],[\"2011-03-02\",3],[\"2011-03-03\",1],[\"2011-03-04\",1],[\"2011-03-06\",2],[\"2011-03-07\",1],[\"2011-03-08\",4],[\"2011-03-09\",1],[\"2011-03-10\",1],[\"2011-03-11\",1],[\"2011-03-14\",1],[\"2011-03-15\",1],[\"2011-03-16\",1],[\"2011-03-17\",1],[\"2011-03-18\",1],[\"2011-03-20\",1],[\"2011-03-21\",1],[\"2011-03-22\",4],[\"2011-03-23\",1],[\"2011-03-24\",4],[\"2011-03-25\",1],[\"2011-03-27\",2],[\"2011-03-28\",1],[\"2011-03-29\",4],[\"2011-03-30\",1],[\"2011-03-31\",1],[\"2011-04-01\",1],[\"2011-04-03\",1],[\"2011-04-04\",1],[\"2011-04-05\",1],[\"2011-04-06\",1],[\"2011-04-07\",1],[\"2011-04-08\",1],[\"2011-04-10\",24],[\"2011-04-11\",1],[\"2011-04-12\",1],[\"2011-04-13\",1],[\"2011-04-14\",1],[\"2011-04-15\",1],[\"2011-04-17\",2],[\"2011-04-18\",1],[\"2011-04-19\",1],[\"2011-04-20\",2],[\"2011-04-21\",1],[\"2011-04-26\",1],[\"2011-04-27\",1],[\"2011-04-28\",1],[\"2011-05-01\",2],[\"2011-05-03\",1],[\"2011-05-04\",1],[\"2011-05-05\",1],[\"2011-05-06\",1],[\"2011-05-08\",1],[\"2011-05-09\",1],[\"2011-05-10\",1],[\"2011-05-11\",1],[\"2011-05-12\",1],[\"2011-05-13\",1],[\"2011-05-15\",1],[\"2011-05-16\",2],[\"2011-05-17\",2],[\"2011-05-18\",1],[\"2011-05-19\",1],[\"2011-05-20\",1],[\"2011-05-22\",2],[\"2011-05-23\",1],[\"2011-05-24\",1],[\"2011-05-25\",1],[\"2011-05-26\",1],[\"2011-05-27\",1],[\"2011-05-29\",1],[\"2011-05-31\",1],[\"2011-06-01\",1],[\"2011-06-02\",1],[\"2011-06-03\",1],[\"2011-06-05\",1],[\"2011-06-06\",2],[\"2011-06-07\",1],[\"2011-06-08\",1],[\"2011-06-09\",1],[\"2011-06-10\",1],[\"2011-06-12\",1],[\"2011-06-13\",1],[\"2011-06-14\",1],[\"2011-06-15\",1],[\"2011-06-16\",1],[\"2011-06-17\",1],[\"2011-06-19\",1],[\"2011-06-20\",1],[\"2011-06-21\",1],[\"2011-06-22\",1],[\"2011-06-23\",1],[\"2011-06-24\",1],[\"2011-06-26\",1],[\"2011-06-27\",4],[\"2011-06-28\",1],[\"2011-06-29\",1],[\"2011-06-30\",1],[\"2011-07-01\",1],[\"2011-07-03\",2],[\"2011-07-04\",4],[\"2011-07-05\",1],[\"2011-07-06\",1],[\"2011-07-07\",1],[\"2011-07-08\",1],[\"2011-07-10\",1],[\"2011-07-11\",1],[\"2011-07-12\",5],[\"2011-07-13\",1],[\"2011-07-14\",1],[\"2011-07-15\",1],[\"2011-07-17\",1],[\"2011-07-18\",1],[\"2011-07-19\",1],[\"2011-07-20\",1],[\"2011-07-21\",1],[\"2011-07-22\",1],[\"2011-07-24\",1],[\"2011-07-25\",1],[\"2011-07-26\",1],[\"2011-07-27\",1],[\"2011-07-28\",1],[\"2011-07-29\",1],[\"2011-07-31\",1],[\"2011-08-01\",1],[\"2011-08-02\",1],[\"2011-08-03\",1],[\"2011-08-04\",1],[\"2011-08-05\",1],[\"2011-08-07\",1],[\"2011-08-08\",1],[\"2011-08-09\",1],[\"2011-08-10\",1],[\"2011-08-11\",1],[\"2011-08-12\",8],[\"2011-08-14\",1],[\"2011-08-15\",3],[\"2011-08-16\",1],[\"2011-08-17\",12],[\"2011-08-18\",1],[\"2011-08-19\",1],[\"2011-08-21\",1],[\"2011-08-22\",1],[\"2011-08-23\",1],[\"2011-08-24\",1],[\"2011-08-25\",1],[\"2011-08-26\",2],[\"2011-08-28\",3],[\"2011-08-30\",1],[\"2011-08-31\",1],[\"2011-09-01\",2],[\"2011-09-02\",1],[\"2011-09-04\",1],[\"2011-09-05\",3],[\"2011-09-06\",1],[\"2011-09-07\",1],[\"2011-09-08\",1],[\"2011-09-09\",1],[\"2011-09-11\",4],[\"2011-09-12\",1],[\"2011-09-13\",1],[\"2011-09-14\",2],[\"2011-09-15\",1],[\"2011-09-16\",1],[\"2011-09-18\",1],[\"2011-09-19\",1],[\"2011-09-20\",1],[\"2011-09-21\",1],[\"2011-09-22\",1],[\"2011-09-23\",1],[\"2011-09-25\",1],[\"2011-09-26\",1],[\"2011-09-27\",1],[\"2011-09-28\",1]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.invoice_date, MIN(l.quantity) 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","sql_parameters":"[\"2011-09-29\"]","state":"{\"question\":\"Return the minimum of l.quantity for retail lines joined to their invoices where (i.invoice_date is before '2011-09-29'), grouped by i.invoice_date, ordered by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}39{"category":"join/distinct_invoice/or/ranked","domain":"commerce","family_id":"68f2e64f9df8432b3dab5b9a","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"597f1da5deedff67d9183e68095dbf85190bd3517be32f3602b9e673470da6f7","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.quantity is greater than 1800 or l.unit_price is at most 8.5), grouped by i.invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[1800,8.5],\\\"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 > ? AND l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[1800,8.5],\\\"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 > ? OR l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[1800,8.5],\\\"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 > ? OR l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[1800,8.5],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) 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 value ASC, i.invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-01-06\",1],[\"2010-01-18\",1],[\"2010-07-11\",1]]","source":"online_retail_ii","split":"dev","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 > ? OR l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3","sql_parameters":"[1800,8.5]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.quantity is greater than 1800 or l.unit_price is at most 8.5), grouped by i.invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}40{"category":"single_table/ranked","domain":"sensor","family_id":"15dd3974c54e3afe3d77c93f","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"1d0b6c82b266ed9c55401fb883611f849ff55fe348c0ce71f1935bf6d71dc39d","language":"en","license":"CC-BY-4.0","query":"Return the minimum of vs1_mean for hydraulic cycles where (eps1_mean is at most 2480.92663), grouped by valve; return at most 5 groups ordered by aggregate value DESC, breaking ties by valve ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2480.92663],\\\"sql\\\":\\\"SELECT valve, MIN(vs1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ?) GROUP BY valve ORDER BY value ASC, valve ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2480.92663],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2480.92663],\\\"sql\\\":\\\"SELECT valve, MIN(vs1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2480.92663],\\\"sql\\\":\\\"SELECT valve, SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[73,0.60162],[80,0.59557],[90,0.5909],[100,0.5687]]","source":"hydraulic","split":"dev","sql":"SELECT valve, MIN(vs1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 5","sql_parameters":"[2480.92663]","state":"{\"question\":\"Return the minimum of vs1_mean for hydraulic cycles where (eps1_mean is at most 2480.92663), grouped by valve; return at most 5 groups ordered by aggregate value DESC, breaking ties by valve ascending.\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}41{"category":"single_table/and/grouped","domain":"commerce","family_id":"373d5eb179267e4012b618d5","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"799b09082b6dfa038b521c5ac623efe0a3515cb37e9dcc006eb508accdecf5df","language":"en","license":"CC-BY-4.0","query":"Return the maximum of product_related for shopping sessions where (region equals 6 and traffic_type equals 11), grouped by visitor_type, ordered by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[6,11],\\\"sql\\\":\\\"SELECT visitor_type, MAX(product_related) AS value FROM shopping_sessions WHERE (region = ? AND traffic_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[6,11],\\\"sql\\\":\\\"SELECT visitor_type, MAX(product_related) AS value FROM shopping_sessions WHERE (region = ? OR traffic_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[6,11],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (region = ? AND traffic_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[6,11],\\\"sql\\\":\\\"SELECT visitor_type, SUM(product_related) AS value FROM shopping_sessions WHERE (region = ? AND traffic_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"New_Visitor\",50],[\"Returning_Visitor\",113]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, MAX(product_related) AS value FROM shopping_sessions WHERE (region = ? AND traffic_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC","sql_parameters":"[6,11]","state":"{\"question\":\"Return the maximum of product_related for shopping sessions where (region equals 6 and traffic_type equals 11), grouped by visitor_type, ordered by visitor_type ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}42{"category":"single_table/or/grouped","domain":"sensor","family_id":"d5c68fce705789946a6f5e63","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"ad895690e0f1511e521ddbdabdaba85069b6122090b9d99ef763dc674dc975c1","language":"en","license":"CC-BY-4.0","query":"Return the average of ts1_mean for hydraulic cycles where (ps1_mean is at most 172.56377 or ts1_mean is greater than 44.84172), grouped by pump_leakage, ordered by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[172.56377,44.84172],\\\"sql\\\":\\\"SELECT pump_leakage, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR ts1_mean > ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[172.56377,44.84172],\\\"sql\\\":\\\"SELECT pump_leakage, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? AND ts1_mean > ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[172.56377,44.84172],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR ts1_mean > ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[172.56377,44.84172],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR ts1_mean > ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,45.243633447993446],[1,45.743496727642274],[2,45.55466038617886]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR ts1_mean > ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC","sql_parameters":"[172.56377,44.84172]","state":"{\"question\":\"Return the average of ts1_mean for hydraulic cycles where (ps1_mean is at most 172.56377 or ts1_mean is greater than 44.84172), 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_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}43{"category":"single_table/grouped","domain":"commerce","family_id":"7ec86c5df40a8718ddcf088d","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"b7acbba07b175ed40a0835b589b6d31414d881cc4a3931db309e07ca3c18db10","language":"en","license":"CC-BY-4.0","query":"Return the minimum of quantity for retail invoice lines where (quantity is greater than 92), grouped by invoice_date, ordered by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[92],\\\"sql\\\":\\\"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (quantity > ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[92],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (quantity > ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[92],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (quantity > ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[92],\\\"sql\\\":\\\"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (quantity > ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-01\",216],[\"2009-12-02\",96],[\"2009-12-03\",144],[\"2009-12-04\",96],[\"2009-12-05\",96],[\"2009-12-07\",96],[\"2009-12-08\",96],[\"2009-12-09\",100],[\"2009-12-10\",96],[\"2009-12-13\",120],[\"2009-12-14\",96],[\"2009-12-15\",100],[\"2009-12-16\",96],[\"2009-12-17\",144],[\"2009-12-18\",120],[\"2009-12-20\",96],[\"2009-12-21\",96],[\"2009-12-22\",96],[\"2009-12-23\",96],[\"2010-01-04\",96],[\"2010-01-05\",120],[\"2010-01-07\",96],[\"2010-01-08\",96],[\"2010-01-10\",120],[\"2010-01-11\",150],[\"2010-01-12\",96],[\"2010-01-13\",100],[\"2010-01-14\",150],[\"2010-01-15\",100],[\"2010-01-17\",120],[\"2010-01-19\",100],[\"2010-01-20\",240],[\"2010-01-21\",100],[\"2010-01-27\",96],[\"2010-01-28\",96],[\"2010-01-29\",96],[\"2010-01-31\",96],[\"2010-02-01\",100],[\"2010-02-02\",96],[\"2010-02-03\",96],[\"2010-02-04\",120],[\"2010-02-05\",190],[\"2010-02-07\",96],[\"2010-02-08\",96],[\"2010-02-09\",96],[\"2010-02-11\",100],[\"2010-02-12\",96],[\"2010-02-14\",100],[\"2010-02-15\",96],[\"2010-02-16\",96],[\"2010-02-17\",96],[\"2010-02-18\",96],[\"2010-02-19\",96],[\"2010-02-21\",120],[\"2010-02-22\",180],[\"2010-02-23\",100],[\"2010-02-24\",96],[\"2010-02-25\",100],[\"2010-02-26\",100],[\"2010-02-28\",96],[\"2010-03-01\",96],[\"2010-03-02\",108],[\"2010-03-04\",100],[\"2010-03-05\",141],[\"2010-03-08\",96],[\"2010-03-09\",100],[\"2010-03-10\",100],[\"2010-03-11\",96],[\"2010-03-14\",96],[\"2010-03-15\",100],[\"2010-03-16\",96],[\"2010-03-17\",100],[\"2010-03-18\",96],[\"2010-03-19\",96],[\"2010-03-21\",120],[\"2010-03-22\",240],[\"2010-03-23\",96],[\"2010-03-24\",216],[\"2010-03-25\",96],[\"2010-03-28\",96],[\"2010-03-29\",96],[\"2010-03-30\",100],[\"2010-03-31\",96],[\"2010-04-01\",100],[\"2010-04-06\",100],[\"2010-04-07\",100],[\"2010-04-08\",100],[\"2010-04-09\",100],[\"2010-04-11\",96],[\"2010-04-12\",100],[\"2010-04-13\",96],[\"2010-04-14\",96],[\"2010-04-15\",150],[\"2010-04-16\",96],[\"2010-04-18\",96],[\"2010-04-19\",120],[\"2010-04-20\",96],[\"2010-04-21\",96],[\"2010-04-22\",96],[\"2010-04-25\",100],[\"2010-04-26\",96],[\"2010-04-27\",100],[\"2010-04-28\",96],[\"2010-04-29\",96],[\"2010-05-02\",200],[\"2010-05-04\",560],[\"2010-05-05\",96],[\"2010-05-06\",96],[\"2010-05-07\",100],[\"2010-05-10\",96],[\"2010-05-12\",96],[\"2010-05-13\",108],[\"2010-05-14\",100],[\"2010-05-16\",100],[\"2010-05-17\",200],[\"2010-05-18\",144],[\"2010-05-19\",96],[\"2010-05-21\",100],[\"2010-05-23\",240],[\"2010-05-25\",96],[\"2010-05-26\",96],[\"2010-05-27\",100],[\"2010-05-28\",96],[\"2010-05-30\",144],[\"2010-06-01\",100],[\"2010-06-03\",100],[\"2010-06-04\",96],[\"2010-06-07\",96],[\"2010-06-08\",96],[\"2010-06-09\",96],[\"2010-06-10\",108],[\"2010-06-11\",96],[\"2010-06-13\",96],[\"2010-06-14\",96],[\"2010-06-15\",96],[\"2010-06-16\",96],[\"2010-06-17\",102],[\"2010-06-20\",120],[\"2010-06-23\",100],[\"2010-06-24\",96],[\"2010-06-25\",96],[\"2010-06-27\",96],[\"2010-06-28\",96],[\"2010-06-29\",100],[\"2010-06-30\",96],[\"2010-07-01\",96],[\"2010-07-04\",96],[\"2010-07-05\",100],[\"2010-07-06\",96],[\"2010-07-07\",96],[\"2010-07-08\",144],[\"2010-07-12\",100],[\"2010-07-13\",100],[\"2010-07-15\",96],[\"2010-07-16\",96],[\"2010-07-18\",144],[\"2010-07-19\",120],[\"2010-07-20\",96],[\"2010-07-21\",96],[\"2010-07-23\",100],[\"2010-07-25\",120],[\"2010-07-26\",108],[\"2010-07-27\",100],[\"2010-07-28\",96],[\"2010-07-29\",96],[\"2010-07-30\",120],[\"2010-08-02\",200],[\"2010-08-03\",400],[\"2010-08-05\",96],[\"2010-08-06\",192],[\"2010-08-08\",144],[\"2010-08-09\",96],[\"2010-08-10\",100],[\"2010-08-11\",108],[\"2010-08-13\",96],[\"2010-08-15\",100],[\"2010-08-16\",100],[\"2010-08-17\",100],[\"2010-08-19\",96],[\"2010-08-20\",100],[\"2010-08-22\",100],[\"2010-08-23\",96],[\"2010-08-24\",96],[\"2010-08-25\",96],[\"2010-08-26\",120],[\"2010-08-31\",100],[\"2010-09-02\",100],[\"2010-09-03\",100],[\"2010-09-05\",96],[\"2010-09-06\",120],[\"2010-09-07\",96],[\"2010-09-08\",160],[\"2010-09-10\",100],[\"2010-09-12\",100],[\"2010-09-13\",96],[\"2010-09-15\",96],[\"2010-09-16\",192],[\"2010-09-17\",96],[\"2010-09-19\",100],[\"2010-09-20\",96],[\"2010-09-21\",100],[\"2010-09-22\",216],[\"2010-09-26\",96],[\"2010-09-27\",100],[\"2010-09-28\",120],[\"2010-09-29\",100],[\"2010-09-30\",96],[\"2010-10-01\",96],[\"2010-10-04\",120],[\"2010-10-05\",100],[\"2010-10-06\",96],[\"2010-10-07\",96],[\"2010-10-08\",100],[\"2010-10-10\",100],[\"2010-10-11\",96],[\"2010-10-12\",192],[\"2010-10-13\",96],[\"2010-10-14\",96],[\"2010-10-15\",96],[\"2010-10-18\",96],[\"2010-10-19\",96],[\"2010-10-20\",96],[\"2010-10-21\",108],[\"2010-10-22\",96],[\"2010-10-24\",144],[\"2010-10-25\",96],[\"2010-10-26\",96],[\"2010-10-28\",144],[\"2010-10-29\",96],[\"2010-10-31\",96],[\"2010-11-01\",96],[\"2010-11-02\",100],[\"2010-11-03\",96],[\"2010-11-04\",96],[\"2010-11-05\",100],[\"2010-11-07\",100],[\"2010-11-08\",100],[\"2010-11-09\",96],[\"2010-11-10\",96],[\"2010-11-11\",96],[\"2010-11-12\",96],[\"2010-11-15\",96],[\"2010-11-16\",96],[\"2010-11-17\",100],[\"2010-11-18\",96],[\"2010-11-19\",96],[\"2010-11-21\",100],[\"2010-11-22\",144],[\"2010-11-23\",100],[\"2010-11-24\",100],[\"2010-11-25\",96],[\"2010-11-26\",120],[\"2010-11-28\",144],[\"2010-11-29\",96],[\"2010-11-30\",100],[\"2010-12-01\",96],[\"2010-12-02\",96],[\"2010-12-03\",100],[\"2010-12-05\",120],[\"2010-12-06\",156],[\"2010-12-07\",96],[\"2010-12-08\",96],[\"2010-12-09\",100],[\"2010-12-10\",96],[\"2010-12-13\",144],[\"2010-12-14\",96],[\"2010-12-15\",96],[\"2010-12-16\",144],[\"2010-12-17\",144],[\"2010-12-20\",96],[\"2010-12-21\",100],[\"2011-01-04\",96],[\"2011-01-05\",100],[\"2011-01-06\",96],[\"2011-01-07\",100],[\"2011-01-09\",144],[\"2011-01-10\",144],[\"2011-01-11\",96],[\"2011-01-12\",100],[\"2011-01-13\",96],[\"2011-01-17\",96],[\"2011-01-19\",216],[\"2011-01-20\",96],[\"2011-01-21\",100],[\"2011-01-24\",100],[\"2011-01-25\",96],[\"2011-01-26\",96],[\"2011-01-31\",96],[\"2011-02-01\",96],[\"2011-02-02\",100],[\"2011-02-03\",96],[\"2011-02-04\",96],[\"2011-02-07\",120],[\"2011-02-08\",96],[\"2011-02-10\",96],[\"2011-02-11\",96],[\"2011-02-14\",144],[\"2011-02-15\",96],[\"2011-02-16\",96],[\"2011-02-17\",96],[\"2011-02-18\",100],[\"2011-02-20\",100],[\"2011-02-21\",144],[\"2011-02-22\",96],[\"2011-02-23\",96],[\"2011-02-25\",96],[\"2011-03-01\",96],[\"2011-03-02\",200],[\"2011-03-03\",125],[\"2011-03-04\",280],[\"2011-03-06\",96],[\"2011-03-07\",96],[\"2011-03-08\",432],[\"2011-03-09\",108],[\"2011-03-10\",120],[\"2011-03-11\",100],[\"2011-03-14\",100],[\"2011-03-15\",96],[\"2011-03-16\",96],[\"2011-03-17\",96],[\"2011-03-18\",96],[\"2011-03-20\",96],[\"2011-03-21\",100],[\"2011-03-22\",100],[\"2011-03-23\",96],[\"2011-03-24\",108],[\"2011-03-25\",96],[\"2011-03-28\",150],[\"2011-03-29\",100],[\"2011-03-30\",100],[\"2011-03-31\",96],[\"2011-04-01\",96],[\"2011-04-03\",108],[\"2011-04-04\",100],[\"2011-04-05\",96],[\"2011-04-06\",120],[\"2011-04-07\",96],[\"2011-04-08\",1200],[\"2011-04-11\",96],[\"2011-04-12\",100],[\"2011-04-13\",100],[\"2011-04-14\",96],[\"2011-04-15\",100],[\"2011-04-18\",100],[\"2011-04-19\",144],[\"2011-04-20\",96],[\"2011-04-21\",100],[\"2011-04-26\",100],[\"2011-04-27\",96],[\"2011-04-28\",96],[\"2011-05-03\",96],[\"2011-05-04\",100],[\"2011-05-05\",96],[\"2011-05-06\",108],[\"2011-05-09\",96],[\"2011-05-10\",200],[\"2011-05-11\",96],[\"2011-05-12\",100],[\"2011-05-13\",96],[\"2011-05-15\",96],[\"2011-05-16\",96],[\"2011-05-17\",100],[\"2011-05-18\",96],[\"2011-05-19\",288],[\"2011-05-20\",96],[\"2011-05-23\",96],[\"2011-05-24\",100],[\"2011-05-25\",96],[\"2011-05-26\",96],[\"2011-05-27\",96],[\"2011-05-29\",120],[\"2011-05-31\",96],[\"2011-06-02\",96],[\"2011-06-05\",288],[\"2011-06-06\",96],[\"2011-06-07\",96],[\"2011-06-08\",100],[\"2011-06-09\",108],[\"2011-06-10\",96],[\"2011-06-13\",100],[\"2011-06-14\",100],[\"2011-06-15\",144],[\"2011-06-16\",96],[\"2011-06-17\",100],[\"2011-06-19\",96],[\"2011-06-20\",96],[\"2011-06-22\",96],[\"2011-06-24\",100],[\"2011-06-27\",96],[\"2011-06-28\",96],[\"2011-06-29\",96],[\"2011-06-30\",252],[\"2011-07-01\",96],[\"2011-07-04\",120],[\"2011-07-05\",100],[\"2011-07-06\",96],[\"2011-07-07\",96],[\"2011-07-08\",150],[\"2011-07-11\",100],[\"2011-07-12\",96],[\"2011-07-13\",96],[\"2011-07-14\",100],[\"2011-07-15\",100],[\"2011-07-17\",120],[\"2011-07-19\",96],[\"2011-07-20\",100],[\"2011-07-21\",96],[\"2011-07-22\",128],[\"2011-07-24\",96],[\"2011-07-25\",96],[\"2011-07-26\",100],[\"2011-07-27\",480],[\"2011-07-28\",96],[\"2011-07-29\",100],[\"2011-07-31\",96],[\"2011-08-01\",96],[\"2011-08-02\",96],[\"2011-08-03\",100],[\"2011-08-04\",100],[\"2011-08-05\",96],[\"2011-08-07\",144],[\"2011-08-08\",432],[\"2011-08-11\",100],[\"2011-08-12\",96],[\"2011-08-15\",192],[\"2011-08-17\",100],[\"2011-08-18\",480],[\"2011-08-19\",96],[\"2011-08-21\",96],[\"2011-08-22\",100],[\"2011-08-23\",96],[\"2011-08-24\",96],[\"2011-08-25\",96],[\"2011-08-26\",96],[\"2011-08-28\",96],[\"2011-08-30\",96],[\"2011-08-31\",120],[\"2011-09-01\",96],[\"2011-09-02\",96],[\"2011-09-04\",96],[\"2011-09-05\",96],[\"2011-09-06\",96],[\"2011-09-07\",96],[\"2011-09-08\",96],[\"2011-09-11\",96],[\"2011-09-12\",96],[\"2011-09-13\",96],[\"2011-09-14\",96],[\"2011-09-15\",100],[\"2011-09-16\",120],[\"2011-09-18\",100],[\"2011-09-19\",100],[\"2011-09-20\",96],[\"2011-09-21\",100],[\"2011-09-22\",100],[\"2011-09-23\",144],[\"2011-09-25\",96],[\"2011-09-26\",96],[\"2011-09-27\",96],[\"2011-09-28\",100],[\"2011-09-29\",120],[\"2011-09-30\",100],[\"2011-10-02\",288],[\"2011-10-03\",100],[\"2011-10-04\",96],[\"2011-10-05\",96],[\"2011-10-06\",96],[\"2011-10-07\",96],[\"2011-10-10\",96],[\"2011-10-13\",96],[\"2011-10-14\",96],[\"2011-10-17\",100],[\"2011-10-18\",100],[\"2011-10-19\",100],[\"2011-10-20\",96],[\"2011-10-24\",96],[\"2011-10-25\",96],[\"2011-10-26\",96],[\"2011-10-27\",100],[\"2011-10-28\",96],[\"2011-10-30\",100],[\"2011-10-31\",100],[\"2011-11-01\",96],[\"2011-11-02\",240],[\"2011-11-03\",96],[\"2011-11-04\",96],[\"2011-11-07\",96],[\"2011-11-08\",100],[\"2011-11-09\",100],[\"2011-11-10\",144],[\"2011-11-11\",96],[\"2011-11-13\",144],[\"2011-11-14\",96],[\"2011-11-15\",144],[\"2011-11-16\",96],[\"2011-11-17\",96],[\"2011-11-18\",120],[\"2011-11-20\",96],[\"2011-11-21\",120],[\"2011-11-22\",96],[\"2011-11-23\",96],[\"2011-11-24\",96],[\"2011-11-25\",96],[\"2011-11-28\",95],[\"2011-11-29\",100],[\"2011-11-30\",100],[\"2011-12-01\",96],[\"2011-12-02\",100],[\"2011-12-04\",96],[\"2011-12-05\",388],[\"2011-12-06\",96],[\"2011-12-07\",100],[\"2011-12-08\",144],[\"2011-12-09\",96]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (quantity > ?) GROUP BY invoice_date ORDER BY invoice_date ASC","sql_parameters":"[92]","state":"{\"question\":\"Return the minimum of quantity for retail invoice lines where (quantity is greater than 92), 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\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}44{"category":"single_table/or/grouped","domain":"commerce","family_id":"170f6b00b500f1af72cb59b7","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"4e61caa99195deb7ddefb363905fbd34135a39453a3fc59962ab6a064c06b63d","language":"en","license":"CC-BY-4.0","query":"Return the average of quantity for retail invoice lines where (country equals 'EIRE' or quantity is at most 25), grouped by country, ordered by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"EIRE\\\",25],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"EIRE\\\",25],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"EIRE\\\",25],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"EIRE\\\",25],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?) GROUP BY country ORDER BY country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",9.357142857142858],[\"Austria\",10.647058823529411],[\"Bahrain\",8.818181818181818],[\"Belgium\",5.780821917808219],[\"Canada\",10.4],[\"Channel Islands\",10.25],[\"Cyprus\",6.0],[\"Denmark\",8.833333333333334],[\"EIRE\",66.15196078431373],[\"Finland\",8.666666666666666],[\"France\",8.574585635359115],[\"Germany\",8.151241534988714],[\"Israel\",4.25],[\"Italy\",8.307692307692308],[\"Japan\",12.3],[\"Netherlands\",7.551724137931035],[\"Norway\",7.125],[\"Poland\",18.25],[\"Portugal\",6.7894736842105265],[\"Singapore\",1.0],[\"Spain\",7.956521739130435],[\"Sweden\",10.8],[\"Switzerland\",5.958333333333333],[\"USA\",12.0],[\"United Arab Emirates\",1.0],[\"United Kingdom\",9.095717748451387]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?) GROUP BY country ORDER BY country ASC","sql_parameters":"[\"EIRE\",25]","state":"{\"question\":\"Return the average of quantity for retail invoice lines where (country equals 'EIRE' or quantity is at most 25), 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\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}45{"category":"single_table/aggregate","domain":"commerce","family_id":"a8147eba8d01394a1dba82d2","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"fe233b1fb7fcc15ecf9a7e49f16e316cd0727b22ceb01e6536d6f1057f84ce1f","language":"en","license":"CC-BY-4.0","query":"Return the minimum of unit_price for retail invoice lines where (quantity is at most 25).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[25],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (quantity <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[25],\\\"sql\\\":\\\"SELECT SUM(unit_price) AS value FROM retail_lines WHERE (quantity <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[25],\\\"sql\\\":\\\"SELECT AVG(unit_price) AS value FROM retail_lines WHERE (quantity <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[25],\\\"sql\\\":\\\"SELECT MIN(unit_price) AS value FROM retail_lines WHERE (quantity <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0.12]]","source":"online_retail_ii","split":"dev","sql":"SELECT MIN(unit_price) AS value FROM retail_lines WHERE (quantity <= ?)","sql_parameters":"[25]","state":"{\"question\":\"Return the minimum of unit_price for retail invoice lines where (quantity is at most 25).\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}46{"category":"single_table/aggregate","domain":"sensor","family_id":"b70dd2e71f0604cd56d91d7c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"4ddbc8d780e0cb419407bcadcc9987fc537475225ba43bf2aa9da8c2f71812b8","language":"en","license":"CC-BY-4.0","query":"Return the minimum of ts1_mean for hydraulic cycles where (ps2_mean is at most 122.4767).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[122.4767],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[122.4767],\\\"sql\\\":\\\"SELECT SUM(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[122.4767],\\\"sql\\\":\\\"SELECT AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[122.4767],\\\"sql\\\":\\\"SELECT MIN(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[35.31378]]","source":"hydraulic","split":"dev","sql":"SELECT MIN(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ?)","sql_parameters":"[122.4767]","state":"{\"question\":\"Return the minimum of ts1_mean for hydraulic cycles where (ps2_mean is at most 122.4767).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}47{"category":"single_table/date/ranked","domain":"commerce","family_id":"99157554a92b54da324c3cf5","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"ca02e3a3cb9f65a61d60f8e96eda6eb7c62834456d45559dc12674439b45758b","language":"en","license":"CC-BY-4.0","query":"Return the minimum of unit_price for retail invoice lines where (invoice_date is before '2010-02-18'), grouped by country; return at most 3 groups ordered by aggregate value ASC, breaking ties by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT country, MIN(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT country, MIN(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"United Kingdom\",0.06],[\"EIRE\",0.21],[\"Cyprus\",0.34]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, MIN(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3","sql_parameters":"[\"2010-02-18\"]","state":"{\"question\":\"Return the minimum of unit_price for retail invoice lines where (invoice_date is before '2010-02-18'), 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\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}48{"category":"single_table/and/having","domain":"sensor","family_id":"73c15d4f77ad6d73ec3fc0ec","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"9031eb0ab963df6274c1ba30da492b51b672e694fb4490ab11d8401262e0fe01","language":"en","license":"CC-BY-4.0","query":"Return the average of ts1_mean for hydraulic cycles where (fs1_mean is greater than 6.41875 and ts1_mean is greater than 35.56605), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[6.41875,35.56605,2],\\\"sql\\\":\\\"SELECT cooler, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ? OR ts1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[6.41875,35.56605,2],\\\"sql\\\":\\\"SELECT cooler, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ? AND ts1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value ASC, cooler ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[6.41875,35.56605,2],\\\"sql\\\":\\\"SELECT cooler, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ? AND ts1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[6.41875,35.56605,2],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (fs1_mean > ? AND ts1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[3,53.85545251282051],[20,45.69618817359856],[100,36.20006740359897]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ? AND ts1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5","sql_parameters":"[6.41875,35.56605,2]","state":"{\"question\":\"Return the average of ts1_mean for hydraulic cycles where (fs1_mean is greater than 6.41875 and ts1_mean is greater than 35.56605), 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_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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}49{"category":"single_table/grouped","domain":"sensor","family_id":"3387761a3c3947ec7f4d8977","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"7c8862cad1440a6e896af019fcfdf6b7230c0e8b283a3b956b457b26f9006fca","language":"en","license":"CC-BY-4.0","query":"Return the maximum of ps1_mean for hydraulic cycles where (accumulator equals 100), grouped by cooler, ordered by cooler ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[100],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (accumulator = ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[100],\\\"sql\\\":\\\"SELECT cooler, SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[100],\\\"sql\\\":\\\"SELECT cooler, MAX(ps1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[100],\\\"sql\\\":\\\"SELECT cooler, AVG(ps1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[3,180.86705],[20,159.23892],[100,161.22914]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, MAX(ps1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ?) GROUP BY cooler ORDER BY cooler ASC","sql_parameters":"[100]","state":"{\"question\":\"Return the maximum of ps1_mean for hydraulic cycles where (accumulator equals 100), grouped by cooler, ordered by cooler ascending.\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}50{"category":"single_table/and/grouped","domain":"sensor","family_id":"8a71183fb39e1839e478032a","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"d5dcfbbf55040fbbbb79539172d822540b7ac064b092bc597633767bab13bbf2","language":"en","license":"CC-BY-4.0","query":"Return the maximum of eps1_mean for hydraulic cycles where (valve equals 73 and ps2_mean is greater than 105.7255), grouped by pump_leakage, ordered by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[73,105.7255],\\\"sql\\\":\\\"SELECT pump_leakage, MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (valve = ? OR ps2_mean > ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[73,105.7255],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (valve = ? AND ps2_mean > ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[73,105.7255],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(eps1_mean) AS value FROM hydraulic_cycles WHERE (valve = ? AND ps2_mean > ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[73,105.7255],\\\"sql\\\":\\\"SELECT pump_leakage, MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (valve = ? AND ps2_mean > ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,2602.24537],[1,2722.5409],[2,2740.641]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (valve = ? AND ps2_mean > ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC","sql_parameters":"[73,105.7255]","state":"{\"question\":\"Return the maximum of eps1_mean for hydraulic cycles where (valve equals 73 and ps2_mean is greater than 105.7255), 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_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}51{"category":"single_table/and/ranked","domain":"commerce","family_id":"0632e91e9be8c8c50f64f7ee","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"8a7a23061c2adcc7f73cba74c52cb58cd4ca2b8c3402edb1ab9286b9c50b974d","language":"en","license":"CC-BY-4.0","query":"Return the maximum of product_duration for shopping sessions where (month equals 'Aug' and traffic_type equals 11), grouped by month; return at most 3 groups ordered by aggregate value ASC, breaking ties by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Aug\\\",11],\\\"sql\\\":\\\"SELECT month, MAX(product_duration) AS value FROM shopping_sessions WHERE (month = ? OR traffic_type = ?) GROUP BY month ORDER BY value ASC, month ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Aug\\\",11],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (month = ? AND traffic_type = ?) GROUP BY month ORDER BY value ASC, month ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Aug\\\",11],\\\"sql\\\":\\\"SELECT month, MAX(product_duration) AS value FROM shopping_sessions WHERE (month = ? AND traffic_type = ?) GROUP BY month ORDER BY value ASC, month ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT month, MAX(product_duration) AS value FROM shopping_sessions GROUP BY month ORDER BY value ASC, month ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Aug\",1738.472529]]","source":"online_shoppers","split":"dev","sql":"SELECT month, MAX(product_duration) AS value FROM shopping_sessions WHERE (month = ? AND traffic_type = ?) GROUP BY month ORDER BY value ASC, month ASC LIMIT 3","sql_parameters":"[\"Aug\",11]","state":"{\"question\":\"Return the maximum of product_duration for shopping sessions where (month equals 'Aug' and traffic_type equals 11), grouped by month; return at most 3 groups ordered by aggregate value ASC, breaking ties by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}52{"category":"single_table/or/aggregate","domain":"commerce","family_id":"bbec6ad5e927fcc5942aed4c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"a5ee99534cd78b5e14624cc1987ef8115917f4e717b77073ef959225197cbdad","language":"en","license":"CC-BY-4.0","query":"Return the minimum of product_related for shopping sessions where (traffic_type equals 13 or administrative is at most 13).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[13,13],\\\"sql\\\":\\\"SELECT MIN(product_related) AS value FROM shopping_sessions WHERE (traffic_type = ? AND administrative <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[13,13],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (traffic_type = ? OR administrative <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[13,13],\\\"sql\\\":\\\"SELECT SUM(product_related) AS value FROM shopping_sessions WHERE (traffic_type = ? OR administrative <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[13,13],\\\"sql\\\":\\\"SELECT MIN(product_related) AS value FROM shopping_sessions WHERE (traffic_type = ? OR administrative <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0]]","source":"online_shoppers","split":"dev","sql":"SELECT MIN(product_related) AS value FROM shopping_sessions WHERE (traffic_type = ? OR administrative <= ?)","sql_parameters":"[13,13]","state":"{\"question\":\"Return the minimum of product_related for shopping sessions where (traffic_type equals 13 or administrative is at most 13).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}53{"category":"single_table/or/having","domain":"commerce","family_id":"f016d8a5bedc1ba8fbe56863","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"aaa4f43e3914a3ab6f0e6ccf55ce985379cdaabf493faed3176e1ee271c77056","language":"en","license":"CC-BY-4.0","query":"Return the sum of quantity for retail invoice lines where (country equals 'Austria' or unit_price is at most 8.5), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Austria\\\",8.5,10],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Austria\\\",8.5],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Austria\\\",8.5,10],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Austria\\\",8.5,10],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Norway\",108],[\"Portugal\",208],[\"Austria\",229]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3","sql_parameters":"[\"Austria\",8.5,10]","state":"{\"question\":\"Return the sum of quantity for retail invoice lines where (country equals 'Austria' or unit_price is at most 8.5), 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\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}54{"category":"single_table/and/ranked","domain":"sensor","family_id":"0e56e037b1836f3c24956035","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"9043aac8b2d0a28db974aef53093baa129ba8b76247543f689362a7e6c2beca0","language":"en","license":"CC-BY-4.0","query":"Return the maximum of fs1_mean for hydraulic cycles where (cooler equals 3 and valve equals 100), grouped by valve; return at most 5 groups ordered by aggregate value DESC, breaking ties by valve ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[3,100],\\\"sql\\\":\\\"SELECT valve, MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? AND valve = ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[3,100],\\\"sql\\\":\\\"SELECT valve, MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? OR valve = ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[3,100],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (cooler = ? AND valve = ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[3,100],\\\"sql\\\":\\\"SELECT valve, SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? AND valve = ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[100,6.72056]]","source":"hydraulic","split":"dev","sql":"SELECT valve, MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? AND valve = ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 5","sql_parameters":"[3,100]","state":"{\"question\":\"Return the maximum of fs1_mean for hydraulic cycles where (cooler equals 3 and valve equals 100), grouped by valve; return at most 5 groups ordered by aggregate value DESC, breaking ties by valve ascending.\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}55{"category":"single_table/date/ranked","domain":"commerce","family_id":"70eadeefd0c6e5f19e92a437","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"944634a2ebecb9d0ae0c7c57d6fbd2efe8a9dcd5f6fcb8e2bad4b4d7f72957c8","language":"en","license":"CC-BY-4.0","query":"Return the average of unit_price for retail invoice lines where (invoice_date is before '2011-09-29'), grouped by country; return at most 5 groups ordered by aggregate value DESC, breaking ties by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Singapore\",1009.4425],[\"United Arab Emirates\",134.0],[\"Norway\",65.27142857142857],[\"EIRE\",25.814037267080742],[\"Finland\",11.098]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5","sql_parameters":"[\"2011-09-29\"]","state":"{\"question\":\"Return the average of unit_price for retail invoice lines where (invoice_date is before '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\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}56{"category":"single_table/ranked","domain":"sensor","family_id":"bd93ac8a719f4609be420a14","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"0b4d4dfd21f00c2f96176974a44ddd6b6b8ccabd0305cf0808283aa590c9a846","language":"en","license":"CC-BY-4.0","query":"Return the number of rows 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2480.92663],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) 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 (eps1_mean > ?) GROUP BY cooler ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2480.92663],\\\"sql\\\":\\\"SELECT cooler, SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ?) GROUP BY cooler ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2480.92663],\\\"sql\\\":\\\"SELECT cooler, AVG(ps1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ?) GROUP BY cooler ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[100,739],[3,249],[20,114]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (eps1_mean > ?) GROUP BY cooler ORDER BY value DESC, cooler ASC LIMIT 5","sql_parameters":"[2480.92663]","state":"{\"question\":\"Return the number of rows 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_mean\":\"REAL\",\"fs1_mean\":\"REAL\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}57{"category":"single_table/having","domain":"commerce","family_id":"e07624973d66e9a1534a4fe1","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"3e8c3f0e28f45fad4a3c907d1dda0edfe14f96944b0d5aafc2e14c2d25149a18","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for shopping sessions where (product_related is at most 340), grouped by revenue, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by revenue ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[340,2],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (product_related <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[340,2],\\\"sql\\\":\\\"SELECT revenue, SUM(administrative) AS value FROM shopping_sessions WHERE (product_related <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[340,2],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (product_related <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[340,2],\\\"sql\\\":\\\"SELECT revenue, AVG(administrative) AS value FROM shopping_sessions WHERE (product_related <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,10400],[1,1897]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (product_related <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 5","sql_parameters":"[340,2]","state":"{\"question\":\"Return the number of rows for shopping sessions where (product_related is at most 340), grouped by revenue, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by revenue ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}58{"category":"join/null/or/having","domain":"commerce","family_id":"308ac152d4a85bab3d05546d","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"1ab7a0256ba918ae7cf2f831ef6c6e78d01575488a4c3d81c2887fabc55cea36","language":"en","license":"CC-BY-4.0","query":"Return the maximum of l.quantity for retail lines joined to their invoices where (i.country equals 'Bahrain' 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Bahrain\\\",10],\\\"sql\\\":\\\"SELECT i.country, 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 NULL) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Bahrain\\\",10],\\\"sql\\\":\\\"SELECT i.country, 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 NULL) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Bahrain\\\"],\\\"sql\\\":\\\"SELECT i.country, 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 NULL) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Bahrain\\\",10],\\\"sql\\\":\\\"SELECT i.country, 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 NULL) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Bahrain\",24],[\"EIRE\",96],[\"United Kingdom\",254]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, 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 NULL) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3","sql_parameters":"[\"Bahrain\",10]","state":"{\"question\":\"Return the maximum of l.quantity for retail lines joined to their invoices where (i.country equals 'Bahrain' 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.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}59{"category":"single_table/and/ranked","domain":"commerce","family_id":"4c7196ba5973fedac878bb6f","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"d201e26d2ff6e67ca0e193ea74931a23451fb338c7e3eeefba8902695211fee3","language":"en","license":"CC-BY-4.0","query":"Return the sum of unit_price for retail invoice lines where (quantity is at most 25 and unit_price is greater than 2.25), grouped by country; return at most 5 groups ordered by aggregate value DESC, breaking ties by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[25,2.25],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[25,2.25],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (quantity <= ? AND unit_price > ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[25,2.25],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (quantity <= ? AND unit_price > ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[25,2.25],\\\"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\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"United Kingdom\",75627.87],[\"Singapore\",10105.83],[\"EIRE\",4343.49],[\"Germany\",3755.58],[\"France\",987.4]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (quantity <= ? AND unit_price > ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5","sql_parameters":"[25,2.25]","state":"{\"question\":\"Return the sum of unit_price for retail invoice lines where (quantity is at most 25 and unit_price is greater than 2.25), 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\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}60{"category":"single_table/and/ranked","domain":"sensor","family_id":"d46362d0c178e7bfc8234ffc","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"21eb4ac8368c60cc192eed4eb7a33db7293d4a93dc7f55e259d112c3ade49aa8","language":"en","license":"CC-BY-4.0","query":"Return the average of vs1_mean for hydraulic cycles where (ts1_mean is at most 35.56605 and vs1_mean is at most 0.61133), grouped by valve; return at most 3 groups ordered by aggregate value ASC, breaking ties by valve ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[35.56605,0.61133],\\\"sql\\\":\\\"SELECT valve, AVG(vs1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? AND vs1_mean <= ?) GROUP BY valve ORDER BY value ASC, valve ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[35.56605,0.61133],\\\"sql\\\":\\\"SELECT valve, AVG(vs1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? OR vs1_mean <= ?) GROUP BY valve ORDER BY value ASC, valve ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[35.56605,0.61133],\\\"sql\\\":\\\"SELECT valve, AVG(vs1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? AND vs1_mean <= ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[35.56605,0.61133],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? AND vs1_mean <= ?) GROUP BY valve ORDER BY value ASC, valve ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[90,0.55043],[80,0.551349],[73,0.5520625]]","source":"hydraulic","split":"dev","sql":"SELECT valve, AVG(vs1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? AND vs1_mean <= ?) GROUP BY valve ORDER BY value ASC, valve ASC LIMIT 3","sql_parameters":"[35.56605,0.61133]","state":"{\"question\":\"Return the average of vs1_mean for hydraulic cycles where (ts1_mean is at most 35.56605 and vs1_mean is at most 0.61133), 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\":\"REAL\",\"fs1_mean\":\"REAL\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}61{"category":"join/or/aggregate","domain":"commerce","family_id":"e941f9133a11a411c882d869","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"0984ee6e2544770f9c6282ce8806d00ba2063f9b01d09ddcafa261aaa040b8a8","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail lines joined to their invoices where (i.country equals 'Channel Islands' or i.customer_id equals '12353').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\",\\\"12353\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND i.customer_id = ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\",\\\"12353\\\"],\\\"sql\\\":\\\"SELECT SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR i.customer_id = ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\",\\\"12353\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR i.customer_id = ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\",\\\"12353\\\"],\\\"sql\\\":\\\"SELECT AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR i.customer_id = ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[28]]","source":"online_retail_ii","split":"dev","sql":"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR i.customer_id = ?)","sql_parameters":"[\"Channel Islands\",\"12353\"]","state":"{\"question\":\"Return the number of rows for retail lines joined to their invoices where (i.country equals 'Channel Islands' or i.customer_id equals '12353').\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}62{"category":"single_table/date/and/having","domain":"commerce","family_id":"461b02b7522c27bf6fce2072","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"339da1daff1c3eaf7e6b0e6900b0582afc69221f5c72281eeefd2c4cdbd74436","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (quantity is greater than 25 and invoice_date is before '2010-02-18'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[25,\\\"2010-02-18\\\",2],\\\"sql\\\":\\\"SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (quantity > ? OR invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[25,\\\"2010-02-18\\\",2],\\\"sql\\\":\\\"SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (quantity > ? AND invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[25,\\\"2010-02-18\\\",2],\\\"sql\\\":\\\"SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (quantity > ? AND invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[25,\\\"2010-02-18\\\",2],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (quantity > ? AND invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"United Kingdom\",12.75],[\"Finland\",3.75],[\"Spain\",3.39],[\"Netherlands\",2.75],[\"EIRE\",2.55]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (quantity > ? AND invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5","sql_parameters":"[25,\"2010-02-18\",2]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines where (quantity is greater than 25 and invoice_date is before '2010-02-18'), 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_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}63{"category":"single_table/or/aggregate","domain":"commerce","family_id":"bbec6ad5e927fcc5942aed4c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"b22615a1879eca7f065ac75f6610bde0595ef0dbdf2bde1f6adae45eca102416","language":"en","license":"CC-BY-4.0","query":"Return the minimum of product_related for shopping sessions where (traffic_type equals 16 or administrative is at most 18).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[16,18],\\\"sql\\\":\\\"SELECT MIN(product_related) AS value FROM shopping_sessions WHERE (traffic_type = ? AND administrative <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[16,18],\\\"sql\\\":\\\"SELECT MIN(product_related) AS value FROM shopping_sessions WHERE (traffic_type = ? OR administrative <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[16,18],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (traffic_type = ? OR administrative <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[16,18],\\\"sql\\\":\\\"SELECT SUM(product_related) AS value FROM shopping_sessions WHERE (traffic_type = ? OR administrative <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0]]","source":"online_shoppers","split":"dev","sql":"SELECT MIN(product_related) AS value FROM shopping_sessions WHERE (traffic_type = ? OR administrative <= ?)","sql_parameters":"[16,18]","state":"{\"question\":\"Return the minimum of product_related for shopping sessions where (traffic_type equals 16 or administrative is at most 18).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}64{"category":"single_table/having","domain":"commerce","family_id":"a4fcc2933db97cb3ebf5c7fd","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"8da97de856fadbad14a051f9231a33dadb32b3e35a350cdcf65f14d576454b36","language":"en","license":"CC-BY-4.0","query":"Return the sum of product_duration for shopping sessions where (visitor_type equals 'Other'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Other\\\",10],\\\"sql\\\":\\\"SELECT revenue, SUM(product_duration) AS value FROM shopping_sessions WHERE (visitor_type = ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Other\\\",10],\\\"sql\\\":\\\"SELECT revenue, SUM(product_duration) AS value FROM shopping_sessions WHERE (visitor_type = ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Other\\\",10],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (visitor_type = ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Other\\\",10],\\\"sql\\\":\\\"SELECT revenue, AVG(product_duration) AS value FROM shopping_sessions WHERE (visitor_type = ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1,20134.274978999998],[0,28350.13831214]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, SUM(product_duration) AS value FROM shopping_sessions WHERE (visitor_type = ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3","sql_parameters":"[\"Other\",10]","state":"{\"question\":\"Return the sum of product_duration for shopping sessions where (visitor_type equals 'Other'), 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\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}65{"category":"single_table/date/ranked","domain":"commerce","family_id":"97a9a1e13a68ee2a164dc212","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"deac188f81543a6c2e5b432829cc61148aeb714191553fdb4023e8d211ca9e07","language":"en","license":"CC-BY-4.0","query":"Return the sum of unit_price for retail invoice lines where (invoice_date is before '2010-02-18'), grouped by country; return at most 5 groups ordered by aggregate value DESC, breaking ties by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"United Kingdom\",9227.62],[\"Germany\",90.82],[\"Sweden\",75.2],[\"EIRE\",63.07],[\"Finland\",50.89]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5","sql_parameters":"[\"2010-02-18\"]","state":"{\"question\":\"Return the sum of unit_price for retail invoice lines where (invoice_date is before '2010-02-18'), 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\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}66{"category":"single_table/and/ranked","domain":"commerce","family_id":"e4ed2bb7f3fad95e08f65619","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"15a693ba9efbd4c6a8c2599be8a9e16eca3c90270a6c1019167391001e5d24cf","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for shopping sessions where (revenue equals 1 and region equals 1), grouped by revenue; return at most 5 groups ordered by aggregate value DESC, breaking ties by revenue ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[1,1],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (revenue = ? OR region = ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[1,1],\\\"sql\\\":\\\"SELECT revenue, SUM(administrative) AS value FROM shopping_sessions WHERE (revenue = ? AND region = ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[1,1],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (revenue = ? AND region = ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[1,1],\\\"sql\\\":\\\"SELECT revenue, AVG(administrative) AS value FROM shopping_sessions WHERE (revenue = ? AND region = ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1,771]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (revenue = ? AND region = ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5","sql_parameters":"[1,1]","state":"{\"question\":\"Return the number of rows for shopping sessions where (revenue equals 1 and region equals 1), 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_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}67{"category":"join/date/and/having","domain":"commerce","family_id":"b739994d21c6d52728130f42","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"b74dfb16822ae271c87f81a195c9fdaf934716fac1fd7441c047621d0b48012f","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.unit_price for retail lines joined to their invoices where (l.unit_price is at most 0.55 and i.invoice_date is before '2010-07-14'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[0.55,\\\"2010-07-14\\\",10],\\\"sql\\\":\\\"SELECT i.country, SUM(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 HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[0.55,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT i.country, SUM(l.unit_price) 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 value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[0.55,\\\"2010-07-14\\\",10],\\\"sql\\\":\\\"SELECT i.country, SUM(l.unit_price) 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 HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[0.55,\\\"2010-07-14\\\",10],\\\"sql\\\":\\\"SELECT i.country, SUM(l.unit_price) 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 HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Sweden\",3.76],[\"United Kingdom\",203.25]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, SUM(l.unit_price) 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 HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3","sql_parameters":"[0.55,\"2010-07-14\",10]","state":"{\"question\":\"Return the sum of l.unit_price for retail lines joined to their invoices where (l.unit_price is at most 0.55 and i.invoice_date is before '2010-07-14'), 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_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}68{"category":"single_table/or/aggregate","domain":"commerce","family_id":"322b5dd9c6b2d99e0685f8d3","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"a32c51adc7dbc71e483fb5b5de142ac827032816f91a9acfd7d1c72b01705370","language":"en","license":"CC-BY-4.0","query":"Return the minimum of product_related for shopping sessions where (administrative is at most 2 or product_duration is at most 472.4166667).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2,472.4166667],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_duration <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2,472.4166667],\\\"sql\\\":\\\"SELECT MIN(product_related) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_duration <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2,472.4166667],\\\"sql\\\":\\\"SELECT SUM(product_related) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_duration <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2,472.4166667],\\\"sql\\\":\\\"SELECT AVG(product_related) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_duration <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0]]","source":"online_shoppers","split":"dev","sql":"SELECT MIN(product_related) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_duration <= ?)","sql_parameters":"[2,472.4166667]","state":"{\"question\":\"Return the minimum of product_related for shopping sessions where (administrative is at most 2 or product_duration is at most 472.4166667).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}69{"category":"single_table/or/grouped","domain":"sensor","family_id":"7cc3c78e84c87b9ea1c993b4","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"d11974116dfba7b99b774d0ade7b16ae9b7d8314bb2561b3a3f6d732fbe9ec44","language":"en","license":"CC-BY-4.0","query":"Return the minimum of ps1_mean for hydraulic cycles where (ps1_mean is at most 158.27043 or ps2_mean is at most 122.4767), grouped by pump_leakage, ordered by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[158.27043,122.4767],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR ps2_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[158.27043,122.4767],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR ps2_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[158.27043,122.4767],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR ps2_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[158.27043,122.4767],\\\"sql\\\":\\\"SELECT pump_leakage, AVG(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR ps2_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,155.97478],[1,155.62217],[2,155.39155]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, MIN(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR ps2_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC","sql_parameters":"[158.27043,122.4767]","state":"{\"question\":\"Return the minimum of ps1_mean for hydraulic cycles where (ps1_mean is at most 158.27043 or ps2_mean is at most 122.4767), 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_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}70{"category":"single_table/or/grouped","domain":"commerce","family_id":"16510057666466f3360e0d36","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"f77e724ebd8aa71401ac5f30c99df4219f57c43a463e58ada09ed63f045683bd","language":"en","license":"CC-BY-4.0","query":"Return the minimum of product_related for shopping sessions where (month equals 'June' or product_duration is greater than 1564.0), grouped by revenue, ordered by revenue ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"June\\\",1564.0],\\\"sql\\\":\\\"SELECT revenue, MIN(product_related) AS value FROM shopping_sessions WHERE (month = ? AND product_duration > ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"June\\\",1564.0],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (month = ? OR product_duration > ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"June\\\",1564.0],\\\"sql\\\":\\\"SELECT revenue, MIN(product_related) AS value FROM shopping_sessions WHERE (month = ? OR product_duration > ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"June\\\",1564.0],\\\"sql\\\":\\\"SELECT revenue, SUM(product_related) AS value FROM shopping_sessions WHERE (month = ? OR product_duration > ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,0],[1,3]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, MIN(product_related) AS value FROM shopping_sessions WHERE (month = ? OR product_duration > ?) GROUP BY revenue ORDER BY revenue ASC","sql_parameters":"[\"June\",1564.0]","state":"{\"question\":\"Return the minimum of product_related for shopping sessions where (month equals 'June' or product_duration is greater than 1564.0), grouped by revenue, ordered by revenue ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}71{"category":"single_table/date/grouped","domain":"commerce","family_id":"0d5deb72c74c84790060c0ec","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"b65d19746d47ed564deef7119b38b3289baef82b008010fce424abe633ba9f5a","language":"en","license":"CC-BY-4.0","query":"Return the average of unit_price for retail invoice lines where (invoice_date is before '2010-02-18'), grouped by invoice_date, ordered by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MIN(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-01\",2.7130769230769234],[\"2009-12-02\",3.3659375],[\"2009-12-03\",4.759462365591398],[\"2009-12-04\",3.0788709677419357],[\"2009-12-05\",4.504642857142857],[\"2009-12-06\",4.474193548387097],[\"2009-12-07\",3.9316666666666666],[\"2009-12-08\",3.0975903614457834],[\"2009-12-09\",5.506436781609195],[\"2009-12-10\",4.033661971830986],[\"2009-12-11\",5.0321428571428575],[\"2009-12-13\",6.1676],[\"2009-12-14\",3.811470588235294],[\"2009-12-15\",3.650777777777778],[\"2009-12-16\",4.558518518518518],[\"2009-12-17\",3.3736082474226805],[\"2009-12-18\",3.4361111111111113],[\"2009-12-20\",3.8954999999999997],[\"2009-12-21\",3.1553488372093024],[\"2009-12-22\",4.043333333333333],[\"2009-12-23\",1.5633333333333335],[\"2010-01-04\",2.633529411764706],[\"2010-01-05\",6.708333333333333],[\"2010-01-06\",3.483333333333333],[\"2010-01-07\",6.019032258064517],[\"2010-01-08\",3.779130434782609],[\"2010-01-10\",3.275263157894737],[\"2010-01-11\",3.9696969696969697],[\"2010-01-12\",4.264318181818182],[\"2010-01-13\",2.723333333333333],[\"2010-01-14\",2.968],[\"2010-01-15\",4.265833333333333],[\"2010-01-17\",2.9976923076923074],[\"2010-01-18\",1.1466666666666667],[\"2010-01-19\",3.12],[\"2010-01-20\",3.987878787878788],[\"2010-01-21\",3.63],[\"2010-01-22\",7.1739999999999995],[\"2010-01-24\",4.633666666666667],[\"2010-01-25\",5.524411764705882],[\"2010-01-26\",6.3621739130434785],[\"2010-01-27\",3.044655172413793],[\"2010-01-28\",3.6999999999999997],[\"2010-01-29\",5.445333333333333],[\"2010-01-31\",2.995365853658537],[\"2010-02-01\",4.225135135135136],[\"2010-02-02\",10.267307692307693],[\"2010-02-03\",7.505000000000001],[\"2010-02-04\",3.270425531914894],[\"2010-02-05\",3.9534146341463416],[\"2010-02-07\",1.1063636363636364],[\"2010-02-08\",3.5656862745098037],[\"2010-02-09\",3.1075],[\"2010-02-10\",5.2664285714285715],[\"2010-02-11\",2.8986206896551723],[\"2010-02-12\",1.9027586206896552],[\"2010-02-14\",4.437647058823529],[\"2010-02-15\",2.398823529411765],[\"2010-02-16\",6.239803921568628],[\"2010-02-17\",2.4068292682926833]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC","sql_parameters":"[\"2010-02-18\"]","state":"{\"question\":\"Return the average of unit_price for retail invoice lines where (invoice_date is before '2010-02-18'), 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\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}72{"category":"join/grouped","domain":"commerce","family_id":"0280d4bdb129db3fb4437e6e","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"2514d832178c5ed5a421ef490eb3c918e7cb64473a539ea64f0cfbe416725acf","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail lines joined to their invoices where (i.customer_id equals '12356'), grouped by i.country, ordered by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12356\\\"],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12356\\\"],\\\"sql\\\":\\\"SELECT i.country, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12356\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12356\\\"],\\\"sql\\\":\\\"SELECT i.country, MAX(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Portugal\",2]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country ORDER BY i.country ASC","sql_parameters":"[\"12356\"]","state":"{\"question\":\"Return the number of rows for retail lines joined to their invoices where (i.customer_id equals '12356'), grouped by i.country, ordered by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}73{"category":"single_table/grouped","domain":"commerce","family_id":"b2bcf0a57c87975922291266","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"75d8e5ab5b2c57944a03f99c96de2ae22317fc05a42b1ef0e85cf5693d33a2b9","language":"en","license":"CC-BY-4.0","query":"Return the minimum of product_duration for shopping sessions where (traffic_type equals 18), grouped by month, ordered by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[18],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (traffic_type = ?) GROUP BY month ORDER BY month ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[18],\\\"sql\\\":\\\"SELECT month, SUM(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ?) GROUP BY month ORDER BY month ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[18],\\\"sql\\\":\\\"SELECT month, AVG(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ?) GROUP BY month ORDER BY month ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[18],\\\"sql\\\":\\\"SELECT month, MIN(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ?) GROUP BY month ORDER BY month ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"May\",0.0]]","source":"online_shoppers","split":"dev","sql":"SELECT month, MIN(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ?) GROUP BY month ORDER BY month ASC","sql_parameters":"[18]","state":"{\"question\":\"Return the minimum of product_duration for shopping sessions where (traffic_type equals 18), grouped by month, ordered by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}74{"category":"single_table/grouped","domain":"commerce","family_id":"054cb2637c3b83cef4217a21","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"2f41d2dec83fff2e72ef100238a91ddd9066c37c80b7a3ae25d3284e11f5ef05","language":"en","license":"CC-BY-4.0","query":"Return the sum of product_duration for shopping sessions where (administrative is at most 2), grouped by visitor_type, ordered by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (administrative <= ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2],\\\"sql\\\":\\\"SELECT visitor_type, AVG(product_duration) AS value FROM shopping_sessions WHERE (administrative <= ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2],\\\"sql\\\":\\\"SELECT visitor_type, SUM(product_duration) AS value FROM shopping_sessions WHERE (administrative <= ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2],\\\"sql\\\":\\\"SELECT visitor_type, MIN(product_duration) AS value FROM shopping_sessions WHERE (administrative <= ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"New_Visitor\",572407.01083642],[\"Other\",32349.57797597],[\"Returning_Visitor\",6197170.27904491]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, SUM(product_duration) AS value FROM shopping_sessions WHERE (administrative <= ?) GROUP BY visitor_type ORDER BY visitor_type ASC","sql_parameters":"[2]","state":"{\"question\":\"Return the sum of product_duration for shopping sessions where (administrative is at most 2), grouped by visitor_type, ordered by visitor_type ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}75{"category":"single_table/and/having","domain":"sensor","family_id":"64b46ee1afd623feae93c21f","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"230443a0d3d42e765947cdb16bf46ba33f3a7e8eb30a98bf1009e7698b54a969","language":"en","license":"CC-BY-4.0","query":"Return the maximum of fs1_mean for hydraulic cycles where (ps1_mean is greater than 158.27043 and ps2_mean is at most 109.23171), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[158.27043,109.23171,10],\\\"sql\\\":\\\"SELECT valve, MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? AND ps2_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[158.27043,109.23171,10],\\\"sql\\\":\\\"SELECT valve, MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? OR ps2_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[158.27043,109.23171,10],\\\"sql\\\":\\\"SELECT valve, MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? AND ps2_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[158.27043,109.23171,10],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? AND ps2_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[73,6.6735],[90,6.69124],[80,6.69586]]","source":"hydraulic","split":"dev","sql":"SELECT valve, MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? AND ps2_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 3","sql_parameters":"[158.27043,109.23171,10]","state":"{\"question\":\"Return the maximum of fs1_mean for hydraulic cycles where (ps1_mean is greater than 158.27043 and ps2_mean is at most 109.23171), 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\",\"cooler\":\"INTEGER\",\"cycle_id\":\"INTEGER\",\"eps1_mean\":\"REAL\",\"fs1_mean\":\"REAL\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}76{"category":"single_table/date/or/grouped","domain":"commerce","family_id":"e12fc0f562bfd0535e34778c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"5c7024f4072d9d2258a8a21760a761de4ce334d42f5a2646b31e87c697670d9d","language":"en","license":"CC-BY-4.0","query":"Return the sum of quantity for retail invoice lines where (quantity is at most 25 or invoice_date is on or after '2010-12-02'), grouped by invoice_date, ordered by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[25,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[25,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[25,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[25,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-01\",394],[\"2009-12-02\",755],[\"2009-12-03\",700],[\"2009-12-04\",403],[\"2009-12-05\",277],[\"2009-12-06\",166],[\"2009-12-07\",534],[\"2009-12-08\",501],[\"2009-12-09\",416],[\"2009-12-10\",427],[\"2009-12-11\",149],[\"2009-12-13\",195],[\"2009-12-14\",380],[\"2009-12-15\",525],[\"2009-12-16\",454],[\"2009-12-17\",667],[\"2009-12-18\",391],[\"2009-12-20\",176],[\"2009-12-21\",201],[\"2009-12-22\",160],[\"2009-12-23\",86],[\"2010-01-04\",81],[\"2010-01-05\",52],[\"2010-01-06\",19],[\"2010-01-07\",65],[\"2010-01-08\",270],[\"2010-01-10\",118],[\"2010-01-11\",305],[\"2010-01-12\",184],[\"2010-01-13\",107],[\"2010-01-14\",148],[\"2010-01-15\",224],[\"2010-01-17\",126],[\"2010-01-18\",36],[\"2010-01-19\",272],[\"2010-01-20\",197],[\"2010-01-21\",223],[\"2010-01-22\",114],[\"2010-01-24\",242],[\"2010-01-25\",145],[\"2010-01-26\",166],[\"2010-01-27\",336],[\"2010-01-28\",133],[\"2010-01-29\",128],[\"2010-01-31\",347],[\"2010-02-01\",242],[\"2010-02-02\",193],[\"2010-02-03\",328],[\"2010-02-04\",215],[\"2010-02-05\",289],[\"2010-02-07\",31],[\"2010-02-08\",305],[\"2010-02-09\",249],[\"2010-02-10\",248],[\"2010-02-11\",122],[\"2010-02-12\",194],[\"2010-02-14\",87],[\"2010-02-15\",232],[\"2010-02-16\",333],[\"2010-02-17\",239],[\"2010-02-18\",200],[\"2010-02-19\",72],[\"2010-02-21\",172],[\"2010-02-22\",356],[\"2010-02-23\",95],[\"2010-02-24\",213],[\"2010-02-25\",296],[\"2010-02-26\",49],[\"2010-02-28\",242],[\"2010-03-01\",480],[\"2010-03-02\",167],[\"2010-03-03\",443],[\"2010-03-04\",182],[\"2010-03-05\",371],[\"2010-03-07\",60],[\"2010-03-08\",504],[\"2010-03-09\",331],[\"2010-03-10\",123],[\"2010-03-11\",246],[\"2010-03-12\",289],[\"2010-03-14\",181],[\"2010-03-15\",184],[\"2010-03-16\",123],[\"2010-03-17\",110],[\"2010-03-18\",291],[\"2010-03-19\",88],[\"2010-03-21\",151],[\"2010-03-22\",146],[\"2010-03-23\",260],[\"2010-03-24\",282],[\"2010-03-25\",204],[\"2010-03-26\",199],[\"2010-03-28\",120],[\"2010-03-29\",142],[\"2010-03-30\",226],[\"2010-03-31\",216],[\"2010-04-01\",257],[\"2010-04-06\",272],[\"2010-04-07\",266],[\"2010-04-08\",299],[\"2010-04-09\",116],[\"2010-04-11\",216],[\"2010-04-12\",249],[\"2010-04-13\",122],[\"2010-04-14\",318],[\"2010-04-15\",133],[\"2010-04-16\",178],[\"2010-04-18\",82],[\"2010-04-19\",251],[\"2010-04-20\",264],[\"2010-04-21\",230],[\"2010-04-22\",359],[\"2010-04-23\",154],[\"2010-04-25\",285],[\"2010-04-26\",360],[\"2010-04-27\",324],[\"2010-04-28\",313],[\"2010-04-29\",330],[\"2010-04-30\",243],[\"2010-05-02\",286],[\"2010-05-04\",101],[\"2010-05-05\",620],[\"2010-05-06\",243],[\"2010-05-07\",558],[\"2010-05-09\",275],[\"2010-05-10\",479],[\"2010-05-11\",374],[\"2010-05-12\",304],[\"2010-05-13\",156],[\"2010-05-14\",103],[\"2010-05-16\",107],[\"2010-05-17\",57],[\"2010-05-18\",222],[\"2010-05-19\",286],[\"2010-05-20\",278],[\"2010-05-21\",137],[\"2010-05-23\",291],[\"2010-05-24\",451],[\"2010-05-25\",116],[\"2010-05-26\",369],[\"2010-05-27\",452],[\"2010-05-28\",214],[\"2010-05-30\",50],[\"2010-06-01\",137],[\"2010-06-02\",289],[\"2010-06-03\",437],[\"2010-06-04\",108],[\"2010-06-06\",198],[\"2010-06-07\",441],[\"2010-06-08\",362],[\"2010-06-09\",178],[\"2010-06-10\",250],[\"2010-06-11\",228],[\"2010-06-13\",621],[\"2010-06-14\",222],[\"2010-06-15\",90],[\"2010-06-16\",289],[\"2010-06-17\",172],[\"2010-06-18\",142],[\"2010-06-20\",83],[\"2010-06-21\",117],[\"2010-06-22\",156],[\"2010-06-23\",547],[\"2010-06-24\",314],[\"2010-06-25\",140],[\"2010-06-27\",360],[\"2010-06-28\",274],[\"2010-06-29\",240],[\"2010-06-30\",169],[\"2010-07-01\",262],[\"2010-07-02\",13],[\"2010-07-04\",46],[\"2010-07-05\",402],[\"2010-07-06\",234],[\"2010-07-07\",158],[\"2010-07-08\",316],[\"2010-07-09\",58],[\"2010-07-11\",4],[\"2010-07-12\",168],[\"2010-07-13\",251],[\"2010-07-14\",81],[\"2010-07-15\",257],[\"2010-07-16\",449],[\"2010-07-18\",191],[\"2010-07-19\",248],[\"2010-07-20\",361],[\"2010-07-21\",320],[\"2010-07-22\",385],[\"2010-07-23\",68],[\"2010-07-25\",67],[\"2010-07-26\",251],[\"2010-07-27\",339],[\"2010-07-28\",188],[\"2010-07-29\",194],[\"2010-07-30\",274],[\"2010-08-01\",55],[\"2010-08-02\",426],[\"2010-08-03\",289],[\"2010-08-04\",164],[\"2010-08-05\",440],[\"2010-08-06\",153],[\"2010-08-08\",177],[\"2010-08-09\",194],[\"2010-08-10\",77],[\"2010-08-11\",160],[\"2010-08-12\",188],[\"2010-08-13\",254],[\"2010-08-15\",256],[\"2010-08-16\",57],[\"2010-08-17\",332],[\"2010-08-18\",141],[\"2010-08-19\",253],[\"2010-08-20\",319],[\"2010-08-22\",178],[\"2010-08-23\",335],[\"2010-08-24\",19],[\"2010-08-25\",364],[\"2010-08-26\",286],[\"2010-08-27\",184],[\"2010-08-29\",166],[\"2010-08-31\",292],[\"2010-09-01\",287],[\"2010-09-02\",386],[\"2010-09-03\",364],[\"2010-09-05\",421],[\"2010-09-06\",156],[\"2010-09-07\",221],[\"2010-09-08\",78],[\"2010-09-09\",253],[\"2010-09-10\",146],[\"2010-09-12\",25],[\"2010-09-13\",299],[\"2010-09-14\",621],[\"2010-09-15\",120],[\"2010-09-16\",384],[\"2010-09-17\",259],[\"2010-09-19\",149],[\"2010-09-20\",405],[\"2010-09-21\",675],[\"2010-09-22\",358],[\"2010-09-23\",205],[\"2010-09-24\",142],[\"2010-09-26\",318],[\"2010-09-27\",259],[\"2010-09-28\",390],[\"2010-09-29\",525],[\"2010-09-30\",301],[\"2010-10-01\",303],[\"2010-10-03\",316],[\"2010-10-04\",346],[\"2010-10-05\",304],[\"2010-10-06\",321],[\"2010-10-07\",501],[\"2010-10-08\",208],[\"2010-10-10\",189],[\"2010-10-11\",420],[\"2010-10-12\",558],[\"2010-10-13\",258],[\"2010-10-14\",280],[\"2010-10-15\",505],[\"2010-10-17\",6],[\"2010-10-18\",692],[\"2010-10-19\",239],[\"2010-10-20\",551],[\"2010-10-21\",348],[\"2010-10-22\",513],[\"2010-10-24\",337],[\"2010-10-25\",213],[\"2010-10-26\",469],[\"2010-10-27\",523],[\"2010-10-28\",334],[\"2010-10-29\",526],[\"2010-10-31\",208],[\"2010-11-01\",146],[\"2010-11-02\",576],[\"2010-11-03\",536],[\"2010-11-04\",730],[\"2010-11-05\",148],[\"2010-11-07\",133],[\"2010-11-08\",225],[\"2010-11-09\",410],[\"2010-11-10\",643],[\"2010-11-11\",523],[\"2010-11-12\",682],[\"2010-11-14\",212],[\"2010-11-15\",409],[\"2010-11-16\",619],[\"2010-11-17\",756],[\"2010-11-18\",780],[\"2010-11-19\",295],[\"2010-11-21\",319],[\"2010-11-22\",565],[\"2010-11-23\",637],[\"2010-11-24\",603],[\"2010-11-25\",1078],[\"2010-11-26\",323],[\"2010-11-28\",332],[\"2010-11-29\",407],[\"2010-11-30\",921],[\"2010-12-01\",1188],[\"2010-12-02\",16460],[\"2010-12-03\",5548],[\"2010-12-05\",1604],[\"2010-12-06\",4586],[\"2010-12-07\",10470],[\"2010-12-08\",4500],[\"2010-12-09\",6962],[\"2010-12-10\",944],[\"2010-12-12\",221],[\"2010-12-13\",2501],[\"2010-12-14\",2506],[\"2010-12-15\",627],[\"2010-12-16\",4054],[\"2010-12-17\",1110],[\"2010-12-19\",20],[\"2010-12-20\",4438],[\"2010-12-21\",440],[\"2010-12-22\",361],[\"2010-12-23\",224],[\"2011-01-04\",486],[\"2011-01-05\",2316],[\"2011-01-06\",1723],[\"2011-01-07\",1743],[\"2011-01-09\",755],[\"2011-01-10\",248],[\"2011-01-11\",16112],[\"2011-01-12\",569],[\"2011-01-13\",886],[\"2011-01-14\",559],[\"2011-01-16\",17],[\"2011-01-17\",1449],[\"2011-01-18\",542],[\"2011-01-19\",360],[\"2011-01-20\",990],[\"2011-01-21\",1230],[\"2011-01-23\",99],[\"2011-01-24\",492],[\"2011-01-25\",2111],[\"2011-01-26\",1931],[\"2011-01-27\",373],[\"2011-01-28\",138],[\"2011-01-30\",76],[\"2011-01-31\",1085],[\"2011-02-01\",1119],[\"2011-02-02\",1234],[\"2011-02-03\",3777],[\"2011-02-04\",2702],[\"2011-02-07\",2862],[\"2011-02-08\",1261],[\"2011-02-09\",77],[\"2011-02-10\",6330],[\"2011-02-11\",929],[\"2011-02-13\",40],[\"2011-02-14\",1206],[\"2011-02-15\",3476],[\"2011-02-16\",2209],[\"2011-02-17\",1363],[\"2011-02-18\",874],[\"2011-02-20\",492],[\"2011-02-21\",497],[\"2011-02-22\",817],[\"2011-02-23\",698],[\"2011-02-24\",439],[\"2011-02-25\",1217],[\"2011-02-27\",212],[\"2011-02-28\",283],[\"2011-03-01\",1550],[\"2011-03-02\",1047],[\"2011-03-03\",1038],[\"2011-03-04\",3808],[\"2011-03-06\",407],[\"2011-03-07\",2064],[\"2011-03-08\",2206],[\"2011-03-09\",2289],[\"2011-03-10\",1310],[\"2011-03-11\",1536],[\"2011-03-14\",861],[\"2011-03-15\",425],[\"2011-03-16\",2287],[\"2011-03-17\",2680],[\"2011-03-18\",1628],[\"2011-03-20\",4879],[\"2011-03-21\",1053],[\"2011-03-22\",590],[\"2011-03-23\",2219],[\"2011-03-24\",1419],[\"2011-03-25\",3108],[\"2011-03-27\",376],[\"2011-03-28\",1112],[\"2011-03-29\",358],[\"2011-03-30\",2348],[\"2011-03-31\",1548],[\"2011-04-01\",6523],[\"2011-04-03\",746],[\"2011-04-04\",557],[\"2011-04-05\",4592],[\"2011-04-06\",305],[\"2011-04-07\",893],[\"2011-04-08\",2106],[\"2011-04-10\",48],[\"2011-04-11\",1159],[\"2011-04-12\",928],[\"2011-04-13\",3193],[\"2011-04-14\",4185],[\"2011-04-15\",229],[\"2011-04-17\",261],[\"2011-04-18\",9538],[\"2011-04-19\",523],[\"2011-04-20\",6442],[\"2011-04-21\",2849],[\"2011-04-26\",3409],[\"2011-04-27\",4593],[\"2011-04-28\",894],[\"2011-05-01\",69],[\"2011-05-03\",1685],[\"2011-05-04\",2084],[\"2011-05-05\",4525],[\"2011-05-06\",819],[\"2011-05-08\",455],[\"2011-05-09\",960],[\"2011-05-10\",821],[\"2011-05-11\",1555],[\"2011-05-12\",865],[\"2011-05-13\",2558],[\"2011-05-15\",289],[\"2011-05-16\",1562],[\"2011-05-17\",2529],[\"2011-05-18\",2314],[\"2011-05-19\",2419],[\"2011-05-20\",4455],[\"2011-05-22\",500],[\"2011-05-23\",6036],[\"2011-05-24\",4923],[\"2011-05-25\",764],[\"2011-05-26\",2726],[\"2011-05-27\",1812],[\"2011-05-29\",456],[\"2011-05-31\",2240],[\"2011-06-01\",512],[\"2011-06-02\",1370],[\"2011-06-03\",475],[\"2011-06-05\",1052],[\"2011-06-06\",1112],[\"2011-06-07\",1118],[\"2011-06-08\",3452],[\"2011-06-09\",857],[\"2011-06-10\",1031],[\"2011-06-12\",37],[\"2011-06-13\",1762],[\"2011-06-14\",1899],[\"2011-06-15\",480],[\"2011-06-16\",3043],[\"2011-06-17\",1485],[\"2011-06-19\",999],[\"2011-06-20\",2662],[\"2011-06-21\",469],[\"2011-06-22\",2744],[\"2011-06-23\",256],[\"2011-06-24\",989],[\"2011-06-26\",115],[\"2011-06-27\",1208],[\"2011-06-28\",2308],[\"2011-06-29\",971],[\"2011-06-30\",3172],[\"2011-07-01\",563],[\"2011-07-03\",168],[\"2011-07-04\",3336],[\"2011-07-05\",5312],[\"2011-07-06\",2867],[\"2011-07-07\",4035],[\"2011-07-08\",897],[\"2011-07-10\",29],[\"2011-07-11\",2423],[\"2011-07-12\",2205],[\"2011-07-13\",789],[\"2011-07-14\",1418],[\"2011-07-15\",734],[\"2011-07-17\",1400],[\"2011-07-18\",305],[\"2011-07-19\",3440],[\"2011-07-20\",1960],[\"2011-07-21\",1340],[\"2011-07-22\",859],[\"2011-07-24\",3446],[\"2011-07-25\",1488],[\"2011-07-26\",734],[\"2011-07-27\",1232],[\"2011-07-28\",4157],[\"2011-07-29\",769],[\"2011-07-31\",603],[\"2011-08-01\",1311],[\"2011-08-02\",3265],[\"2011-08-03\",1930],[\"2011-08-04\",3954],[\"2011-08-05\",2020],[\"2011-08-07\",1011],[\"2011-08-08\",1236],[\"2011-08-09\",349],[\"2011-08-10\",403],[\"2011-08-11\",1583],[\"2011-08-12\",840],[\"2011-08-14\",196],[\"2011-08-15\",793],[\"2011-08-16\",391],[\"2011-08-17\",2760],[\"2011-08-18\",5010],[\"2011-08-19\",799],[\"2011-08-21\",1568],[\"2011-08-22\",2464],[\"2011-08-23\",2374],[\"2011-08-24\",5870],[\"2011-08-25\",998],[\"2011-08-26\",935],[\"2011-08-28\",521],[\"2011-08-30\",236],[\"2011-08-31\",203],[\"2011-09-01\",4354],[\"2011-09-02\",5932],[\"2011-09-04\",1604],[\"2011-09-05\",2246],[\"2011-09-06\",1657],[\"2011-09-07\",749],[\"2011-09-08\",2267],[\"2011-09-09\",430],[\"2011-09-11\",1122],[\"2011-09-12\",1596],[\"2011-09-13\",1294],[\"2011-09-14\",2514],[\"2011-09-15\",3204],[\"2011-09-16\",1775],[\"2011-09-18\",407],[\"2011-09-19\",711],[\"2011-09-20\",2427],[\"2011-09-21\",2449],[\"2011-09-22\",2271],[\"2011-09-23\",630],[\"2011-09-25\",895],[\"2011-09-26\",834],[\"2011-09-27\",3442],[\"2011-09-28\",2655],[\"2011-09-29\",1774],[\"2011-09-30\",1034],[\"2011-10-02\",384],[\"2011-10-03\",2297],[\"2011-10-04\",4581],[\"2011-10-05\",1347],[\"2011-10-06\",4536],[\"2011-10-07\",5337],[\"2011-10-09\",53],[\"2011-10-10\",1405],[\"2011-10-11\",805],[\"2011-10-12\",777],[\"2011-10-13\",1257],[\"2011-10-14\",623],[\"2011-10-17\",3588],[\"2011-10-18\",1268],[\"2011-10-19\",2561],[\"2011-10-20\",1091],[\"2011-10-21\",505],[\"2011-10-23\",8],[\"2011-10-24\",4121],[\"2011-10-25\",3228],[\"2011-10-26\",3331],[\"2011-10-27\",2110],[\"2011-10-28\",2141],[\"2011-10-30\",951],[\"2011-10-31\",1511],[\"2011-11-01\",1207],[\"2011-11-02\",2165],[\"2011-11-03\",6577],[\"2011-11-04\",1086],[\"2011-11-06\",777],[\"2011-11-07\",1587],[\"2011-11-08\",1944],[\"2011-11-09\",6634],[\"2011-11-10\",1334],[\"2011-11-11\",2275],[\"2011-11-13\",655],[\"2011-11-14\",1278],[\"2011-11-15\",2700],[\"2011-11-16\",3731],[\"2011-11-17\",3706],[\"2011-11-18\",2929],[\"2011-11-20\",1092],[\"2011-11-21\",1311],[\"2011-11-22\",5811],[\"2011-11-23\",3107],[\"2011-11-24\",3689],[\"2011-11-25\",2102],[\"2011-11-27\",39],[\"2011-11-28\",5736],[\"2011-11-29\",1952],[\"2011-11-30\",918],[\"2011-12-01\",4298],[\"2011-12-02\",1990],[\"2011-12-04\",1007],[\"2011-12-05\",3775],[\"2011-12-06\",3190],[\"2011-12-07\",1877],[\"2011-12-08\",1341],[\"2011-12-09\",842]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC","sql_parameters":"[25,\"2010-12-02\"]","state":"{\"question\":\"Return the sum of quantity for retail invoice lines where (quantity is at most 25 or invoice_date is on or after '2010-12-02'), 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\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}77{"category":"single_table/and/aggregate","domain":"sensor","family_id":"85bb157a9a8618b7ac3d2ca1","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"911dbb6d9f1c9d9035cf8bb8170edb6cf43ed79ee24b0624cc292203a0ffb689","language":"en","license":"CC-BY-4.0","query":"Return the minimum of ts1_mean for hydraulic cycles where (ts1_mean is greater than 52.59775 and vs1_mean is greater than 0.64278).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[52.59775,0.64278],\\\"sql\\\":\\\"SELECT MIN(ts1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean > ? OR vs1_mean > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[52.59775,0.64278],\\\"sql\\\":\\\"SELECT MIN(ts1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean > ? AND vs1_mean > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[52.59775,0.64278],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (ts1_mean > ? AND vs1_mean > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[52.59775,0.64278],\\\"sql\\\":\\\"SELECT SUM(ts1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean > ? AND vs1_mean > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[52.63828]]","source":"hydraulic","split":"dev","sql":"SELECT MIN(ts1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean > ? AND vs1_mean > ?)","sql_parameters":"[52.59775,0.64278]","state":"{\"question\":\"Return the minimum of ts1_mean for hydraulic cycles where (ts1_mean is greater than 52.59775 and vs1_mean is greater than 0.64278).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}78{"category":"join/having","domain":"commerce","family_id":"e0a02a1d200ad3de4fea7010","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"8b407cae544341ec29496545e09248693048e5859357ef89e6a028673f4e2bf5","language":"en","license":"CC-BY-4.0","query":"Return the minimum of l.quantity for retail lines joined to their invoices where (l.unit_price is at most 4.77), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[4.77,10],\\\"sql\\\":\\\"SELECT i.country, MIN(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price <= ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[4.77,10],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price <= ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[4.77,10],\\\"sql\\\":\\\"SELECT i.country, MIN(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price <= ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[4.77,10],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price <= ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"EIRE\",1],[\"France\",1],[\"Germany\",1]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, MIN(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price <= ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3","sql_parameters":"[4.77,10]","state":"{\"question\":\"Return the minimum of l.quantity for retail lines joined to their invoices where (l.unit_price is at most 4.77), 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_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}79{"category":"single_table/or/grouped","domain":"sensor","family_id":"c852bc31116935da8e2a744a","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"6ac7b0f886f26ab8ee8354b2d6f12b796466f9e3eaaf38715014645aebad89cc","language":"en","license":"CC-BY-4.0","query":"Return the minimum of eps1_mean for hydraulic cycles where (valve equals 80 or eps1_mean is greater than 2598.8769), grouped by pump_leakage, ordered by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[80,2598.8769],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(eps1_mean) AS value FROM hydraulic_cycles WHERE (valve = ? OR eps1_mean > ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[80,2598.8769],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(eps1_mean) AS value FROM hydraulic_cycles WHERE (valve = ? AND eps1_mean > ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[80,2598.8769],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (valve = ? OR eps1_mean > ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[80,2598.8769],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(eps1_mean) AS value FROM hydraulic_cycles WHERE (valve = ? OR eps1_mean > ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,2366.35323],[1,2379.36743],[2,2401.76217]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, MIN(eps1_mean) AS value FROM hydraulic_cycles WHERE (valve = ? OR eps1_mean > ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC","sql_parameters":"[80,2598.8769]","state":"{\"question\":\"Return the minimum of eps1_mean for hydraulic cycles where (valve equals 80 or eps1_mean is greater than 2598.8769), 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_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}80{"category":"single_table/having","domain":"sensor","family_id":"f35e0a333378a58e0657dc3b","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"377e1968422bc9379e0991be20e648e4686fbe38aaf6d0817630851a1a527aa1","language":"en","license":"CC-BY-4.0","query":"Return the sum of ts1_mean for hydraulic cycles where (ps1_mean is greater than 172.56377), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[172.56377,2],\\\"sql\\\":\\\"SELECT valve, SUM(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[172.56377,2],\\\"sql\\\":\\\"SELECT valve, SUM(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[172.56377,2],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps1_mean > ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[172.56377,2],\\\"sql\\\":\\\"SELECT valve, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[90,3190.63724],[73,3158.94477],[100,3131.29384],[80,3058.53053]]","source":"hydraulic","split":"dev","sql":"SELECT valve, SUM(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 5","sql_parameters":"[172.56377,2]","state":"{\"question\":\"Return the sum of ts1_mean for hydraulic cycles where (ps1_mean is greater than 172.56377), 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\":{\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}81{"category":"single_table/and/having","domain":"commerce","family_id":"b9ea0d8ff3a2c95b9ebabf6f","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"438881d941d9fbeb72ded0a8e6b7bcfc57de21f58779aa7e10432f136c04e4e2","language":"en","license":"CC-BY-4.0","query":"Return the minimum of administrative for shopping sessions where (product_related is greater than 31 and product_duration is greater than 1564.0), grouped by month, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[31,1564.0,2],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (product_related > ? AND product_duration > ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[31,1564.0,2],\\\"sql\\\":\\\"SELECT month, MIN(administrative) AS value FROM shopping_sessions WHERE (product_related > ? AND product_duration > ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[31,1564.0,2],\\\"sql\\\":\\\"SELECT month, SUM(administrative) AS value FROM shopping_sessions WHERE (product_related > ? AND product_duration > ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[31,1564.0,2],\\\"sql\\\":\\\"SELECT month, AVG(administrative) AS value FROM shopping_sessions WHERE (product_related > ? AND product_duration > ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Aug\",0],[\"Dec\",0],[\"Feb\",0],[\"Jul\",0],[\"June\",0]]","source":"online_shoppers","split":"dev","sql":"SELECT month, MIN(administrative) AS value FROM shopping_sessions WHERE (product_related > ? AND product_duration > ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5","sql_parameters":"[31,1564.0,2]","state":"{\"question\":\"Return the minimum of administrative for shopping sessions where (product_related is greater than 31 and product_duration is greater than 1564.0), grouped by month, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}82{"category":"single_table/or/aggregate","domain":"commerce","family_id":"8008b98d79ec84acb3ce594a","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"cf476999c4c34c20726590c17a2254debc907613d090378bea75f52127394ebd","language":"en","license":"CC-BY-4.0","query":"Return the minimum of administrative for shopping sessions where (administrative is greater than 2 or product_duration is greater than 167.5).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2,167.5],\\\"sql\\\":\\\"SELECT MIN(administrative) AS value FROM shopping_sessions WHERE (administrative > ? AND product_duration > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2,167.5],\\\"sql\\\":\\\"SELECT MIN(administrative) AS value FROM shopping_sessions WHERE (administrative > ? OR product_duration > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2,167.5],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (administrative > ? OR product_duration > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2,167.5],\\\"sql\\\":\\\"SELECT SUM(administrative) AS value FROM shopping_sessions WHERE (administrative > ? OR product_duration > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0]]","source":"online_shoppers","split":"dev","sql":"SELECT MIN(administrative) AS value FROM shopping_sessions WHERE (administrative > ? OR product_duration > ?)","sql_parameters":"[2,167.5]","state":"{\"question\":\"Return the minimum of administrative for shopping sessions where (administrative is greater than 2 or product_duration is greater than 167.5).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}83{"category":"single_table/and/aggregate","domain":"commerce","family_id":"cf3879d055116092826030df","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"6447546afd0fddfb9ad2772b588f23649d8a2c52ad9d1936cdc1297eed554311","language":"en","license":"CC-BY-4.0","query":"Return the sum of product_related for shopping sessions where (traffic_type equals 12 and product_related is greater than 31).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[12,31],\\\"sql\\\":\\\"SELECT SUM(product_related) AS value FROM shopping_sessions WHERE (traffic_type = ? OR product_related > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[12,31],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (traffic_type = ? AND product_related > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[12,31],\\\"sql\\\":\\\"SELECT SUM(product_related) AS value FROM shopping_sessions WHERE (traffic_type = ? AND product_related > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT SUM(product_related) AS value FROM shopping_sessions\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[null]]","source":"online_shoppers","split":"dev","sql":"SELECT SUM(product_related) AS value FROM shopping_sessions WHERE (traffic_type = ? AND product_related > ?)","sql_parameters":"[12,31]","state":"{\"question\":\"Return the sum of product_related for shopping sessions where (traffic_type equals 12 and product_related is greater than 31).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}84{"category":"single_table/and/ranked","domain":"commerce","family_id":"152c897eaa4809393a3218b4","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"f478b801711b79eab0d9465a38b86929e89fec7f23663cfe17e7e064e6e33702","language":"en","license":"CC-BY-4.0","query":"Return the average of product_duration for shopping sessions where (month equals 'June' and product_duration is greater than 1564.0), grouped by month; return at most 5 groups ordered by aggregate value DESC, breaking ties by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"June\\\",1564.0],\\\"sql\\\":\\\"SELECT month, AVG(product_duration) AS value FROM shopping_sessions WHERE (month = ? OR product_duration > ?) GROUP BY month ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"June\\\",1564.0],\\\"sql\\\":\\\"SELECT month, AVG(product_duration) AS value FROM shopping_sessions WHERE (month = ? AND product_duration > ?) GROUP BY month ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"June\\\",1564.0],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (month = ? AND product_duration > ?) GROUP BY month ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"June\\\",1564.0],\\\"sql\\\":\\\"SELECT month, SUM(product_duration) AS value FROM shopping_sessions WHERE (month = ? AND product_duration > ?) GROUP BY month ORDER BY value DESC, month ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"June\",3799.8128564558824]]","source":"online_shoppers","split":"dev","sql":"SELECT month, AVG(product_duration) AS value FROM shopping_sessions WHERE (month = ? AND product_duration > ?) GROUP BY month ORDER BY value DESC, month ASC LIMIT 5","sql_parameters":"[\"June\",1564.0]","state":"{\"question\":\"Return the average of product_duration for shopping sessions where (month equals 'June' and product_duration is greater than 1564.0), grouped by month; return at most 5 groups ordered by aggregate value DESC, breaking ties by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}85{"category":"single_table/and/grouped","domain":"commerce","family_id":"653b66c421a166fef5f0c110","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"dd539e9a9a45987128da7e7f8b1e8712479b576e5a992892b3c092d45a8b1244","language":"en","license":"CC-BY-4.0","query":"Return the maximum of product_duration for shopping sessions where (month equals 'Feb' and product_duration is greater than 472.4166667), grouped by month, ordered by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Feb\\\",472.4166667],\\\"sql\\\":\\\"SELECT month, MAX(product_duration) AS value FROM shopping_sessions WHERE (month = ? OR product_duration > ?) GROUP BY month ORDER BY month ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Feb\\\",472.4166667],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (month = ? AND product_duration > ?) GROUP BY month ORDER BY month ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Feb\\\",472.4166667],\\\"sql\\\":\\\"SELECT month, MAX(product_duration) AS value FROM shopping_sessions WHERE (month = ? AND product_duration > ?) GROUP BY month ORDER BY month ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Feb\\\",472.4166667],\\\"sql\\\":\\\"SELECT month, SUM(product_duration) AS value FROM shopping_sessions WHERE (month = ? AND product_duration > ?) GROUP BY month ORDER BY month ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Feb\",6951.972222]]","source":"online_shoppers","split":"dev","sql":"SELECT month, MAX(product_duration) AS value FROM shopping_sessions WHERE (month = ? AND product_duration > ?) GROUP BY month ORDER BY month ASC","sql_parameters":"[\"Feb\",472.4166667]","state":"{\"question\":\"Return the maximum of product_duration for shopping sessions where (month equals 'Feb' 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\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}86{"category":"single_table/ranked","domain":"sensor","family_id":"fb2b6e81617abb7eab0d7280","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"93bbe8fbdb2d639c495ea56a8ed7e660fa8d11c360591f7ad31fa856648660f9","language":"en","license":"CC-BY-4.0","query":"Return the minimum of vs1_mean for hydraulic cycles where (vs1_mean is greater than 0.54422), grouped by pump_leakage; return at most 5 groups ordered by aggregate value DESC, breaking ties by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[0.54422],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(vs1_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, COUNT(*) AS value FROM hydraulic_cycles WHERE (vs1_mean > ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[0.54422],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (vs1_mean > ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[0.54422],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(vs1_mean) AS value FROM hydraulic_cycles WHERE (vs1_mean > ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[2,0.54435],[0,0.54428],[1,0.54427]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, MIN(vs1_mean) AS value FROM hydraulic_cycles WHERE (vs1_mean > ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 5","sql_parameters":"[0.54422]","state":"{\"question\":\"Return the minimum of vs1_mean for hydraulic cycles where (vs1_mean is greater than 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\",\"eps1_mean\":\"REAL\",\"fs1_mean\":\"REAL\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}87{"category":"single_table/or/aggregate","domain":"sensor","family_id":"05b43c07ce7f008660319e7c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"361a9221c60a7470811fbd68afcee36ad78a8f5720f28e828f5f2926900cfa1f","language":"en","license":"CC-BY-4.0","query":"Return the maximum of ps1_mean for hydraulic cycles where (ps2_mean is at most 105.7255 or vs1_mean is greater than 0.64278).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[105.7255,0.64278],\\\"sql\\\":\\\"SELECT MAX(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND vs1_mean > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[105.7255,0.64278],\\\"sql\\\":\\\"SELECT MAX(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR vs1_mean > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[105.7255,0.64278],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR vs1_mean > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[105.7255,0.64278],\\\"sql\\\":\\\"SELECT SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR vs1_mean > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[180.92271]]","source":"hydraulic","split":"dev","sql":"SELECT MAX(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR vs1_mean > ?)","sql_parameters":"[105.7255,0.64278]","state":"{\"question\":\"Return the maximum of ps1_mean for hydraulic cycles where (ps2_mean is at most 105.7255 or vs1_mean is greater than 0.64278).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}88{"category":"single_table/aggregate","domain":"commerce","family_id":"4e322a61a2bad5a8db2659ef","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"cd6d04354c663befa58504628d0d1f8daae6da9c7242e24488a488f217a18eeb","language":"en","license":"CC-BY-4.0","query":"Return the minimum of administrative for shopping sessions where (weekend equals 1).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[1],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (weekend = ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[1],\\\"sql\\\":\\\"SELECT MIN(administrative) AS value FROM shopping_sessions WHERE (weekend = ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[1],\\\"sql\\\":\\\"SELECT SUM(administrative) AS value FROM shopping_sessions WHERE (weekend = ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[1],\\\"sql\\\":\\\"SELECT AVG(administrative) AS value FROM shopping_sessions WHERE (weekend = ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0]]","source":"online_shoppers","split":"dev","sql":"SELECT MIN(administrative) AS value FROM shopping_sessions WHERE (weekend = ?)","sql_parameters":"[1]","state":"{\"question\":\"Return the minimum of administrative for shopping sessions where (weekend 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\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}89{"category":"single_table/grouped","domain":"sensor","family_id":"98025b3024dc8ae4e6159582","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"da39313563e1c9ebd8f7e8b2d535b4066edbd249c878dae68d32e52a66c97f84","language":"en","license":"CC-BY-4.0","query":"Return the sum of ps2_mean for hydraulic cycles where (ts1_mean is greater than 44.84172), grouped by pump_leakage, ordered by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[44.84172],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (ts1_mean > ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[44.84172],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean > ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[44.84172],\\\"sql\\\":\\\"SELECT pump_leakage, AVG(ps2_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean > ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[44.84172],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(ps2_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean > ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,69849.48089],[1,23504.81316],[2,27408.71354]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean > ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC","sql_parameters":"[44.84172]","state":"{\"question\":\"Return the sum of ps2_mean for hydraulic cycles where (ts1_mean is greater than 44.84172), 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_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}90{"category":"single_table/or/having","domain":"sensor","family_id":"0dd1002c744230b2f52ffa89","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"47e6e3650fc5bd2da97f8cbf3b6e32e3841ebe29ffb18dd64694be44a6b23281","language":"en","license":"CC-BY-4.0","query":"Return the average of ts1_mean for hydraulic cycles where (ps2_mean is at most 107.17314 or eps1_mean is at most 2544.76), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[107.17314,2544.76,10],\\\"sql\\\":\\\"SELECT valve, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND eps1_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[107.17314,2544.76,10],\\\"sql\\\":\\\"SELECT valve, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR eps1_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[107.17314,2544.76,10],\\\"sql\\\":\\\"SELECT valve, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR eps1_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[107.17314,2544.76,10],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR eps1_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[90,46.29146711711712],[100,46.300784760820044],[80,46.471045733333334]]","source":"hydraulic","split":"dev","sql":"SELECT valve, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR eps1_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 3","sql_parameters":"[107.17314,2544.76,10]","state":"{\"question\":\"Return the average of ts1_mean for hydraulic cycles where (ps2_mean is at most 107.17314 or eps1_mean is at most 2544.76), 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\",\"cooler\":\"INTEGER\",\"cycle_id\":\"INTEGER\",\"eps1_mean\":\"REAL\",\"fs1_mean\":\"REAL\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}91{"category":"single_table/date/or/aggregate","domain":"commerce","family_id":"4fac18bc9b93c9cfe73adf65","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"8eb1a4c0a4edbd3ac0546f2a938f57aefee1b2918c113df3ce5f47eb0930f207","language":"en","license":"CC-BY-4.0","query":"Return the sum of unit_price for retail invoice lines where (country equals 'Channel Islands' or invoice_date is before '2010-02-18').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\",\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT SUM(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date < ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\",\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\",\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (country = ? OR invoice_date < ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\",\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT AVG(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date < ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[9713.44]]","source":"online_retail_ii","split":"dev","sql":"SELECT SUM(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date < ?)","sql_parameters":"[\"Channel Islands\",\"2010-02-18\"]","state":"{\"question\":\"Return the sum of unit_price for retail invoice lines where (country equals 'Channel Islands' or invoice_date is before '2010-02-18').\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}92{"category":"single_table/date/and/grouped","domain":"commerce","family_id":"27cb87399ff7b7d31ef1c5b6","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"7cf8939f4ff4b4b7ff5a2af6719827146d51c897625160da8fa9910553fc3cd1","language":"en","license":"CC-BY-4.0","query":"Return the minimum of quantity for retail invoice lines where (country equals 'Canada' and invoice_date is on or after '2010-02-18'), grouped by invoice_date, ordered by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Canada\\\",\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (country = ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Canada\\\",\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Canada\\\",\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Canada\\\",\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-08-25\",8]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC","sql_parameters":"[\"Canada\",\"2010-02-18\"]","state":"{\"question\":\"Return the minimum of quantity for retail invoice lines where (country equals 'Canada' and invoice_date is on or after '2010-02-18'), 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\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}93{"category":"single_table/date/and/aggregate","domain":"commerce","family_id":"2e29c996972119c7c6042bef","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"3bec81620e2a7e91ffb13de636fb9345f6fdc50d6e40a8992d892108e6ad84d1","language":"en","license":"CC-BY-4.0","query":"Return the sum of unit_price for retail invoice lines where (quantity is at most 92 and invoice_date is before '2011-05-10').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[92,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT SUM(unit_price) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date < ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[92,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date < ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[92,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT SUM(unit_price) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date < ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[92,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT AVG(unit_price) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date < ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[79286.41]]","source":"online_retail_ii","split":"dev","sql":"SELECT SUM(unit_price) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date < ?)","sql_parameters":"[92,\"2011-05-10\"]","state":"{\"question\":\"Return the sum of unit_price for retail invoice lines where (quantity is at most 92 and invoice_date is before '2011-05-10').\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}94{"category":"join/distinct_invoice/grouped","domain":"commerce","family_id":"1cfed92e113d55bb616613f1","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"f2063ce6a6fa82a3b6731f7cd538a131643fbce72ff9e1c1199da371de5c7b65","language":"en","license":"CC-BY-4.0","query":"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, ordered by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[229],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) 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 i.invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[229],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.quantity) 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 i.invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"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 i.invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[229],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(l.quantity) 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 i.invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-02\",3],[\"2009-12-03\",4],[\"2009-12-04\",1],[\"2009-12-07\",1],[\"2009-12-08\",2],[\"2009-12-15\",3],[\"2009-12-22\",1],[\"2009-12-23\",1],[\"2010-01-04\",1],[\"2010-01-07\",2],[\"2010-01-08\",4],[\"2010-01-10\",1],[\"2010-01-11\",1],[\"2010-01-12\",1],[\"2010-01-13\",1],[\"2010-01-20\",1],[\"2010-01-27\",1],[\"2010-01-29\",1],[\"2010-02-04\",1],[\"2010-02-07\",1],[\"2010-02-11\",1],[\"2010-02-12\",2],[\"2010-02-16\",1],[\"2010-02-17\",2],[\"2010-02-18\",1],[\"2010-02-19\",2],[\"2010-02-24\",2],[\"2010-02-25\",1],[\"2010-02-26\",1],[\"2010-02-28\",1],[\"2010-03-01\",1],[\"2010-03-04\",1],[\"2010-03-05\",1],[\"2010-03-08\",2],[\"2010-03-10\",2],[\"2010-03-15\",2],[\"2010-03-17\",2],[\"2010-03-18\",2],[\"2010-03-19\",1],[\"2010-03-21\",1],[\"2010-03-22\",1],[\"2010-03-23\",3],[\"2010-03-24\",1],[\"2010-03-29\",3],[\"2010-03-30\",1],[\"2010-04-01\",1],[\"2010-04-06\",1],[\"2010-04-08\",2],[\"2010-04-09\",1],[\"2010-04-11\",1],[\"2010-04-16\",1],[\"2010-04-19\",1],[\"2010-04-22\",3],[\"2010-04-26\",2],[\"2010-04-29\",1],[\"2010-05-02\",1],[\"2010-05-04\",1],[\"2010-05-05\",1],[\"2010-05-06\",1],[\"2010-05-07\",2],[\"2010-05-10\",1],[\"2010-05-12\",6],[\"2010-05-14\",1],[\"2010-05-18\",1],[\"2010-05-19\",1],[\"2010-05-23\",1],[\"2010-05-25\",1],[\"2010-05-26\",1],[\"2010-06-03\",2],[\"2010-06-07\",5],[\"2010-06-08\",1],[\"2010-06-09\",2],[\"2010-06-15\",1],[\"2010-06-20\",1],[\"2010-06-23\",3],[\"2010-06-27\",1],[\"2010-06-28\",2],[\"2010-06-29\",2],[\"2010-06-30\",1],[\"2010-07-06\",1],[\"2010-07-15\",3],[\"2010-07-16\",1],[\"2010-07-18\",1],[\"2010-07-23\",1],[\"2010-07-25\",1],[\"2010-07-26\",1],[\"2010-07-27\",2],[\"2010-07-28\",1],[\"2010-07-30\",2],[\"2010-08-02\",1],[\"2010-08-03\",1],[\"2010-08-05\",1],[\"2010-08-08\",1],[\"2010-08-11\",1],[\"2010-08-13\",1],[\"2010-08-15\",3],[\"2010-08-16\",1],[\"2010-08-17\",2],[\"2010-08-19\",2],[\"2010-08-24\",3],[\"2010-08-25\",2],[\"2010-08-26\",2],[\"2010-08-31\",1],[\"2010-09-02\",1],[\"2010-09-03\",3],[\"2010-09-07\",1],[\"2010-09-12\",1],[\"2010-09-13\",2],[\"2010-09-17\",2],[\"2010-09-20\",1],[\"2010-09-21\",2],[\"2010-09-26\",1],[\"2010-09-27\",2],[\"2010-09-28\",1],[\"2010-10-04\",1],[\"2010-10-05\",1],[\"2010-10-06\",1],[\"2010-10-08\",5],[\"2010-10-12\",2],[\"2010-10-13\",1],[\"2010-10-14\",1],[\"2010-10-22\",1],[\"2010-10-24\",1],[\"2010-10-26\",2],[\"2010-11-01\",1],[\"2010-11-03\",2],[\"2010-11-04\",3],[\"2010-11-05\",2],[\"2010-11-09\",2],[\"2010-11-10\",3],[\"2010-11-11\",4],[\"2010-11-12\",2],[\"2010-11-15\",2],[\"2010-11-16\",3],[\"2010-11-17\",1],[\"2010-11-19\",1],[\"2010-11-24\",2],[\"2010-11-25\",1],[\"2010-11-29\",2],[\"2010-11-30\",1],[\"2010-12-01\",4],[\"2010-12-02\",6],[\"2010-12-03\",2],[\"2010-12-06\",2],[\"2010-12-07\",6],[\"2010-12-08\",2],[\"2010-12-09\",2],[\"2010-12-13\",3],[\"2010-12-14\",1],[\"2010-12-16\",3],[\"2010-12-20\",1],[\"2011-01-05\",1],[\"2011-01-06\",1],[\"2011-01-07\",1],[\"2011-01-11\",5],[\"2011-01-13\",1],[\"2011-01-17\",1],[\"2011-01-21\",1],[\"2011-01-26\",1],[\"2011-02-03\",2],[\"2011-02-04\",1],[\"2011-02-07\",2],[\"2011-02-10\",2],[\"2011-02-14\",1],[\"2011-02-15\",2],[\"2011-02-16\",1],[\"2011-02-17\",1],[\"2011-02-20\",1],[\"2011-03-02\",1],[\"2011-03-03\",1],[\"2011-03-04\",1],[\"2011-03-07\",2],[\"2011-03-08\",2],[\"2011-03-09\",2],[\"2011-03-11\",2],[\"2011-03-16\",1],[\"2011-03-17\",1],[\"2011-03-20\",1],[\"2011-03-24\",1],[\"2011-03-25\",1],[\"2011-03-30\",3],[\"2011-04-01\",3],[\"2011-04-03\",1],[\"2011-04-05\",2],[\"2011-04-08\",1],[\"2011-04-13\",1],[\"2011-04-14\",2],[\"2011-04-18\",1],[\"2011-04-20\",1],[\"2011-04-21\",1],[\"2011-04-26\",3],[\"2011-04-27\",1],[\"2011-05-03\",1],[\"2011-05-04\",1],[\"2011-05-05\",3],[\"2011-05-11\",1],[\"2011-05-13\",1],[\"2011-05-17\",1],[\"2011-05-19\",2],[\"2011-05-20\",3],[\"2011-05-23\",2],[\"2011-05-24\",2],[\"2011-05-31\",1],[\"2011-06-02\",1],[\"2011-06-05\",1],[\"2011-06-08\",1],[\"2011-06-13\",2],[\"2011-06-14\",1],[\"2011-06-16\",1],[\"2011-06-17\",1],[\"2011-06-20\",1],[\"2011-06-22\",1],[\"2011-06-28\",1],[\"2011-06-30\",2],[\"2011-07-04\",1],[\"2011-07-05\",5],[\"2011-07-06\",1],[\"2011-07-07\",1],[\"2011-07-11\",1],[\"2011-07-12\",1],[\"2011-07-17\",1],[\"2011-07-19\",3],[\"2011-07-20\",2],[\"2011-07-21\",1],[\"2011-07-24\",2],[\"2011-07-27\",1],[\"2011-07-28\",2],[\"2011-08-01\",1],[\"2011-08-02\",2],[\"2011-08-03\",1],[\"2011-08-04\",3],[\"2011-08-05\",1],[\"2011-08-07\",1],[\"2011-08-08\",1],[\"2011-08-17\",1],[\"2011-08-18\",2],[\"2011-08-22\",1],[\"2011-08-23\",1],[\"2011-08-24\",5],[\"2011-08-26\",1],[\"2011-09-01\",3],[\"2011-09-02\",5],[\"2011-09-04\",1],[\"2011-09-05\",1],[\"2011-09-08\",1],[\"2011-09-13\",1],[\"2011-09-14\",1],[\"2011-09-15\",2],[\"2011-09-16\",1],[\"2011-09-20\",1],[\"2011-09-23\",1],[\"2011-09-27\",1],[\"2011-09-28\",2],[\"2011-09-29\",1],[\"2011-10-02\",1],[\"2011-10-03\",1],[\"2011-10-04\",2],[\"2011-10-06\",3],[\"2011-10-07\",3],[\"2011-10-10\",1],[\"2011-10-13\",1],[\"2011-10-17\",3],[\"2011-10-18\",1],[\"2011-10-19\",1],[\"2011-10-24\",3],[\"2011-10-25\",2],[\"2011-10-26\",2],[\"2011-10-27\",1],[\"2011-10-28\",1],[\"2011-11-02\",2],[\"2011-11-03\",4],[\"2011-11-07\",1],[\"2011-11-09\",2],[\"2011-11-11\",1],[\"2011-11-15\",1],[\"2011-11-17\",2],[\"2011-11-18\",2],[\"2011-11-20\",1],[\"2011-11-22\",1],[\"2011-11-23\",1],[\"2011-11-24\",2],[\"2011-11-28\",4],[\"2011-11-29\",1],[\"2011-12-01\",1],[\"2011-12-02\",1],[\"2011-12-05\",2]]","source":"online_retail_ii","split":"dev","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 i.invoice_date ASC","sql_parameters":"[229]","state":"{\"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, ordered by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}95{"category":"join/distinct_invoice/date/and/having","domain":"commerce","family_id":"02260edb4192ef30aed6e214","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"c0b0ac9ca13db412a6ca4564ca3c4ec1293bb102d67829b2afb23bdfebf122cf","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.customer_id equals '12361' and i.invoice_date is on or after '2011-09-29'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12361\\\",\\\"2011-09-29\\\",10],\\\"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.customer_id = ? AND i.invoice_date >= ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12361\\\",\\\"2011-09-29\\\",10],\\\"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.customer_id = ? OR i.invoice_date >= ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[10],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2011-09-29\\\",10],\\\"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.invoice_date >= ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","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.customer_id = ? AND i.invoice_date >= ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3","sql_parameters":"[\"12361\",\"2011-09-29\",10]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.customer_id equals '12361' and i.invoice_date is on or after '2011-09-29'), 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_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}96{"category":"single_table/date/or/ranked","domain":"commerce","family_id":"174a8a6e570e643be0a7359a","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"4a5da50f0d9b787d07e09854300cc3256e0763bcd5517dd375d6d48fcafbf9f8","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (country equals 'Belgium' or invoice_date is on or after '2011-05-10'), grouped by invoice_date; return at most 5 groups ordered by aggregate value DESC, breaking ties by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Belgium\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Belgium\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Belgium\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Belgium\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-10-19\",3949.32],[\"2011-06-20\",1917.0],[\"2011-11-10\",549.34],[\"2011-10-25\",250.0],[\"2011-12-05\",219.5]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5","sql_parameters":"[\"Belgium\",\"2011-05-10\"]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines where (country equals 'Belgium' or invoice_date is on or after '2011-05-10'), 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\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}97{"category":"single_table/or/having","domain":"sensor","family_id":"1b8c74c9cab5502dfb4a158a","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"14b4066d632b7033a5958843a50d5f2cc04328ccef6379415c63dd9e6de96511","language":"en","license":"CC-BY-4.0","query":"Return the maximum of vs1_mean for hydraulic cycles where (pump_leakage equals 1 or fs1_mean is at most 6.57291), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[1,6.57291,2],\\\"sql\\\":\\\"SELECT pump_leakage, MAX(vs1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? AND fs1_mean <= ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[1,6.57291,2],\\\"sql\\\":\\\"SELECT pump_leakage, MAX(vs1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? OR fs1_mean <= ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[1,6.57291,2],\\\"sql\\\":\\\"SELECT pump_leakage, MAX(vs1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? OR fs1_mean <= ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value ASC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[1,6.57291,2],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? OR fs1_mean <= ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,0.82955],[2,0.80637],[1,0.77482]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, MAX(vs1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? OR fs1_mean <= ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 5","sql_parameters":"[1,6.57291,2]","state":"{\"question\":\"Return the maximum of vs1_mean for hydraulic cycles where (pump_leakage equals 1 or fs1_mean is at most 6.57291), 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\":{\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}98{"category":"single_table/and/aggregate","domain":"sensor","family_id":"4baf850423ca6b4d8ef76664","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"05d86afaefd52ba5a4273ac1654d7444bfb7a5c77b8758d3f2badf30ac1ef00d","language":"en","license":"CC-BY-4.0","query":"Return the maximum of eps1_mean for hydraulic cycles where (accumulator equals 115 and ps1_mean is greater than 160.79926).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[115,160.79926],\\\"sql\\\":\\\"SELECT MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ? OR ps1_mean > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[115,160.79926],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (accumulator = ? AND ps1_mean > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[115,160.79926],\\\"sql\\\":\\\"SELECT MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ? AND ps1_mean > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[115,160.79926],\\\"sql\\\":\\\"SELECT SUM(eps1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ? AND ps1_mean > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[2736.7313]]","source":"hydraulic","split":"dev","sql":"SELECT MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ? AND ps1_mean > ?)","sql_parameters":"[115,160.79926]","state":"{\"question\":\"Return the maximum of eps1_mean for hydraulic cycles where (accumulator equals 115 and 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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}99{"category":"join/distinct_invoice/or/ranked","domain":"commerce","family_id":"2093f158d0815653ad9a69ce","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"cb8263fc6d6704e776adaf9096a7b0ed57870803d35da403dda606d9d86e1111","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.customer_id equals '12353' or l.unit_price is at most 4.77), grouped by i.invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12353\\\",4.77],\\\"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.customer_id = ? OR l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12353\\\",4.77],\\\"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.customer_id = ? AND l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12353\\\",4.77],\\\"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.customer_id = ? OR l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12353\\\",4.77],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) 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 value ASC, i.invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-01-06\",1],[\"2010-01-18\",1],[\"2010-10-17\",1]]","source":"online_retail_ii","split":"dev","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.customer_id = ? OR l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3","sql_parameters":"[\"12353\",4.77]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.customer_id equals '12353' or l.unit_price is at most 4.77), grouped by i.invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}100{"category":"join/distinct_invoice/grouped","domain":"commerce","family_id":"497112d6e327c55380ae546c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"19595bf27bbd1983d6bfac83f99d6cb0528ed497e66d623585b5f12a446a7a68","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.unit_price is at most 4.77), grouped by i.country, ordered by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[4.77],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price <= ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[4.77],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price <= ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[4.77],\\\"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 <= ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[4.77],\\\"sql\\\":\\\"SELECT i.country, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price <= ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",13],[\"Austria\",4],[\"Bahrain\",3],[\"Belgium\",14],[\"Canada\",1],[\"Channel Islands\",6],[\"Cyprus\",4],[\"Denmark\",3],[\"EIRE\",47],[\"Finland\",18],[\"France\",58],[\"Germany\",105],[\"Israel\",2],[\"Italy\",2],[\"Japan\",5],[\"Netherlands\",33],[\"Norway\",2],[\"Poland\",2],[\"Portugal\",4],[\"Spain\",25],[\"Sweden\",26],[\"Switzerland\",9],[\"USA\",1],[\"United Kingdom\",6157]]","source":"online_retail_ii","split":"dev","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 <= ?) GROUP BY i.country ORDER BY i.country ASC","sql_parameters":"[4.77]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.unit_price is at most 4.77), grouped by i.country, ordered by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}101{"category":"single_table/and/ranked","domain":"commerce","family_id":"925ac9e2ad3e82fd2e9de6b5","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"62d8b429bb668dacf9eeb5399d97384ddaa8b7513fb3852066f6130f4038e56b","language":"en","license":"CC-BY-4.0","query":"Return the sum of quantity for retail invoice lines where (country equals 'Canada' and quantity is greater than 92), grouped by invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Canada\\\",92],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity > ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Canada\\\",92],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (country = ? AND quantity > ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Canada\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (country = ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (country = ? AND quantity > ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3","sql_parameters":"[\"Canada\",92]","state":"{\"question\":\"Return the sum of quantity for retail invoice lines where (country equals 'Canada' and quantity is greater than 92), grouped by invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by invoice_date ascending.\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}102{"category":"join/or/grouped","domain":"commerce","family_id":"de6216c44070c121b0b68046","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"48e9d5c0d77945dff1af60d457fbf0d94c236c001d52a5c8111711764796503b","language":"en","license":"CC-BY-4.0","query":"Return the average of l.unit_price for retail lines joined to their invoices where (l.quantity is greater than 229 or l.unit_price is greater than 49.95), grouped by i.country, ordered by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[229,49.95],\\\"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 l.unit_price > ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[229,49.95],\\\"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 > ? AND l.unit_price > ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[229,49.95],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) 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.country ORDER BY i.country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[229,49.95],\\\"sql\\\":\\\"SELECT i.country, SUM(l.unit_price) 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.country ORDER BY i.country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Belgium\",0.32],[\"Denmark\",0.88],[\"EIRE\",145.97307692307692],[\"France\",1.45],[\"Germany\",243.66750000000002],[\"Japan\",0.8160000000000001],[\"Netherlands\",1.2966666666666666],[\"Norway\",280.09999999999997],[\"Singapore\",1684.305],[\"Spain\",40.98],[\"Sweden\",0.39888888888888885],[\"United Arab Emirates\",253.0],[\"United Kingdom\",12.644336793540946]]","source":"online_retail_ii","split":"dev","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 l.unit_price > ?) GROUP BY i.country ORDER BY i.country ASC","sql_parameters":"[229,49.95]","state":"{\"question\":\"Return the average of l.unit_price for retail lines joined to their invoices where (l.quantity is greater than 229 or l.unit_price is greater than 49.95), grouped by i.country, ordered by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}103{"category":"single_table/or/aggregate","domain":"commerce","family_id":"7e7f0415bc0e3eb780423403","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"6084782af4643f18e0332ae9a6330baa0eef3814de8cc6ee02e8bf9726070095","language":"en","license":"CC-BY-4.0","query":"Return the sum of product_related for shopping sessions where (product_related is at most 226 or product_duration is at most 472.4166667).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[226,472.4166667],\\\"sql\\\":\\\"SELECT SUM(product_related) AS value FROM shopping_sessions WHERE (product_related <= ? AND product_duration <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[226,472.4166667],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (product_related <= ? OR product_duration <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[226,472.4166667],\\\"sql\\\":\\\"SELECT SUM(product_related) AS value FROM shopping_sessions WHERE (product_related <= ? OR product_duration <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[226,472.4166667],\\\"sql\\\":\\\"SELECT AVG(product_related) AS value FROM shopping_sessions WHERE (product_related <= ? OR product_duration <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[355094]]","source":"online_shoppers","split":"dev","sql":"SELECT SUM(product_related) AS value FROM shopping_sessions WHERE (product_related <= ? OR product_duration <= ?)","sql_parameters":"[226,472.4166667]","state":"{\"question\":\"Return the sum of product_related for shopping sessions where (product_related is at most 226 or product_duration is at most 472.4166667).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}104{"category":"single_table/date/and/ranked","domain":"commerce","family_id":"d94eef8e2d94811c9ab9c683","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"6aa9a22e47fcf3ae1feb1ec777a19e52118b60738793974f4de8cae11ea453bb","language":"en","license":"CC-BY-4.0","query":"Return the minimum of quantity for retail invoice lines where (unit_price is greater than 0.55 and invoice_date is before '2011-09-29'), grouped by country; return at most 5 groups ordered by aggregate value DESC, breaking ties by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[0.55,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT country, MIN(quantity) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date < ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[0.55,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT country, MIN(quantity) AS value FROM retail_lines WHERE (unit_price > ? AND invoice_date < ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[0.55,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT country, MIN(quantity) AS value FROM retail_lines WHERE (unit_price > ? AND invoice_date < ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[0.55,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (unit_price > ? AND invoice_date < ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Channel Islands\",50],[\"USA\",12],[\"Canada\",8],[\"Australia\",3],[\"Bahrain\",2]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, MIN(quantity) AS value FROM retail_lines WHERE (unit_price > ? AND invoice_date < ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5","sql_parameters":"[0.55,\"2011-09-29\"]","state":"{\"question\":\"Return the minimum of quantity for retail invoice lines where (unit_price is greater than 0.55 and invoice_date is before '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\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}105{"category":"single_table/or/ranked","domain":"commerce","family_id":"486466e9aabbb19fa6813a52","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"ba89ba0c2bf71b109f40493ae9d8104293359a348f5c5e63988b757bb05b6c10","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail invoice lines where (country equals 'Cyprus' or unit_price is at most 8.5), grouped by invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",8.5],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",8.5],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",8.5],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",8.5],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-07-11\",1],[\"2011-04-10\",1],[\"2011-01-16\",2]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3","sql_parameters":"[\"Cyprus\",8.5]","state":"{\"question\":\"Return the number of rows for retail invoice lines where (country equals 'Cyprus' or unit_price is at most 8.5), grouped by invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by invoice_date ascending.\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}106{"category":"join/date/having","domain":"commerce","family_id":"a2e527755be836305d7cc608","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"04129f3dac2174d9deedcef7f0e2552f83496aaf068ee1a369cc389d38a7827e","language":"en","license":"CC-BY-4.0","query":"Return the average of l.unit_price for retail lines joined to their invoices where (i.invoice_date is before '2010-07-14'), grouped by i.country, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\",2],\\\"sql\\\":\\\"SELECT i.country, 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.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\",2],\\\"sql\\\":\\\"SELECT i.country, 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.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\",2],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) 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 DESC, i.country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\",2],\\\"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 HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Spain\",18.279444444444444],[\"Austria\",14.4],[\"Finland\",12.7225],[\"Denmark\",7.1325],[\"Germany\",4.941477272727273]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, 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.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5","sql_parameters":"[\"2010-07-14\",2]","state":"{\"question\":\"Return the average of l.unit_price for retail lines joined to their invoices where (i.invoice_date is before '2010-07-14'), grouped by i.country, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}107{"category":"join/null/and/ranked","domain":"commerce","family_id":"b89b7eb65a36e176dd77c3df","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"0a1cfdaf4f6e9ad36b8b1054e7901c1d372dc6bdc3ecd63ddf359b91c37d66bc","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.quantity for retail lines joined to their invoices where (l.quantity is at most 25 and i.customer_id is present), grouped by i.invoice_date; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[25],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? OR i.customer_id IS NOT NULL) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[25],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? AND i.customer_id IS NOT NULL) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[25],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? AND i.customer_id IS NOT NULL) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[25],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? AND i.customer_id IS NOT NULL) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-12-02\",1852],[\"2010-12-09\",1268],[\"2010-12-08\",1188],[\"2010-12-01\",1162],[\"2011-12-01\",1072]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.invoice_date, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? AND i.customer_id IS NOT NULL) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5","sql_parameters":"[25]","state":"{\"question\":\"Return the sum of l.quantity for retail lines joined to their invoices where (l.quantity is at most 25 and i.customer_id is present), 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_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}108{"category":"single_table/and/grouped","domain":"sensor","family_id":"0616735067b8dca0853098dc","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"169776f694349f2a185a1496136ba0694ec473ec23638d7790c53b6980d1634d","language":"en","license":"CC-BY-4.0","query":"Return the sum of ts1_mean for hydraulic cycles where (pump_leakage equals 0 and ts1_mean is at most 35.56605), grouped by cooler, ordered by cooler ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[0,35.56605],\\\"sql\\\":\\\"SELECT cooler, SUM(ts1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? OR ts1_mean <= ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[0,35.56605],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? AND ts1_mean <= ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[0,35.56605],\\\"sql\\\":\\\"SELECT cooler, SUM(ts1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? AND ts1_mean <= ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[0,35.56605],\\\"sql\\\":\\\"SELECT cooler, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? AND ts1_mean <= ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[100,7624.24197]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, SUM(ts1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? AND ts1_mean <= ?) GROUP BY cooler ORDER BY cooler ASC","sql_parameters":"[0,35.56605]","state":"{\"question\":\"Return the sum of ts1_mean for hydraulic cycles where (pump_leakage equals 0 and ts1_mean is at most 35.56605), grouped by cooler, ordered by cooler ascending.\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}109{"category":"single_table/or/grouped","domain":"commerce","family_id":"0ea64473474458f56bdea57c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"78a9ad1c07d33910a0fb7a4ec9b79ff27dcb5937168c38742bcd94cd287a5c50","language":"en","license":"CC-BY-4.0","query":"Return the minimum of quantity for retail invoice lines where (quantity is at most 92 or unit_price is greater than 2.25), grouped by country, ordered by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[92,2.25],\\\"sql\\\":\\\"SELECT country, MIN(quantity) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[92,2.25],\\\"sql\\\":\\\"SELECT country, MIN(quantity) AS value FROM retail_lines WHERE (quantity <= ? AND unit_price > ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[92,2.25],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[92,2.25],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?) GROUP BY country ORDER BY country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",2],[\"Austria\",1],[\"Bahrain\",2],[\"Belgium\",1],[\"Canada\",8],[\"Channel Islands\",2],[\"Cyprus\",2],[\"Denmark\",2],[\"EIRE\",1],[\"Finland\",1],[\"France\",1],[\"Germany\",1],[\"Israel\",1],[\"Italy\",1],[\"Japan\",1],[\"Netherlands\",1],[\"Norway\",1],[\"Poland\",1],[\"Portugal\",1],[\"Singapore\",1],[\"Spain\",1],[\"Sweden\",1],[\"Switzerland\",1],[\"USA\",12],[\"United Arab Emirates\",1],[\"United Kingdom\",1]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, MIN(quantity) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?) GROUP BY country ORDER BY country ASC","sql_parameters":"[92,2.25]","state":"{\"question\":\"Return the minimum of quantity for retail invoice lines where (quantity is at most 92 or unit_price is greater than 2.25), 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\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}110{"category":"single_table/or/grouped","domain":"sensor","family_id":"01f434c28d49a485d6b3894b","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"059885aeaf0708733721d036c7e9de1cafe91cb4c08e86bf7f53ae5cf54a1237","language":"en","license":"CC-BY-4.0","query":"Return the maximum of vs1_mean for hydraulic cycles where (ps2_mean is at most 122.4767 or ts1_mean is greater than 52.59775), grouped by pump_leakage, ordered by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[122.4767,52.59775],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR ts1_mean > ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[122.4767,52.59775],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR ts1_mean > ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[122.4767,52.59775],\\\"sql\\\":\\\"SELECT pump_leakage, MAX(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR ts1_mean > ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[122.4767,52.59775],\\\"sql\\\":\\\"SELECT pump_leakage, AVG(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR ts1_mean > ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,0.83907],[1,0.77482],[2,0.80637]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, MAX(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR ts1_mean > ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC","sql_parameters":"[122.4767,52.59775]","state":"{\"question\":\"Return the maximum of vs1_mean for hydraulic cycles where (ps2_mean is at most 122.4767 or ts1_mean is greater than 52.59775), 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_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}111{"category":"single_table/and/having","domain":"commerce","family_id":"b19b7c79aeeb9612471422bb","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"450659c4f6ac6c9ac079ae102fcb85d50127ab0acc6c782728bfc7c51ada3cc6","language":"en","license":"CC-BY-4.0","query":"Return the sum of product_related for shopping sessions where (month equals 'May' and product_duration is greater than 167.5), grouped by visitor_type, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"May\\\",167.5,2],\\\"sql\\\":\\\"SELECT visitor_type, SUM(product_related) AS value FROM shopping_sessions WHERE (month = ? AND product_duration > ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"May\\\",167.5,2],\\\"sql\\\":\\\"SELECT visitor_type, SUM(product_related) AS value FROM shopping_sessions WHERE (month = ? OR product_duration > ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"May\\\",167.5,2],\\\"sql\\\":\\\"SELECT visitor_type, SUM(product_related) AS value FROM shopping_sessions WHERE (month = ? AND product_duration > ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value ASC, visitor_type ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"May\\\",167.5,2],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (month = ? AND product_duration > ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Returning_Visitor\",79516],[\"New_Visitor\",5479]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, SUM(product_related) AS value FROM shopping_sessions WHERE (month = ? AND product_duration > ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value DESC, visitor_type ASC LIMIT 5","sql_parameters":"[\"May\",167.5,2]","state":"{\"question\":\"Return the sum of product_related for shopping sessions where (month equals 'May' and product_duration is greater than 167.5), grouped by visitor_type, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by visitor_type ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}112{"category":"single_table/date/or/having","domain":"commerce","family_id":"a626445e327e6b76963389bb","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"7a0c98a6c9bda81bf30d8e71ba9e38ca314f3f4780623c69ed8f0f9dfc26ab9f","language":"en","license":"CC-BY-4.0","query":"Return the maximum of quantity for retail invoice lines where (unit_price is greater than 0.55 or invoice_date is before '2010-07-14'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[0.55,\\\"2010-07-14\\\",10],\\\"sql\\\":\\\"SELECT country, MAX(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\\\":[0.55,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT country, MAX(quantity) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date < ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[0.55,\\\"2010-07-14\\\",10],\\\"sql\\\":\\\"SELECT country, MAX(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\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[0.55,\\\"2010-07-14\\\",10],\\\"sql\\\":\\\"SELECT country, MAX(quantity) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Bahrain\",24],[\"Norway\",24],[\"Austria\",48]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, MAX(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","sql_parameters":"[0.55,\"2010-07-14\",10]","state":"{\"question\":\"Return the maximum of quantity for retail invoice lines where (unit_price is greater than 0.55 or invoice_date is before '2010-07-14'), 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\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}113{"category":"join/and/aggregate","domain":"commerce","family_id":"d0504d1574bad6d8c86728c9","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"8879b2957ee5b1ade5b5804931f4dfe894e198253cd4a9ce75da6ac2f4d17820","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.unit_price for retail lines joined to their invoices where (l.quantity is at most 25 and l.unit_price is at most 8.5).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[25,8.5],\\\"sql\\\":\\\"SELECT SUM(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? OR l.unit_price <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[25,8.5],\\\"sql\\\":\\\"SELECT SUM(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? AND l.unit_price <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[25,8.5],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? AND l.unit_price <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[25,8.5],\\\"sql\\\":\\\"SELECT AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? AND l.unit_price <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[56205.270000000004]]","source":"online_retail_ii","split":"dev","sql":"SELECT SUM(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? AND l.unit_price <= ?)","sql_parameters":"[25,8.5]","state":"{\"question\":\"Return the sum of l.unit_price for retail lines joined to their invoices where (l.quantity is at most 25 and l.unit_price is at most 8.5).\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}114{"category":"single_table/date/or/ranked","domain":"commerce","family_id":"e1311b3776c20051cacb1a98","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"97797b2be4a44d27da101185d17d785ee4571fad5366d7da154a820e5cfa8ca7","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (country equals 'Finland' or invoice_date is before '2010-02-18'), grouped by invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Finland\\\",\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Finland\\\",\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date < ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Finland\\\",\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? OR invoice_date < ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Finland\\\",\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date < ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-01-18\",2.25],[\"2009-12-23\",3.75],[\"2010-01-17\",4.95]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date < ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3","sql_parameters":"[\"Finland\",\"2010-02-18\"]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines where (country equals 'Finland' or invoice_date is before '2010-02-18'), grouped by invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by invoice_date ascending.\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}115{"category":"single_table/or/aggregate","domain":"sensor","family_id":"0970d41bfd83ff6018b192b2","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"ca395a365aee0f3dd01f02548b0819bec5c6d583c179c15a5eac0e017ffa9935","language":"en","license":"CC-BY-4.0","query":"Return the maximum of eps1_mean for hydraulic cycles where (ps2_mean is at most 122.4767 or fs1_mean is greater than 6.63763).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[122.4767,6.63763],\\\"sql\\\":\\\"SELECT MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND fs1_mean > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[122.4767,6.63763],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR fs1_mean > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[122.4767,6.63763],\\\"sql\\\":\\\"SELECT MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR fs1_mean > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[122.4767,6.63763],\\\"sql\\\":\\\"SELECT SUM(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR fs1_mean > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[2626.56707]]","source":"hydraulic","split":"dev","sql":"SELECT MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR fs1_mean > ?)","sql_parameters":"[122.4767,6.63763]","state":"{\"question\":\"Return the maximum of eps1_mean for hydraulic cycles where (ps2_mean is at most 122.4767 or fs1_mean is greater than 6.63763).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}116{"category":"single_table/date/and/ranked","domain":"commerce","family_id":"0978ca6bdfba8b16ac43380c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"1b4354db289217ee8a287c816caf033a633bd3681d3ef923eea2f1d5ffcb0811","language":"en","license":"CC-BY-4.0","query":"Return the average of quantity for retail invoice lines where (unit_price is greater than 49.95 and invoice_date is before '2010-12-02'), grouped by invoice_date; return at most 5 groups ordered by aggregate value DESC, breaking ties by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[49.95,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date < ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[49.95,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (unit_price > ? AND invoice_date < ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[49.95,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (unit_price > ? AND invoice_date < ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[49.95,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (unit_price > ? AND invoice_date < ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-10-14\",34.0],[\"2010-02-22\",10.0],[\"2010-09-01\",2.0],[\"2010-10-21\",2.0],[\"2010-10-22\",2.0]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (unit_price > ? AND invoice_date < ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5","sql_parameters":"[49.95,\"2010-12-02\"]","state":"{\"question\":\"Return the average of quantity for retail invoice lines where (unit_price is greater than 49.95 and invoice_date is before '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\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}117{"category":"join/and/aggregate","domain":"commerce","family_id":"8709d485534091563007e6b0","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"796ec1abb56f0917a8013ca77eb6442352c788b5a884623c275fd9587bdd9273","language":"en","license":"CC-BY-4.0","query":"Return the average of l.unit_price for retail lines joined to their invoices where (i.country equals 'EIRE' and l.unit_price is at most 0.55).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"EIRE\\\",0.55],\\\"sql\\\":\\\"SELECT AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR l.unit_price <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"EIRE\\\",0.55],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND l.unit_price <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"EIRE\\\",0.55],\\\"sql\\\":\\\"SELECT SUM(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND l.unit_price <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"EIRE\\\",0.55],\\\"sql\\\":\\\"SELECT AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND l.unit_price <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0.32]]","source":"online_retail_ii","split":"dev","sql":"SELECT AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND l.unit_price <= ?)","sql_parameters":"[\"EIRE\",0.55]","state":"{\"question\":\"Return the average of l.unit_price for retail lines joined to their invoices where (i.country equals 'EIRE' and l.unit_price is at most 0.55).\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}118{"category":"single_table/and/aggregate","domain":"commerce","family_id":"34188cf6c9e0897bf8f75318","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"3b3794c1705761d4cd4b9f0c436ef8f7080b114d45ae4c32c3ecb45b7fb28d51","language":"en","license":"CC-BY-4.0","query":"Return the minimum of product_related for shopping sessions where (administrative is at most 7 and product_duration is at most 472.4166667).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[7,472.4166667],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (administrative <= ? AND product_duration <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[7,472.4166667],\\\"sql\\\":\\\"SELECT MIN(product_related) AS value FROM shopping_sessions WHERE (administrative <= ? AND product_duration <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[7,472.4166667],\\\"sql\\\":\\\"SELECT SUM(product_related) AS value FROM shopping_sessions WHERE (administrative <= ? AND product_duration <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[7,472.4166667],\\\"sql\\\":\\\"SELECT AVG(product_related) AS value FROM shopping_sessions WHERE (administrative <= ? AND product_duration <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0]]","source":"online_shoppers","split":"dev","sql":"SELECT MIN(product_related) AS value FROM shopping_sessions WHERE (administrative <= ? AND product_duration <= ?)","sql_parameters":"[7,472.4166667]","state":"{\"question\":\"Return the minimum of product_related for shopping sessions where (administrative is at most 7 and product_duration is at most 472.4166667).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}119{"category":"single_table/ranked","domain":"commerce","family_id":"3eb02b9517f54067eae1b2b1","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"27ba0614b47ade71c0320a19d432805cfe056af2a8ce628285c095b559604262","language":"en","license":"CC-BY-4.0","query":"Return the minimum of unit_price for retail invoice lines where (unit_price is at most 0.55), grouped by country; return at most 3 groups ordered by aggregate value ASC, breaking ties by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[0.55],\\\"sql\\\":\\\"SELECT country, MIN(unit_price) AS value FROM retail_lines WHERE (unit_price <= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[0.55],\\\"sql\\\":\\\"SELECT country, MIN(unit_price) AS value FROM retail_lines WHERE (unit_price <= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[0.55],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (unit_price <= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[0.55],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (unit_price <= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Germany\",0.04],[\"United Kingdom\",0.04],[\"Sweden\",0.09]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, MIN(unit_price) AS value FROM retail_lines WHERE (unit_price <= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3","sql_parameters":"[0.55]","state":"{\"question\":\"Return the minimum of unit_price for retail invoice lines where (unit_price is at most 0.55), 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\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}120{"category":"single_table/ranked","domain":"commerce","family_id":"e8629a5e80b1ec3c1c986fe2","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"794f855745f6c9ddb2ee3703eabd7458f15bf5e0679a4a3d0887cf24398c3f6d","language":"en","license":"CC-BY-4.0","query":"Return the maximum of product_related for shopping sessions where (month equals 'Sep'), grouped by month; return at most 3 groups ordered by aggregate value ASC, breaking ties by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Sep\\\"],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (month = ?) GROUP BY month ORDER BY value ASC, month ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Sep\\\"],\\\"sql\\\":\\\"SELECT month, SUM(product_related) AS value FROM shopping_sessions WHERE (month = ?) GROUP BY month ORDER BY value ASC, month ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Sep\\\"],\\\"sql\\\":\\\"SELECT month, AVG(product_related) AS value FROM shopping_sessions WHERE (month = ?) GROUP BY month ORDER BY value ASC, month ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Sep\\\"],\\\"sql\\\":\\\"SELECT month, MAX(product_related) AS value FROM shopping_sessions WHERE (month = ?) GROUP BY month ORDER BY value ASC, month ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Sep\",439]]","source":"online_shoppers","split":"dev","sql":"SELECT month, MAX(product_related) AS value FROM shopping_sessions WHERE (month = ?) GROUP BY month ORDER BY value ASC, month ASC LIMIT 3","sql_parameters":"[\"Sep\"]","state":"{\"question\":\"Return the maximum of product_related for shopping sessions where (month equals 'Sep'), grouped by month; return at most 3 groups ordered by aggregate value ASC, breaking ties by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}121{"category":"single_table/or/grouped","domain":"sensor","family_id":"6c1cb50fe481f8d5bd63d956","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"fa7b199a3e24a243b286fd7f3fc3df2645213a5ce7c7396611937b6b2f220525","language":"en","license":"CC-BY-4.0","query":"Return the maximum of ps2_mean for hydraulic cycles where (cooler equals 3 or valve equals 100), grouped by pump_leakage, ordered by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[3,100],\\\"sql\\\":\\\"SELECT pump_leakage, MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? AND valve = ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[3,100],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (cooler = ? OR valve = ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[3,100],\\\"sql\\\":\\\"SELECT pump_leakage, MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? OR valve = ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[3,100],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? OR valve = ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,131.58909],[1,131.0069],[2,131.05237]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? OR valve = ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC","sql_parameters":"[3,100]","state":"{\"question\":\"Return the maximum of ps2_mean for hydraulic cycles where (cooler equals 3 or valve equals 100), 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_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}122{"category":"single_table/date/and/grouped","domain":"commerce","family_id":"7db4610ed3da1b061618d122","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"9e20197e9ba00df58e88445dcf25811afa9864179c8bae6b0baf097dd0653ae0","language":"en","license":"CC-BY-4.0","query":"Return the sum of quantity for retail invoice lines where (country equals 'Australia' and invoice_date is before '2010-02-18'), grouped by invoice_date, ordered by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Australia\\\",\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (country = ? OR invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Australia\\\",\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Australia\\\",\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Australia\\\",\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-18\",60]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC","sql_parameters":"[\"Australia\",\"2010-02-18\"]","state":"{\"question\":\"Return the sum of quantity for retail invoice lines where (country equals 'Australia' and invoice_date is before '2010-02-18'), 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\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}123{"category":"single_table/ranked","domain":"sensor","family_id":"83893bbe688f72eb80b1ca49","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"d77d11a9543fff3782c01e2efcf48a14c3420593d06c3d6df60e4a5ffca5fdfd","language":"en","license":"CC-BY-4.0","query":"Return the maximum of ps1_mean for hydraulic cycles where (ps2_mean is greater than 107.17314), grouped by cooler; return at most 3 groups ordered by aggregate value ASC, breaking ties by cooler ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[107.17314],\\\"sql\\\":\\\"SELECT cooler, MAX(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ?) GROUP BY cooler ORDER BY value DESC, cooler ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[107.17314],\\\"sql\\\":\\\"SELECT cooler, MAX(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[107.17314],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps2_mean > ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[107.17314],\\\"sql\\\":\\\"SELECT cooler, SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[20,159.25179],[100,161.40794],[3,180.92271]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, MAX(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 3","sql_parameters":"[107.17314]","state":"{\"question\":\"Return the maximum of ps1_mean for hydraulic cycles where (ps2_mean is greater than 107.17314), 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\",\"cycle_id\":\"INTEGER\",\"eps1_mean\":\"REAL\",\"fs1_mean\":\"REAL\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}124{"category":"single_table/ranked","domain":"commerce","family_id":"096dc10566a3110378d962ae","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"4f00235fb258ab2be23bba2f53c7660db654ea5df529053151de2b0238160579","language":"en","license":"CC-BY-4.0","query":"Return the average of quantity for retail invoice lines where (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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[4.77],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (unit_price > ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[4.77],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (unit_price > ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"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 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[4.77],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (unit_price > ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"EIRE\",16.131147540983605],[\"Netherlands\",11.235294117647058],[\"United Kingdom\",9.580804854679016],[\"Channel Islands\",8.666666666666666],[\"Austria\",5.444444444444445]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (unit_price > ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5","sql_parameters":"[4.77]","state":"{\"question\":\"Return the average of quantity for retail invoice lines where (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\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}125{"category":"single_table/and/ranked","domain":"commerce","family_id":"1725f7fb4ac82f81ef91c4af","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"6ad19591df6f0acf424873447e35a41772967adba915d6d172c74d704d7ca256","language":"en","license":"CC-BY-4.0","query":"Return the sum of product_duration for shopping sessions where (revenue equals 1 and product_related is at most 340), grouped by month; return at most 3 groups ordered by aggregate value ASC, breaking ties by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[1,340],\\\"sql\\\":\\\"SELECT month, SUM(product_duration) AS value FROM shopping_sessions WHERE (revenue = ? OR product_related <= ?) GROUP BY month ORDER BY value ASC, month ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[1,340],\\\"sql\\\":\\\"SELECT month, SUM(product_duration) AS value FROM shopping_sessions WHERE (revenue = ? AND product_related <= ?) GROUP BY month ORDER BY value ASC, month ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[1,340],\\\"sql\\\":\\\"SELECT month, SUM(product_duration) AS value FROM shopping_sessions WHERE (revenue = ? AND product_related <= ?) GROUP BY month ORDER BY value DESC, month ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[1,340],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (revenue = ? AND product_related <= ?) GROUP BY month ORDER BY value ASC, month ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Feb\",3516.6750003],[\"June\",34989.72107753],[\"Sep\",78568.20385787]]","source":"online_shoppers","split":"dev","sql":"SELECT month, SUM(product_duration) AS value FROM shopping_sessions WHERE (revenue = ? AND product_related <= ?) GROUP BY month ORDER BY value ASC, month ASC LIMIT 3","sql_parameters":"[1,340]","state":"{\"question\":\"Return the sum of product_duration for shopping sessions where (revenue equals 1 and product_related is at most 340), grouped by month; return at most 3 groups ordered by aggregate value ASC, breaking ties by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}126{"category":"join/date/and/grouped","domain":"commerce","family_id":"ded94ccd9770e9898c645591","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"1e5b67c7ec61565babeec9e0fb2e343421831d849413ad83471188d8a3378df7","language":"en","license":"CC-BY-4.0","query":"Return the average of l.quantity for retail lines joined to their invoices where (l.unit_price is at most 49.95 and i.invoice_date is before '2010-12-02'), grouped by i.country, ordered by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[49.95,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT i.country, AVG(l.quantity) 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\\\":[49.95,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) 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\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[49.95,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) 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\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[49.95,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT i.country, AVG(l.quantity) 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\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",16.36842105263158],[\"Austria\",7.0],[\"Bahrain\",11.0],[\"Belgium\",7.882352941176471],[\"Channel Islands\",133.33333333333334],[\"Cyprus\",47.125],[\"Denmark\",41.0],[\"EIRE\",62.270270270270274],[\"Finland\",36.5],[\"France\",34.827586206896555],[\"Germany\",20.158227848101266],[\"Italy\",28.22222222222222],[\"Japan\",12.0],[\"Netherlands\",67.87837837837837],[\"Norway\",12.833333333333334],[\"Poland\",27.0],[\"Portugal\",12.294117647058824],[\"Spain\",50.916666666666664],[\"Sweden\",135.30555555555554],[\"Switzerland\",29.875],[\"USA\",12.0],[\"United Arab Emirates\",1.0],[\"United Kingdom\",48.864948947032545]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, AVG(l.quantity) 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","sql_parameters":"[49.95,\"2010-12-02\"]","state":"{\"question\":\"Return the average of l.quantity for retail lines joined to their invoices where (l.unit_price is at most 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\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}127{"category":"join/grouped","domain":"commerce","family_id":"eb932fd3f8c60206f5b40f36","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"f8dc37b40cf3647ea164a444e8983cb3a336634a605dc89beea9a8c0557a9caf","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.quantity for retail lines joined to their invoices where (l.unit_price is greater than 8.5), grouped by i.invoice_date, ordered by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[8.5],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[8.5],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[8.5],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[8.5],\\\"sql\\\":\\\"SELECT i.invoice_date, MIN(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-02\",26],[\"2009-12-03\",5],[\"2009-12-04\",1],[\"2009-12-05\",28],[\"2009-12-06\",4],[\"2009-12-07\",14],[\"2009-12-08\",2],[\"2009-12-09\",47],[\"2009-12-10\",3],[\"2009-12-11\",5],[\"2009-12-13\",39],[\"2009-12-14\",13],[\"2009-12-15\",91],[\"2009-12-16\",10],[\"2009-12-17\",24],[\"2009-12-18\",200],[\"2009-12-20\",19],[\"2009-12-21\",2],[\"2009-12-22\",10],[\"2010-01-05\",19],[\"2010-01-07\",123],[\"2010-01-08\",12],[\"2010-01-11\",22],[\"2010-01-12\",16],[\"2010-01-14\",3],[\"2010-01-15\",2],[\"2010-01-19\",2],[\"2010-01-20\",24],[\"2010-01-21\",5],[\"2010-01-22\",25],[\"2010-01-24\",25],[\"2010-01-25\",5],[\"2010-01-26\",8],[\"2010-01-27\",20],[\"2010-01-28\",2],[\"2010-01-29\",41],[\"2010-01-31\",1],[\"2010-02-01\",3],[\"2010-02-02\",28],[\"2010-02-03\",3],[\"2010-02-04\",4],[\"2010-02-05\",1],[\"2010-02-08\",17],[\"2010-02-09\",12],[\"2010-02-10\",13],[\"2010-02-14\",14],[\"2010-02-15\",4],[\"2010-02-16\",5],[\"2010-02-18\",5],[\"2010-02-19\",14],[\"2010-02-21\",2],[\"2010-02-22\",80],[\"2010-02-23\",23],[\"2010-02-24\",16],[\"2010-02-25\",29],[\"2010-02-26\",1],[\"2010-02-28\",60],[\"2010-03-01\",13],[\"2010-03-02\",4],[\"2010-03-03\",18],[\"2010-03-04\",49],[\"2010-03-05\",11],[\"2010-03-08\",35],[\"2010-03-09\",15],[\"2010-03-10\",13],[\"2010-03-11\",12],[\"2010-03-12\",12],[\"2010-03-14\",8],[\"2010-03-15\",10],[\"2010-03-16\",4],[\"2010-03-17\",18],[\"2010-03-18\",113],[\"2010-03-19\",14],[\"2010-03-21\",46],[\"2010-03-22\",4],[\"2010-03-23\",22],[\"2010-03-24\",5],[\"2010-03-25\",4],[\"2010-03-26\",5],[\"2010-03-30\",8],[\"2010-03-31\",13],[\"2010-04-01\",32],[\"2010-04-06\",33],[\"2010-04-07\",88],[\"2010-04-08\",18],[\"2010-04-09\",4],[\"2010-04-12\",8],[\"2010-04-13\",10],[\"2010-04-14\",17],[\"2010-04-15\",2],[\"2010-04-16\",77],[\"2010-04-18\",4],[\"2010-04-19\",51],[\"2010-04-20\",6],[\"2010-04-21\",15],[\"2010-04-22\",26],[\"2010-04-23\",9],[\"2010-04-25\",4],[\"2010-04-26\",6],[\"2010-04-27\",70],[\"2010-04-29\",19],[\"2010-04-30\",31],[\"2010-05-02\",1],[\"2010-05-04\",9],[\"2010-05-05\",25],[\"2010-05-06\",47],[\"2010-05-07\",15],[\"2010-05-09\",24],[\"2010-05-10\",38],[\"2010-05-11\",1],[\"2010-05-12\",64],[\"2010-05-13\",42],[\"2010-05-14\",51],[\"2010-05-17\",2],[\"2010-05-18\",6],[\"2010-05-19\",12],[\"2010-05-20\",3],[\"2010-05-21\",14],[\"2010-05-23\",3],[\"2010-05-24\",15],[\"2010-05-25\",15],[\"2010-05-26\",20],[\"2010-05-27\",9],[\"2010-05-28\",2],[\"2010-05-30\",7],[\"2010-06-01\",1],[\"2010-06-02\",4],[\"2010-06-03\",12],[\"2010-06-04\",14],[\"2010-06-06\",3],[\"2010-06-07\",78],[\"2010-06-08\",70],[\"2010-06-09\",5],[\"2010-06-10\",29],[\"2010-06-11\",24],[\"2010-06-13\",12],[\"2010-06-14\",32],[\"2010-06-15\",8],[\"2010-06-16\",64],[\"2010-06-17\",29],[\"2010-06-18\",60],[\"2010-06-20\",15],[\"2010-06-21\",6],[\"2010-06-22\",3],[\"2010-06-23\",28],[\"2010-06-24\",7],[\"2010-06-25\",3],[\"2010-06-27\",11],[\"2010-06-28\",10],[\"2010-06-29\",37],[\"2010-06-30\",6],[\"2010-07-01\",9],[\"2010-07-02\",1],[\"2010-07-04\",62],[\"2010-07-05\",36],[\"2010-07-06\",12],[\"2010-07-07\",25],[\"2010-07-08\",23],[\"2010-07-09\",1],[\"2010-07-11\",3],[\"2010-07-12\",12],[\"2010-07-13\",31],[\"2010-07-14\",2],[\"2010-07-15\",42],[\"2010-07-16\",13],[\"2010-07-19\",38],[\"2010-07-20\",3],[\"2010-07-21\",24],[\"2010-07-22\",17],[\"2010-07-23\",74],[\"2010-07-25\",1],[\"2010-07-26\",3],[\"2010-07-27\",12],[\"2010-07-28\",20],[\"2010-07-29\",28],[\"2010-07-30\",63],[\"2010-08-01\",5],[\"2010-08-02\",38],[\"2010-08-03\",6],[\"2010-08-04\",11],[\"2010-08-05\",40],[\"2010-08-08\",23],[\"2010-08-11\",7],[\"2010-08-12\",15],[\"2010-08-13\",50],[\"2010-08-15\",10],[\"2010-08-16\",269],[\"2010-08-17\",6],[\"2010-08-18\",13],[\"2010-08-19\",49],[\"2010-08-20\",49],[\"2010-08-23\",31],[\"2010-08-24\",2],[\"2010-08-25\",3],[\"2010-08-31\",2],[\"2010-09-01\",8],[\"2010-09-02\",46],[\"2010-09-03\",64],[\"2010-09-05\",2],[\"2010-09-06\",5],[\"2010-09-07\",42],[\"2010-09-09\",18],[\"2010-09-12\",16],[\"2010-09-13\",13],[\"2010-09-14\",51],[\"2010-09-15\",1],[\"2010-09-16\",119],[\"2010-09-17\",1],[\"2010-09-19\",6],[\"2010-09-20\",9],[\"2010-09-21\",2],[\"2010-09-23\",14],[\"2010-09-24\",36],[\"2010-09-26\",19],[\"2010-09-27\",58],[\"2010-09-28\",18],[\"2010-09-29\",15],[\"2010-09-30\",32],[\"2010-10-01\",18],[\"2010-10-04\",6],[\"2010-10-05\",29],[\"2010-10-06\",36],[\"2010-10-07\",28],[\"2010-10-08\",2],[\"2010-10-10\",12],[\"2010-10-11\",21],[\"2010-10-12\",50],[\"2010-10-13\",1],[\"2010-10-14\",108],[\"2010-10-15\",26],[\"2010-10-17\",1],[\"2010-10-18\",92],[\"2010-10-19\",11],[\"2010-10-20\",39],[\"2010-10-21\",44],[\"2010-10-22\",10],[\"2010-10-24\",8],[\"2010-10-25\",10],[\"2010-10-26\",6],[\"2010-10-27\",11],[\"2010-10-28\",15],[\"2010-10-29\",4],[\"2010-10-31\",5],[\"2010-11-01\",4],[\"2010-11-02\",11],[\"2010-11-03\",39],[\"2010-11-04\",71],[\"2010-11-05\",21],[\"2010-11-07\",8],[\"2010-11-08\",71],[\"2010-11-09\",27],[\"2010-11-10\",19],[\"2010-11-11\",36],[\"2010-11-12\",257],[\"2010-11-14\",32],[\"2010-11-15\",55],[\"2010-11-16\",56],[\"2010-11-17\",43],[\"2010-11-18\",134],[\"2010-11-19\",115],[\"2010-11-21\",7],[\"2010-11-22\",19],[\"2010-11-23\",18],[\"2010-11-24\",69],[\"2010-11-25\",43],[\"2010-11-28\",28],[\"2010-11-29\",32],[\"2010-11-30\",13],[\"2010-12-01\",52],[\"2010-12-02\",316],[\"2010-12-03\",8],[\"2010-12-05\",148],[\"2010-12-06\",30],[\"2010-12-07\",82],[\"2010-12-08\",122],[\"2010-12-09\",150],[\"2010-12-10\",10],[\"2010-12-12\",54],[\"2010-12-13\",3],[\"2010-12-14\",27],[\"2010-12-15\",35],[\"2010-12-16\",98],[\"2010-12-17\",39],[\"2010-12-20\",23],[\"2010-12-21\",4],[\"2011-01-05\",5],[\"2011-01-07\",57],[\"2011-01-09\",24],[\"2011-01-10\",1],[\"2011-01-11\",30],[\"2011-01-12\",28],[\"2011-01-14\",3],[\"2011-01-17\",41],[\"2011-01-19\",1],[\"2011-01-20\",3],[\"2011-01-21\",20],[\"2011-01-23\",38],[\"2011-01-24\",4],[\"2011-01-25\",17],[\"2011-01-26\",11],[\"2011-01-27\",26],[\"2011-01-31\",23],[\"2011-02-01\",11],[\"2011-02-02\",4],[\"2011-02-03\",11],[\"2011-02-04\",13],[\"2011-02-07\",4],[\"2011-02-09\",4],[\"2011-02-10\",26],[\"2011-02-11\",55],[\"2011-02-14\",76],[\"2011-02-15\",17],[\"2011-02-17\",2],[\"2011-02-18\",4],[\"2011-02-20\",56],[\"2011-02-21\",6],[\"2011-02-22\",24],[\"2011-02-23\",14],[\"2011-02-24\",19],[\"2011-02-25\",3],[\"2011-02-27\",1],[\"2011-02-28\",11],[\"2011-03-01\",102],[\"2011-03-02\",16],[\"2011-03-03\",16],[\"2011-03-04\",6],[\"2011-03-06\",16],[\"2011-03-07\",23],[\"2011-03-08\",58],[\"2011-03-09\",104],[\"2011-03-10\",118],[\"2011-03-11\",16],[\"2011-03-14\",33],[\"2011-03-15\",49],[\"2011-03-16\",22],[\"2011-03-17\",32],[\"2011-03-18\",7],[\"2011-03-20\",18],[\"2011-03-21\",16],[\"2011-03-22\",16],[\"2011-03-23\",35],[\"2011-03-25\",4],[\"2011-03-27\",63],[\"2011-03-28\",19],[\"2011-03-29\",16],[\"2011-03-30\",10],[\"2011-03-31\",112],[\"2011-04-01\",45],[\"2011-04-03\",40],[\"2011-04-04\",4],[\"2011-04-05\",31],[\"2011-04-07\",62],[\"2011-04-08\",12],[\"2011-04-10\",24],[\"2011-04-12\",22],[\"2011-04-13\",63],[\"2011-04-14\",42],[\"2011-04-15\",3],[\"2011-04-17\",16],[\"2011-04-18\",1],[\"2011-04-20\",76],[\"2011-04-21\",6],[\"2011-04-26\",21],[\"2011-04-27\",28],[\"2011-04-28\",27],[\"2011-05-01\",2],[\"2011-05-03\",25],[\"2011-05-04\",5],[\"2011-05-05\",85],[\"2011-05-06\",27],[\"2011-05-08\",1],[\"2011-05-09\",27],[\"2011-05-10\",37],[\"2011-05-11\",40],[\"2011-05-12\",24],[\"2011-05-13\",36],[\"2011-05-15\",1],[\"2011-05-16\",16],[\"2011-05-17\",4],[\"2011-05-18\",10],[\"2011-05-19\",9],[\"2011-05-20\",40],[\"2011-05-22\",2],[\"2011-05-23\",20],[\"2011-05-24\",39],[\"2011-05-26\",6],[\"2011-05-27\",37],[\"2011-05-31\",18],[\"2011-06-01\",10],[\"2011-06-02\",3],[\"2011-06-03\",2],[\"2011-06-05\",21],[\"2011-06-06\",4],[\"2011-06-07\",24],[\"2011-06-08\",52],[\"2011-06-09\",13],[\"2011-06-10\",40],[\"2011-06-12\",10],[\"2011-06-13\",5],[\"2011-06-14\",2],[\"2011-06-15\",7],[\"2011-06-16\",2],[\"2011-06-17\",5],[\"2011-06-20\",11],[\"2011-06-21\",4],[\"2011-06-22\",3],[\"2011-06-23\",1],[\"2011-06-24\",29],[\"2011-06-26\",9],[\"2011-06-28\",6],[\"2011-06-29\",7],[\"2011-06-30\",4],[\"2011-07-01\",30],[\"2011-07-03\",16],[\"2011-07-04\",4],[\"2011-07-05\",3],[\"2011-07-06\",20],[\"2011-07-07\",5],[\"2011-07-08\",15],[\"2011-07-11\",1],[\"2011-07-12\",32],[\"2011-07-13\",6],[\"2011-07-14\",153],[\"2011-07-15\",11],[\"2011-07-17\",9],[\"2011-07-18\",11],[\"2011-07-19\",2],[\"2011-07-20\",23],[\"2011-07-21\",47],[\"2011-07-24\",41],[\"2011-07-25\",9],[\"2011-07-26\",8],[\"2011-07-28\",26],[\"2011-07-29\",8],[\"2011-07-31\",25],[\"2011-08-03\",33],[\"2011-08-04\",16],[\"2011-08-05\",6],[\"2011-08-08\",1],[\"2011-08-09\",3],[\"2011-08-10\",31],[\"2011-08-11\",7],[\"2011-08-14\",7],[\"2011-08-16\",2],[\"2011-08-18\",38],[\"2011-08-19\",7],[\"2011-08-22\",70],[\"2011-08-24\",4],[\"2011-08-25\",69],[\"2011-08-26\",2],[\"2011-08-30\",15],[\"2011-08-31\",4],[\"2011-09-01\",20],[\"2011-09-02\",16],[\"2011-09-04\",9],[\"2011-09-06\",7],[\"2011-09-07\",3],[\"2011-09-08\",25],[\"2011-09-09\",13],[\"2011-09-12\",18],[\"2011-09-13\",10],[\"2011-09-14\",4],[\"2011-09-15\",6],[\"2011-09-16\",1],[\"2011-09-18\",1],[\"2011-09-20\",10],[\"2011-09-21\",3],[\"2011-09-22\",12],[\"2011-09-23\",4],[\"2011-09-25\",3],[\"2011-09-26\",1],[\"2011-09-27\",46],[\"2011-09-28\",3],[\"2011-09-29\",16],[\"2011-09-30\",25],[\"2011-10-02\",1],[\"2011-10-03\",3],[\"2011-10-04\",1],[\"2011-10-05\",28],[\"2011-10-06\",60],[\"2011-10-07\",9],[\"2011-10-10\",9],[\"2011-10-11\",2],[\"2011-10-12\",6],[\"2011-10-13\",9],[\"2011-10-14\",3],[\"2011-10-17\",14],[\"2011-10-18\",18],[\"2011-10-19\",47],[\"2011-10-20\",10],[\"2011-10-21\",9],[\"2011-10-23\",1],[\"2011-10-24\",44],[\"2011-10-25\",3],[\"2011-10-26\",26],[\"2011-10-27\",20],[\"2011-10-28\",10],[\"2011-10-30\",42],[\"2011-10-31\",1],[\"2011-11-01\",10],[\"2011-11-03\",11],[\"2011-11-04\",12],[\"2011-11-06\",20],[\"2011-11-07\",26],[\"2011-11-08\",14],[\"2011-11-09\",61],[\"2011-11-10\",10],[\"2011-11-11\",2],[\"2011-11-13\",30],[\"2011-11-14\",4],[\"2011-11-15\",31],[\"2011-11-16\",35],[\"2011-11-17\",68],[\"2011-11-18\",9],[\"2011-11-20\",2],[\"2011-11-21\",38],[\"2011-11-22\",10],[\"2011-11-23\",18],[\"2011-11-24\",28],[\"2011-11-25\",40],[\"2011-11-27\",1],[\"2011-11-28\",3],[\"2011-11-29\",22],[\"2011-11-30\",5],[\"2011-12-01\",38],[\"2011-12-02\",7],[\"2011-12-04\",8],[\"2011-12-05\",9],[\"2011-12-06\",27],[\"2011-12-07\",24],[\"2011-12-08\",12],[\"2011-12-09\",72]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.invoice_date, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC","sql_parameters":"[8.5]","state":"{\"question\":\"Return the sum of l.quantity for retail lines joined to their invoices where (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_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}128{"category":"single_table/aggregate","domain":"commerce","family_id":"9e00ce09a7e6ed8778957396","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"3cca372dd5264f98301a1e6bad2eb447249b4efe45879e0d89cbb595590bb55c","language":"en","license":"CC-BY-4.0","query":"Return the average of product_duration for shopping sessions where (month equals 'Oct').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Oct\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (month = ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Oct\\\"],\\\"sql\\\":\\\"SELECT AVG(product_duration) AS value FROM shopping_sessions WHERE (month = ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Oct\\\"],\\\"sql\\\":\\\"SELECT SUM(product_duration) AS value FROM shopping_sessions WHERE (month = ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Oct\\\"],\\\"sql\\\":\\\"SELECT MIN(product_duration) AS value FROM shopping_sessions WHERE (month = ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1116.977684492805]]","source":"online_shoppers","split":"dev","sql":"SELECT AVG(product_duration) AS value FROM shopping_sessions WHERE (month = ?)","sql_parameters":"[\"Oct\"]","state":"{\"question\":\"Return the average of product_duration for shopping sessions where (month equals 'Oct').\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}129{"category":"single_table/and/ranked","domain":"commerce","family_id":"67b044b4c6f1d95293b5b736","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"dc7128bb556beda8d26c64657e90887a75c58c4ed4c92a4dce422836ee01b175","language":"en","license":"CC-BY-4.0","query":"Return the minimum of administrative for shopping sessions where (product_related is greater than 340 and product_duration is at most 167.5), grouped by month; return at most 5 groups ordered by aggregate value DESC, breaking ties by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[340,167.5],\\\"sql\\\":\\\"SELECT month, MIN(administrative) AS value FROM shopping_sessions WHERE (product_related > ? OR product_duration <= ?) GROUP BY month ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT month, MIN(administrative) AS value FROM shopping_sessions GROUP BY month ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[340],\\\"sql\\\":\\\"SELECT month, MIN(administrative) AS value FROM shopping_sessions WHERE (product_related > ?) GROUP BY month ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[340,167.5],\\\"sql\\\":\\\"SELECT month, MIN(administrative) AS value FROM shopping_sessions WHERE (product_related > ? AND product_duration <= ?) GROUP BY month ORDER BY value DESC, month ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_shoppers","split":"dev","sql":"SELECT month, MIN(administrative) AS value FROM shopping_sessions WHERE (product_related > ? AND product_duration <= ?) GROUP BY month ORDER BY value DESC, month ASC LIMIT 5","sql_parameters":"[340,167.5]","state":"{\"question\":\"Return the minimum of administrative for shopping sessions where (product_related is greater than 340 and product_duration is at most 167.5), grouped by month; return at most 5 groups ordered by aggregate value DESC, breaking ties by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}130{"category":"single_table/aggregate","domain":"sensor","family_id":"252b3774a1110712bfc58ff0","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"4faea1f650781cda84825424bced897ea8c76c8cd9fcb79d4478fe727b505674","language":"en","license":"CC-BY-4.0","query":"Return the maximum of eps1_mean for hydraulic cycles where (ts1_mean is at most 44.84172).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[44.84172],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[44.84172],\\\"sql\\\":\\\"SELECT SUM(eps1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[44.84172],\\\"sql\\\":\\\"SELECT MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[44.84172],\\\"sql\\\":\\\"SELECT AVG(eps1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[2582.46763]]","source":"hydraulic","split":"dev","sql":"SELECT MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ?)","sql_parameters":"[44.84172]","state":"{\"question\":\"Return the maximum of eps1_mean for hydraulic cycles where (ts1_mean is at most 44.84172).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}131{"category":"single_table/and/aggregate","domain":"commerce","family_id":"4391dd12dcee2bb07b45345c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"4bbb4f4dd45fd286e134face732ec80e84c3351e6163d67338e24f1af2a178af","language":"en","license":"CC-BY-4.0","query":"Return the sum of product_related for shopping sessions where (region equals 2 and traffic_type equals 18).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2,18],\\\"sql\\\":\\\"SELECT SUM(product_related) AS value FROM shopping_sessions WHERE (region = ? OR traffic_type = ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2,18],\\\"sql\\\":\\\"SELECT SUM(product_related) AS value FROM shopping_sessions WHERE (region = ? AND traffic_type = ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2,18],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (region = ? AND traffic_type = ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT SUM(product_related) AS value FROM shopping_sessions\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[16]]","source":"online_shoppers","split":"dev","sql":"SELECT SUM(product_related) AS value FROM shopping_sessions WHERE (region = ? AND traffic_type = ?)","sql_parameters":"[2,18]","state":"{\"question\":\"Return the sum of product_related for shopping sessions where (region equals 2 and traffic_type equals 18).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}132{"category":"single_table/and/grouped","domain":"commerce","family_id":"373d5eb179267e4012b618d5","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"9ecc90bdd92d6aac574036f0e61edd8fecb4fbca5d0a5558d3102c66c74ee19c","language":"en","license":"CC-BY-4.0","query":"Return the maximum of product_related for shopping sessions where (region equals 4 and traffic_type equals 18), grouped by visitor_type, ordered by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[4,18],\\\"sql\\\":\\\"SELECT visitor_type, MAX(product_related) AS value FROM shopping_sessions WHERE (region = ? OR traffic_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[4,18],\\\"sql\\\":\\\"SELECT visitor_type, MAX(product_related) AS value FROM shopping_sessions WHERE (region = ? AND traffic_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT visitor_type, MAX(product_related) AS value FROM shopping_sessions GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[4],\\\"sql\\\":\\\"SELECT visitor_type, MAX(product_related) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, MAX(product_related) AS value FROM shopping_sessions WHERE (region = ? AND traffic_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC","sql_parameters":"[4,18]","state":"{\"question\":\"Return the maximum of product_related for shopping sessions where (region equals 4 and traffic_type equals 18), grouped by visitor_type, ordered by visitor_type ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}133{"category":"single_table/or/having","domain":"commerce","family_id":"721dce39fabb6cc184edcd9b","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"c9257b7a1334778b86e082a57cf13c2949ec5c53a47e21a572d20762c137cdec","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for shopping sessions where (region equals 6 or traffic_type equals 11), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[6,11,10],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (region = ? AND traffic_type = ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[6,11,10],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (region = ? OR traffic_type = ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[6,11,10],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (region = ? OR traffic_type = ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[6,11,10],\\\"sql\\\":\\\"SELECT revenue, SUM(administrative) AS value FROM shopping_sessions WHERE (region = ? OR traffic_type = ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1,154],[0,874]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (region = ? OR traffic_type = ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3","sql_parameters":"[6,11,10]","state":"{\"question\":\"Return the number of rows for shopping sessions where (region equals 6 or traffic_type equals 11), 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\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}134{"category":"single_table/or/having","domain":"sensor","family_id":"7558a7aab22cf759076c62b8","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"6512bb219cf2e71557bf94ca58eec40878398df14d7e675fd349dc4ab47144ab","language":"en","license":"CC-BY-4.0","query":"Return the average of fs1_mean for hydraulic cycles where (eps1_mean is greater than 2544.76 or vs1_mean is greater than 0.71948), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2544.76,0.71948,10],\\\"sql\\\":\\\"SELECT cooler, AVG(fs1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ? AND vs1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2544.76,0.71948,10],\\\"sql\\\":\\\"SELECT cooler, AVG(fs1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ? OR vs1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2544.76,0.71948,10],\\\"sql\\\":\\\"SELECT cooler, AVG(fs1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ? OR vs1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2544.76,0.71948,10],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (eps1_mean > ? OR vs1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[3,3.4261097570850203],[100,6.507967990654206]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, AVG(fs1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ? OR vs1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value ASC, cooler ASC LIMIT 3","sql_parameters":"[2544.76,0.71948,10]","state":"{\"question\":\"Return the average of fs1_mean for hydraulic cycles where (eps1_mean is greater than 2544.76 or vs1_mean is greater than 0.71948), 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\":\"INTEGER\",\"cooler\":\"INTEGER\",\"cycle_id\":\"INTEGER\",\"eps1_mean\":\"REAL\",\"fs1_mean\":\"REAL\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}135{"category":"single_table/and/grouped","domain":"sensor","family_id":"ebe831fa20f20c0d76ee4652","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"b88aa3f0cd024caf1dab951cb0bedf81262122fa9461a2e1a1e9ba66e1f42d7c","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for hydraulic cycles where (ps2_mean is at most 107.72581 and fs1_mean is at most 6.63763), grouped by pump_leakage, ordered by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[107.72581,6.63763],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND fs1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[107.72581,6.63763],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR fs1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[107.72581,6.63763],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND fs1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[107.72581,6.63763],\\\"sql\\\":\\\"SELECT pump_leakage, AVG(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND fs1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,527],[1,204],[2,208]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND fs1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC","sql_parameters":"[107.72581,6.63763]","state":"{\"question\":\"Return the number of rows for hydraulic cycles where (ps2_mean is at most 107.72581 and fs1_mean is at most 6.63763), 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_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}136{"category":"single_table/having","domain":"commerce","family_id":"9b15dfbc06284bf4111570f5","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"a77cfd5c164ad62a34dba2dacdbdbe169b0ca152f8a01029c07a0ae13bff6881","language":"en","license":"CC-BY-4.0","query":"Return the maximum of product_related for shopping sessions where (region equals 4), grouped by month, keeping only groups with at least 10 matching rows; return at most 3 groups ordered by aggregate value ASC, breaking ties by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[4,10],\\\"sql\\\":\\\"SELECT month, MAX(product_related) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value ASC, month ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[4,10],\\\"sql\\\":\\\"SELECT month, MAX(product_related) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[4,10],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value ASC, month ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[4,10],\\\"sql\\\":\\\"SELECT month, SUM(product_related) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value ASC, month ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Feb\",36],[\"Mar\",68],[\"Aug\",153]]","source":"online_shoppers","split":"dev","sql":"SELECT month, MAX(product_related) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value ASC, month ASC LIMIT 3","sql_parameters":"[4,10]","state":"{\"question\":\"Return the maximum of product_related for shopping sessions where (region equals 4), grouped by month, keeping only groups with at least 10 matching rows; return at most 3 groups ordered by aggregate value ASC, breaking ties by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}137{"category":"single_table/and/grouped","domain":"sensor","family_id":"942f86a9241e80e5341cf401","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"7332e621ee18388f76b20559034c9a8641ba630f909ca9818923232783f92650","language":"en","license":"CC-BY-4.0","query":"Return the average of vs1_mean for hydraulic cycles where (ps1_mean is greater than 158.27043 and ps2_mean is at most 109.23171), grouped by pump_leakage, ordered by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[158.27043,109.23171],\\\"sql\\\":\\\"SELECT pump_leakage, AVG(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? OR ps2_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[158.27043,109.23171],\\\"sql\\\":\\\"SELECT pump_leakage, AVG(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? AND ps2_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[158.27043,109.23171],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? AND ps2_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[158.27043,109.23171],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? AND ps2_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,0.5983798708010336],[1,0.5885213008130081],[2,0.5697434412955465]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, AVG(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? AND ps2_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC","sql_parameters":"[158.27043,109.23171]","state":"{\"question\":\"Return the average of vs1_mean for hydraulic cycles where (ps1_mean is greater than 158.27043 and ps2_mean is at most 109.23171), 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_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}138{"category":"join/or/ranked","domain":"commerce","family_id":"766d84f6ca30b4ec4437c692","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"180d4d34e86c7ad0d8cafd285af91b4978e2cf1d52b4e2d0d8dd7ad8093e81d5","language":"en","license":"CC-BY-4.0","query":"Return the average of l.unit_price for retail lines joined to their invoices where (i.customer_id equals '12366' or l.quantity is at most 92), grouped by i.invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12366\\\",92],\\\"sql\\\":\\\"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.customer_id = ? OR l.quantity <= ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12366\\\",92],\\\"sql\\\":\\\"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.customer_id = ? AND l.quantity <= ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12366\\\",92],\\\"sql\\\":\\\"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.customer_id = ? OR l.quantity <= ?) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12366\\\",92],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR l.quantity <= ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-01-18\",1.1466666666666667],[\"2011-07-10\",1.158],[\"2010-02-07\",1.262857142857143]]","source":"online_retail_ii","split":"dev","sql":"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.customer_id = ? OR l.quantity <= ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3","sql_parameters":"[\"12366\",92]","state":"{\"question\":\"Return the average of l.unit_price for retail lines joined to their invoices where (i.customer_id equals '12366' or l.quantity is at most 92), grouped by i.invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}139{"category":"single_table/and/having","domain":"commerce","family_id":"c7df8902abc6c4eb27788cae","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"e247ac43e3849c2b2eb80f1ececc0e2b4671b01c2055000384a62cb892fca42a","language":"en","license":"CC-BY-4.0","query":"Return the minimum of product_duration for shopping sessions where (visitor_type equals 'New_Visitor' and administrative is greater than 7), grouped by month, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"New_Visitor\\\",7,2],\\\"sql\\\":\\\"SELECT month, MIN(product_duration) AS value FROM shopping_sessions WHERE (visitor_type = ? OR administrative > ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"New_Visitor\\\",7,2],\\\"sql\\\":\\\"SELECT month, MIN(product_duration) AS value FROM shopping_sessions WHERE (visitor_type = ? AND administrative > ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value ASC, month ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"New_Visitor\\\",7,2],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (visitor_type = ? AND administrative > ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"New_Visitor\\\",7,2],\\\"sql\\\":\\\"SELECT month, MIN(product_duration) AS value FROM shopping_sessions WHERE (visitor_type = ? AND administrative > ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Mar\",399.6939394],[\"Jul\",205.8566667],[\"Dec\",156.5],[\"June\",135.0666667],[\"Sep\",131.9785714]]","source":"online_shoppers","split":"dev","sql":"SELECT month, MIN(product_duration) AS value FROM shopping_sessions WHERE (visitor_type = ? AND administrative > ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5","sql_parameters":"[\"New_Visitor\",7,2]","state":"{\"question\":\"Return the minimum of product_duration for shopping sessions where (visitor_type equals 'New_Visitor' and administrative is greater than 7), grouped by month, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}140{"category":"join/date/or/ranked","domain":"commerce","family_id":"f9d74d52389f27cf36a9f88d","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"5671d2fbb4ce84c8c14cf46a66d47c0cb546c3cdb9f1471fc4b37bd156185709","language":"en","license":"CC-BY-4.0","query":"Return the maximum of l.quantity for retail lines joined to their invoices where (i.country equals 'Cyprus' or i.invoice_date is on or after '2011-05-10'), grouped by i.invoice_date; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",\\\"2011-05-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.invoice_date >= ?) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",\\\"2011-05-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 = ? OR i.invoice_date >= ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",\\\"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.country = ? OR i.invoice_date >= ?) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",\\\"2011-05-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 = ? OR i.invoice_date >= ?) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-05-23\",2700],[\"2011-11-03\",2100],[\"2011-11-22\",1600],[\"2011-10-04\",1540],[\"2011-07-07\",1440]]","source":"online_retail_ii","split":"dev","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 = ? OR i.invoice_date >= ?) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5","sql_parameters":"[\"Cyprus\",\"2011-05-10\"]","state":"{\"question\":\"Return the maximum of l.quantity for retail lines joined to their invoices where (i.country equals 'Cyprus' or i.invoice_date is on or after '2011-05-10'), 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_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}141{"category":"single_table/or/aggregate","domain":"sensor","family_id":"a75ca836d5179a63b400cd97","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"98a4b6154f28607d93bcecc20df1b0aadaca2c0d0826f256278a5a11162939cd","language":"en","license":"CC-BY-4.0","query":"Return the minimum of vs1_mean for hydraulic cycles where (pump_leakage equals 2 or ps2_mean is greater than 107.72581).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2,107.72581],\\\"sql\\\":\\\"SELECT MIN(vs1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? AND ps2_mean > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2,107.72581],\\\"sql\\\":\\\"SELECT MIN(vs1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? OR ps2_mean > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2,107.72581],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? OR ps2_mean > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2,107.72581],\\\"sql\\\":\\\"SELECT SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? OR ps2_mean > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0.52437]]","source":"hydraulic","split":"dev","sql":"SELECT MIN(vs1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? OR ps2_mean > ?)","sql_parameters":"[2,107.72581]","state":"{\"question\":\"Return the minimum of vs1_mean for hydraulic cycles where (pump_leakage equals 2 or ps2_mean is greater than 107.72581).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}142{"category":"single_table/and/ranked","domain":"commerce","family_id":"1819176c4df15a507e584a11","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"aa77b8cb274f89e6be044f4c5fce0e3f83ee32bf7208e983b47f621c34697ad9","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for shopping sessions where (traffic_type equals 13 and product_related is at most 226), grouped by month; return at most 3 groups ordered by aggregate value ASC, breaking ties by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[13,226],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (traffic_type = ? OR product_related <= ?) GROUP BY month ORDER BY value ASC, month ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[13,226],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (traffic_type = ? AND product_related <= ?) GROUP BY month ORDER BY value DESC, month ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[13,226],\\\"sql\\\":\\\"SELECT month, SUM(administrative) AS value FROM shopping_sessions WHERE (traffic_type = ? AND product_related <= ?) GROUP BY month ORDER BY value ASC, month ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[13,226],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (traffic_type = ? AND product_related <= ?) GROUP BY month ORDER BY value ASC, month ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Oct\",24],[\"Mar\",25],[\"Aug\",27]]","source":"online_shoppers","split":"dev","sql":"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (traffic_type = ? AND product_related <= ?) GROUP BY month ORDER BY value ASC, month ASC LIMIT 3","sql_parameters":"[13,226]","state":"{\"question\":\"Return the number of rows for shopping sessions where (traffic_type equals 13 and product_related is at most 226), grouped by month; return at most 3 groups ordered by aggregate value ASC, breaking ties by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}143{"category":"single_table/or/ranked","domain":"sensor","family_id":"2700310afb6fdfd07469caf3","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"696e9b7999e51e83d264063edfefb896c0838663403a8ad11e8170263cd4e6af","language":"en","license":"CC-BY-4.0","query":"Return the minimum of fs1_mean for hydraulic cycles where (ps2_mean is greater than 107.17314 or vs1_mean is greater than 0.71948), grouped by pump_leakage; return at most 5 groups ordered by aggregate value DESC, breaking ties by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[107.17314,0.71948],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? OR vs1_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[107.17314,0.71948],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? OR vs1_mean > ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[107.17314,0.71948],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? OR vs1_mean > ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[107.17314,0.71948],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? OR vs1_mean > ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,2.12356],[1,2.07884],[2,2.01857]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, MIN(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? OR vs1_mean > ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 5","sql_parameters":"[107.17314,0.71948]","state":"{\"question\":\"Return the minimum of fs1_mean for hydraulic cycles where (ps2_mean is greater than 107.17314 or vs1_mean is greater than 0.71948), 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\",\"eps1_mean\":\"REAL\",\"fs1_mean\":\"REAL\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}144{"category":"join/date/or/ranked","domain":"commerce","family_id":"a3e21abc27e37863c6144fed","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"d5276448e6756550de0c387667493ece083b2618ea5e33f8f86e49ade1a1706e","language":"en","license":"CC-BY-4.0","query":"Return the maximum of l.unit_price for retail lines joined to their invoices where (l.quantity is greater than 25 or i.invoice_date is on or after '2010-02-18'), grouped by i.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[25,\\\"2010-02-18\\\"],\\\"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.quantity > ? OR i.invoice_date >= ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[25,\\\"2010-02-18\\\"],\\\"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.quantity > ? AND i.invoice_date >= ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[25,\\\"2010-02-18\\\"],\\\"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.quantity > ? OR i.invoice_date >= ?) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[25,\\\"2010-02-18\\\"],\\\"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.invoice_date >= ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Canada\",1.25],[\"USA\",2.55],[\"Cyprus\",7.95]]","source":"online_retail_ii","split":"dev","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.quantity > ? OR i.invoice_date >= ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3","sql_parameters":"[25,\"2010-02-18\"]","state":"{\"question\":\"Return the maximum of l.unit_price for retail lines joined to their invoices where (l.quantity is greater than 25 or i.invoice_date is on or after '2010-02-18'), grouped by i.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}145{"category":"single_table/ranked","domain":"commerce","family_id":"e17ad2e75d4c00fd678533cf","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"2a8ae53703319477e934813a4f6e3c6018199496390a0542f0deaaebebe02c66","language":"en","license":"CC-BY-4.0","query":"Return the average of product_duration for shopping sessions where (product_related is greater than 31), grouped by month; return at most 5 groups ordered by aggregate value DESC, breaking ties by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[31],\\\"sql\\\":\\\"SELECT month, AVG(product_duration) AS value FROM shopping_sessions WHERE (product_related > ?) GROUP BY month ORDER BY value ASC, month ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[31],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (product_related > ?) GROUP BY month ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[31],\\\"sql\\\":\\\"SELECT month, SUM(product_duration) AS value FROM shopping_sessions WHERE (product_related > ?) GROUP BY month ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[31],\\\"sql\\\":\\\"SELECT month, AVG(product_duration) AS value FROM shopping_sessions WHERE (product_related > ?) GROUP BY month ORDER BY value DESC, month ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Nov\",3416.298188233517],[\"June\",2947.4845809989247],[\"Jul\",2889.972902298561],[\"Sep\",2786.1945441277776],[\"Feb\",2679.8841065583333]]","source":"online_shoppers","split":"dev","sql":"SELECT month, AVG(product_duration) AS value FROM shopping_sessions WHERE (product_related > ?) GROUP BY month ORDER BY value DESC, month ASC LIMIT 5","sql_parameters":"[31]","state":"{\"question\":\"Return the average of product_duration for shopping sessions where (product_related is greater than 31), grouped by month; return at most 5 groups ordered by aggregate value DESC, breaking ties by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}146{"category":"single_table/date/ranked","domain":"commerce","family_id":"99157554a92b54da324c3cf5","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"d9aeeee299a140cb21044921da04d611c865ea972fc40d16bdb8e433601856ae","language":"en","license":"CC-BY-4.0","query":"Return the minimum of unit_price for retail invoice lines where (invoice_date is before '2010-07-14'), grouped by country; return at most 3 groups ordered by aggregate value ASC, breaking ties by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT country, MIN(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT country, MIN(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"United Kingdom\",0.06],[\"Sweden\",0.09],[\"EIRE\",0.21]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, MIN(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3","sql_parameters":"[\"2010-07-14\"]","state":"{\"question\":\"Return the minimum of unit_price for retail invoice lines where (invoice_date is before '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\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}147{"category":"single_table/or/aggregate","domain":"sensor","family_id":"5e3dc36557c24229467ae909","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"b863cd598c60b23d95b329afa12740b53ac213ca11b9badf6b8d6b6d2eb9778c","language":"en","license":"CC-BY-4.0","query":"Return the average of ps2_mean for hydraulic cycles where (fs1_mean is at most 6.57291 or ts1_mean is at most 56.73035).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[6.57291,56.73035],\\\"sql\\\":\\\"SELECT AVG(ps2_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? AND ts1_mean <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[6.57291,56.73035],\\\"sql\\\":\\\"SELECT AVG(ps2_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? OR ts1_mean <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[6.57291,56.73035],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? OR ts1_mean <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[6.57291,56.73035],\\\"sql\\\":\\\"SELECT SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? OR ts1_mean <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[109.39627463570127]]","source":"hydraulic","split":"dev","sql":"SELECT AVG(ps2_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? OR ts1_mean <= ?)","sql_parameters":"[6.57291,56.73035]","state":"{\"question\":\"Return the average of ps2_mean for hydraulic cycles where (fs1_mean is at most 6.57291 or ts1_mean is at most 56.73035).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}148{"category":"single_table/date/having","domain":"commerce","family_id":"b76645b3ae7dfabb48d93d1e","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"7b38982409ca4e30bf8f4dd73d05d08d5ab88e75b4ff3dacbf471b2a47a3c27f","language":"en","license":"CC-BY-4.0","query":"Return the sum of quantity for retail invoice lines where (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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\",10],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\",10],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\",10],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Bahrain\",97],[\"Norway\",114],[\"Portugal\",173]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3","sql_parameters":"[\"2010-02-18\",10]","state":"{\"question\":\"Return the sum of quantity for retail invoice lines where (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.\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}149{"category":"single_table/and/ranked","domain":"commerce","family_id":"8bb0a0fcc53c237e3e633b38","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"621e0bdc38f5eda2c63d2a673c03442137cd25051b3ca0a2efb8cc98b4dc3649","language":"en","license":"CC-BY-4.0","query":"Return the minimum of unit_price for retail invoice lines where (country equals 'Denmark' and quantity is greater than 92), grouped by country; return at most 5 groups ordered by aggregate value DESC, breaking ties by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Denmark\\\",92],\\\"sql\\\":\\\"SELECT country, MIN(unit_price) AS value FROM retail_lines WHERE (country = ? AND quantity > ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Denmark\\\",92],\\\"sql\\\":\\\"SELECT country, MIN(unit_price) AS value FROM retail_lines WHERE (country = ? OR quantity > ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Denmark\\\",92],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND quantity > ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Denmark\\\",92],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND quantity > ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Denmark\",0.72]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, MIN(unit_price) AS value FROM retail_lines WHERE (country = ? AND quantity > ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5","sql_parameters":"[\"Denmark\",92]","state":"{\"question\":\"Return the minimum of unit_price for retail invoice lines where (country equals 'Denmark' and quantity is greater than 92), 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\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}150{"category":"single_table/and/ranked","domain":"commerce","family_id":"23aa76af1d20fd9d9f215192","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"7a8fda390bb7acdf271e3a108293e8db0f80a5d79263b70c5df4dd3c77c440d3","language":"en","license":"CC-BY-4.0","query":"Return the sum of product_duration for shopping sessions where (visitor_type equals 'Other' and traffic_type equals 17), grouped by visitor_type; return at most 5 groups ordered by aggregate value DESC, breaking ties by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Other\\\",17],\\\"sql\\\":\\\"SELECT visitor_type, SUM(product_duration) AS value FROM shopping_sessions WHERE (visitor_type = ? OR traffic_type = ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Other\\\",17],\\\"sql\\\":\\\"SELECT visitor_type, SUM(product_duration) AS value FROM shopping_sessions WHERE (visitor_type = ? AND traffic_type = ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT visitor_type, SUM(product_duration) AS value FROM shopping_sessions GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Other\\\"],\\\"sql\\\":\\\"SELECT visitor_type, SUM(product_duration) AS value FROM shopping_sessions WHERE (visitor_type = ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, SUM(product_duration) AS value FROM shopping_sessions WHERE (visitor_type = ? AND traffic_type = ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5","sql_parameters":"[\"Other\",17]","state":"{\"question\":\"Return the sum of product_duration for shopping sessions where (visitor_type equals 'Other' and traffic_type equals 17), 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\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}151{"category":"single_table/date/having","domain":"commerce","family_id":"f045cb6a86f4de7c3ff42088","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"0ed51a45773ee930a291122c5a59e7a9a683a754ca7af52c534b0b663d5f7beb","language":"en","license":"CC-BY-4.0","query":"Return the minimum of unit_price for retail invoice lines where (invoice_date is before '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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT country, MIN(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\",10],\\\"sql\\\":\\\"SELECT country, MIN(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\",10],\\\"sql\\\":\\\"SELECT country, MIN(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\",10],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"United Kingdom\",0.06],[\"Germany\",0.42],[\"Sweden\",0.55]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, MIN(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3","sql_parameters":"[\"2010-02-18\",10]","state":"{\"question\":\"Return the minimum of unit_price for retail invoice lines where (invoice_date is before '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.\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}152{"category":"single_table/date/or/aggregate","domain":"commerce","family_id":"95203a5cad98d2c658812c72","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"4af7757a95209870ae151c2420b7891a43d888f37316b5dd89d3a847fc9b50f3","language":"en","license":"CC-BY-4.0","query":"Return the sum of quantity for retail invoice lines where (unit_price is greater than 4.77 or invoice_date is before '2010-12-02').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[4.77,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT SUM(quantity) AS value FROM retail_lines WHERE (unit_price > ? AND invoice_date < ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[4.77,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date < ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[4.77,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT SUM(quantity) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date < ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[4.77,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT AVG(quantity) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date < ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[674842]]","source":"online_retail_ii","split":"dev","sql":"SELECT SUM(quantity) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date < ?)","sql_parameters":"[4.77,\"2010-12-02\"]","state":"{\"question\":\"Return the sum of quantity for retail invoice lines where (unit_price is greater than 4.77 or invoice_date is before '2010-12-02').\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}153{"category":"single_table/grouped","domain":"commerce","family_id":"25eab7326f5a86b93788cdd9","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"49510349fc1a1b8c6e98d72e940ec67ff2621625d0420998d4a494a825d28147","language":"en","license":"CC-BY-4.0","query":"Return the average of quantity for retail invoice lines where (quantity is at most 1800), grouped by country, ordered by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[1800],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (quantity <= ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[1800],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (quantity <= ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[1800],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (quantity <= ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[1800],\\\"sql\\\":\\\"SELECT country, MIN(quantity) AS value FROM retail_lines WHERE (quantity <= ?) GROUP BY country ORDER BY country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",15.127659574468085],[\"Austria\",12.722222222222221],[\"Bahrain\",8.818181818181818],[\"Belgium\",12.921052631578947],[\"Canada\",10.4],[\"Channel Islands\",103.41666666666667],[\"Cyprus\",47.125],[\"Denmark\",59.8],[\"EIRE\",66.15196078431373],[\"Finland\",38.35616438356164],[\"France\",25.04201680672269],[\"Germany\",19.208092485549134],[\"Israel\",4.25],[\"Italy\",18.4],[\"Japan\",135.31578947368422],[\"Netherlands\",66.23728813559322],[\"Norway\",7.125],[\"Poland\",26.166666666666668],[\"Portugal\",10.428571428571429],[\"Singapore\",1.0],[\"Spain\",54.77450980392157],[\"Sweden\",118.23655913978494],[\"Switzerland\",25.7027027027027],[\"USA\",12.0],[\"United Arab Emirates\",1.0],[\"United Kingdom\",40.25494922353499]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (quantity <= ?) GROUP BY country ORDER BY country ASC","sql_parameters":"[1800]","state":"{\"question\":\"Return the average of quantity for retail invoice lines where (quantity is at most 1800), 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\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}154{"category":"single_table/ranked","domain":"commerce","family_id":"21cbc8c5767e91bac0447528","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"03658fbf2d68834c2ace48e2fb55caf825cdabe87aa42dd5cbe99764de4d026c","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for shopping sessions where (region equals 1), grouped by visitor_type; return at most 3 groups ordered by aggregate value ASC, breaking ties by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[1],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[1],\\\"sql\\\":\\\"SELECT visitor_type, SUM(administrative) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[1],\\\"sql\\\":\\\"SELECT visitor_type, AVG(administrative) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[1],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Other\",8],[\"New_Visitor\",657],[\"Returning_Visitor\",4115]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3","sql_parameters":"[1]","state":"{\"question\":\"Return the number of rows for shopping sessions where (region equals 1), grouped by visitor_type; return at most 3 groups ordered by aggregate value ASC, breaking ties by visitor_type ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}155{"category":"single_table/or/ranked","domain":"commerce","family_id":"1d543178ff8ff8b0c13b9eac","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"710212bc2fcf7266c42e3aff407f321126df020c62ba9d595cd6bee9b8ec93b3","language":"en","license":"CC-BY-4.0","query":"Return the minimum of product_duration for shopping sessions where (administrative is greater than 2 or product_duration is greater than 167.5), grouped by revenue; return at most 5 groups ordered by aggregate value DESC, breaking ties by revenue ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2,167.5],\\\"sql\\\":\\\"SELECT revenue, MIN(product_duration) AS value FROM shopping_sessions WHERE (administrative > ? OR product_duration > ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2,167.5],\\\"sql\\\":\\\"SELECT revenue, MIN(product_duration) AS value FROM shopping_sessions WHERE (administrative > ? AND product_duration > ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2,167.5],\\\"sql\\\":\\\"SELECT revenue, MIN(product_duration) AS value FROM shopping_sessions WHERE (administrative > ? OR product_duration > ?) GROUP BY revenue ORDER BY value ASC, revenue ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2,167.5],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (administrative > ? OR product_duration > ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1,5.0],[0,0.0]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, MIN(product_duration) AS value FROM shopping_sessions WHERE (administrative > ? OR product_duration > ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5","sql_parameters":"[2,167.5]","state":"{\"question\":\"Return the minimum of product_duration for shopping sessions where (administrative is greater than 2 or product_duration is greater than 167.5), 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_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}156{"category":"join/ranked","domain":"commerce","family_id":"b42d2753c60c3be6f340a5c1","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"f4da592f2680d71341f42cd3e71123c15b9f6933a4a76d03ccdb9ff51510a734","language":"en","license":"CC-BY-4.0","query":"Return the maximum of l.quantity for retail lines joined to their invoices where (i.customer_id equals '12348'), grouped by i.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12348\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12348\\\"],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12348\\\"],\\\"sql\\\":\\\"SELECT i.country, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12348\\\"],\\\"sql\\\":\\\"SELECT i.country, MAX(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Finland\",144]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, MAX(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3","sql_parameters":"[\"12348\"]","state":"{\"question\":\"Return the maximum of l.quantity for retail lines joined to their invoices where (i.customer_id equals '12348'), grouped by i.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}157{"category":"single_table/and/having","domain":"sensor","family_id":"d0e1a5926b5a45872be3af67","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"911c0d982cf73ef37c533b82ff50f3b1105d1132ba8a2bcdf03b5ae69cd7cbf4","language":"en","license":"CC-BY-4.0","query":"Return the average of ts1_mean for hydraulic cycles where (ts1_mean is greater than 36.33327 and vs1_mean is at most 0.71948), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[36.33327,0.71948,2],\\\"sql\\\":\\\"SELECT valve, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean > ? AND vs1_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[36.33327,0.71948,2],\\\"sql\\\":\\\"SELECT valve, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean > ? OR vs1_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[36.33327,0.71948,2],\\\"sql\\\":\\\"SELECT valve, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean > ? AND vs1_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[36.33327,0.71948,2],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (ts1_mean > ? AND vs1_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[100,48.86895053278689],[80,48.462687114427865],[90,48.29391868686869],[73,47.558496019417476]]","source":"hydraulic","split":"dev","sql":"SELECT valve, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean > ? AND vs1_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 5","sql_parameters":"[36.33327,0.71948,2]","state":"{\"question\":\"Return the average of ts1_mean for hydraulic cycles where (ts1_mean is greater than 36.33327 and vs1_mean is at most 0.71948), 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\":{\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}158{"category":"single_table/or/aggregate","domain":"commerce","family_id":"0b075c8afdfd2df248a88050","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"5d32b1ae8f0e6d81376786795f594f805db9d1a687c5a12f86af364402951e6d","language":"en","license":"CC-BY-4.0","query":"Return the sum of administrative for shopping sessions where (administrative is greater than 2 or product_duration is at most 472.4166667).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2,472.4166667],\\\"sql\\\":\\\"SELECT SUM(administrative) AS value FROM shopping_sessions WHERE (administrative > ? AND product_duration <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2,472.4166667],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (administrative > ? OR product_duration <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2,472.4166667],\\\"sql\\\":\\\"SELECT SUM(administrative) AS value FROM shopping_sessions WHERE (administrative > ? OR product_duration <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2,472.4166667],\\\"sql\\\":\\\"SELECT AVG(administrative) AS value FROM shopping_sessions WHERE (administrative > ? OR product_duration <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[26206]]","source":"online_shoppers","split":"dev","sql":"SELECT SUM(administrative) AS value FROM shopping_sessions WHERE (administrative > ? OR product_duration <= ?)","sql_parameters":"[2,472.4166667]","state":"{\"question\":\"Return the sum of administrative for shopping sessions where (administrative is greater than 2 or product_duration is at most 472.4166667).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}159{"category":"single_table/date/and/grouped","domain":"commerce","family_id":"bae8a870461f00c7c028c653","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"ff928bd3a4e84de3992b8c861ea4d84839822d8c6fa75cd7d85f7fa89d96c85b","language":"en","license":"CC-BY-4.0","query":"Return the average of quantity for retail invoice lines where (quantity is greater than 1800 and invoice_date is on or after '2010-12-02'), grouped by country, ordered by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[1800,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (quantity > ? OR invoice_date >= ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[1800,\\\"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_3\":\"{\\\"parameters\\\":[1800,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (quantity > ? AND invoice_date >= ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[1800,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (quantity > ? AND invoice_date >= ?) GROUP BY country ORDER BY country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"United Kingdom\",2450.0]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (quantity > ? AND invoice_date >= ?) GROUP BY country ORDER BY country ASC","sql_parameters":"[1800,\"2010-12-02\"]","state":"{\"question\":\"Return the average of quantity for retail invoice lines where (quantity is greater than 1800 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\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}160{"category":"single_table/date/or/having","domain":"commerce","family_id":"a0e497e15131189d67533202","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"a860d12176835b6064f657e4d5d56fef335f9033121450ffb693a40104e25e74","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (quantity is at most 229 or invoice_date is on or after '2010-07-14'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[229,\\\"2010-07-14\\\",10],\\\"sql\\\":\\\"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[229,\\\"2010-07-14\\\",10],\\\"sql\\\":\\\"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date >= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[229,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[229,\\\"2010-07-14\\\",10],\\\"sql\\\":\\\"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date >= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-08-17\",3.39],[\"2009-12-23\",3.75],[\"2010-01-17\",4.95]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date >= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3","sql_parameters":"[229,\"2010-07-14\",10]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines where (quantity is at most 229 or invoice_date is on or after '2010-07-14'), 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\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}161{"category":"join/date/or/grouped","domain":"commerce","family_id":"1d45c2d6231006f8986d2c56","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"705fd330a9bbb3d43d8b5f87fc8b1f7655b54f046f7f5bef9348c96b060a60ba","language":"en","license":"CC-BY-4.0","query":"Return the maximum of l.quantity for retail lines joined to their invoices where (l.quantity is greater than 25 or i.invoice_date is on or after '2011-09-29'), grouped by i.invoice_date, ordered by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[25,\\\"2011-09-29\\\"],\\\"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 i.invoice_date >= ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[25,\\\"2011-09-29\\\"],\\\"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 > ? AND i.invoice_date >= ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[25,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) 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.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[25,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.quantity) 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.invoice_date ORDER BY i.invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-01\",216],[\"2009-12-02\",288],[\"2009-12-03\",5184],[\"2009-12-04\",300],[\"2009-12-05\",144],[\"2009-12-06\",75],[\"2009-12-07\",288],[\"2009-12-08\",936],[\"2009-12-09\",144],[\"2009-12-10\",200],[\"2009-12-11\",40],[\"2009-12-13\",120],[\"2009-12-14\",96],[\"2009-12-15\",480],[\"2009-12-16\",200],[\"2009-12-17\",216],[\"2009-12-18\",168],[\"2009-12-20\",192],[\"2009-12-21\",200],[\"2009-12-22\",336],[\"2009-12-23\",240],[\"2010-01-04\",300],[\"2010-01-05\",200],[\"2010-01-07\",832],[\"2010-01-08\",600],[\"2010-01-10\",300],[\"2010-01-11\",576],[\"2010-01-12\",720],[\"2010-01-13\",288],[\"2010-01-14\",150],[\"2010-01-15\",100],[\"2010-01-17\",192],[\"2010-01-18\",48],[\"2010-01-19\",100],[\"2010-01-20\",240],[\"2010-01-21\",144],[\"2010-01-22\",80],[\"2010-01-24\",48],[\"2010-01-25\",60],[\"2010-01-27\",1440],[\"2010-01-28\",96],[\"2010-01-29\",288],[\"2010-01-31\",96],[\"2010-02-01\",144],[\"2010-02-02\",144],[\"2010-02-03\",96],[\"2010-02-04\",252],[\"2010-02-05\",200],[\"2010-02-07\",720],[\"2010-02-08\",96],[\"2010-02-09\",150],[\"2010-02-10\",48],[\"2010-02-11\",384],[\"2010-02-12\",600],[\"2010-02-14\",192],[\"2010-02-15\",100],[\"2010-02-16\",288],[\"2010-02-17\",720],[\"2010-02-18\",288],[\"2010-02-19\",1800],[\"2010-02-21\",192],[\"2010-02-22\",208],[\"2010-02-23\",100],[\"2010-02-24\",300],[\"2010-02-25\",480],[\"2010-02-26\",300],[\"2010-02-28\",256],[\"2010-03-01\",240],[\"2010-03-02\",120],[\"2010-03-03\",64],[\"2010-03-04\",240],[\"2010-03-05\",537],[\"2010-03-07\",48],[\"2010-03-08\",400],[\"2010-03-09\",144],[\"2010-03-10\",500],[\"2010-03-11\",96],[\"2010-03-12\",50],[\"2010-03-14\",96],[\"2010-03-15\",600],[\"2010-03-16\",104],[\"2010-03-17\",480],[\"2010-03-18\",720],[\"2010-03-19\",864],[\"2010-03-21\",300],[\"2010-03-22\",480],[\"2010-03-23\",10000],[\"2010-03-24\",384],[\"2010-03-25\",96],[\"2010-03-26\",48],[\"2010-03-28\",96],[\"2010-03-29\",816],[\"2010-03-30\",360],[\"2010-03-31\",144],[\"2010-04-01\",648],[\"2010-04-06\",720],[\"2010-04-07\",144],[\"2010-04-08\",288],[\"2010-04-09\",300],[\"2010-04-11\",720],[\"2010-04-12\",144],[\"2010-04-13\",96],[\"2010-04-14\",192],[\"2010-04-15\",150],[\"2010-04-16\",864],[\"2010-04-18\",144],[\"2010-04-19\",1440],[\"2010-04-20\",200],[\"2010-04-21\",144],[\"2010-04-22\",600],[\"2010-04-23\",72],[\"2010-04-25\",144],[\"2010-04-26\",432],[\"2010-04-27\",144],[\"2010-04-28\",150],[\"2010-04-29\",720],[\"2010-04-30\",90],[\"2010-05-02\",250],[\"2010-05-04\",560],[\"2010-05-05\",288],[\"2010-05-06\",576],[\"2010-05-07\",816],[\"2010-05-09\",72],[\"2010-05-10\",612],[\"2010-05-11\",80],[\"2010-05-12\",1440],[\"2010-05-13\",108],[\"2010-05-14\",1440],[\"2010-05-16\",100],[\"2010-05-17\",200],[\"2010-05-18\",5000],[\"2010-05-19\",500],[\"2010-05-20\",72],[\"2010-05-21\",100],[\"2010-05-23\",240],[\"2010-05-24\",84],[\"2010-05-25\",720],[\"2010-05-26\",720],[\"2010-05-27\",144],[\"2010-05-28\",144],[\"2010-05-30\",144],[\"2010-06-01\",144],[\"2010-06-02\",60],[\"2010-06-03\",432],[\"2010-06-04\",144],[\"2010-06-06\",48],[\"2010-06-07\",830],[\"2010-06-08\",3500],[\"2010-06-09\",384],[\"2010-06-10\",108],[\"2010-06-11\",216],[\"2010-06-13\",96],[\"2010-06-14\",120],[\"2010-06-15\",432],[\"2010-06-16\",200],[\"2010-06-17\",102],[\"2010-06-18\",60],[\"2010-06-20\",400],[\"2010-06-22\",64],[\"2010-06-23\",720],[\"2010-06-24\",120],[\"2010-06-25\",96],[\"2010-06-27\",600],[\"2010-06-28\",720],[\"2010-06-29\",400],[\"2010-06-30\",720],[\"2010-07-01\",108],[\"2010-07-04\",96],[\"2010-07-05\",200],[\"2010-07-06\",240],[\"2010-07-07\",144],[\"2010-07-08\",192],[\"2010-07-12\",144],[\"2010-07-13\",128],[\"2010-07-14\",72],[\"2010-07-15\",816],[\"2010-07-16\",240],[\"2010-07-18\",288],[\"2010-07-19\",120],[\"2010-07-20\",96],[\"2010-07-21\",100],[\"2010-07-22\",72],[\"2010-07-23\",504],[\"2010-07-25\",500],[\"2010-07-26\",288],[\"2010-07-27\",432],[\"2010-07-28\",288],[\"2010-07-29\",124],[\"2010-07-30\",324],[\"2010-08-02\",300],[\"2010-08-03\",2304],[\"2010-08-05\",360],[\"2010-08-06\",192],[\"2010-08-08\",300],[\"2010-08-09\",200],[\"2010-08-10\",200],[\"2010-08-11\",327],[\"2010-08-12\",72],[\"2010-08-13\",312],[\"2010-08-15\",1200],[\"2010-08-16\",254],[\"2010-08-17\",288],[\"2010-08-18\",60],[\"2010-08-19\",720],[\"2010-08-20\",200],[\"2010-08-22\",100],[\"2010-08-23\",100],[\"2010-08-24\",720],[\"2010-08-25\",864],[\"2010-08-26\",400],[\"2010-08-29\",48],[\"2010-08-31\",432],[\"2010-09-01\",72],[\"2010-09-02\",288],[\"2010-09-03\",7128],[\"2010-09-05\",144],[\"2010-09-06\",120],[\"2010-09-07\",288],[\"2010-09-08\",160],[\"2010-09-09\",60],[\"2010-09-10\",120],[\"2010-09-12\",480],[\"2010-09-13\",1056],[\"2010-09-14\",60],[\"2010-09-15\",96],[\"2010-09-16\",192],[\"2010-09-17\",288],[\"2010-09-19\",144],[\"2010-09-20\",768],[\"2010-09-21\",504],[\"2010-09-22\",216],[\"2010-09-23\",48],[\"2010-09-24\",60],[\"2010-09-26\",700],[\"2010-09-27\",768],[\"2010-09-28\",240],[\"2010-09-29\",100],[\"2010-09-30\",200],[\"2010-10-01\",96],[\"2010-10-03\",50],[\"2010-10-04\",720],[\"2010-10-05\",288],[\"2010-10-06\",1200],[\"2010-10-07\",200],[\"2010-10-08\",4752],[\"2010-10-10\",100],[\"2010-10-11\",192],[\"2010-10-12\",720],[\"2010-10-13\",576],[\"2010-10-14\",625],[\"2010-10-15\",216],[\"2010-10-18\",200],[\"2010-10-19\",96],[\"2010-10-20\",200],[\"2010-10-21\",168],[\"2010-10-22\",1240],[\"2010-10-24\",256],[\"2010-10-25\",144],[\"2010-10-26\",600],[\"2010-10-27\",36],[\"2010-10-28\",144],[\"2010-10-29\",144],[\"2010-10-31\",96],[\"2010-11-01\",288],[\"2010-11-02\",160],[\"2010-11-03\",384],[\"2010-11-04\",9360],[\"2010-11-05\",1152],[\"2010-11-07\",100],[\"2010-11-08\",192],[\"2010-11-09\",360],[\"2010-11-10\",1000],[\"2010-11-11\",800],[\"2010-11-12\",800],[\"2010-11-14\",40],[\"2010-11-15\",288],[\"2010-11-16\",360],[\"2010-11-17\",720],[\"2010-11-18\",200],[\"2010-11-19\",960],[\"2010-11-21\",100],[\"2010-11-22\",144],[\"2010-11-23\",204],[\"2010-11-24\",288],[\"2010-11-25\",240],[\"2010-11-26\",192],[\"2010-11-28\",144],[\"2010-11-29\",288],[\"2010-11-30\",384],[\"2010-12-01\",600],[\"2010-12-02\",2880],[\"2010-12-03\",1440],[\"2010-12-05\",144],[\"2010-12-06\",480],[\"2010-12-07\",972],[\"2010-12-08\",384],[\"2010-12-09\",1394],[\"2010-12-10\",216],[\"2010-12-12\",48],[\"2010-12-13\",480],[\"2010-12-14\",288],[\"2010-12-15\",96],[\"2010-12-16\",500],[\"2010-12-17\",192],[\"2010-12-20\",960],[\"2010-12-21\",100],[\"2010-12-22\",72],[\"2010-12-23\",48],[\"2011-01-04\",144],[\"2011-01-05\",600],[\"2011-01-06\",600],[\"2011-01-07\",600],[\"2011-01-09\",192],[\"2011-01-10\",144],[\"2011-01-11\",3114],[\"2011-01-12\",100],[\"2011-01-13\",288],[\"2011-01-14\",60],[\"2011-01-17\",400],[\"2011-01-18\",50],[\"2011-01-19\",216],[\"2011-01-20\",144],[\"2011-01-21\",288],[\"2011-01-23\",32],[\"2011-01-24\",100],[\"2011-01-25\",192],[\"2011-01-26\",720],[\"2011-01-27\",72],[\"2011-01-28\",48],[\"2011-01-31\",120],[\"2011-02-01\",130],[\"2011-02-02\",100],[\"2011-02-03\",2592],[\"2011-02-04\",432],[\"2011-02-07\",504],[\"2011-02-08\",216],[\"2011-02-10\",1296],[\"2011-02-11\",120],[\"2011-02-14\",288],[\"2011-02-15\",1500],[\"2011-02-16\",432],[\"2011-02-17\",288],[\"2011-02-18\",200],[\"2011-02-20\",250],[\"2011-02-21\",144],[\"2011-02-22\",192],[\"2011-02-23\",144],[\"2011-02-24\",72],[\"2011-02-25\",198],[\"2011-02-27\",40],[\"2011-02-28\",48],[\"2011-03-01\",192],[\"2011-03-02\",300],[\"2011-03-03\",288],[\"2011-03-04\",1200],[\"2011-03-06\",96],[\"2011-03-07\",576],[\"2011-03-08\",864],[\"2011-03-09\",600],[\"2011-03-10\",216],[\"2011-03-11\",300],[\"2011-03-14\",100],[\"2011-03-15\",160],[\"2011-03-16\",480],[\"2011-03-17\",720],[\"2011-03-18\",144],[\"2011-03-20\",2160],[\"2011-03-21\",100],[\"2011-03-22\",100],[\"2011-03-23\",200],[\"2011-03-24\",600],[\"2011-03-25\",432],[\"2011-03-27\",90],[\"2011-03-28\",150],[\"2011-03-29\",100],[\"2011-03-30\",600],[\"2011-03-31\",160],[\"2011-04-01\",1200],[\"2011-04-03\",288],[\"2011-04-04\",100],[\"2011-04-05\",500],[\"2011-04-06\",120],[\"2011-04-07\",96],[\"2011-04-08\",1200],[\"2011-04-11\",200],[\"2011-04-12\",144],[\"2011-04-13\",1728],[\"2011-04-14\",600],[\"2011-04-15\",100],[\"2011-04-17\",40],[\"2011-04-18\",3114],[\"2011-04-19\",144],[\"2011-04-20\",960],[\"2011-04-21\",1008],[\"2011-04-26\",1200],[\"2011-04-27\",1200],[\"2011-04-28\",120],[\"2011-05-01\",48],[\"2011-05-03\",240],[\"2011-05-04\",288],[\"2011-05-05\",600],[\"2011-05-06\",108],[\"2011-05-08\",80],[\"2011-05-09\",128],[\"2011-05-10\",200],[\"2011-05-11\",240],[\"2011-05-12\",100],[\"2011-05-13\",336],[\"2011-05-15\",96],[\"2011-05-16\",144],[\"2011-05-17\",288],[\"2011-05-18\",144],[\"2011-05-19\",864],[\"2011-05-20\",576],[\"2011-05-22\",50],[\"2011-05-23\",2700],[\"2011-05-24\",888],[\"2011-05-25\",144],[\"2011-05-26\",200],[\"2011-05-27\",144],[\"2011-05-29\",130],[\"2011-05-31\",1152],[\"2011-06-01\",72],[\"2011-06-02\",320],[\"2011-06-03\",60],[\"2011-06-05\",288],[\"2011-06-06\",100],[\"2011-06-07\",216],[\"2011-06-08\",720],[\"2011-06-09\",144],[\"2011-06-10\",144],[\"2011-06-13\",504],[\"2011-06-14\",660],[\"2011-06-15\",144],[\"2011-06-16\",288],[\"2011-06-17\",864],[\"2011-06-19\",150],[\"2011-06-20\",400],[\"2011-06-21\",72],[\"2011-06-22\",576],[\"2011-06-23\",48],[\"2011-06-24\",100],[\"2011-06-27\",120],[\"2011-06-28\",320],[\"2011-06-29\",144],[\"2011-06-30\",828],[\"2011-07-01\",144],[\"2011-07-03\",90],[\"2011-07-04\",300],[\"2011-07-05\",720],[\"2011-07-06\",864],[\"2011-07-07\",1440],[\"2011-07-08\",200],[\"2011-07-11\",576],[\"2011-07-12\",240],[\"2011-07-13\",192],[\"2011-07-14\",144],[\"2011-07-15\",160],[\"2011-07-17\",720],[\"2011-07-18\",60],[\"2011-07-19\",600],[\"2011-07-20\",432],[\"2011-07-21\",720],[\"2011-07-22\",144],[\"2011-07-24\",480],[\"2011-07-25\",192],[\"2011-07-26\",100],[\"2011-07-27\",576],[\"2011-07-28\",480],[\"2011-07-29\",100],[\"2011-07-31\",144],[\"2011-08-01\",360],[\"2011-08-02\",1000],[\"2011-08-03\",432],[\"2011-08-04\",1008],[\"2011-08-05\",240],[\"2011-08-07\",288],[\"2011-08-08\",700],[\"2011-08-09\",32],[\"2011-08-10\",60],[\"2011-08-11\",144],[\"2011-08-12\",144],[\"2011-08-14\",36],[\"2011-08-15\",192],[\"2011-08-16\",48],[\"2011-08-17\",824],[\"2011-08-18\",1200],[\"2011-08-19\",160],[\"2011-08-21\",200],[\"2011-08-22\",408],[\"2011-08-23\",600],[\"2011-08-24\",720],[\"2011-08-25\",96],[\"2011-08-26\",288],[\"2011-08-28\",96],[\"2011-08-30\",96],[\"2011-08-31\",120],[\"2011-09-01\",480],[\"2011-09-02\",840],[\"2011-09-04\",960],[\"2011-09-05\",480],[\"2011-09-06\",96],[\"2011-09-07\",144],[\"2011-09-08\",576],[\"2011-09-09\",72],[\"2011-09-11\",144],[\"2011-09-12\",216],[\"2011-09-13\",300],[\"2011-09-14\",600],[\"2011-09-15\",600],[\"2011-09-16\",500],[\"2011-09-18\",100],[\"2011-09-19\",100],[\"2011-09-20\",500],[\"2011-09-21\",200],[\"2011-09-22\",180],[\"2011-09-23\",288],[\"2011-09-25\",120],[\"2011-09-26\",144],[\"2011-09-27\",240],[\"2011-09-28\",500],[\"2011-09-29\",432],[\"2011-09-30\",216],[\"2011-10-02\",288],[\"2011-10-03\",960],[\"2011-10-04\",1540],[\"2011-10-05\",100],[\"2011-10-06\",480],[\"2011-10-07\",1296],[\"2011-10-09\",24],[\"2011-10-10\",240],[\"2011-10-11\",50],[\"2011-10-12\",72],[\"2011-10-13\",384],[\"2011-10-14\",96],[\"2011-10-17\",500],[\"2011-10-18\",396],[\"2011-10-19\",288],[\"2011-10-20\",144],[\"2011-10-21\",48],[\"2011-10-23\",2],[\"2011-10-24\",720],[\"2011-10-25\",1200],[\"2011-10-26\",384],[\"2011-10-27\",720],[\"2011-10-28\",480],[\"2011-10-30\",120],[\"2011-10-31\",144],[\"2011-11-01\",144],[\"2011-11-02\",864],[\"2011-11-03\",2100],[\"2011-11-04\",100],[\"2011-11-06\",48],[\"2011-11-07\",240],[\"2011-11-08\",192],[\"2011-11-09\",1200],[\"2011-11-10\",144],[\"2011-11-11\",576],[\"2011-11-13\",144],[\"2011-11-14\",150],[\"2011-11-15\",864],[\"2011-11-16\",200],[\"2011-11-17\",480],[\"2011-11-18\",300],[\"2011-11-20\",288],[\"2011-11-21\",192],[\"2011-11-22\",1600],[\"2011-11-23\",360],[\"2011-11-24\",288],[\"2011-11-25\",160],[\"2011-11-27\",12],[\"2011-11-28\",760],[\"2011-11-29\",288],[\"2011-11-30\",100],[\"2011-12-01\",288],[\"2011-12-02\",250],[\"2011-12-04\",120],[\"2011-12-05\",800],[\"2011-12-06\",200],[\"2011-12-07\",200],[\"2011-12-08\",144],[\"2011-12-09\",96]]","source":"online_retail_ii","split":"dev","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 i.invoice_date >= ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC","sql_parameters":"[25,\"2011-09-29\"]","state":"{\"question\":\"Return the maximum of l.quantity for retail lines joined to their invoices where (l.quantity is greater than 25 or 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\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}162{"category":"single_table/and/grouped","domain":"sensor","family_id":"77cff22e5127a88150922fe2","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"cf8f78bef083a08a7a92e5239f616b3b1e7007106491bc48c4abc51c606ded83","language":"en","license":"CC-BY-4.0","query":"Return the average of ps2_mean for hydraulic cycles where (fs1_mean is greater than 6.57291 and ts1_mean is at most 36.33327), grouped by valve, ordered by valve ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[6.57291,36.33327],\\\"sql\\\":\\\"SELECT valve, AVG(ps2_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ? OR ts1_mean <= ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[6.57291,36.33327],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (fs1_mean > ? AND ts1_mean <= ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[6.57291,36.33327],\\\"sql\\\":\\\"SELECT valve, AVG(ps2_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ? AND ts1_mean <= ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[6.57291,36.33327],\\\"sql\\\":\\\"SELECT valve, SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ? AND ts1_mean <= ?) GROUP BY valve ORDER BY valve ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[73,109.03171749999998],[80,109.28910775],[90,109.4983835],[100,109.59008231884059]]","source":"hydraulic","split":"dev","sql":"SELECT valve, AVG(ps2_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ? AND ts1_mean <= ?) GROUP BY valve ORDER BY valve ASC","sql_parameters":"[6.57291,36.33327]","state":"{\"question\":\"Return the average of ps2_mean for hydraulic cycles where (fs1_mean is greater than 6.57291 and ts1_mean is at most 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_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}163{"category":"join/null/or/grouped","domain":"commerce","family_id":"333cc315a5e6873d1b4e3329","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"5b4ad8abf9855ea7a42adbd333635b9bdcc77d339efa5524ecd49ade57f70082","language":"en","license":"CC-BY-4.0","query":"Return the average of l.quantity for retail lines joined to their invoices where (i.country equals 'Australia' or i.customer_id is present), grouped by i.country, ordered by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Australia\\\"],\\\"sql\\\":\\\"SELECT i.country, AVG(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.country ORDER BY i.country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Australia\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) 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.country ORDER BY i.country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Australia\\\"],\\\"sql\\\":\\\"SELECT i.country, SUM(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.country ORDER BY i.country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Australia\\\"],\\\"sql\\\":\\\"SELECT i.country, AVG(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.country ORDER BY i.country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",15.127659574468085],[\"Austria\",12.722222222222221],[\"Bahrain\",5.0],[\"Belgium\",12.921052631578947],[\"Canada\",10.4],[\"Channel Islands\",103.41666666666667],[\"Cyprus\",47.125],[\"Denmark\",59.8],[\"EIRE\",69.97894736842105],[\"Finland\",38.35616438356164],[\"France\",25.04201680672269],[\"Germany\",19.208092485549134],[\"Israel\",2.0],[\"Italy\",18.4],[\"Japan\",135.31578947368422],[\"Netherlands\",66.23728813559322],[\"Norway\",7.125],[\"Poland\",26.166666666666668],[\"Portugal\",10.428571428571429],[\"Singapore\",1.0],[\"Spain\",54.77450980392157],[\"Sweden\",118.23655913978494],[\"Switzerland\",27.88235294117647],[\"USA\",12.0],[\"United Arab Emirates\",1.0],[\"United Kingdom\",49.991515255399385]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, AVG(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.country ORDER BY i.country ASC","sql_parameters":"[\"Australia\"]","state":"{\"question\":\"Return the average of l.quantity for retail lines joined to their invoices where (i.country equals 'Australia' or i.customer_id is present), grouped by i.country, ordered by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}164{"category":"join/ranked","domain":"commerce","family_id":"e61433703d200d6b6928cd16","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"03da9872955369c01001530889743d7767e0cf56627486f19f5462c76cd29ca4","language":"en","license":"CC-BY-4.0","query":"Return the minimum of l.unit_price for retail lines joined to their invoices where (i.country equals 'EIRE'), grouped by i.invoice_date; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"EIRE\\\"],\\\"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.country = ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"EIRE\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"EIRE\\\"],\\\"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.country = ?) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"EIRE\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-06-20\",1216.12],[\"2010-11-03\",34.95],[\"2010-11-09\",34.95],[\"2011-07-01\",34.95],[\"2011-06-29\",4.95]]","source":"online_retail_ii","split":"dev","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.country = ?) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5","sql_parameters":"[\"EIRE\"]","state":"{\"question\":\"Return the minimum of l.unit_price for retail lines joined to their invoices where (i.country equals 'EIRE'), 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_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}165{"category":"single_table/and/having","domain":"sensor","family_id":"a426b11f2ab5cf01f0f284be","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"cf802709f5506a2833cd7dabf9d721eae1cff9323e5387aff80fa71402e3c840","language":"en","license":"CC-BY-4.0","query":"Return the sum of ts1_mean for hydraulic cycles where (ps2_mean is greater than 105.7255 and vs1_mean is at most 0.56377), grouped by pump_leakage, keeping only groups with at least 10 matching rows; return at most 3 groups ordered by aggregate value ASC, breaking ties by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[105.7255,0.56377,10],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? OR vs1_mean <= ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[105.7255,0.56377,10],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? AND vs1_mean <= ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[105.7255,0.56377,10],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? AND vs1_mean <= ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[105.7255,0.56377,10],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? AND vs1_mean <= ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1,5836.89725],[2,5908.51143],[0,13100.51044]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, SUM(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? AND vs1_mean <= ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value ASC, pump_leakage ASC LIMIT 3","sql_parameters":"[105.7255,0.56377,10]","state":"{\"question\":\"Return the sum of ts1_mean for hydraulic cycles where (ps2_mean is greater than 105.7255 and vs1_mean is at most 0.56377), grouped by pump_leakage, keeping only groups with at least 10 matching rows; 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\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}166{"category":"single_table/or/ranked","domain":"commerce","family_id":"184449ecce27c8a6f77f0d9e","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"ed10ad5eec92342ba7f689ced50d3995f1849fc3d21c56a4529706480829360f","language":"en","license":"CC-BY-4.0","query":"Return the average of unit_price for retail invoice lines where (country equals 'EIRE' or unit_price is at most 8.5), grouped by country; return at most 5 groups ordered by aggregate value DESC, breaking ties by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"EIRE\\\",8.5],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"EIRE\\\",8.5],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"EIRE\\\",8.5],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"EIRE\\\",8.5],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"EIRE\",22.518088235294115],[\"Israel\",5.36875],[\"Italy\",4.033333333333333],[\"Norway\",3.722727272727273],[\"Cyprus\",3.615625]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5","sql_parameters":"[\"EIRE\",8.5]","state":"{\"question\":\"Return the average of unit_price for retail invoice lines where (country equals 'EIRE' or unit_price is at most 8.5), 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\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}167{"category":"single_table/or/grouped","domain":"sensor","family_id":"41c769d18cd516d915fac2f4","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"92f6cf4ae50e13233f464d437d47e5948e035f4eeb6ca447666fa6d4899171d9","language":"en","license":"CC-BY-4.0","query":"Return the minimum of ps1_mean for hydraulic cycles where (pump_leakage equals 0 or ts1_mean is at most 35.56605), grouped by pump_leakage, ordered by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[0,35.56605],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(ps1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? AND ts1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[0,35.56605],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? OR ts1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[0,35.56605],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(ps1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? OR ts1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[0,35.56605],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? OR ts1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,155.97478],[1,160.67221],[2,160.71169]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, MIN(ps1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? OR ts1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC","sql_parameters":"[0,35.56605]","state":"{\"question\":\"Return the minimum of ps1_mean for hydraulic cycles where (pump_leakage equals 0 or ts1_mean is at most 35.56605), 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_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}168{"category":"single_table/and/aggregate","domain":"sensor","family_id":"af67b70cd0c2f333cdaa0fc6","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"16ddf28f12b954ef58841f808bdfcd5260721445c229d4a0290b545952cdebbc","language":"en","license":"CC-BY-4.0","query":"Return the maximum of ps2_mean for hydraulic cycles where (ps2_mean is at most 122.4767 and ts1_mean is at most 36.33327).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[122.4767,36.33327],\\\"sql\\\":\\\"SELECT MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR ts1_mean <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[122.4767,36.33327],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND ts1_mean <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[122.4767,36.33327],\\\"sql\\\":\\\"SELECT SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND ts1_mean <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[122.4767,36.33327],\\\"sql\\\":\\\"SELECT MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND ts1_mean <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[109.8156]]","source":"hydraulic","split":"dev","sql":"SELECT MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND ts1_mean <= ?)","sql_parameters":"[122.4767,36.33327]","state":"{\"question\":\"Return the maximum of ps2_mean for hydraulic cycles where (ps2_mean is at most 122.4767 and ts1_mean is at most 36.33327).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}169{"category":"single_table/aggregate","domain":"sensor","family_id":"372caa9d5a129acc02559ec7","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"39c1a4d2dff756c1ff486110b27252429496b58b070a3581e565b9c14cdc1e57","language":"en","license":"CC-BY-4.0","query":"Return the sum of fs1_mean for hydraulic cycles where (vs1_mean is at most 0.71948).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[0.71948],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (vs1_mean <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[0.71948],\\\"sql\\\":\\\"SELECT AVG(fs1_mean) AS value FROM hydraulic_cycles WHERE (vs1_mean <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[0.71948],\\\"sql\\\":\\\"SELECT SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (vs1_mean <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[0.71948],\\\"sql\\\":\\\"SELECT MIN(fs1_mean) AS value FROM hydraulic_cycles WHERE (vs1_mean <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[12974.22604]]","source":"hydraulic","split":"dev","sql":"SELECT SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (vs1_mean <= ?)","sql_parameters":"[0.71948]","state":"{\"question\":\"Return the sum of fs1_mean for hydraulic cycles where (vs1_mean is at most 0.71948).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}170{"category":"single_table/date/having","domain":"commerce","family_id":"d5b728ad31c0742b439c9e74","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"c6ba9b2538c9e42fc86212ac98b0d6f3df770c85f4a46648f3d6af274b87547c","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail invoice lines where (invoice_date is before '2011-05-10'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\",2],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\",2],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\",2],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\",2],\\\"sql\\\":\\\"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-12-01\",248],[\"2010-12-02\",226],[\"2010-12-09\",194],[\"2010-12-08\",178],[\"2010-12-07\",144]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5","sql_parameters":"[\"2011-05-10\",2]","state":"{\"question\":\"Return the number of rows for retail invoice lines where (invoice_date is before '2011-05-10'), 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\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}171{"category":"join/date/and/aggregate","domain":"commerce","family_id":"f19079e4f405ca180b76c1b4","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"8b3d915a98f7b62e89d414feae0ed8c04ffbeb34957b97f81dd859324d69bdf1","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail lines joined to their invoices where (i.customer_id equals '12364' and i.invoice_date is on or after '2011-05-10').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12364\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR i.invoice_date >= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12364\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? AND i.invoice_date >= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12364\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? AND i.invoice_date >= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12364\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? AND i.invoice_date >= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[2]]","source":"online_retail_ii","split":"dev","sql":"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? AND i.invoice_date >= ?)","sql_parameters":"[\"12364\",\"2011-05-10\"]","state":"{\"question\":\"Return the number of rows for retail lines joined to their invoices where (i.customer_id equals '12364' and i.invoice_date is on or after '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_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}172{"category":"join/distinct_invoice/and/aggregate","domain":"commerce","family_id":"c0fe4319f0b803103ac70abf","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"967ef39bae94467ecc826edb4f6a0ccbbc11a068f6dc42717e8512d79fad0f9b","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.quantity is at most 648 and l.unit_price is at most 4.77).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[648,4.77],\\\"sql\\\":\\\"SELECT COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? OR l.unit_price <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[648,4.77],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? AND l.unit_price <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[648,4.77],\\\"sql\\\":\\\"SELECT SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? AND l.unit_price <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[648,4.77],\\\"sql\\\":\\\"SELECT COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? AND l.unit_price <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[6519]]","source":"online_retail_ii","split":"dev","sql":"SELECT COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? AND l.unit_price <= ?)","sql_parameters":"[648,4.77]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.quantity is at most 648 and 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\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}173{"category":"single_table/date/and/having","domain":"commerce","family_id":"0713376d967cd83566cd1728","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"ef5c1fe883d3d1e2e5c6e399008e91b734f1fe2479f7d9e9be634e12222dc2c2","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail invoice lines where (unit_price is at most 8.5 and invoice_date is on or after '2011-05-10'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[8.5,\\\"2011-05-10\\\",10],\\\"sql\\\":\\\"SELECT country, COUNT(*) 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\\\":[8.5,\\\"2011-05-10\\\",10],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (unit_price <= ? OR invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[8.5,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (unit_price <= ? AND invoice_date >= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[8.5,\\\"2011-05-10\\\",10],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (unit_price <= ? AND invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Channel Islands\",11],[\"Japan\",12],[\"Sweden\",17]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (unit_price <= ? AND invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3","sql_parameters":"[8.5,\"2011-05-10\",10]","state":"{\"question\":\"Return the number of rows for retail invoice lines where (unit_price is at most 8.5 and invoice_date is on or after '2011-05-10'), 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\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}174{"category":"single_table/grouped","domain":"commerce","family_id":"82692395bb492b9fb7a95c2f","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"8c46bbd93604ff58ac63cf6aa707993752183387dae310805dd6d5d501b95d93","language":"en","license":"CC-BY-4.0","query":"Return the minimum of product_related for shopping sessions where (traffic_type equals 15), grouped by visitor_type, ordered by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[15],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (traffic_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[15],\\\"sql\\\":\\\"SELECT visitor_type, MIN(product_related) AS value FROM shopping_sessions WHERE (traffic_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[15],\\\"sql\\\":\\\"SELECT visitor_type, SUM(product_related) AS value FROM shopping_sessions WHERE (traffic_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[15],\\\"sql\\\":\\\"SELECT visitor_type, AVG(product_related) AS value FROM shopping_sessions WHERE (traffic_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"New_Visitor\",10],[\"Returning_Visitor\",0]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, MIN(product_related) AS value FROM shopping_sessions WHERE (traffic_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC","sql_parameters":"[15]","state":"{\"question\":\"Return the minimum of product_related for shopping sessions where (traffic_type equals 15), grouped by visitor_type, ordered by visitor_type ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}175{"category":"single_table/and/grouped","domain":"commerce","family_id":"c4fc891a7399ddbc4fb050d0","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"a256ca9070135cb6bc57a8c3c3c1607df278f83b38386c203bbcb37e8b728d04","language":"en","license":"CC-BY-4.0","query":"Return the sum of administrative for shopping sessions where (region equals 1 and traffic_type equals 10), grouped by visitor_type, ordered by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[1,10],\\\"sql\\\":\\\"SELECT visitor_type, SUM(administrative) AS value FROM shopping_sessions WHERE (region = ? AND traffic_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[1,10],\\\"sql\\\":\\\"SELECT visitor_type, SUM(administrative) AS value FROM shopping_sessions WHERE (region = ? OR traffic_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[1,10],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (region = ? AND traffic_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[1,10],\\\"sql\\\":\\\"SELECT visitor_type, AVG(administrative) AS value FROM shopping_sessions WHERE (region = ? AND traffic_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"New_Visitor\",16],[\"Other\",0],[\"Returning_Visitor\",432]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, SUM(administrative) AS value FROM shopping_sessions WHERE (region = ? AND traffic_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC","sql_parameters":"[1,10]","state":"{\"question\":\"Return the sum of administrative for shopping sessions where (region equals 1 and traffic_type equals 10), grouped by visitor_type, ordered by visitor_type ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}176{"category":"single_table/or/having","domain":"sensor","family_id":"5ec5fc7d7977e32006c9578a","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"f24390a04634f1f9877ebfa75a2a5661b6447221a297753a2c3391a2cc876df8","language":"en","license":"CC-BY-4.0","query":"Return the minimum of vs1_mean for hydraulic cycles where (ps1_mean is at most 160.79926 or eps1_mean is at most 2544.76), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[160.79926,2544.76,2],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR eps1_mean <= ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[160.79926,2544.76,2],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? AND eps1_mean <= ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[160.79926,2544.76,2],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR eps1_mean <= ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value ASC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[160.79926,2544.76,2],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR eps1_mean <= ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1,0.53173],[2,0.52967],[0,0.52437]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, MIN(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR eps1_mean <= ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 5","sql_parameters":"[160.79926,2544.76,2]","state":"{\"question\":\"Return the minimum of vs1_mean for hydraulic cycles where (ps1_mean is at most 160.79926 or eps1_mean is at most 2544.76), 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\":{\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}177{"category":"single_table/date/having","domain":"commerce","family_id":"61758d1e2454ba88978dd83f","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"8d01475a906490c8534f18c68051c9a99faa731d63ab8f43c07f51d724967d28","language":"en","license":"CC-BY-4.0","query":"Return the minimum of unit_price for retail invoice lines where (invoice_date is before '2011-05-10'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\",2],\\\"sql\\\":\\\"SELECT invoice_date, MIN(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\",2],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\",2],\\\"sql\\\":\\\"SELECT invoice_date, MIN(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\",2],\\\"sql\\\":\\\"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-07-11\",8.5],[\"2011-01-16\",3.39],[\"2010-02-23\",1.69],[\"2010-10-17\",1.69],[\"2011-02-13\",1.69]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MIN(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5","sql_parameters":"[\"2011-05-10\",2]","state":"{\"question\":\"Return the minimum of unit_price for retail invoice lines where (invoice_date is before '2011-05-10'), 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\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}178{"category":"single_table/and/having","domain":"commerce","family_id":"1ba13c3d76d289f33e63195e","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"6e715fbf2d5c3738872e786bf852bc0bc33f1fad000b40edfdc7b619c9de97ef","language":"en","license":"CC-BY-4.0","query":"Return the minimum of product_related for shopping sessions where (visitor_type equals 'Returning_Visitor' and administrative is at most 2), grouped by revenue, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by revenue ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Returning_Visitor\\\",2,2],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (visitor_type = ? AND administrative <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Returning_Visitor\\\",2,2],\\\"sql\\\":\\\"SELECT revenue, SUM(product_related) AS value FROM shopping_sessions WHERE (visitor_type = ? AND administrative <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Returning_Visitor\\\",2,2],\\\"sql\\\":\\\"SELECT revenue, AVG(product_related) AS value FROM shopping_sessions WHERE (visitor_type = ? AND administrative <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Returning_Visitor\\\",2,2],\\\"sql\\\":\\\"SELECT revenue, MIN(product_related) AS value FROM shopping_sessions WHERE (visitor_type = ? AND administrative <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,0],[1,0]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, MIN(product_related) AS value FROM shopping_sessions WHERE (visitor_type = ? AND administrative <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 5","sql_parameters":"[\"Returning_Visitor\",2,2]","state":"{\"question\":\"Return the minimum of product_related for shopping sessions where (visitor_type equals 'Returning_Visitor' and administrative is at most 2), grouped by revenue, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by revenue ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}179{"category":"single_table/and/ranked","domain":"commerce","family_id":"e72a40f0eee614f30ab60bff","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"59fb96782c19cead9c184a4bdaa1c7f8b2edfb8243086767fa0880a6da01b013","language":"en","license":"CC-BY-4.0","query":"Return the sum of product_related for shopping sessions where (traffic_type equals 12 and product_related is greater than 31), grouped by visitor_type; return at most 5 groups ordered by aggregate value DESC, breaking ties by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[12,31],\\\"sql\\\":\\\"SELECT visitor_type, SUM(product_related) AS value FROM shopping_sessions WHERE (traffic_type = ? AND product_related > ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[12,31],\\\"sql\\\":\\\"SELECT visitor_type, SUM(product_related) AS value FROM shopping_sessions WHERE (traffic_type = ? OR product_related > ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT visitor_type, SUM(product_related) AS value FROM shopping_sessions GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[12],\\\"sql\\\":\\\"SELECT visitor_type, SUM(product_related) AS value FROM shopping_sessions WHERE (traffic_type = ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, SUM(product_related) AS value FROM shopping_sessions WHERE (traffic_type = ? AND product_related > ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5","sql_parameters":"[12,31]","state":"{\"question\":\"Return the sum of product_related for shopping sessions where (traffic_type equals 12 and product_related is greater than 31), 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\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}180{"category":"single_table/date/and/having","domain":"commerce","family_id":"1ea2878e2c85a8a05bf6ac2b","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"9f02986ee6f1609351cbd31447aab2e867b4edd41209621eb3f06104b86d9af5","language":"en","license":"CC-BY-4.0","query":"Return the minimum of quantity for retail invoice lines where (country equals 'Denmark' and invoice_date is before '2010-02-18'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Denmark\\\",\\\"2010-02-18\\\",2],\\\"sql\\\":\\\"SELECT country, MIN(quantity) AS value FROM retail_lines WHERE (country = ? OR invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2],\\\"sql\\\":\\\"SELECT country, MIN(quantity) AS value FROM retail_lines GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Denmark\\\",\\\"2010-02-18\\\",2],\\\"sql\\\":\\\"SELECT country, MIN(quantity) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Denmark\\\",2],\\\"sql\\\":\\\"SELECT country, MIN(quantity) AS value FROM retail_lines WHERE (country = ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","sql":"SELECT country, MIN(quantity) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5","sql_parameters":"[\"Denmark\",\"2010-02-18\",2]","state":"{\"question\":\"Return the minimum of quantity for retail invoice lines where (country equals 'Denmark' and invoice_date is before '2010-02-18'), 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_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}181{"category":"single_table/or/grouped","domain":"sensor","family_id":"605f3b400c48f5799ac17a9e","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"b46f103a247dcb037f24c8c4fff78ccd01ca584e381d662bbf83f2bf9a515054","language":"en","license":"CC-BY-4.0","query":"Return the sum of vs1_mean for hydraulic cycles where (accumulator equals 90 or ps1_mean is at most 158.96089), grouped by cooler, ordered by cooler ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[90,158.96089],\\\"sql\\\":\\\"SELECT cooler, SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ? AND ps1_mean <= ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[90,158.96089],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (accumulator = ? OR ps1_mean <= ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[90,158.96089],\\\"sql\\\":\\\"SELECT cooler, SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ? OR ps1_mean <= ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[90,158.96089],\\\"sql\\\":\\\"SELECT cooler, AVG(vs1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ? OR ps1_mean <= ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[3,367.14212],[20,409.82256],[100,190.18456]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ? OR ps1_mean <= ?) GROUP BY cooler ORDER BY cooler ASC","sql_parameters":"[90,158.96089]","state":"{\"question\":\"Return the sum of vs1_mean for hydraulic cycles where (accumulator equals 90 or ps1_mean is at most 158.96089), grouped by cooler, ordered by cooler ascending.\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}182{"category":"single_table/grouped","domain":"sensor","family_id":"d7579739c9ceaf40160c1c5d","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"7519870b3b61f46011178ab7aa0408a6de3a7e0e9a763155f1893561be620da6","language":"en","license":"CC-BY-4.0","query":"Return the maximum of ts1_mean for hydraulic cycles where (ps1_mean is at most 156.56746), grouped by pump_leakage, ordered by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[156.56746],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[156.56746],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[156.56746],\\\"sql\\\":\\\"SELECT pump_leakage, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[156.56746],\\\"sql\\\":\\\"SELECT pump_leakage, MAX(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,57.89928],[1,57.83973],[2,57.27212]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, MAX(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC","sql_parameters":"[156.56746]","state":"{\"question\":\"Return the maximum of ts1_mean for hydraulic cycles where (ps1_mean is at most 156.56746), 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_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}183{"category":"single_table/and/ranked","domain":"sensor","family_id":"6552a8f9137964fd3c277178","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"c461493bea473652afdd5a62c2b3caec1220c147aa37e447fc2c55e7cfce8759","language":"en","license":"CC-BY-4.0","query":"Return the sum of ps1_mean for hydraulic cycles where (fs1_mean is at most 6.63763 and ts1_mean is greater than 52.59775), grouped by pump_leakage; return at most 3 groups ordered by aggregate value ASC, breaking ties by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[6.63763,52.59775],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? OR ts1_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[6.63763,52.59775],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? AND ts1_mean > ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[6.63763,52.59775],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? AND ts1_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[6.63763,52.59775],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? AND ts1_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1,27371.49333],[2,27628.76815],[0,52142.11362]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? AND ts1_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3","sql_parameters":"[6.63763,52.59775]","state":"{\"question\":\"Return the sum of ps1_mean for hydraulic cycles where (fs1_mean is at most 6.63763 and ts1_mean is greater than 52.59775), 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\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}184{"category":"single_table/ranked","domain":"commerce","family_id":"d0770ea16a38930d2dbeea1d","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"a0392218bf3e76036b5e7f94cfecf9ec376819d18effe682b0faf052096ef3c8","language":"en","license":"CC-BY-4.0","query":"Return the minimum of product_duration for shopping sessions where (administrative is greater than 23), grouped by month; return at most 5 groups ordered by aggregate value DESC, breaking ties by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[23],\\\"sql\\\":\\\"SELECT month, MIN(product_duration) AS value FROM shopping_sessions WHERE (administrative > ?) GROUP BY month ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[23],\\\"sql\\\":\\\"SELECT month, MIN(product_duration) AS value FROM shopping_sessions WHERE (administrative > ?) GROUP BY month ORDER BY value ASC, month ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[23],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (administrative > ?) GROUP BY month ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[23],\\\"sql\\\":\\\"SELECT month, SUM(product_duration) AS value FROM shopping_sessions WHERE (administrative > ?) GROUP BY month ORDER BY value DESC, month ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Nov\",9676.09318],[\"May\",4339.534423],[\"June\",3428.527381],[\"Mar\",1588.666667]]","source":"online_shoppers","split":"dev","sql":"SELECT month, MIN(product_duration) AS value FROM shopping_sessions WHERE (administrative > ?) GROUP BY month ORDER BY value DESC, month ASC LIMIT 5","sql_parameters":"[23]","state":"{\"question\":\"Return the minimum of product_duration for shopping sessions where (administrative is greater than 23), grouped by month; return at most 5 groups ordered by aggregate value DESC, breaking ties by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}185{"category":"single_table/and/aggregate","domain":"commerce","family_id":"7e6614919a26f1d9cc98c175","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"6d4662aae66e0ebe0a3f851e9307f974a65578dd3e2769f8f9449b7e173060ae","language":"en","license":"CC-BY-4.0","query":"Return the average of quantity for retail invoice lines where (quantity is at most 92 and unit_price is greater than 2.25).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[92,2.25],\\\"sql\\\":\\\"SELECT AVG(quantity) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[92,2.25],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (quantity <= ? AND unit_price > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[92,2.25],\\\"sql\\\":\\\"SELECT AVG(quantity) AS value FROM retail_lines WHERE (quantity <= ? AND unit_price > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[92,2.25],\\\"sql\\\":\\\"SELECT SUM(quantity) AS value FROM retail_lines WHERE (quantity <= ? AND unit_price > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[11.382212852346374]]","source":"online_retail_ii","split":"dev","sql":"SELECT AVG(quantity) AS value FROM retail_lines WHERE (quantity <= ? AND unit_price > ?)","sql_parameters":"[92,2.25]","state":"{\"question\":\"Return the average of quantity for retail invoice lines where (quantity is at most 92 and unit_price is greater than 2.25).\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}186{"category":"single_table/date/and/ranked","domain":"commerce","family_id":"28b0bb981014a5a1e8f7acbe","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"8d8f36676e67954073238a916e6ee9aee9371b2de4d79baa052b725881b21d4c","language":"en","license":"CC-BY-4.0","query":"Return the average of quantity for retail invoice lines where (country equals 'Cyprus' 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT country, AVG(quantity) 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, AVG(quantity) AS value FROM retail_lines GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Cyprus\\\"],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (country = ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","sql":"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5","sql_parameters":"[\"Cyprus\",\"2011-09-29\"]","state":"{\"question\":\"Return the average of quantity for retail invoice lines where (country equals 'Cyprus' 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\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}187{"category":"single_table/aggregate","domain":"commerce","family_id":"5f9ea01a40e4303010d77124","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"57533ccf5a65dc9bf675e4486136eebc00f15346bb5638036fb443d6ed5c07fe","language":"en","license":"CC-BY-4.0","query":"Return the sum of quantity for retail invoice lines where (unit_price is at most 4.77).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[4.77],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (unit_price <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[4.77],\\\"sql\\\":\\\"SELECT AVG(quantity) AS value FROM retail_lines WHERE (unit_price <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[4.77],\\\"sql\\\":\\\"SELECT MIN(quantity) AS value FROM retail_lines WHERE (unit_price <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[4.77],\\\"sql\\\":\\\"SELECT SUM(quantity) AS value FROM retail_lines WHERE (unit_price <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1175931]]","source":"online_retail_ii","split":"dev","sql":"SELECT SUM(quantity) AS value FROM retail_lines WHERE (unit_price <= ?)","sql_parameters":"[4.77]","state":"{\"question\":\"Return the sum of quantity for retail invoice lines where (unit_price is at most 4.77).\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}188{"category":"single_table/and/having","domain":"commerce","family_id":"151d25d3ac61cb14d3d1dbee","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"a818582e8eb07d46952b1038396aa094d14e484700809aa0f921b375305dbe5a","language":"en","license":"CC-BY-4.0","query":"Return the maximum of administrative for shopping sessions where (region equals 9 and traffic_type equals 11), grouped by month, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[9,11,2],\\\"sql\\\":\\\"SELECT month, MAX(administrative) AS value FROM shopping_sessions WHERE (region = ? OR traffic_type = ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[9,11],\\\"sql\\\":\\\"SELECT month, MAX(administrative) AS value FROM shopping_sessions WHERE (region = ? AND traffic_type = ?) GROUP BY month ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[9,11,2],\\\"sql\\\":\\\"SELECT month, MAX(administrative) AS value FROM shopping_sessions WHERE (region = ? AND traffic_type = ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[9,11,2],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (region = ? AND traffic_type = ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Nov\",7]]","source":"online_shoppers","split":"dev","sql":"SELECT month, MAX(administrative) AS value FROM shopping_sessions WHERE (region = ? AND traffic_type = ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5","sql_parameters":"[9,11,2]","state":"{\"question\":\"Return the maximum of administrative for shopping sessions where (region equals 9 and traffic_type equals 11), grouped by month, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}189{"category":"single_table/grouped","domain":"commerce","family_id":"d404e333f02fc4cd0c1865da","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"99971da87aeb3dc187c0b17ccff5a8de2fcbde859a257e67f30e4410d196cec0","language":"en","license":"CC-BY-4.0","query":"Return the minimum of quantity for retail invoice lines where (unit_price is greater than 49.95), grouped by invoice_date, ordered by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[49.95],\\\"sql\\\":\\\"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (unit_price > ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[49.95],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (unit_price > ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[49.95],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (unit_price > ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[49.95],\\\"sql\\\":\\\"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (unit_price > ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-03\",1],[\"2009-12-07\",1],[\"2009-12-09\",1],[\"2010-02-02\",1],[\"2010-02-03\",1],[\"2010-02-22\",2],[\"2010-03-24\",1],[\"2010-04-21\",1],[\"2010-05-04\",1],[\"2010-05-19\",1],[\"2010-06-29\",1],[\"2010-07-08\",1],[\"2010-07-12\",1],[\"2010-08-02\",1],[\"2010-08-03\",1],[\"2010-08-24\",1],[\"2010-09-01\",2],[\"2010-09-09\",1],[\"2010-09-17\",1],[\"2010-09-20\",1],[\"2010-09-29\",1],[\"2010-10-06\",1],[\"2010-10-11\",1],[\"2010-10-14\",34],[\"2010-10-21\",2],[\"2010-10-22\",2],[\"2010-11-03\",1],[\"2010-11-09\",1],[\"2010-11-17\",1],[\"2010-11-19\",1],[\"2010-11-24\",1],[\"2010-11-25\",1],[\"2010-11-28\",1],[\"2011-01-12\",1],[\"2011-02-04\",1],[\"2011-02-10\",1],[\"2011-02-11\",2],[\"2011-02-28\",1],[\"2011-03-01\",1],[\"2011-03-07\",1],[\"2011-03-28\",1],[\"2011-04-04\",1],[\"2011-04-05\",2],[\"2011-04-27\",1],[\"2011-04-28\",1],[\"2011-05-03\",2],[\"2011-05-26\",1],[\"2011-06-20\",1],[\"2011-06-30\",1],[\"2011-07-01\",1],[\"2011-07-08\",1],[\"2011-07-13\",1],[\"2011-08-26\",2],[\"2011-09-15\",1],[\"2011-09-30\",1],[\"2011-10-03\",1],[\"2011-10-11\",1],[\"2011-10-19\",1],[\"2011-10-25\",1],[\"2011-11-07\",1],[\"2011-11-10\",1],[\"2011-11-16\",1],[\"2011-11-25\",1],[\"2011-12-05\",1]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (unit_price > ?) GROUP BY invoice_date ORDER BY invoice_date ASC","sql_parameters":"[49.95]","state":"{\"question\":\"Return the minimum of quantity for retail invoice lines where (unit_price is greater than 49.95), 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\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}190{"category":"single_table/or/grouped","domain":"commerce","family_id":"1cbfab0416d0cad2c14f6347","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"994af6f35409dbd2e6447948afa61dfacbef34df0ba5b35046c7dbcc22cbace8","language":"en","license":"CC-BY-4.0","query":"Return the minimum of product_duration for shopping sessions where (region equals 5 or product_related is greater than 226), grouped by revenue, ordered by revenue ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[5,226],\\\"sql\\\":\\\"SELECT revenue, MIN(product_duration) AS value FROM shopping_sessions WHERE (region = ? AND product_related > ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[5,226],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (region = ? OR product_related > ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[5,226],\\\"sql\\\":\\\"SELECT revenue, SUM(product_duration) AS value FROM shopping_sessions WHERE (region = ? OR product_related > ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[5,226],\\\"sql\\\":\\\"SELECT revenue, MIN(product_duration) AS value FROM shopping_sessions WHERE (region = ? OR product_related > ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,0.0],[1,46.8]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, MIN(product_duration) AS value FROM shopping_sessions WHERE (region = ? OR product_related > ?) GROUP BY revenue ORDER BY revenue ASC","sql_parameters":"[5,226]","state":"{\"question\":\"Return the minimum of product_duration for shopping sessions where (region equals 5 or product_related is greater than 226), grouped by revenue, ordered by revenue ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}191{"category":"single_table/date/grouped","domain":"commerce","family_id":"80dac642a79110b2ada29786","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"2ac6d041c9bbdd4dcdd934438309887b5b92ce35e6f829defd8c7ef46007631a","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail invoice lines where (invoice_date is before '2010-07-14'), grouped by country, ordered by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT country, MIN(quantity) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country ORDER BY country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",13],[\"Austria\",3],[\"Bahrain\",7],[\"Belgium\",6],[\"Channel Islands\",6],[\"Cyprus\",12],[\"Denmark\",4],[\"EIRE\",44],[\"Finland\",8],[\"France\",31],[\"Germany\",88],[\"Japan\",4],[\"Netherlands\",30],[\"Portugal\",12],[\"Spain\",18],[\"Sweden\",54],[\"Switzerland\",2],[\"USA\",3],[\"United Kingdom\",6803]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country ORDER BY country ASC","sql_parameters":"[\"2010-07-14\"]","state":"{\"question\":\"Return the number of rows for retail invoice lines where (invoice_date is before '2010-07-14'), 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\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}192{"category":"single_table/or/having","domain":"commerce","family_id":"a4b5e344acd669d279dc5727","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"ab93e13f092f19a0a124e3e95fc8f59e6a201aad06e111591843fcea41691ef6","language":"en","license":"CC-BY-4.0","query":"Return the maximum of product_related for shopping sessions where (administrative is greater than 7 or product_related is at most 31), grouped by visitor_type, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[7,31,2],\\\"sql\\\":\\\"SELECT visitor_type, MAX(product_related) AS value FROM shopping_sessions WHERE (administrative > ? AND product_related <= ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[7,31,2],\\\"sql\\\":\\\"SELECT visitor_type, MAX(product_related) AS value FROM shopping_sessions WHERE (administrative > ? OR product_related <= ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value ASC, visitor_type ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[7,31,2],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (administrative > ? OR product_related <= ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[7,31,2],\\\"sql\\\":\\\"SELECT visitor_type, MAX(product_related) AS value FROM shopping_sessions WHERE (administrative > ? OR product_related <= ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Returning_Visitor\",705],[\"New_Visitor\",287],[\"Other\",31]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, MAX(product_related) AS value FROM shopping_sessions WHERE (administrative > ? OR product_related <= ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value DESC, visitor_type ASC LIMIT 5","sql_parameters":"[7,31,2]","state":"{\"question\":\"Return the maximum of product_related for shopping sessions where (administrative is greater than 7 or product_related is at most 31), grouped by visitor_type, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by visitor_type ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}193{"category":"join/date/or/aggregate","domain":"commerce","family_id":"cbc2c9c4740cb941b7dac0b0","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"e4ddc7e2c3c9f57b68b1abf8b6e2750e2301e13eb5b0db61530da7d93652cefe","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.quantity for retail lines joined to their invoices where (i.customer_id equals '12353' or i.invoice_date is on or after '2010-07-14').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12353\\\",\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? AND i.invoice_date >= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12353\\\",\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR i.invoice_date >= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12353\\\",\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR i.invoice_date >= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12353\\\",\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR i.invoice_date >= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[883223]]","source":"online_retail_ii","split":"dev","sql":"SELECT SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR i.invoice_date >= ?)","sql_parameters":"[\"12353\",\"2010-07-14\"]","state":"{\"question\":\"Return the sum of l.quantity for retail lines joined to their invoices where (i.customer_id equals '12353' or i.invoice_date is on or after '2010-07-14').\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}194{"category":"single_table/and/ranked","domain":"sensor","family_id":"7127884492a1d60c7cc79450","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"673dfbe7258d56b5e696ce410f9a55da9a025d64482c0fc5193a30a6508d65d2","language":"en","license":"CC-BY-4.0","query":"Return the minimum of ts1_mean for hydraulic cycles where (ps1_mean is at most 158.27043 and eps1_mean is at most 2480.92663), grouped by pump_leakage; return at most 3 groups ordered by aggregate value ASC, breaking ties by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[158.27043,2480.92663],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR eps1_mean <= ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[158.27043,2480.92663],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? AND eps1_mean <= ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[158.27043,2480.92663],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? AND eps1_mean <= ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[158.27043,2480.92663],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? AND eps1_mean <= ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[2,44.85178],[1,45.69018],[0,46.75407]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, MIN(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? AND eps1_mean <= ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3","sql_parameters":"[158.27043,2480.92663]","state":"{\"question\":\"Return the minimum of ts1_mean for hydraulic cycles where (ps1_mean is at most 158.27043 and eps1_mean is at most 2480.92663), 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\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}195{"category":"single_table/or/grouped","domain":"sensor","family_id":"c27b6b6bbcb190e4b9065cce","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"0c97c497cbf042ec2cf84ab191a6be11a713c6763608a01b52ea9a1c9739aa62","language":"en","license":"CC-BY-4.0","query":"Return the minimum of eps1_mean for hydraulic cycles where (fs1_mean is at most 6.63763 or ts1_mean is greater than 35.56605), grouped by cooler, ordered by cooler ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[6.63763,35.56605],\\\"sql\\\":\\\"SELECT cooler, MIN(eps1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? AND ts1_mean > ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[6.63763,35.56605],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? OR ts1_mean > ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[6.63763,35.56605],\\\"sql\\\":\\\"SELECT cooler, SUM(eps1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? OR ts1_mean > ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[6.63763,35.56605],\\\"sql\\\":\\\"SELECT cooler, MIN(eps1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? OR ts1_mean > ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[3,2361.74727],[20,2380.354],[100,2465.29893]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, MIN(eps1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? OR ts1_mean > ?) GROUP BY cooler ORDER BY cooler ASC","sql_parameters":"[6.63763,35.56605]","state":"{\"question\":\"Return the minimum of eps1_mean for hydraulic cycles where (fs1_mean is at most 6.63763 or ts1_mean is greater than 35.56605), grouped by cooler, ordered by cooler ascending.\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}196{"category":"single_table/or/grouped","domain":"commerce","family_id":"ab6ad8e44ee87aa0bccb85d0","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"ed448e444b0c0fdc1b6538b5ebd0aaf41ec8eb0e03bcfcdac87a24c2452e4977","language":"en","license":"CC-BY-4.0","query":"Return the maximum of product_related for shopping sessions where (month equals 'May' or product_duration is greater than 167.5), grouped by month, ordered by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"May\\\",167.5],\\\"sql\\\":\\\"SELECT month, MAX(product_related) AS value FROM shopping_sessions WHERE (month = ? OR product_duration > ?) GROUP BY month ORDER BY month ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"May\\\",167.5],\\\"sql\\\":\\\"SELECT month, MAX(product_related) AS value FROM shopping_sessions WHERE (month = ? AND product_duration > ?) GROUP BY month ORDER BY month ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"May\\\",167.5],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (month = ? OR product_duration > ?) GROUP BY month ORDER BY month ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"May\\\",167.5],\\\"sql\\\":\\\"SELECT month, SUM(product_related) AS value FROM shopping_sessions WHERE (month = ? OR product_duration > ?) GROUP BY month ORDER BY month ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Aug\",686],[\"Dec\",449],[\"Feb\",128],[\"Jul\",486],[\"June\",358],[\"Mar\",328],[\"May\",705],[\"Nov\",584],[\"Oct\",518],[\"Sep\",439]]","source":"online_shoppers","split":"dev","sql":"SELECT month, MAX(product_related) AS value FROM shopping_sessions WHERE (month = ? OR product_duration > ?) GROUP BY month ORDER BY month ASC","sql_parameters":"[\"May\",167.5]","state":"{\"question\":\"Return the maximum of product_related for shopping sessions where (month equals 'May' or product_duration is greater than 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\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}197{"category":"single_table/or/grouped","domain":"commerce","family_id":"23bde4c64b9b8e73e020042d","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"f3308d9ba91bc6c6cbef605cfc52e6f301fa05e898d762ecc0cb4995b944071e","language":"en","license":"CC-BY-4.0","query":"Return the sum of product_duration for shopping sessions where (month equals 'Mar' or administrative is greater than 23), grouped by revenue, ordered by revenue ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Mar\\\",23],\\\"sql\\\":\\\"SELECT revenue, SUM(product_duration) AS value FROM shopping_sessions WHERE (month = ? AND administrative > ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Mar\\\",23],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (month = ? OR administrative > ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Mar\\\",23],\\\"sql\\\":\\\"SELECT revenue, AVG(product_duration) AS value FROM shopping_sessions WHERE (month = ? OR administrative > ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Mar\\\",23],\\\"sql\\\":\\\"SELECT revenue, SUM(product_duration) AS value FROM shopping_sessions WHERE (month = ? OR administrative > ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,1302819.724988553],[1,297191.6586798]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, SUM(product_duration) AS value FROM shopping_sessions WHERE (month = ? OR administrative > ?) GROUP BY revenue ORDER BY revenue ASC","sql_parameters":"[\"Mar\",23]","state":"{\"question\":\"Return the sum of product_duration for shopping sessions where (month equals 'Mar' or administrative is greater than 23), grouped by revenue, ordered by revenue ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}198{"category":"join/distinct_invoice/date/or/aggregate","domain":"commerce","family_id":"a687fe904f1609ed29b350c2","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"44246dcaa8499bf5c23fec3285816d781caa04bcd8e1b3709599925519d3a9cd","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.customer_id equals '12359' or i.invoice_date is before '2010-02-18').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12359\\\",\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? AND i.invoice_date < ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12359\\\",\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR i.invoice_date < ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12359\\\",\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR i.invoice_date < ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12359\\\",\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR i.invoice_date < ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[615]]","source":"online_retail_ii","split":"dev","sql":"SELECT COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR i.invoice_date < ?)","sql_parameters":"[\"12359\",\"2010-02-18\"]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.customer_id equals '12359' or i.invoice_date is before '2010-02-18').\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}199{"category":"single_table/or/having","domain":"sensor","family_id":"635c447458da88d4f40109ce","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"c155a94b08c8e9deca8fbf16f3855d85110ecbbf9d6e30ce1c84cc9f54c5186e","language":"en","license":"CC-BY-4.0","query":"Return the average of ps2_mean for hydraulic cycles where (ps1_mean is greater than 158.96089 or ps2_mean is at most 107.17314), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[158.96089,107.17314,2],\\\"sql\\\":\\\"SELECT cooler, AVG(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? AND ps2_mean <= ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[158.96089,107.17314,2],\\\"sql\\\":\\\"SELECT cooler, AVG(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? OR ps2_mean <= ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value ASC, cooler ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[158.96089,107.17314,2],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? OR ps2_mean <= ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[158.96089,107.17314,2],\\\"sql\\\":\\\"SELECT cooler, AVG(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? OR ps2_mean <= ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[3,111.66925661064427],[100,109.24720113360324],[20,107.15281194805193]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, AVG(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? OR ps2_mean <= ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5","sql_parameters":"[158.96089,107.17314,2]","state":"{\"question\":\"Return the average of ps2_mean for hydraulic cycles where (ps1_mean is greater than 158.96089 or ps2_mean is at most 107.17314), 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_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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}200{"category":"single_table/date/and/having","domain":"commerce","family_id":"f871bac91e90a048bd58bc6f","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"b6a2d131d4f0e646b03e5c32bd2755b14ce2088a704ae07ed89d238f8918c099","language":"en","license":"CC-BY-4.0","query":"Return the sum of quantity for retail invoice lines where (quantity is at most 229 and invoice_date is on or after '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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[229,\\\"2011-09-29\\\",10],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[229,\\\"2011-09-29\\\",10],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[229,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[229,\\\"2011-09-29\\\",10],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"France\",707],[\"EIRE\",713],[\"Netherlands\",947]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3","sql_parameters":"[229,\"2011-09-29\",10]","state":"{\"question\":\"Return the sum of quantity for retail invoice lines where (quantity is at most 229 and invoice_date is on or after '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.\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}201{"category":"single_table/or/aggregate","domain":"sensor","family_id":"d7892e79d5175119438f377d","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"1b7497f85f023740a10a368190bfda79af6be649a664153598996edb88b170ba","language":"en","license":"CC-BY-4.0","query":"Return the maximum of eps1_mean for hydraulic cycles where (ps1_mean is at most 160.79926 or vs1_mean is at most 0.61133).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[160.79926,0.61133],\\\"sql\\\":\\\"SELECT MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR vs1_mean <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[160.79926,0.61133],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR vs1_mean <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[160.79926,0.61133],\\\"sql\\\":\\\"SELECT SUM(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR vs1_mean <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[160.79926,0.61133],\\\"sql\\\":\\\"SELECT AVG(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR vs1_mean <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[2582.46763]]","source":"hydraulic","split":"dev","sql":"SELECT MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR vs1_mean <= ?)","sql_parameters":"[160.79926,0.61133]","state":"{\"question\":\"Return the maximum of eps1_mean for hydraulic cycles where (ps1_mean is at most 160.79926 or vs1_mean is at most 0.61133).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}202{"category":"join/null/and/having","domain":"commerce","family_id":"10e7a67de02aa14c4835048c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"b28dd19156c4c1db57948d0b435b20ad44a1958d9b83c4808b2d7c7f635af84a","language":"en","license":"CC-BY-4.0","query":"Return the minimum of l.quantity for retail lines joined to their invoices where (l.unit_price is greater than 0.55 and i.customer_id is present), grouped by i.country, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[0.55,2],\\\"sql\\\":\\\"SELECT i.country, MIN(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ? AND i.customer_id IS NOT NULL) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[0.55,2],\\\"sql\\\":\\\"SELECT i.country, MIN(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ? AND i.customer_id IS NOT NULL) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[0.55,2],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ? AND i.customer_id IS NOT NULL) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[0.55,2],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ? AND i.customer_id IS NOT NULL) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"USA\",12],[\"Canada\",8],[\"Australia\",2],[\"Bahrain\",2],[\"Channel Islands\",2]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, MIN(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ? AND i.customer_id IS NOT NULL) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5","sql_parameters":"[0.55,2]","state":"{\"question\":\"Return the minimum of l.quantity for retail lines joined to their invoices where (l.unit_price is greater than 0.55 and i.customer_id is present), grouped by i.country, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}203{"category":"single_table/and/grouped","domain":"commerce","family_id":"e3fef98601c2aef66b939f6f","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"af222e3bff7d753446166adf3024cfa831039be97911630ab144da139a8119d2","language":"en","license":"CC-BY-4.0","query":"Return the sum of unit_price for retail invoice lines where (country equals 'Channel Islands' and unit_price is greater than 49.95), grouped by invoice_date, ordered by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\",49.95],\\\"sql\\\":\\\"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price > ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (country = ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\",49.95],\\\"sql\\\":\\\"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND unit_price > ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND unit_price > ?) GROUP BY invoice_date ORDER BY invoice_date ASC","sql_parameters":"[\"Channel Islands\",49.95]","state":"{\"question\":\"Return the sum of unit_price for retail invoice lines where (country equals 'Channel Islands' and unit_price is greater than 49.95), 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\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}204{"category":"single_table/and/having","domain":"sensor","family_id":"6682bd2c2fde41192590802a","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"e373cfee98b295896d7fb06ce8619dec20b6db9761d860d55238f0399c8b12d4","language":"en","license":"CC-BY-4.0","query":"Return the maximum of ts1_mean for hydraulic cycles where (accumulator equals 100 and ps1_mean is at most 156.56746), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[100,156.56746,10],\\\"sql\\\":\\\"SELECT cooler, MAX(ts1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ? OR ps1_mean <= ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[100,156.56746,10],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (accumulator = ? AND ps1_mean <= ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[100,156.56746,10],\\\"sql\\\":\\\"SELECT cooler, MAX(ts1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ? AND ps1_mean <= ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[100,156.56746,10],\\\"sql\\\":\\\"SELECT cooler, SUM(ts1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ? AND ps1_mean <= ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[3,57.89928]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, MAX(ts1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ? AND ps1_mean <= ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value ASC, cooler ASC LIMIT 3","sql_parameters":"[100,156.56746,10]","state":"{\"question\":\"Return the maximum of ts1_mean for hydraulic cycles where (accumulator equals 100 and ps1_mean is at most 156.56746), 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\":\"INTEGER\",\"cooler\":\"INTEGER\",\"cycle_id\":\"INTEGER\",\"eps1_mean\":\"REAL\",\"fs1_mean\":\"REAL\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}205{"category":"single_table/aggregate","domain":"commerce","family_id":"07067afeba82875bf8ea7ce7","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"7094db466c616d3ffc2d548cca7ae13f1df2cd83f8d85038ebb6a032866a9572","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail invoice lines where (country equals 'Finland').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Finland\\\"],\\\"sql\\\":\\\"SELECT SUM(quantity) AS value FROM retail_lines WHERE (country = ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Finland\\\"],\\\"sql\\\":\\\"SELECT AVG(quantity) AS value FROM retail_lines WHERE (country = ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Finland\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (country = ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Finland\\\"],\\\"sql\\\":\\\"SELECT MIN(quantity) AS value FROM retail_lines WHERE (country = ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[73]]","source":"online_retail_ii","split":"dev","sql":"SELECT COUNT(*) AS value FROM retail_lines WHERE (country = ?)","sql_parameters":"[\"Finland\"]","state":"{\"question\":\"Return the number of rows for retail invoice lines where (country equals 'Finland').\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}206{"category":"single_table/date/having","domain":"commerce","family_id":"e6a1e078d18b23cb2bd723ec","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"001cd08a152e64933566d201a56f783eae393e4577e8e9a49d96413ec2473523","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (invoice_date is before '2011-09-29'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MAX(unit_price) 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-09-29\\\",10],\\\"sql\\\":\\\"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2011-09-29\\\",10],\\\"sql\\\":\\\"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2011-09-29\\\",10],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-08-17\",3.39],[\"2009-12-23\",3.75],[\"2010-01-17\",4.95]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3","sql_parameters":"[\"2011-09-29\",10]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines where (invoice_date is before '2011-09-29'), 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\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}207{"category":"join/date/and/aggregate","domain":"commerce","family_id":"2a2eb586a9f81db6bc4adccf","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"1088cc2788c00e33b0cfaaa82ea063e1453de72bb6a0c6b0fa173822896c8a3e","language":"en","license":"CC-BY-4.0","query":"Return the minimum of l.unit_price for retail lines joined to their invoices where (l.unit_price is at most 0.55 and i.invoice_date is before '2010-07-14').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[0.55,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT MIN(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\\\":[0.55,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price <= ? AND i.invoice_date < ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[0.55,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT SUM(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price <= ? AND i.invoice_date < ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[0.55,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT MIN(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price <= ? AND i.invoice_date < ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0.06]]","source":"online_retail_ii","split":"dev","sql":"SELECT MIN(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price <= ? AND i.invoice_date < ?)","sql_parameters":"[0.55,\"2010-07-14\"]","state":"{\"question\":\"Return the minimum of l.unit_price for retail lines joined to their invoices where (l.unit_price is at most 0.55 and i.invoice_date is before '2010-07-14').\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}208{"category":"single_table/and/having","domain":"sensor","family_id":"4240e72752ffa62cd19396a5","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"809d2d6b451acde58d76d6213569be02f087f062b2e69669163c47c7bff926af","language":"en","license":"CC-BY-4.0","query":"Return the average of ps2_mean for hydraulic cycles where (fs1_mean is at most 6.63763 and ts1_mean is greater than 35.56605), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[6.63763,35.56605,10],\\\"sql\\\":\\\"SELECT valve, AVG(ps2_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? OR ts1_mean > ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[6.63763,35.56605,10],\\\"sql\\\":\\\"SELECT valve, AVG(ps2_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? AND ts1_mean > ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[6.63763,35.56605,10],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? AND ts1_mean > ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[6.63763,35.56605,10],\\\"sql\\\":\\\"SELECT valve, AVG(ps2_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? AND ts1_mean > ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[100,108.72409163551401],[73,109.94719787301588],[80,110.3722261484099]]","source":"hydraulic","split":"dev","sql":"SELECT valve, AVG(ps2_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? AND ts1_mean > ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 3","sql_parameters":"[6.63763,35.56605,10]","state":"{\"question\":\"Return the average of ps2_mean for hydraulic cycles where (fs1_mean is at most 6.63763 and ts1_mean is greater than 35.56605), 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\",\"cooler\":\"INTEGER\",\"cycle_id\":\"INTEGER\",\"eps1_mean\":\"REAL\",\"fs1_mean\":\"REAL\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}209{"category":"single_table/or/ranked","domain":"commerce","family_id":"daaad50fcdbe5aabcc2fe59d","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"a86bf57015765cd5ec8f82c15a57f7a5c7e2481fee232cb248e65e605ba609a6","language":"en","license":"CC-BY-4.0","query":"Return the maximum of administrative for shopping sessions where (month equals 'Mar' or visitor_type equals 'Other'), grouped by revenue; return at most 5 groups ordered by aggregate value DESC, breaking ties by revenue ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Mar\\\",\\\"Other\\\"],\\\"sql\\\":\\\"SELECT revenue, MAX(administrative) AS value FROM shopping_sessions WHERE (month = ? OR visitor_type = ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Mar\\\",\\\"Other\\\"],\\\"sql\\\":\\\"SELECT revenue, MAX(administrative) AS value FROM shopping_sessions WHERE (month = ? AND visitor_type = ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Mar\\\",\\\"Other\\\"],\\\"sql\\\":\\\"SELECT revenue, MAX(administrative) AS value FROM shopping_sessions WHERE (month = ? OR visitor_type = ?) GROUP BY revenue ORDER BY value ASC, revenue ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Mar\\\",\\\"Other\\\"],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (month = ? OR visitor_type = ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,24],[1,19]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, MAX(administrative) AS value FROM shopping_sessions WHERE (month = ? OR visitor_type = ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5","sql_parameters":"[\"Mar\",\"Other\"]","state":"{\"question\":\"Return the maximum of administrative for shopping sessions where (month equals 'Mar' or visitor_type equals 'Other'), 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_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}210{"category":"single_table/and/grouped","domain":"commerce","family_id":"7e577d1ad624b716cf8cf9e2","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"68a147a100fbd7c59cf4627efc8a78d7aff2f99b70898ff9a06b20c86de3761f","language":"en","license":"CC-BY-4.0","query":"Return the sum of administrative for shopping sessions where (month equals 'Feb' and product_duration is greater than 472.4166667), grouped by revenue, ordered by revenue ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Feb\\\",472.4166667],\\\"sql\\\":\\\"SELECT revenue, SUM(administrative) AS value FROM shopping_sessions WHERE (month = ? OR product_duration > ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Feb\\\",472.4166667],\\\"sql\\\":\\\"SELECT revenue, SUM(administrative) AS value FROM shopping_sessions WHERE (month = ? AND product_duration > ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Feb\\\",472.4166667],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (month = ? AND product_duration > ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Feb\\\",472.4166667],\\\"sql\\\":\\\"SELECT revenue, AVG(administrative) AS value FROM shopping_sessions WHERE (month = ? AND product_duration > ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,51],[1,17]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, SUM(administrative) AS value FROM shopping_sessions WHERE (month = ? AND product_duration > ?) GROUP BY revenue ORDER BY revenue ASC","sql_parameters":"[\"Feb\",472.4166667]","state":"{\"question\":\"Return the sum of administrative for shopping sessions where (month equals 'Feb' and product_duration is greater than 472.4166667), grouped by revenue, ordered by revenue ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}211{"category":"join/or/grouped","domain":"commerce","family_id":"36b76470e810cd2f24125cc1","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"026b842c200cdfccf9be7d344bf97d908bdc1e09e3296bba474aec63a6231cca","language":"en","license":"CC-BY-4.0","query":"Return the average of l.unit_price for retail lines joined to their invoices where (i.customer_id equals '12370' or l.quantity is at most 92), grouped by i.country, ordered by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12370\\\",92],\\\"sql\\\":\\\"SELECT i.country, 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.quantity <= ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12370\\\",92],\\\"sql\\\":\\\"SELECT i.country, 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.quantity <= ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12370\\\",92],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR l.quantity <= ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12370\\\",92],\\\"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.customer_id = ? OR l.quantity <= ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",2.994782608695652],[\"Austria\",11.071666666666665],[\"Bahrain\",4.277272727272727],[\"Belgium\",8.28917808219178],[\"Canada\",0.998],[\"Channel Islands\",4.511],[\"Cyprus\",4.635454545454546],[\"Denmark\",6.912307692307692],[\"EIRE\",26.646235294117645],[\"Finland\",12.325757575757576],[\"France\",5.220355555555555],[\"Germany\",8.341901840490797],[\"Israel\",5.36875],[\"Italy\",7.317857142857143],[\"Japan\",2.509230769230769],[\"Netherlands\",7.3914285714285715],[\"Norway\",58.2],[\"Poland\",8.031666666666666],[\"Portugal\",6.567619047619047],[\"Singapore\",1684.305],[\"Spain\",8.812560975609756],[\"Sweden\",8.04107142857143],[\"Switzerland\",10.212941176470588],[\"USA\",2.55],[\"United Arab Emirates\",134.0],[\"United Kingdom\",4.256829706080323]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, 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.quantity <= ?) GROUP BY i.country ORDER BY i.country ASC","sql_parameters":"[\"12370\",92]","state":"{\"question\":\"Return the average of l.unit_price for retail lines joined to their invoices where (i.customer_id equals '12370' or l.quantity is at most 92), grouped by i.country, ordered by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}212{"category":"single_table/or/aggregate","domain":"sensor","family_id":"47220f0f675d6a3f39aca72d","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"db5f36b2f2022c30f7228d72782beccdbd76a440a547d6ed2d1a07792337c45a","language":"en","license":"CC-BY-4.0","query":"Return the sum of fs1_mean for hydraulic cycles where (ps2_mean is at most 105.7255 or vs1_mean is greater than 0.64278).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[105.7255,0.64278],\\\"sql\\\":\\\"SELECT SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND vs1_mean > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[105.7255,0.64278],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR vs1_mean > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[105.7255,0.64278],\\\"sql\\\":\\\"SELECT SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR vs1_mean > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[105.7255,0.64278],\\\"sql\\\":\\\"SELECT AVG(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR vs1_mean > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[3578.44013]]","source":"hydraulic","split":"dev","sql":"SELECT SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR vs1_mean > ?)","sql_parameters":"[105.7255,0.64278]","state":"{\"question\":\"Return the sum of fs1_mean for hydraulic cycles where (ps2_mean is at most 105.7255 or vs1_mean is greater than 0.64278).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}213{"category":"single_table/and/grouped","domain":"commerce","family_id":"8bf418670102054225187a1c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"ae48c33810ab954b93481e2c64df5a729f986ee3b4a56bd6b6f05d73479776bc","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for shopping sessions where (visitor_type equals 'Returning_Visitor' and traffic_type equals 16), grouped by revenue, ordered by revenue ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Returning_Visitor\\\",16],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (visitor_type = ? AND traffic_type = ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Returning_Visitor\\\",16],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (visitor_type = ? OR traffic_type = ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Returning_Visitor\\\",16],\\\"sql\\\":\\\"SELECT revenue, SUM(administrative) AS value FROM shopping_sessions WHERE (visitor_type = ? AND traffic_type = ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Returning_Visitor\\\",16],\\\"sql\\\":\\\"SELECT revenue, AVG(administrative) AS value FROM shopping_sessions WHERE (visitor_type = ? AND traffic_type = ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,1],[1,1]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (visitor_type = ? AND traffic_type = ?) GROUP BY revenue ORDER BY revenue ASC","sql_parameters":"[\"Returning_Visitor\",16]","state":"{\"question\":\"Return the number of rows for shopping sessions where (visitor_type equals 'Returning_Visitor' and traffic_type equals 16), grouped by revenue, ordered by revenue ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}214{"category":"single_table/and/aggregate","domain":"sensor","family_id":"f216eb97774511c4a286f842","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"53a51f60beeba000735749e36bdb26e6c28ad0c9c3948988f381508cf405b3f2","language":"en","license":"CC-BY-4.0","query":"Return the maximum of ps2_mean for hydraulic cycles where (pump_leakage equals 0 and ts1_mean is greater than 36.33327).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[0,36.33327],\\\"sql\\\":\\\"SELECT MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? AND ts1_mean > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[0,36.33327],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? AND ts1_mean > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[0,36.33327],\\\"sql\\\":\\\"SELECT SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? AND ts1_mean > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[0,36.33327],\\\"sql\\\":\\\"SELECT AVG(ps2_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? AND ts1_mean > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[131.58909]]","source":"hydraulic","split":"dev","sql":"SELECT MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? AND ts1_mean > ?)","sql_parameters":"[0,36.33327]","state":"{\"question\":\"Return the maximum of ps2_mean for hydraulic cycles where (pump_leakage equals 0 and ts1_mean is greater than 36.33327).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}215{"category":"single_table/and/aggregate","domain":"commerce","family_id":"63c0a301e82ec12d83ee0613","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"97f907a475536248c88afbaa22b4b89d1bd69c92d9dea21148d71d7710d6f9cb","language":"en","license":"CC-BY-4.0","query":"Return the minimum of quantity for retail invoice lines where (country equals 'Canada' and quantity is greater than 92).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Canada\\\",92],\\\"sql\\\":\\\"SELECT MIN(quantity) AS value FROM retail_lines WHERE (country = ? AND quantity > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Canada\\\",92],\\\"sql\\\":\\\"SELECT MIN(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Canada\\\",92],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (country = ? AND quantity > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT MIN(quantity) AS value FROM retail_lines\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[null]]","source":"online_retail_ii","split":"dev","sql":"SELECT MIN(quantity) AS value FROM retail_lines WHERE (country = ? AND quantity > ?)","sql_parameters":"[\"Canada\",92]","state":"{\"question\":\"Return the minimum of quantity for retail invoice lines where (country equals 'Canada' and quantity is greater than 92).\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}216{"category":"join/or/having","domain":"commerce","family_id":"5bacad84cc7f5d56be36ae71","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"5fa34ccca423cf3b733d002f7b65d2dcc78419fe5923dc2e5caa842827afd061","language":"en","license":"CC-BY-4.0","query":"Return the minimum of l.quantity for retail lines joined to their invoices where (i.country equals 'Austria' or l.quantity is greater than 25), grouped by i.country, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Austria\\\",25,2],\\\"sql\\\":\\\"SELECT i.country, MIN(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR l.quantity > ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Austria\\\",25,2],\\\"sql\\\":\\\"SELECT i.country, MIN(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND l.quantity > ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Austria\\\",25,2],\\\"sql\\\":\\\"SELECT i.country, MIN(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR l.quantity > ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Austria\\\",25,2],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR l.quantity > ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Belgium\",108],[\"Cyprus\",96],[\"Italy\",72],[\"Japan\",60],[\"Channel Islands\",50]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, MIN(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR l.quantity > ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5","sql_parameters":"[\"Austria\",25,2]","state":"{\"question\":\"Return the minimum of l.quantity for retail lines joined to their invoices where (i.country equals 'Austria' or l.quantity is greater than 25), grouped by i.country, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}217{"category":"single_table/date/or/ranked","domain":"commerce","family_id":"2fb51650c8e576feedfef634","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"3b787406af8723a4d2ec5e3d606d42ddd3c46143a3f96febe132fe004d336756","language":"en","license":"CC-BY-4.0","query":"Return the sum of unit_price 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; return at most 3 groups ordered by aggregate value ASC, breaking ties by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[4.77,\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (unit_price > ? AND invoice_date >= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[4.77,\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date >= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[4.77,\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date >= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[4.77,\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date >= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Canada\",4.99],[\"USA\",7.6499999999999995],[\"Japan\",37.42]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date >= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3","sql_parameters":"[4.77,\"2010-02-18\"]","state":"{\"question\":\"Return the sum of unit_price 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; 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\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}218{"category":"single_table/ranked","domain":"commerce","family_id":"287913e748187b0d9aa2f6c5","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"fd4b6cd46eff05254fcf91339b2333733b44dbf66b2bea6db95732f65575717a","language":"en","license":"CC-BY-4.0","query":"Return the average of administrative for shopping sessions where (product_duration is at most 472.4166667), grouped by revenue; return at most 3 groups ordered by aggregate value ASC, breaking ties by revenue ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[472.4166667],\\\"sql\\\":\\\"SELECT revenue, AVG(administrative) AS value FROM shopping_sessions WHERE (product_duration <= ?) GROUP BY revenue ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[472.4166667],\\\"sql\\\":\\\"SELECT revenue, AVG(administrative) AS value FROM shopping_sessions WHERE (product_duration <= ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[472.4166667],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (product_duration <= ?) GROUP BY revenue ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[472.4166667],\\\"sql\\\":\\\"SELECT revenue, SUM(administrative) AS value FROM shopping_sessions WHERE (product_duration <= ?) GROUP BY revenue ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,1.095494417862839],[1,1.7556675062972291]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, AVG(administrative) AS value FROM shopping_sessions WHERE (product_duration <= ?) GROUP BY revenue ORDER BY value ASC, revenue ASC LIMIT 3","sql_parameters":"[472.4166667]","state":"{\"question\":\"Return the average of administrative for shopping sessions where (product_duration is at most 472.4166667), 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\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}219{"category":"join/date/and/grouped","domain":"commerce","family_id":"81e13e180229d894abaa7dbf","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"8dab47e8917c01cc8d6c05aacb29886829ce2f7fc36787c582dc0e9f3adaa875","language":"en","license":"CC-BY-4.0","query":"Return the average of l.quantity for retail lines joined to their invoices where (l.quantity is greater than 648 and i.invoice_date is on or after '2011-05-10'), grouped by i.country, ordered by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[648,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT i.country, AVG(l.quantity) 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 ORDER BY i.country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[648,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT i.country, 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 >= ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[648,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) 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 ORDER BY i.country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[648,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) 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 ORDER BY i.country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"EIRE\",960.0],[\"Sweden\",720.0],[\"United Kingdom\",958.804347826087]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, AVG(l.quantity) 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 ORDER BY i.country ASC","sql_parameters":"[648,\"2011-05-10\"]","state":"{\"question\":\"Return the average of l.quantity for retail lines joined to their invoices where (l.quantity is greater than 648 and i.invoice_date is on or after '2011-05-10'), grouped by i.country, ordered by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}220{"category":"join/distinct_invoice/or/ranked","domain":"commerce","family_id":"2093f158d0815653ad9a69ce","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"acd3f55201275500f2c4b35ab3474ef402c88a71494bac2cc8ef7e1e57d7fd9c","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice 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; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12364\\\",0.55],\\\"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.customer_id = ? AND l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12364\\\",0.55],\\\"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.customer_id = ? OR l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12364\\\",0.55],\\\"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.customer_id = ? OR l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12364\\\",0.55],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) 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 value ASC, i.invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-05\",1],[\"2009-12-08\",1],[\"2010-01-04\",1]]","source":"online_retail_ii","split":"dev","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.customer_id = ? OR l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3","sql_parameters":"[\"12364\",0.55]","state":"{\"question\":\"Return the number of distinct i.invoice 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; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}221{"category":"join/date/or/aggregate","domain":"commerce","family_id":"115c816604bbd166c56e18f5","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"bfd6089c9a20c5b38d979e7101c70cb019e083de9fb60d376d3a7e66d7ed9275","language":"en","license":"CC-BY-4.0","query":"Return the minimum of l.quantity for retail lines joined to their invoices where (l.unit_price is greater than 0.55 or i.invoice_date is on or after '2011-09-29').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[0.55,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT MIN(l.quantity) 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\\\":[0.55,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ? OR i.invoice_date >= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[0.55,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ? OR i.invoice_date >= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[0.55,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ? OR i.invoice_date >= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1]]","source":"online_retail_ii","split":"dev","sql":"SELECT MIN(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ? OR i.invoice_date >= ?)","sql_parameters":"[0.55,\"2011-09-29\"]","state":"{\"question\":\"Return the minimum of l.quantity for retail lines joined to their invoices where (l.unit_price is greater than 0.55 or i.invoice_date is on or after '2011-09-29').\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}222{"category":"single_table/date/and/having","domain":"commerce","family_id":"856711faead756dadb591bef","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"ee298bf3336ddf27f705779d84c56bde2e274d7a8edb089c612e75ee168c8782","language":"en","license":"CC-BY-4.0","query":"Return the average of unit_price for retail invoice lines where (country equals 'Belgium' and invoice_date is on or after '2011-05-10'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Belgium\\\",\\\"2011-05-10\\\",10],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Belgium\\\",\\\"2011-05-10\\\",10],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Belgium\\\",\\\"2011-05-10\\\",10],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Belgium\\\",\\\"2011-05-10\\\",10],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Belgium\",9.087560975609755]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3","sql_parameters":"[\"Belgium\",\"2011-05-10\",10]","state":"{\"question\":\"Return the average of unit_price for retail invoice lines where (country equals 'Belgium' and invoice_date is on or after '2011-05-10'), 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\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}223{"category":"join/having","domain":"commerce","family_id":"2d83e5fc48829e019c681135","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"81ed70d3e3ab713a179eb91f946dc6c395649699412f5edfd15e03cb55f50985","language":"en","license":"CC-BY-4.0","query":"Return the average of l.unit_price for retail lines joined to their invoices where (l.quantity is greater than 25), grouped by i.invoice_date, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[25],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(l.unit_price) 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\\\":[25,2],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[25,2],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[25,2],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-11-08\",7.3374999999999995],[\"2010-08-18\",5.945],[\"2011-03-10\",5.614],[\"2010-10-14\",5.500952380952381],[\"2011-07-21\",5.47]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.invoice_date, AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5","sql_parameters":"[25,2]","state":"{\"question\":\"Return the average of l.unit_price for retail lines joined to their invoices where (l.quantity is greater than 25), grouped by i.invoice_date, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}224{"category":"single_table/and/aggregate","domain":"sensor","family_id":"75e3089a76037565d599b081","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"7ed0768a2a6e3236e58d2a8f05587077ccb36c694798a7ac316ddcfb36e6daea","language":"en","license":"CC-BY-4.0","query":"Return the average of ts1_mean for hydraulic cycles where (ps1_mean is at most 172.56377 and ps2_mean is at most 122.4767).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[172.56377,122.4767],\\\"sql\\\":\\\"SELECT AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR ps2_mean <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[172.56377,122.4767],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? AND ps2_mean <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[172.56377,122.4767],\\\"sql\\\":\\\"SELECT AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? AND ps2_mean <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[172.56377,122.4767],\\\"sql\\\":\\\"SELECT SUM(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? AND ps2_mean <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[44.103596906329116]]","source":"hydraulic","split":"dev","sql":"SELECT AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? AND ps2_mean <= ?)","sql_parameters":"[172.56377,122.4767]","state":"{\"question\":\"Return the average of ts1_mean for hydraulic cycles where (ps1_mean is at most 172.56377 and ps2_mean is at most 122.4767).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}225{"category":"join/date/and/ranked","domain":"commerce","family_id":"4e467d233c2f5eab6b90c2d7","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"2b4131a8b44887436bc5b96030d3488603bba077ef6255d493b2d81235a4b990","language":"en","license":"CC-BY-4.0","query":"Return the average of l.unit_price for retail lines joined to their invoices where (l.quantity is at most 92 and i.invoice_date is on or after '2011-05-10'), grouped by i.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[92,\\\"2011-05-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 <= ? AND i.invoice_date >= ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[92,\\\"2011-05-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 ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[92,\\\"2011-05-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 <= ? AND i.invoice_date >= ?) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[92,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) 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 ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Japan\",0.9783333333333334],[\"Canada\",0.998],[\"Australia\",3.5011111111111113]]","source":"online_retail_ii","split":"dev","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 <= ? AND i.invoice_date >= ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3","sql_parameters":"[92,\"2011-05-10\"]","state":"{\"question\":\"Return the average of l.unit_price for retail lines joined to their invoices where (l.quantity is at most 92 and i.invoice_date is on or after '2011-05-10'), grouped by i.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}226{"category":"single_table/date/or/ranked","domain":"commerce","family_id":"2a1bc5639ea4bdabcda88205","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"ad496e4a3cb781e875eeb4104496c498c92ff2612f410a66e01963afc9b84ae4","language":"en","license":"CC-BY-4.0","query":"Return the average of unit_price 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[1800,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) 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 invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (quantity > ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[1800,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (quantity > ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[1800,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (quantity > ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-04-04\",193.91809523809525],[\"2011-10-19\",83.71802631578947],[\"2011-06-20\",68.40395833333334],[\"2011-03-01\",18.93618181818182],[\"2011-11-10\",15.689545454545454]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (quantity > ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5","sql_parameters":"[1800,\"2010-12-02\"]","state":"{\"question\":\"Return the average of unit_price 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\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}227{"category":"single_table/or/aggregate","domain":"commerce","family_id":"1ae7cce491f6e5baad33e762","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"62fa7e13d06bd06cfcad1de8d531ad2d5dcf3d8d05954f6c88334abee7e43e8f","language":"en","license":"CC-BY-4.0","query":"Return the maximum of product_duration for shopping sessions where (region equals 4 or product_related is greater than 93).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[4,93],\\\"sql\\\":\\\"SELECT MAX(product_duration) AS value FROM shopping_sessions WHERE (region = ? AND product_related > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[4,93],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (region = ? OR product_related > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[4,93],\\\"sql\\\":\\\"SELECT SUM(product_duration) AS value FROM shopping_sessions WHERE (region = ? OR product_related > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[4,93],\\\"sql\\\":\\\"SELECT MAX(product_duration) AS value FROM shopping_sessions WHERE (region = ? OR product_related > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[63973.52223]]","source":"online_shoppers","split":"dev","sql":"SELECT MAX(product_duration) AS value FROM shopping_sessions WHERE (region = ? OR product_related > ?)","sql_parameters":"[4,93]","state":"{\"question\":\"Return the maximum of product_duration for shopping sessions where (region equals 4 or product_related is greater than 93).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}228{"category":"single_table/and/having","domain":"commerce","family_id":"065c922a31f24c9481b5e528","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"2b12b6a4f44c212959882222db7a1316353869b5cd1f9f3f83db54adf2e87cf5","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail invoice lines where (country equals 'Channel Islands' and quantity is at most 92), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\",92,10],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\",92,10],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\",92],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[10],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3","sql_parameters":"[\"Channel Islands\",92,10]","state":"{\"question\":\"Return the number of rows for retail invoice lines where (country equals 'Channel Islands' and quantity is at most 92), 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\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}229{"category":"single_table/or/having","domain":"sensor","family_id":"a17a349917b0551dd129f5d5","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"7b9478c9e695ec035633145cd67387c4ee0fb871ecec71155f8bbd98e93d55ad","language":"en","license":"CC-BY-4.0","query":"Return the sum of vs1_mean for hydraulic cycles where (valve equals 90 or ps2_mean is greater than 105.7255), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[90,105.7255,10],\\\"sql\\\":\\\"SELECT valve, SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (valve = ? AND ps2_mean > ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[90,105.7255,10],\\\"sql\\\":\\\"SELECT valve, SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (valve = ? OR ps2_mean > ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[90,105.7255,10],\\\"sql\\\":\\\"SELECT valve, SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (valve = ? OR ps2_mean > ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[90,105.7255,10],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (valve = ? OR ps2_mean > ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[73,182.43691],[80,186.61433],[90,222.01847]]","source":"hydraulic","split":"dev","sql":"SELECT valve, SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (valve = ? OR ps2_mean > ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 3","sql_parameters":"[90,105.7255,10]","state":"{\"question\":\"Return the sum of vs1_mean for hydraulic cycles where (valve equals 90 or ps2_mean is greater than 105.7255), 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\",\"cooler\":\"INTEGER\",\"cycle_id\":\"INTEGER\",\"eps1_mean\":\"REAL\",\"fs1_mean\":\"REAL\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}230{"category":"single_table/and/aggregate","domain":"sensor","family_id":"28d5e8766f277e6b1ca3196a","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"694c639e2a373d652fc78b62d3b51fb4cb2c217d03ecd6b5a0a92d36f2387850","language":"en","license":"CC-BY-4.0","query":"Return the maximum of fs1_mean for hydraulic cycles where (eps1_mean is greater than 2598.8769 and fs1_mean is greater than 6.41875).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2598.8769,6.41875],\\\"sql\\\":\\\"SELECT MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ? OR fs1_mean > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2598.8769,6.41875],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (eps1_mean > ? AND fs1_mean > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2598.8769,6.41875],\\\"sql\\\":\\\"SELECT MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ? AND fs1_mean > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT MAX(fs1_mean) AS value FROM hydraulic_cycles\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[null]]","source":"hydraulic","split":"dev","sql":"SELECT MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ? AND fs1_mean > ?)","sql_parameters":"[2598.8769,6.41875]","state":"{\"question\":\"Return the maximum of fs1_mean for hydraulic cycles where (eps1_mean is greater than 2598.8769 and fs1_mean is greater than 6.41875).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}231{"category":"single_table/or/ranked","domain":"commerce","family_id":"e7cafc4810f6d7723af96222","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"f7ce5d85ce7fdb207d67d21049aeffd9022eeb8cb0f256b583e147d3048aac1e","language":"en","license":"CC-BY-4.0","query":"Return the maximum of product_duration for shopping sessions where (administrative is greater than 13 or product_related is at most 155), grouped by visitor_type; return at most 3 groups ordered by aggregate value ASC, breaking ties by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[13,155],\\\"sql\\\":\\\"SELECT visitor_type, MAX(product_duration) AS value FROM shopping_sessions WHERE (administrative > ? AND product_related <= ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[13,155],\\\"sql\\\":\\\"SELECT visitor_type, MAX(product_duration) AS value FROM shopping_sessions WHERE (administrative > ? OR product_related <= ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[13,155],\\\"sql\\\":\\\"SELECT visitor_type, MAX(product_duration) AS value FROM shopping_sessions WHERE (administrative > ? OR product_related <= ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[13,155],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (administrative > ? OR product_related <= ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Other\",4316.833333],[\"New_Visitor\",5969.573168],[\"Returning_Visitor\",43171.23338]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, MAX(product_duration) AS value FROM shopping_sessions WHERE (administrative > ? OR product_related <= ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3","sql_parameters":"[13,155]","state":"{\"question\":\"Return the maximum of product_duration for shopping sessions where (administrative is greater than 13 or product_related is at most 155), grouped by visitor_type; return at most 3 groups ordered by aggregate value ASC, breaking ties by visitor_type ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}232{"category":"join/date/ranked","domain":"commerce","family_id":"cf40e6a830fad4365f284a61","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"0c622c7d838bc96b038ae6db1420a5925713f9f66bce450b9f009f1e52c5f869","language":"en","license":"CC-BY-4.0","query":"Return the average of l.unit_price for retail lines joined to their invoices where (i.invoice_date is before '2011-09-29'), grouped by i.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT i.country, 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.country ORDER BY value DESC, i.country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT i.country, 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.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) 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_4\":\"{\\\"parameters\\\":[\\\"2011-09-29\\\"],\\\"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\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Canada\",0.998],[\"Channel Islands\",1.71],[\"Japan\",1.9694736842105265]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, 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.country ORDER BY value ASC, i.country ASC LIMIT 3","sql_parameters":"[\"2011-09-29\"]","state":"{\"question\":\"Return the average of l.unit_price for retail lines joined to their invoices where (i.invoice_date is before '2011-09-29'), grouped by i.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}233{"category":"single_table/date/aggregate","domain":"commerce","family_id":"b506553d0da00d7bc0ce3f66","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"817a810d5f3d08175182d8f41d545dac109f3c625ade98edcdcf41a5bb9ee3a5","language":"en","license":"CC-BY-4.0","query":"Return the minimum of quantity for retail invoice lines where (invoice_date is before '2011-05-10').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (invoice_date < ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT MIN(quantity) AS value FROM retail_lines WHERE (invoice_date < ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT SUM(quantity) AS value FROM retail_lines WHERE (invoice_date < ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT AVG(quantity) AS value FROM retail_lines WHERE (invoice_date < ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1]]","source":"online_retail_ii","split":"dev","sql":"SELECT MIN(quantity) AS value FROM retail_lines WHERE (invoice_date < ?)","sql_parameters":"[\"2011-05-10\"]","state":"{\"question\":\"Return the minimum of quantity for retail invoice lines where (invoice_date is before '2011-05-10').\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}234{"category":"join/null/and/ranked","domain":"commerce","family_id":"b7c33c218c433020d65c3ad0","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"f5ecc07d53f6f7409b0c7950bc0dc63f79faedac77f518aeebe632ceb2fac4c1","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail lines joined to their invoices where (i.country equals 'Bahrain' and i.customer_id is missing), grouped by i.invoice_date; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Bahrain\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR i.customer_id IS NULL) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Bahrain\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND i.customer_id IS NULL) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Bahrain\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND i.customer_id IS NULL) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Bahrain\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(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 NULL) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-05-10\",5],[\"2010-03-23\",2]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.invoice_date, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND i.customer_id IS NULL) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5","sql_parameters":"[\"Bahrain\"]","state":"{\"question\":\"Return the number of rows for retail lines joined to their invoices where (i.country equals 'Bahrain' and i.customer_id is missing), 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_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}235{"category":"single_table/or/ranked","domain":"sensor","family_id":"1fde7c6afa287e8709494af6","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"4803470a8f0bc6aa944f3f6bbc53682abf3307d9e7b9a265474cfa0559c127d5","language":"en","license":"CC-BY-4.0","query":"Return the maximum of ps2_mean for hydraulic cycles where (ps2_mean is at most 107.17314 or eps1_mean is at most 2544.76), grouped by cooler; return at most 5 groups ordered by aggregate value DESC, breaking ties by cooler ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[107.17314,2544.76],\\\"sql\\\":\\\"SELECT cooler, MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND eps1_mean <= ?) GROUP BY cooler ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[107.17314,2544.76],\\\"sql\\\":\\\"SELECT cooler, MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR eps1_mean <= ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[107.17314,2544.76],\\\"sql\\\":\\\"SELECT cooler, MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR eps1_mean <= ?) GROUP BY cooler ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[107.17314,2544.76],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR eps1_mean <= ?) GROUP BY cooler ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[3,116.64491],[100,109.79388],[20,108.02486]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR eps1_mean <= ?) GROUP BY cooler ORDER BY value DESC, cooler ASC LIMIT 5","sql_parameters":"[107.17314,2544.76]","state":"{\"question\":\"Return the maximum of ps2_mean for hydraulic cycles where (ps2_mean is at most 107.17314 or eps1_mean is at most 2544.76), 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_mean\":\"REAL\",\"fs1_mean\":\"REAL\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}236{"category":"single_table/and/aggregate","domain":"sensor","family_id":"24b7b9cb03a9f3e18dab262b","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"0b37927c0cbcec90cbb931a875529dfba1a33f5ed6bd86927545f723b3dd434e","language":"en","license":"CC-BY-4.0","query":"Return the maximum of ps1_mean for hydraulic cycles where (accumulator equals 115 and vs1_mean is greater than 0.71948).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[115,0.71948],\\\"sql\\\":\\\"SELECT MAX(ps1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ? AND vs1_mean > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[115,0.71948],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (accumulator = ? AND vs1_mean > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[115,0.71948],\\\"sql\\\":\\\"SELECT SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ? AND vs1_mean > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[115,0.71948],\\\"sql\\\":\\\"SELECT AVG(ps1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ? AND vs1_mean > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[180.92271]]","source":"hydraulic","split":"dev","sql":"SELECT MAX(ps1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ? AND vs1_mean > ?)","sql_parameters":"[115,0.71948]","state":"{\"question\":\"Return the maximum of ps1_mean for hydraulic cycles where (accumulator equals 115 and vs1_mean is greater than 0.71948).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}237{"category":"single_table/ranked","domain":"sensor","family_id":"3d8002c7087ed0caeb44030a","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"d349096ade92789d3d426a12018946998875edc1b66980e4cd0b8d836269345f","language":"en","license":"CC-BY-4.0","query":"Return the minimum of ps2_mean for hydraulic cycles where (ts1_mean is greater than 36.33327), grouped by cooler; return at most 5 groups ordered by aggregate value DESC, breaking ties by cooler ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[36.33327],\\\"sql\\\":\\\"SELECT cooler, MIN(ps2_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean > ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[36.33327],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (ts1_mean > ?) GROUP BY cooler ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[36.33327],\\\"sql\\\":\\\"SELECT cooler, MIN(ps2_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean > ?) GROUP BY cooler ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[36.33327],\\\"sql\\\":\\\"SELECT cooler, SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean > ?) GROUP BY cooler ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[100,107.92581],[20,105.68236],[3,104.40631]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, MIN(ps2_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean > ?) GROUP BY cooler ORDER BY value DESC, cooler ASC LIMIT 5","sql_parameters":"[36.33327]","state":"{\"question\":\"Return the minimum of ps2_mean for hydraulic cycles where (ts1_mean is greater than 36.33327), 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_mean\":\"REAL\",\"fs1_mean\":\"REAL\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}238{"category":"join/null/and/grouped","domain":"commerce","family_id":"00fd20a321ae6eff08cda695","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"f46d71e3c1d21ea45ad2beeb5e99d84de5c931cc35c33e4c39118b5b5e5e8565","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.unit_price for retail lines joined to their invoices where (l.quantity is at most 25 and i.customer_id is present), grouped by i.invoice_date, ordered by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[25],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? OR i.customer_id IS NOT NULL) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[25],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? AND i.customer_id IS NOT NULL) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[25],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? AND i.customer_id IS NOT NULL) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[25],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? AND i.customer_id IS NOT NULL) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-01\",82.1],[\"2009-12-02\",233.67000000000002],[\"2009-12-03\",399.53000000000003],[\"2009-12-04\",113.63],[\"2009-12-05\",124.25],[\"2009-12-06\",118.85000000000001],[\"2009-12-07\",164.12],[\"2009-12-08\",154.81],[\"2009-12-09\",409.38],[\"2009-12-10\",205.4],[\"2009-12-11\",56.21],[\"2009-12-13\",128.82],[\"2009-12-14\",210.45],[\"2009-12-15\",242.67000000000002],[\"2009-12-16\",234.77],[\"2009-12-17\",207.01],[\"2009-12-18\",116.28],[\"2009-12-20\",65.04],[\"2009-12-21\",41.79],[\"2009-12-22\",81.47],[\"2009-12-23\",6.4],[\"2010-01-04\",20.1],[\"2010-01-05\",37.15],[\"2010-01-06\",10.45],[\"2010-01-07\",127.85],[\"2010-01-08\",128.2],[\"2010-01-10\",24.45],[\"2010-01-11\",120.66000000000001],[\"2010-01-12\",154.99],[\"2010-01-13\",26.34],[\"2010-01-14\",47.94],[\"2010-01-15\",136.5],[\"2010-01-17\",28.0],[\"2010-01-18\",6.59],[\"2010-01-19\",93.0],[\"2010-01-20\",125.64],[\"2010-01-21\",130.39000000000001],[\"2010-01-22\",165.05],[\"2010-01-24\",135.04],[\"2010-01-25\",63.45],[\"2010-01-26\",93.38000000000001],[\"2010-01-27\",120.99],[\"2010-01-28\",41.95],[\"2010-01-29\",116.8],[\"2010-01-31\",80.87],[\"2010-02-01\",81.9],[\"2010-02-02\",56.03],[\"2010-02-03\",202.34],[\"2010-02-04\",122.05],[\"2010-02-05\",115.98],[\"2010-02-07\",4.95],[\"2010-02-08\",141.25],[\"2010-02-09\",97.55],[\"2010-02-10\",137.71],[\"2010-02-11\",55.79],[\"2010-02-12\",37.14],[\"2010-02-14\",53.77],[\"2010-02-15\",55.39],[\"2010-02-16\",283.65000000000003],[\"2010-02-17\",60.97],[\"2010-02-18\",90.6],[\"2010-02-19\",34.1],[\"2010-02-21\",48.04],[\"2010-02-22\",558.32],[\"2010-02-23\",184.54],[\"2010-02-24\",146.32],[\"2010-02-25\",157.42],[\"2010-02-26\",91.15],[\"2010-02-28\",185.49],[\"2010-03-01\",152.03],[\"2010-03-02\",90.25],[\"2010-03-03\",210.23],[\"2010-03-04\",109.67999999999999],[\"2010-03-05\",194.54],[\"2010-03-07\",37.1],[\"2010-03-08\",216.84],[\"2010-03-09\",110.7],[\"2010-03-10\",54.86],[\"2010-03-11\",85.0],[\"2010-03-12\",113.32],[\"2010-03-14\",69.45],[\"2010-03-15\",46.35],[\"2010-03-16\",77.75],[\"2010-03-17\",39.14],[\"2010-03-18\",174.61],[\"2010-03-19\",88.89],[\"2010-03-21\",92.19],[\"2010-03-22\",126.0],[\"2010-03-23\",127.19],[\"2010-03-24\",150.22],[\"2010-03-25\",142.01],[\"2010-03-26\",129.69],[\"2010-03-28\",14.95],[\"2010-03-29\",81.0],[\"2010-03-30\",163.42],[\"2010-03-31\",145.61],[\"2010-04-01\",51.99],[\"2010-04-06\",169.73],[\"2010-04-07\",75.2],[\"2010-04-08\",149.56],[\"2010-04-09\",32.5],[\"2010-04-11\",60.1],[\"2010-04-12\",121.42],[\"2010-04-13\",67.59],[\"2010-04-14\",88.67],[\"2010-04-15\",88.1],[\"2010-04-16\",68.35],[\"2010-04-18\",51.7],[\"2010-04-19\",222.52],[\"2010-04-20\",119.57000000000001],[\"2010-04-21\",294.05],[\"2010-04-22\",139.29],[\"2010-04-23\",180.12],[\"2010-04-25\",104.58],[\"2010-04-26\",125.85000000000001],[\"2010-04-27\",142.14],[\"2010-04-28\",86.5],[\"2010-04-29\",165.63],[\"2010-04-30\",170.57999999999998],[\"2010-05-02\",73.69],[\"2010-05-04\",336.89],[\"2010-05-05\",271.1],[\"2010-05-06\",213.56],[\"2010-05-07\",163.36],[\"2010-05-09\",195.73],[\"2010-05-10\",196.87],[\"2010-05-11\",113.53999999999999],[\"2010-05-12\",130.32],[\"2010-05-13\",62.51],[\"2010-05-14\",135.95],[\"2010-05-16\",38.9],[\"2010-05-17\",32.5],[\"2010-05-18\",137.35],[\"2010-05-19\",440.95],[\"2010-05-20\",151.7],[\"2010-05-21\",134.4],[\"2010-05-23\",65.41],[\"2010-05-24\",197.65],[\"2010-05-25\",122.95],[\"2010-05-26\",132.9],[\"2010-05-27\",158.10999999999999],[\"2010-05-28\",42.62],[\"2010-05-30\",58.25],[\"2010-06-01\",55.73],[\"2010-06-02\",104.75],[\"2010-06-03\",160.39],[\"2010-06-04\",25.26],[\"2010-06-06\",49.23],[\"2010-06-07\",204.24],[\"2010-06-08\",132.8],[\"2010-06-09\",171.75],[\"2010-06-10\",156.4],[\"2010-06-11\",154.21],[\"2010-06-13\",171.32],[\"2010-06-14\",151.38],[\"2010-06-15\",82.95],[\"2010-06-16\",200.25],[\"2010-06-17\",154.56],[\"2010-06-18\",53.35],[\"2010-06-20\",85.85],[\"2010-06-21\",74.0],[\"2010-06-22\",67.53999999999999],[\"2010-06-23\",193.31],[\"2010-06-24\",107.78999999999999],[\"2010-06-25\",58.5],[\"2010-06-27\",129.60999999999999],[\"2010-06-28\",123.92],[\"2010-06-29\",228.28],[\"2010-06-30\",96.62],[\"2010-07-01\",100.03999999999999],[\"2010-07-02\",5.45],[\"2010-07-04\",76.65],[\"2010-07-05\",222.47],[\"2010-07-06\",124.2],[\"2010-07-07\",147.14],[\"2010-07-08\",328.85],[\"2010-07-09\",11.43],[\"2010-07-11\",37.2],[\"2010-07-12\",733.02],[\"2010-07-13\",212.68],[\"2010-07-14\",42.52],[\"2010-07-15\",184.46],[\"2010-07-16\",201.51],[\"2010-07-18\",41.13],[\"2010-07-19\",106.0],[\"2010-07-20\",156.65],[\"2010-07-21\",133.62],[\"2010-07-22\",93.1],[\"2010-07-23\",22.4],[\"2010-07-25\",30.17],[\"2010-07-26\",84.8],[\"2010-07-27\",163.59],[\"2010-07-28\",90.94],[\"2010-07-29\",65.84],[\"2010-07-30\",144.13],[\"2010-08-01\",47.8],[\"2010-08-02\",513.96],[\"2010-08-03\",690.43],[\"2010-08-04\",88.26],[\"2010-08-05\",134.35],[\"2010-08-06\",26.0],[\"2010-08-08\",83.04],[\"2010-08-09\",31.24],[\"2010-08-10\",28.45],[\"2010-08-11\",73.34],[\"2010-08-12\",155.1],[\"2010-08-13\",74.77],[\"2010-08-15\",123.72],[\"2010-08-16\",52.29],[\"2010-08-17\",110.38],[\"2010-08-18\",81.4],[\"2010-08-19\",156.43],[\"2010-08-20\",138.38],[\"2010-08-22\",49.85],[\"2010-08-23\",104.36],[\"2010-08-24\",325.25],[\"2010-08-25\",92.41],[\"2010-08-26\",60.84],[\"2010-08-27\",86.96000000000001],[\"2010-08-29\",81.21000000000001],[\"2010-08-31\",42.26],[\"2010-09-01\",204.68],[\"2010-09-02\",290.03000000000003],[\"2010-09-03\",157.28],[\"2010-09-05\",118.19],[\"2010-09-06\",55.6],[\"2010-09-07\",69.56],[\"2010-09-08\",11.57],[\"2010-09-09\",282.32],[\"2010-09-10\",36.7],[\"2010-09-12\",60.75],[\"2010-09-13\",140.32],[\"2010-09-14\",182.34],[\"2010-09-15\",51.94],[\"2010-09-16\",151.7],[\"2010-09-17\",73.28],[\"2010-09-19\",61.89],[\"2010-09-20\",340.99],[\"2010-09-21\",166.82],[\"2010-09-22\",75.07],[\"2010-09-23\",172.4],[\"2010-09-24\",90.8],[\"2010-09-26\",156.71],[\"2010-09-27\",102.67],[\"2010-09-28\",267.55],[\"2010-09-29\",244.57],[\"2010-09-30\",86.03],[\"2010-10-01\",153.8],[\"2010-10-03\",43.5],[\"2010-10-04\",119.44],[\"2010-10-05\",105.54],[\"2010-10-06\",116.87],[\"2010-10-07\",157.86],[\"2010-10-08\",92.7],[\"2010-10-10\",90.02],[\"2010-10-11\",237.07],[\"2010-10-12\",172.24],[\"2010-10-13\",109.59],[\"2010-10-14\",117.54],[\"2010-10-15\",138.57],[\"2010-10-17\",31.39],[\"2010-10-18\",352.73],[\"2010-10-19\",162.23],[\"2010-10-20\",203.94],[\"2010-10-21\",516.35],[\"2010-10-22\",358.49],[\"2010-10-24\",237.24],[\"2010-10-25\",87.78999999999999],[\"2010-10-26\",218.88],[\"2010-10-27\",219.7],[\"2010-10-28\",135.0],[\"2010-10-29\",166.55],[\"2010-10-31\",133.75],[\"2010-11-01\",61.34],[\"2010-11-02\",197.6],[\"2010-11-03\",475.16],[\"2010-11-04\",300.26],[\"2010-11-05\",97.67],[\"2010-11-07\",92.37],[\"2010-11-08\",97.0],[\"2010-11-09\",267.06],[\"2010-11-10\",350.33],[\"2010-11-11\",277.7],[\"2010-11-12\",192.12],[\"2010-11-14\",133.9],[\"2010-11-15\",220.21],[\"2010-11-16\",338.85],[\"2010-11-17\",727.2],[\"2010-11-18\",264.56],[\"2010-11-19\",504.96],[\"2010-11-21\",148.75],[\"2010-11-22\",201.97],[\"2010-11-23\",197.92],[\"2010-11-24\",395.94],[\"2010-11-25\",385.86],[\"2010-11-26\",112.60000000000001],[\"2010-11-28\",390.59],[\"2010-11-29\",129.85],[\"2010-11-30\",210.31],[\"2010-12-01\",580.98],[\"2010-12-02\",466.98],[\"2010-12-03\",257.2],[\"2010-12-05\",320.2],[\"2010-12-06\",313.86],[\"2010-12-07\",362.0],[\"2010-12-08\",637.88],[\"2010-12-09\",596.28],[\"2010-12-10\",129.06],[\"2010-12-12\",67.85],[\"2010-12-13\",102.55],[\"2010-12-14\",265.03],[\"2010-12-15\",227.14],[\"2010-12-16\",484.79],[\"2010-12-17\",213.55],[\"2010-12-20\",66.0],[\"2010-12-21\",136.78],[\"2010-12-22\",12.71],[\"2010-12-23\",37.95],[\"2011-01-04\",32.45],[\"2011-01-05\",107.77],[\"2011-01-06\",36.99],[\"2011-01-07\",98.7],[\"2011-01-09\",83.99],[\"2011-01-10\",25.95],[\"2011-01-11\",144.59],[\"2011-01-12\",290.97],[\"2011-01-13\",35.35],[\"2011-01-14\",151.05],[\"2011-01-16\",7.34],[\"2011-01-17\",99.89],[\"2011-01-18\",84.3],[\"2011-01-19\",29.64],[\"2011-01-20\",109.27],[\"2011-01-21\",171.84],[\"2011-01-23\",66.77],[\"2011-01-24\",116.32000000000001],[\"2011-01-25\",122.9],[\"2011-01-26\",126.15],[\"2011-01-27\",152.09],[\"2011-01-28\",52.22],[\"2011-01-30\",11.05],[\"2011-01-31\",134.39],[\"2011-02-01\",124.62],[\"2011-02-02\",90.48],[\"2011-02-03\",117.64999999999999],[\"2011-02-04\",401.05],[\"2011-02-07\",102.25],[\"2011-02-08\",21.05],[\"2011-02-09\",66.99],[\"2011-02-10\",261.43],[\"2011-02-11\",202.46],[\"2011-02-13\",17.23],[\"2011-02-14\",76.65],[\"2011-02-15\",77.15],[\"2011-02-16\",119.05],[\"2011-02-17\",129.89],[\"2011-02-18\",73.24],[\"2011-02-20\",24.79],[\"2011-02-21\",29.09],[\"2011-02-22\",59.73],[\"2011-02-23\",102.5],[\"2011-02-24\",90.73],[\"2011-02-25\",112.44],[\"2011-02-27\",37.75],[\"2011-02-28\",315.3],[\"2011-03-01\",980.62],[\"2011-03-02\",41.9],[\"2011-03-03\",209.1],[\"2011-03-04\",173.65],[\"2011-03-06\",57.14],[\"2011-03-07\",470.27],[\"2011-03-08\",143.69],[\"2011-03-09\",152.38],[\"2011-03-10\",119.07],[\"2011-03-11\",212.12],[\"2011-03-14\",74.07000000000001],[\"2011-03-15\",71.95],[\"2011-03-16\",115.54],[\"2011-03-17\",121.39],[\"2011-03-18\",182.22],[\"2011-03-20\",212.48],[\"2011-03-21\",91.17999999999999],[\"2011-03-22\",22.0],[\"2011-03-23\",105.45],[\"2011-03-24\",53.15],[\"2011-03-25\",49.62],[\"2011-03-27\",99.59],[\"2011-03-28\",355.21],[\"2011-03-29\",57.2],[\"2011-03-30\",77.7],[\"2011-03-31\",250.6],[\"2011-04-01\",176.11],[\"2011-04-03\",29.299999999999997],[\"2011-04-04\",4047.06],[\"2011-04-05\",231.05],[\"2011-04-06\",45.65],[\"2011-04-07\",174.52],[\"2011-04-08\",251.4],[\"2011-04-10\",12.2],[\"2011-04-11\",107.69],[\"2011-04-12\",89.58],[\"2011-04-13\",147.08],[\"2011-04-14\",173.56],[\"2011-04-15\",99.39],[\"2011-04-17\",63.839999999999996],[\"2011-04-18\",77.32000000000001],[\"2011-04-19\",25.12],[\"2011-04-20\",133.82999999999998],[\"2011-04-21\",165.32],[\"2011-04-26\",200.67],[\"2011-04-27\",175.31],[\"2011-04-28\",633.66],[\"2011-05-01\",19.1],[\"2011-05-03\",263.5],[\"2011-05-04\",161.89],[\"2011-05-05\",356.88],[\"2011-05-06\",253.44],[\"2011-05-08\",79.99],[\"2011-05-09\",162.99],[\"2011-05-10\",178.29],[\"2011-05-11\",151.95],[\"2011-05-12\",221.58],[\"2011-05-13\",218.52],[\"2011-05-15\",61.2],[\"2011-05-16\",163.47],[\"2011-05-17\",217.6],[\"2011-05-18\",162.54],[\"2011-05-19\",278.52],[\"2011-05-20\",247.79],[\"2011-05-22\",159.34],[\"2011-05-23\",223.46],[\"2011-05-24\",287.11],[\"2011-05-25\",98.26],[\"2011-05-26\",407.29],[\"2011-05-27\",138.36],[\"2011-05-29\",20.11],[\"2011-05-31\",140.53],[\"2011-06-01\",104.95],[\"2011-06-02\",156.12],[\"2011-06-03\",110.1],[\"2011-06-05\",129.37],[\"2011-06-06\",90.65],[\"2011-06-07\",159.02],[\"2011-06-08\",201.57999999999998],[\"2011-06-09\",231.61],[\"2011-06-10\",81.53],[\"2011-06-12\",63.449999999999996],[\"2011-06-13\",91.68],[\"2011-06-14\",77.83],[\"2011-06-15\",87.43],[\"2011-06-16\",228.23],[\"2011-06-17\",74.34],[\"2011-06-19\",43.44],[\"2011-06-20\",86.74],[\"2011-06-21\",144.26],[\"2011-06-22\",86.53],[\"2011-06-23\",54.13],[\"2011-06-24\",97.75],[\"2011-06-26\",147.99],[\"2011-06-27\",12.1],[\"2011-06-28\",103.34],[\"2011-06-29\",124.31],[\"2011-06-30\",379.03000000000003],[\"2011-07-01\",168.2],[\"2011-07-03\",38.34],[\"2011-07-04\",58.96],[\"2011-07-05\",145.87],[\"2011-07-06\",99.38],[\"2011-07-07\",167.95],[\"2011-07-08\",146.0],[\"2011-07-10\",5.79],[\"2011-07-11\",84.48],[\"2011-07-12\",33.21],[\"2011-07-13\",202.86],[\"2011-07-14\",164.6],[\"2011-07-15\",136.66],[\"2011-07-17\",163.14000000000001],[\"2011-07-18\",111.77],[\"2011-07-19\",100.76],[\"2011-07-20\",105.84],[\"2011-07-21\",76.06],[\"2011-07-22\",69.87],[\"2011-07-24\",185.92],[\"2011-07-25\",257.17],[\"2011-07-26\",104.81],[\"2011-07-27\",53.35],[\"2011-07-28\",240.02],[\"2011-07-29\",108.86],[\"2011-07-31\",64.32],[\"2011-08-01\",34.27],[\"2011-08-02\",39.24],[\"2011-08-03\",106.66],[\"2011-08-04\",275.16],[\"2011-08-05\",111.47],[\"2011-08-07\",91.04],[\"2011-08-08\",93.75],[\"2011-08-09\",128.39],[\"2011-08-10\",94.05],[\"2011-08-11\",141.39000000000001],[\"2011-08-12\",28.5],[\"2011-08-14\",169.69],[\"2011-08-15\",46.09],[\"2011-08-16\",118.60000000000001],[\"2011-08-17\",6.05],[\"2011-08-18\",85.07],[\"2011-08-19\",118.64],[\"2011-08-21\",59.29],[\"2011-08-22\",118.89],[\"2011-08-23\",66.19],[\"2011-08-24\",121.41],[\"2011-08-25\",301.4],[\"2011-08-26\",114.77],[\"2011-08-28\",28.86],[\"2011-08-30\",99.39],[\"2011-08-31\",63.23],[\"2011-09-01\",130.57],[\"2011-09-02\",63.08],[\"2011-09-04\",106.18],[\"2011-09-05\",44.27],[\"2011-09-06\",186.03],[\"2011-09-07\",55.22],[\"2011-09-08\",200.65],[\"2011-09-09\",185.11],[\"2011-09-11\",57.83],[\"2011-09-12\",100.73],[\"2011-09-13\",97.25],[\"2011-09-14\",181.88],[\"2011-09-15\",149.68],[\"2011-09-16\",69.17],[\"2011-09-18\",10.34],[\"2011-09-19\",105.39],[\"2011-09-20\",144.62],[\"2011-09-21\",115.15],[\"2011-09-22\",221.47],[\"2011-09-23\",74.24000000000001],[\"2011-09-25\",129.43],[\"2011-09-26\",66.85000000000001],[\"2011-09-27\",112.76],[\"2011-09-28\",113.13],[\"2011-09-29\",102.83],[\"2011-09-30\",164.19],[\"2011-10-02\",16.65],[\"2011-10-03\",366.98],[\"2011-10-04\",119.57000000000001],[\"2011-10-05\",296.59],[\"2011-10-06\",200.08],[\"2011-10-07\",107.34],[\"2011-10-09\",29.56],[\"2011-10-10\",111.22],[\"2011-10-11\",230.01],[\"2011-10-12\",184.18],[\"2011-10-13\",161.14000000000001],[\"2011-10-14\",97.01],[\"2011-10-17\",178.07],[\"2011-10-18\",143.0],[\"2011-10-19\",6307.69],[\"2011-10-20\",142.5],[\"2011-10-21\",157.11],[\"2011-10-23\",16.79],[\"2011-10-24\",145.0],[\"2011-10-25\",281.41],[\"2011-10-26\",264.11],[\"2011-10-27\",260.79],[\"2011-10-28\",119.44],[\"2011-10-30\",216.42],[\"2011-10-31\",86.09],[\"2011-11-01\",142.07],[\"2011-11-02\",57.69],[\"2011-11-03\",186.34],[\"2011-11-04\",100.52],[\"2011-11-06\",211.71],[\"2011-11-07\",338.17],[\"2011-11-08\",174.51],[\"2011-11-09\",319.8],[\"2011-11-10\",1345.27],[\"2011-11-11\",61.46],[\"2011-11-13\",114.35],[\"2011-11-14\",114.48],[\"2011-11-15\",211.96],[\"2011-11-16\",417.35],[\"2011-11-17\",466.84],[\"2011-11-18\",293.64],[\"2011-11-20\",80.09],[\"2011-11-21\",156.08],[\"2011-11-22\",209.95],[\"2011-11-23\",268.75],[\"2011-11-24\",178.19],[\"2011-11-25\",248.49],[\"2011-11-27\",24.11],[\"2011-11-28\",120.61],[\"2011-11-29\",358.53000000000003],[\"2011-11-30\",132.06],[\"2011-12-01\",366.71],[\"2011-12-02\",370.71],[\"2011-12-04\",136.27],[\"2011-12-05\",469.52],[\"2011-12-06\",287.52],[\"2011-12-07\",152.78],[\"2011-12-08\",226.07],[\"2011-12-09\",141.39]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.invoice_date, SUM(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? AND i.customer_id IS NOT NULL) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC","sql_parameters":"[25]","state":"{\"question\":\"Return the sum of l.unit_price for retail lines joined to their invoices where (l.quantity is at most 25 and i.customer_id is present), grouped by i.invoice_date, ordered by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}239{"category":"join/date/grouped","domain":"commerce","family_id":"51cd3d0c89128dd5f0ba18b1","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"529b0152bccbaee0a96f4b281823239e57e137418092377b9364077b06f900f6","language":"en","license":"CC-BY-4.0","query":"Return the average of l.unit_price for retail lines joined to their invoices where (i.invoice_date is on or after '2010-12-02'), grouped by i.country, ordered by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) 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 i.country ASC\\\"}\",\"plan_2\":\"{\\\"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 i.country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT i.country, 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.country ORDER BY i.country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT i.country, MIN(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 i.country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",3.6128571428571425],[\"Austria\",10.406],[\"Bahrain\",6.074999999999999],[\"Belgium\",8.995593220338984],[\"Canada\",0.998],[\"Channel Islands\",4.0475],[\"Denmark\",5.735454545454545],[\"EIRE\",32.3088],[\"Finland\",11.025076923076924],[\"France\",5.507388888888889],[\"Germany\",8.832437673130194],[\"Israel\",5.36875],[\"Italy\",8.133333333333333],[\"Japan\",1.8813333333333333],[\"Netherlands\",6.176590909090908],[\"Norway\",91.875],[\"Poland\",20.895],[\"Portugal\",20.9],[\"Singapore\",1684.305],[\"Spain\",4.706307692307693],[\"Sweden\",9.30952380952381],[\"Switzerland\",10.383103448275863],[\"United Kingdom\",3.6881933563146347]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, 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.country ORDER BY i.country ASC","sql_parameters":"[\"2010-12-02\"]","state":"{\"question\":\"Return the average of l.unit_price for retail lines joined to their invoices where (i.invoice_date is on or after '2010-12-02'), grouped by i.country, ordered by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}240{"category":"single_table/or/grouped","domain":"commerce","family_id":"814bf9f1c7344c0236beec1e","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"e055e37c2f28946f2fbf79ba4ad5ff1d769e6e614da2026de1dc2b971749762c","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (country equals 'Austria' or unit_price is at most 8.5), grouped by invoice_date, ordered by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Austria\\\",8.5],\\\"sql\\\":\\\"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Austria\\\",8.5],\\\"sql\\\":\\\"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Austria\\\",8.5],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Austria\\\",8.5],\\\"sql\\\":\\\"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-01\",7.95],[\"2009-12-02\",8.5],[\"2009-12-03\",7.95],[\"2009-12-04\",7.95],[\"2009-12-05\",7.95],[\"2009-12-06\",7.35],[\"2009-12-07\",5.95],[\"2009-12-08\",6.95],[\"2009-12-09\",8.49],[\"2009-12-10\",6.95],[\"2009-12-11\",8.5],[\"2009-12-13\",6.75],[\"2009-12-14\",8.5],[\"2009-12-15\",6.75],[\"2009-12-16\",8.5],[\"2009-12-17\",8.5],[\"2009-12-18\",8.5],[\"2009-12-20\",5.45],[\"2009-12-21\",8.5],[\"2009-12-22\",7.93],[\"2009-12-23\",3.75],[\"2010-01-04\",6.95],[\"2010-01-05\",8.5],[\"2010-01-06\",7.95],[\"2010-01-07\",8.5],[\"2010-01-08\",6.35],[\"2010-01-10\",7.95],[\"2010-01-11\",7.95],[\"2010-01-12\",7.95],[\"2010-01-13\",8.5],[\"2010-01-14\",5.95],[\"2010-01-15\",6.75],[\"2010-01-17\",4.95],[\"2010-01-18\",2.25],[\"2010-01-19\",6.75],[\"2010-01-20\",6.75],[\"2010-01-21\",7.95],[\"2010-01-22\",7.95],[\"2010-01-24\",8.5],[\"2010-01-25\",8.46],[\"2010-01-26\",6.75],[\"2010-01-27\",6.75],[\"2010-01-28\",5.45],[\"2010-01-29\",7.95],[\"2010-01-31\",8.5],[\"2010-02-01\",6.94],[\"2010-02-02\",8.5],[\"2010-02-03\",8.5],[\"2010-02-04\",6.75],[\"2010-02-05\",8.5],[\"2010-02-07\",4.95],[\"2010-02-08\",7.95],[\"2010-02-09\",7.65],[\"2010-02-10\",8.5],[\"2010-02-11\",6.95],[\"2010-02-12\",8.49],[\"2010-02-14\",7.49],[\"2010-02-15\",7.95],[\"2010-02-16\",8.5],[\"2010-02-17\",8.5],[\"2010-02-18\",7.95],[\"2010-02-19\",8.47],[\"2010-02-21\",5.45],[\"2010-02-22\",8.5],[\"2010-02-23\",8.5],[\"2010-02-24\",7.95],[\"2010-02-25\",8.5],[\"2010-02-26\",7.95],[\"2010-02-28\",6.35],[\"2010-03-01\",7.95],[\"2010-03-02\",6.95],[\"2010-03-03\",6.75],[\"2010-03-04\",5.45],[\"2010-03-05\",8.5],[\"2010-03-07\",7.95],[\"2010-03-08\",8.5],[\"2010-03-09\",8.5],[\"2010-03-10\",8.5],[\"2010-03-11\",6.75],[\"2010-03-12\",7.95],[\"2010-03-14\",6.35],[\"2010-03-15\",5.95],[\"2010-03-16\",4.95],[\"2010-03-17\",7.95],[\"2010-03-18\",8.5],[\"2010-03-19\",8.49],[\"2010-03-21\",8.5],[\"2010-03-22\",8.5],[\"2010-03-23\",7.95],[\"2010-03-24\",7.49],[\"2010-03-25\",40.0],[\"2010-03-26\",8.5],[\"2010-03-28\",4.95],[\"2010-03-29\",8.5],[\"2010-03-30\",8.5],[\"2010-03-31\",8.5],[\"2010-04-01\",7.95],[\"2010-04-06\",7.49],[\"2010-04-07\",6.35],[\"2010-04-08\",8.5],[\"2010-04-09\",8.43],[\"2010-04-11\",7.95],[\"2010-04-12\",8.5],[\"2010-04-13\",8.5],[\"2010-04-14\",8.5],[\"2010-04-15\",8.5],[\"2010-04-16\",8.5],[\"2010-04-18\",8.5],[\"2010-04-19\",8.5],[\"2010-04-20\",8.5],[\"2010-04-21\",7.95],[\"2010-04-22\",8.5],[\"2010-04-23\",8.5],[\"2010-04-25\",7.95],[\"2010-04-26\",8.43],[\"2010-04-27\",8.43],[\"2010-04-28\",7.65],[\"2010-04-29\",7.95],[\"2010-04-30\",7.95],[\"2010-05-02\",7.49],[\"2010-05-04\",5.95],[\"2010-05-05\",8.5],[\"2010-05-06\",8.5],[\"2010-05-07\",8.5],[\"2010-05-09\",8.5],[\"2010-05-10\",8.5],[\"2010-05-11\",7.49],[\"2010-05-12\",8.5],[\"2010-05-13\",8.5],[\"2010-05-14\",8.5],[\"2010-05-16\",8.5],[\"2010-05-17\",6.95],[\"2010-05-18\",8.5],[\"2010-05-19\",8.5],[\"2010-05-20\",8.5],[\"2010-05-21\",8.5],[\"2010-05-23\",4.95],[\"2010-05-24\",8.5],[\"2010-05-25\",8.5],[\"2010-05-26\",8.5],[\"2010-05-27\",8.5],[\"2010-05-28\",7.49],[\"2010-05-30\",8.5],[\"2010-06-01\",7.49],[\"2010-06-02\",7.95],[\"2010-06-03\",8.5],[\"2010-06-04\",6.36],[\"2010-06-06\",4.25],[\"2010-06-07\",8.5],[\"2010-06-08\",6.75],[\"2010-06-09\",8.5],[\"2010-06-10\",8.5],[\"2010-06-11\",8.5],[\"2010-06-13\",8.5],[\"2010-06-14\",8.5],[\"2010-06-15\",8.5],[\"2010-06-16\",8.5],[\"2010-06-17\",8.5],[\"2010-06-18\",8.5],[\"2010-06-20\",8.5],[\"2010-06-21\",5.95],[\"2010-06-22\",2.95],[\"2010-06-23\",8.5],[\"2010-06-24\",8.5],[\"2010-06-25\",7.49],[\"2010-06-27\",8.5],[\"2010-06-28\",8.5],[\"2010-06-29\",8.5],[\"2010-06-30\",5.95],[\"2010-07-01\",6.35],[\"2010-07-02\",2.95],[\"2010-07-04\",8.5],[\"2010-07-05\",8.5],[\"2010-07-06\",8.5],[\"2010-07-07\",8.5],[\"2010-07-08\",8.5],[\"2010-07-09\",5.95],[\"2010-07-11\",8.5],[\"2010-07-12\",7.95],[\"2010-07-13\",7.49],[\"2010-07-14\",7.95],[\"2010-07-15\",8.5],[\"2010-07-16\",8.5],[\"2010-07-18\",4.95],[\"2010-07-19\",8.5],[\"2010-07-20\",8.5],[\"2010-07-21\",8.5],[\"2010-07-22\",6.35],[\"2010-07-23\",5.95],[\"2010-07-25\",4.25],[\"2010-07-26\",6.35],[\"2010-07-27\",8.5],[\"2010-07-28\",8.5],[\"2010-07-29\",8.5],[\"2010-07-30\",7.5],[\"2010-08-01\",7.95],[\"2010-08-02\",8.5],[\"2010-08-03\",8.5],[\"2010-08-04\",7.95],[\"2010-08-05\",8.5],[\"2010-08-06\",8.5],[\"2010-08-08\",4.95],[\"2010-08-09\",6.68],[\"2010-08-10\",5.95],[\"2010-08-11\",8.5],[\"2010-08-12\",8.5],[\"2010-08-13\",5.95],[\"2010-08-15\",8.5],[\"2010-08-16\",7.49],[\"2010-08-17\",7.95],[\"2010-08-18\",8.5],[\"2010-08-19\",6.75],[\"2010-08-20\",8.49],[\"2010-08-22\",8.5],[\"2010-08-23\",8.5],[\"2010-08-24\",8.5],[\"2010-08-25\",7.49],[\"2010-08-26\",8.5],[\"2010-08-27\",7.49],[\"2010-08-29\",8.5],[\"2010-08-31\",8.5],[\"2010-09-01\",8.5],[\"2010-09-02\",8.5],[\"2010-09-03\",8.5],[\"2010-09-05\",7.49],[\"2010-09-06\",4.95],[\"2010-09-07\",8.49],[\"2010-09-08\",2.55],[\"2010-09-09\",8.5],[\"2010-09-10\",6.75],[\"2010-09-12\",8.5],[\"2010-09-13\",8.5],[\"2010-09-14\",7.95],[\"2010-09-15\",6.95],[\"2010-09-16\",6.75],[\"2010-09-17\",8.5],[\"2010-09-19\",6.75],[\"2010-09-20\",8.5],[\"2010-09-21\",7.95],[\"2010-09-22\",7.95],[\"2010-09-23\",8.5],[\"2010-09-24\",5.95],[\"2010-09-26\",8.5],[\"2010-09-27\",8.5],[\"2010-09-28\",8.5],[\"2010-09-29\",8.5],[\"2010-09-30\",7.95],[\"2010-10-01\",8.5],[\"2010-10-03\",5.45],[\"2010-10-04\",8.5],[\"2010-10-05\",8.5],[\"2010-10-06\",6.75],[\"2010-10-07\",8.5],[\"2010-10-08\",7.95],[\"2010-10-10\",5.95],[\"2010-10-11\",7.95],[\"2010-10-12\",8.5],[\"2010-10-13\",7.95],[\"2010-10-14\",7.95],[\"2010-10-15\",8.5],[\"2010-10-17\",6.75],[\"2010-10-18\",8.5],[\"2010-10-19\",8.49],[\"2010-10-20\",8.5],[\"2010-10-21\",8.5],[\"2010-10-22\",8.5],[\"2010-10-24\",7.95],[\"2010-10-25\",8.5],[\"2010-10-26\",8.5],[\"2010-10-27\",8.5],[\"2010-10-28\",7.95],[\"2010-10-29\",8.5],[\"2010-10-31\",7.65],[\"2010-11-01\",7.95],[\"2010-11-02\",7.65],[\"2010-11-03\",8.5],[\"2010-11-04\",8.5],[\"2010-11-05\",8.5],[\"2010-11-07\",8.5],[\"2010-11-08\",8.5],[\"2010-11-09\",7.95],[\"2010-11-10\",8.5],[\"2010-11-11\",8.5],[\"2010-11-12\",8.5],[\"2010-11-14\",6.95],[\"2010-11-15\",8.5],[\"2010-11-16\",8.5],[\"2010-11-17\",8.5],[\"2010-11-18\",8.49],[\"2010-11-19\",7.95],[\"2010-11-21\",8.5],[\"2010-11-22\",7.95],[\"2010-11-23\",8.5],[\"2010-11-24\",8.5],[\"2010-11-25\",8.5],[\"2010-11-26\",8.5],[\"2010-11-28\",8.5],[\"2010-11-29\",8.5],[\"2010-11-30\",7.65],[\"2010-12-01\",7.95],[\"2010-12-02\",8.5],[\"2010-12-03\",7.95],[\"2010-12-05\",7.95],[\"2010-12-06\",8.5],[\"2010-12-07\",8.5],[\"2010-12-08\",7.95],[\"2010-12-09\",8.5],[\"2010-12-10\",8.5],[\"2010-12-12\",4.25],[\"2010-12-13\",8.5],[\"2010-12-14\",8.5],[\"2010-12-15\",7.95],[\"2010-12-16\",8.5],[\"2010-12-17\",7.95],[\"2010-12-19\",8.5],[\"2010-12-20\",4.25],[\"2010-12-21\",6.75],[\"2010-12-22\",4.95],[\"2010-12-23\",5.95],[\"2011-01-04\",8.5],[\"2011-01-05\",7.95],[\"2011-01-06\",8.5],[\"2011-01-07\",7.95],[\"2011-01-09\",8.5],[\"2011-01-10\",7.95],[\"2011-01-11\",8.5],[\"2011-01-12\",7.65],[\"2011-01-13\",8.5],[\"2011-01-14\",8.5],[\"2011-01-16\",3.95],[\"2011-01-17\",6.75],[\"2011-01-18\",6.95],[\"2011-01-19\",3.39],[\"2011-01-20\",8.5],[\"2011-01-21\",7.95],[\"2011-01-23\",8.5],[\"2011-01-24\",8.5],[\"2011-01-25\",7.95],[\"2011-01-26\",6.75],[\"2011-01-27\",8.5],[\"2011-01-28\",7.95],[\"2011-01-30\",2.95],[\"2011-01-31\",8.5],[\"2011-02-01\",8.5],[\"2011-02-02\",5.95],[\"2011-02-03\",8.5],[\"2011-02-04\",8.5],[\"2011-02-07\",7.95],[\"2011-02-08\",4.95],[\"2011-02-09\",6.75],[\"2011-02-10\",8.5],[\"2011-02-11\",7.65],[\"2011-02-13\",5.95],[\"2011-02-14\",7.95],[\"2011-02-15\",8.5],[\"2011-02-16\",8.5],[\"2011-02-17\",8.5],[\"2011-02-18\",8.5],[\"2011-02-20\",5.95],[\"2011-02-21\",5.45],[\"2011-02-22\",8.5],[\"2011-02-23\",8.5],[\"2011-02-24\",8.5],[\"2011-02-25\",8.5],[\"2011-02-27\",8.5],[\"2011-02-28\",8.5],[\"2011-03-01\",8.5],[\"2011-03-02\",8.5],[\"2011-03-03\",40.0],[\"2011-03-04\",8.25],[\"2011-03-06\",8.5],[\"2011-03-07\",8.5],[\"2011-03-08\",8.5],[\"2011-03-09\",7.95],[\"2011-03-10\",8.15],[\"2011-03-11\",7.95],[\"2011-03-14\",7.95],[\"2011-03-15\",7.65],[\"2011-03-16\",8.5],[\"2011-03-17\",8.25],[\"2011-03-18\",8.5],[\"2011-03-20\",8.5],[\"2011-03-21\",8.5],[\"2011-03-22\",4.95],[\"2011-03-23\",8.5],[\"2011-03-24\",8.5],[\"2011-03-25\",8.49],[\"2011-03-27\",7.95],[\"2011-03-28\",7.95],[\"2011-03-29\",8.5],[\"2011-03-30\",7.95],[\"2011-03-31\",8.5],[\"2011-04-01\",8.5],[\"2011-04-03\",7.5],[\"2011-04-04\",5.95],[\"2011-04-05\",8.5],[\"2011-04-06\",8.5],[\"2011-04-07\",7.95],[\"2011-04-08\",8.5],[\"2011-04-10\",1.25],[\"2011-04-11\",8.5],[\"2011-04-12\",8.25],[\"2011-04-13\",8.5],[\"2011-04-14\",8.25],[\"2011-04-15\",7.95],[\"2011-04-17\",8.25],[\"2011-04-18\",6.35],[\"2011-04-19\",5.95],[\"2011-04-20\",5.95],[\"2011-04-21\",7.95],[\"2011-04-26\",40.0],[\"2011-04-27\",8.5],[\"2011-04-28\",8.25],[\"2011-05-01\",4.95],[\"2011-05-03\",8.5],[\"2011-05-04\",8.5],[\"2011-05-05\",8.5],[\"2011-05-06\",40.0],[\"2011-05-08\",5.95],[\"2011-05-09\",8.5],[\"2011-05-10\",8.5],[\"2011-05-11\",8.25],[\"2011-05-12\",8.5],[\"2011-05-13\",8.25],[\"2011-05-15\",7.95],[\"2011-05-16\",7.95],[\"2011-05-17\",8.5],[\"2011-05-18\",8.15],[\"2011-05-19\",7.95],[\"2011-05-20\",8.25],[\"2011-05-22\",8.5],[\"2011-05-23\",8.5],[\"2011-05-24\",8.5],[\"2011-05-25\",8.5],[\"2011-05-26\",8.25],[\"2011-05-27\",8.5],[\"2011-05-29\",5.45],[\"2011-05-31\",8.5],[\"2011-06-01\",8.25],[\"2011-06-02\",8.5],[\"2011-06-03\",7.95],[\"2011-06-05\",8.5],[\"2011-06-06\",8.5],[\"2011-06-07\",8.25],[\"2011-06-08\",8.5],[\"2011-06-09\",8.25],[\"2011-06-10\",7.95],[\"2011-06-12\",8.5],[\"2011-06-13\",6.75],[\"2011-06-14\",8.15],[\"2011-06-15\",7.65],[\"2011-06-16\",8.5],[\"2011-06-17\",8.25],[\"2011-06-19\",7.95],[\"2011-06-20\",6.75],[\"2011-06-21\",7.95],[\"2011-06-22\",6.75],[\"2011-06-23\",6.95],[\"2011-06-24\",7.95],[\"2011-06-26\",8.5],[\"2011-06-27\",4.95],[\"2011-06-28\",7.65],[\"2011-06-29\",8.5],[\"2011-06-30\",7.95],[\"2011-07-01\",8.5],[\"2011-07-03\",5.95],[\"2011-07-04\",5.95],[\"2011-07-05\",8.5],[\"2011-07-06\",7.5],[\"2011-07-07\",8.5],[\"2011-07-08\",7.95],[\"2011-07-10\",2.55],[\"2011-07-11\",8.25],[\"2011-07-12\",5.95],[\"2011-07-13\",8.5],[\"2011-07-14\",8.5],[\"2011-07-15\",7.65],[\"2011-07-17\",8.5],[\"2011-07-18\",6.95],[\"2011-07-19\",8.5],[\"2011-07-20\",7.95],[\"2011-07-21\",7.95],[\"2011-07-22\",8.5],[\"2011-07-24\",8.5],[\"2011-07-25\",8.5],[\"2011-07-26\",8.5],[\"2011-07-27\",7.65],[\"2011-07-28\",8.5],[\"2011-07-29\",8.5],[\"2011-07-31\",6.75],[\"2011-08-01\",4.95],[\"2011-08-02\",8.5],[\"2011-08-03\",8.5],[\"2011-08-04\",8.5],[\"2011-08-05\",7.65],[\"2011-08-07\",8.5],[\"2011-08-08\",8.5],[\"2011-08-09\",8.5],[\"2011-08-10\",8.5],[\"2011-08-11\",8.25],[\"2011-08-12\",6.75],[\"2011-08-14\",8.5],[\"2011-08-15\",5.95],[\"2011-08-16\",8.5],[\"2011-08-17\",3.39],[\"2011-08-18\",8.5],[\"2011-08-19\",8.5],[\"2011-08-21\",8.5],[\"2011-08-22\",8.5],[\"2011-08-23\",7.65],[\"2011-08-24\",7.95],[\"2011-08-25\",8.5],[\"2011-08-26\",7.95],[\"2011-08-28\",5.95],[\"2011-08-30\",4.95],[\"2011-08-31\",5.95],[\"2011-09-01\",5.95],[\"2011-09-02\",6.5],[\"2011-09-04\",8.25],[\"2011-09-05\",6.35],[\"2011-09-06\",8.5],[\"2011-09-07\",8.25],[\"2011-09-08\",8.5],[\"2011-09-09\",7.95],[\"2011-09-11\",7.5],[\"2011-09-12\",7.65],[\"2011-09-13\",8.5],[\"2011-09-14\",8.5],[\"2011-09-15\",8.49],[\"2011-09-16\",5.95],[\"2011-09-18\",1.79],[\"2011-09-19\",8.5],[\"2011-09-20\",8.5],[\"2011-09-21\",7.95],[\"2011-09-22\",8.5],[\"2011-09-23\",2.49],[\"2011-09-25\",8.5],[\"2011-09-26\",7.95],[\"2011-09-27\",8.25],[\"2011-09-28\",7.85],[\"2011-09-29\",8.25],[\"2011-09-30\",8.5],[\"2011-10-02\",8.25],[\"2011-10-03\",8.5],[\"2011-10-04\",8.5],[\"2011-10-05\",8.25],[\"2011-10-06\",7.65],[\"2011-10-07\",8.25],[\"2011-10-09\",7.08],[\"2011-10-10\",8.5],[\"2011-10-11\",8.5],[\"2011-10-12\",8.5],[\"2011-10-13\",8.25],[\"2011-10-14\",8.25],[\"2011-10-17\",8.5],[\"2011-10-18\",8.5],[\"2011-10-19\",7.08],[\"2011-10-20\",8.25],[\"2011-10-21\",8.25],[\"2011-10-23\",1.65],[\"2011-10-24\",8.5],[\"2011-10-25\",5.95],[\"2011-10-26\",8.5],[\"2011-10-27\",8.5],[\"2011-10-28\",8.25],[\"2011-10-30\",8.25],[\"2011-10-31\",7.95],[\"2011-11-01\",8.15],[\"2011-11-02\",7.65],[\"2011-11-03\",8.25],[\"2011-11-04\",6.35],[\"2011-11-06\",7.95],[\"2011-11-07\",8.25],[\"2011-11-08\",8.5],[\"2011-11-09\",8.5],[\"2011-11-10\",8.25],[\"2011-11-11\",4.95],[\"2011-11-13\",8.25],[\"2011-11-14\",7.95],[\"2011-11-15\",8.5],[\"2011-11-16\",7.95],[\"2011-11-17\",8.5],[\"2011-11-18\",8.5],[\"2011-11-20\",8.25],[\"2011-11-21\",7.95],[\"2011-11-22\",8.15],[\"2011-11-23\",8.5],[\"2011-11-24\",8.5],[\"2011-11-25\",8.5],[\"2011-11-27\",3.95],[\"2011-11-28\",8.25],[\"2011-11-29\",8.5],[\"2011-11-30\",8.5],[\"2011-12-01\",8.25],[\"2011-12-02\",8.5],[\"2011-12-04\",8.5],[\"2011-12-05\",8.5],[\"2011-12-06\",8.5],[\"2011-12-07\",8.5],[\"2011-12-08\",8.25],[\"2011-12-09\",8.5]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY invoice_date ORDER BY invoice_date ASC","sql_parameters":"[\"Austria\",8.5]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines where (country equals 'Austria' 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\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}241{"category":"single_table/date/and/grouped","domain":"commerce","family_id":"45ff50285492314fd1e933da","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"16b2d83beb15701740f9ede6eff3e326cad2d393b4f258d1baca1ec55c344dc6","language":"en","license":"CC-BY-4.0","query":"Return the minimum of quantity for retail invoice lines where (quantity is at most 229 and invoice_date is on or after '2011-09-29'), grouped by invoice_date, ordered by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[229,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[229,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[229,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[229,\\\"2011-09-29\\\"],\\\"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\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-09-29\",4],[\"2011-09-30\",1],[\"2011-10-02\",1],[\"2011-10-03\",1],[\"2011-10-04\",1],[\"2011-10-05\",1],[\"2011-10-06\",1],[\"2011-10-07\",1],[\"2011-10-09\",2],[\"2011-10-10\",1],[\"2011-10-11\",1],[\"2011-10-12\",1],[\"2011-10-13\",1],[\"2011-10-14\",1],[\"2011-10-17\",1],[\"2011-10-18\",1],[\"2011-10-19\",1],[\"2011-10-20\",1],[\"2011-10-21\",1],[\"2011-10-23\",1],[\"2011-10-24\",1],[\"2011-10-25\",1],[\"2011-10-26\",1],[\"2011-10-27\",1],[\"2011-10-28\",1],[\"2011-10-30\",2],[\"2011-10-31\",1],[\"2011-11-01\",1],[\"2011-11-02\",1],[\"2011-11-03\",1],[\"2011-11-04\",1],[\"2011-11-06\",1],[\"2011-11-07\",1],[\"2011-11-08\",1],[\"2011-11-09\",1],[\"2011-11-10\",1],[\"2011-11-11\",1],[\"2011-11-13\",1],[\"2011-11-14\",1],[\"2011-11-15\",1],[\"2011-11-16\",1],[\"2011-11-17\",1],[\"2011-11-18\",1],[\"2011-11-20\",1],[\"2011-11-21\",1],[\"2011-11-22\",1],[\"2011-11-23\",1],[\"2011-11-24\",1],[\"2011-11-25\",1],[\"2011-11-27\",1],[\"2011-11-28\",1],[\"2011-11-29\",1],[\"2011-11-30\",1],[\"2011-12-01\",2],[\"2011-12-02\",1],[\"2011-12-04\",1],[\"2011-12-05\",1],[\"2011-12-06\",1],[\"2011-12-07\",1],[\"2011-12-08\",1],[\"2011-12-09\",2]]","source":"online_retail_ii","split":"dev","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","sql_parameters":"[229,\"2011-09-29\"]","state":"{\"question\":\"Return the minimum of quantity for retail invoice lines where (quantity is at most 229 and invoice_date is on or after '2011-09-29'), 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\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}242{"category":"single_table/and/ranked","domain":"commerce","family_id":"6c3bb0ee7a7c93bcacf90bb0","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"6dacce02e609fd9a26550f5c9abf7125027adbda781843bd72593aeb9ef403d5","language":"en","license":"CC-BY-4.0","query":"Return the sum of administrative for shopping sessions where (region equals 7 and administrative is greater than 18), grouped by revenue; return at most 5 groups ordered by aggregate value DESC, breaking ties by revenue ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[7,18],\\\"sql\\\":\\\"SELECT revenue, SUM(administrative) AS value FROM shopping_sessions WHERE (region = ? OR administrative > ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[7,18],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (region = ? AND administrative > ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[7,18],\\\"sql\\\":\\\"SELECT revenue, SUM(administrative) AS value FROM shopping_sessions WHERE (region = ? AND administrative > ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT revenue, SUM(administrative) AS value FROM shopping_sessions GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,21]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, SUM(administrative) AS value FROM shopping_sessions WHERE (region = ? AND administrative > ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5","sql_parameters":"[7,18]","state":"{\"question\":\"Return the sum of administrative for shopping sessions where (region equals 7 and administrative is greater than 18), 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_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}243{"category":"single_table/and/ranked","domain":"commerce","family_id":"fb66cb20283dcca76d95d0ef","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"01faba3574f87fb0b79d7330369bd99d09d101608f6c6488c0e3642170ec4425","language":"en","license":"CC-BY-4.0","query":"Return the average of product_related for shopping sessions where (month equals 'Sep' and product_related is greater than 93), grouped by visitor_type; return at most 5 groups ordered by aggregate value DESC, breaking ties by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Sep\\\",93],\\\"sql\\\":\\\"SELECT visitor_type, AVG(product_related) AS value FROM shopping_sessions WHERE (month = ? OR product_related > ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Sep\\\",93],\\\"sql\\\":\\\"SELECT visitor_type, AVG(product_related) AS value FROM shopping_sessions WHERE (month = ? AND product_related > ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Sep\\\",93],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (month = ? AND product_related > ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Sep\\\",93],\\\"sql\\\":\\\"SELECT visitor_type, SUM(product_related) AS value FROM shopping_sessions WHERE (month = ? AND product_related > ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Returning_Visitor\",186.3181818181818]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, AVG(product_related) AS value FROM shopping_sessions WHERE (month = ? AND product_related > ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5","sql_parameters":"[\"Sep\",93]","state":"{\"question\":\"Return the average of product_related for shopping sessions where (month equals 'Sep' and product_related is greater than 93), 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\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}244{"category":"join/date/or/aggregate","domain":"commerce","family_id":"115c816604bbd166c56e18f5","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"d21f0bbb1aae8170ade006d0a4cab26a2f6c5a27a983fde92a3f515d8880ab5c","language":"en","license":"CC-BY-4.0","query":"Return the minimum of l.quantity 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').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[4.77,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) 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 SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ? OR i.invoice_date >= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[4.77,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ? OR i.invoice_date >= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[4.77,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT MIN(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ? OR i.invoice_date >= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1]]","source":"online_retail_ii","split":"dev","sql":"SELECT MIN(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ? OR i.invoice_date >= ?)","sql_parameters":"[4.77,\"2010-12-02\"]","state":"{\"question\":\"Return the minimum of l.quantity 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\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}245{"category":"single_table/or/ranked","domain":"sensor","family_id":"8bf17172e7bc662fcaf960da","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"f61a9c1ba88a71bf0b22f1cd1c866ce2bc1574b250976425a8d68b265627b0db","language":"en","license":"CC-BY-4.0","query":"Return the maximum of ps2_mean for hydraulic cycles where (ps1_mean is greater than 160.79926 or eps1_mean is at most 2598.8769), grouped by pump_leakage; return at most 3 groups ordered by aggregate value ASC, breaking ties by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[160.79926,2598.8769],\\\"sql\\\":\\\"SELECT pump_leakage, MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? AND eps1_mean <= ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[160.79926,2598.8769],\\\"sql\\\":\\\"SELECT pump_leakage, MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? OR eps1_mean <= ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[160.79926,2598.8769],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? OR eps1_mean <= ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[160.79926,2598.8769],\\\"sql\\\":\\\"SELECT pump_leakage, MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? OR eps1_mean <= ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1,131.0069],[2,131.05237],[0,131.58909]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? OR eps1_mean <= ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3","sql_parameters":"[160.79926,2598.8769]","state":"{\"question\":\"Return the maximum of ps2_mean for hydraulic cycles where (ps1_mean is greater than 160.79926 or eps1_mean is at most 2598.8769), 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\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}246{"category":"single_table/aggregate","domain":"commerce","family_id":"6d2dfef934b3cbe8680c500d","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"e0af5957aa35499e2566930fc5b13fcde728812e4145a5e516a1e5375fbf933b","language":"en","license":"CC-BY-4.0","query":"Return the minimum of product_duration for shopping sessions where (month equals 'May').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"May\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (month = ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"May\\\"],\\\"sql\\\":\\\"SELECT SUM(product_duration) AS value FROM shopping_sessions WHERE (month = ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"May\\\"],\\\"sql\\\":\\\"SELECT AVG(product_duration) AS value FROM shopping_sessions WHERE (month = ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"May\\\"],\\\"sql\\\":\\\"SELECT MIN(product_duration) AS value FROM shopping_sessions WHERE (month = ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0.0]]","source":"online_shoppers","split":"dev","sql":"SELECT MIN(product_duration) AS value FROM shopping_sessions WHERE (month = ?)","sql_parameters":"[\"May\"]","state":"{\"question\":\"Return the minimum of product_duration for shopping sessions where (month equals 'May').\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}247{"category":"join/and/grouped","domain":"commerce","family_id":"423b0312d95a3538022d7a10","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"fcd64b5efdd1fc8a8bad1498407156736179939d817450852d6b3696f963b9ce","language":"en","license":"CC-BY-4.0","query":"Return the minimum of l.unit_price 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[1800,8.5],\\\"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 (l.quantity <= ? OR l.unit_price > ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[1800,8.5],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) 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\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[1800,8.5],\\\"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 (l.quantity <= ? AND l.unit_price > ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[1800,8.5],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.unit_price) 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\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-02\",8.95],[\"2009-12-03\",12.75],[\"2009-12-04\",12.75],[\"2009-12-05\",9.95],[\"2009-12-06\",10.75],[\"2009-12-07\",10.95],[\"2009-12-08\",8.7],[\"2009-12-09\",9.45],[\"2009-12-10\",39.95],[\"2009-12-11\",9.95],[\"2009-12-13\",12.75],[\"2009-12-14\",10.95],[\"2009-12-15\",9.95],[\"2009-12-16\",8.95],[\"2009-12-17\",10.95],[\"2009-12-18\",9.95],[\"2009-12-20\",9.95],[\"2009-12-21\",9.95],[\"2009-12-22\",9.95],[\"2010-01-05\",8.95],[\"2010-01-07\",9.45],[\"2010-01-08\",9.95],[\"2010-01-11\",12.75],[\"2010-01-12\",9.95],[\"2010-01-14\",9.95],[\"2010-01-15\",15.0],[\"2010-01-19\",14.95],[\"2010-01-20\",9.95],[\"2010-01-21\",12.75],[\"2010-01-22\",14.95],[\"2010-01-24\",9.95],[\"2010-01-25\",10.04],[\"2010-01-26\",9.95],[\"2010-01-27\",8.95],[\"2010-01-28\",12.75],[\"2010-01-29\",8.95],[\"2010-01-31\",9.95],[\"2010-02-01\",12.55],[\"2010-02-02\",9.95],[\"2010-02-03\",19.95],[\"2010-02-04\",9.95],[\"2010-02-05\",21.95],[\"2010-02-08\",9.95],[\"2010-02-09\",9.95],[\"2010-02-10\",9.95],[\"2010-02-14\",26.95],[\"2010-02-15\",12.75],[\"2010-02-16\",9.95],[\"2010-02-18\",9.95],[\"2010-02-19\",9.95],[\"2010-02-21\",12.75],[\"2010-02-22\",34.95],[\"2010-02-23\",10.95],[\"2010-02-24\",8.95],[\"2010-02-25\",9.45],[\"2010-02-26\",45.95],[\"2010-02-28\",9.95],[\"2010-03-01\",12.75],[\"2010-03-02\",10.75],[\"2010-03-03\",12.75],[\"2010-03-04\",9.95],[\"2010-03-05\",9.95],[\"2010-03-08\",12.75],[\"2010-03-09\",9.95],[\"2010-03-10\",9.95],[\"2010-03-11\",12.75],[\"2010-03-12\",9.95],[\"2010-03-14\",16.95],[\"2010-03-15\",10.0],[\"2010-03-16\",12.75],[\"2010-03-17\",8.95],[\"2010-03-18\",12.75],[\"2010-03-19\",12.75],[\"2010-03-21\",10.95],[\"2010-03-22\",9.95],[\"2010-03-23\",8.95],[\"2010-03-24\",9.95],[\"2010-03-25\",9.95],[\"2010-03-26\",12.75],[\"2010-03-30\",12.75],[\"2010-03-31\",8.95],[\"2010-04-01\",10.95],[\"2010-04-06\",9.45],[\"2010-04-07\",9.95],[\"2010-04-08\",10.95],[\"2010-04-09\",9.95],[\"2010-04-12\",12.75],[\"2010-04-13\",9.95],[\"2010-04-14\",10.95],[\"2010-04-15\",12.75],[\"2010-04-16\",10.95],[\"2010-04-18\",12.75],[\"2010-04-19\",9.95],[\"2010-04-20\",10.75],[\"2010-04-21\",9.95],[\"2010-04-22\",8.95],[\"2010-04-23\",9.95],[\"2010-04-25\",12.75],[\"2010-04-26\",10.09],[\"2010-04-27\",9.95],[\"2010-04-29\",9.95],[\"2010-04-30\",10.95],[\"2010-05-02\",15.0],[\"2010-05-04\",12.75],[\"2010-05-05\",9.95],[\"2010-05-06\",9.95],[\"2010-05-07\",9.95],[\"2010-05-09\",9.95],[\"2010-05-10\",8.95],[\"2010-05-11\",16.95],[\"2010-05-12\",9.95],[\"2010-05-13\",9.95],[\"2010-05-14\",12.75],[\"2010-05-17\",9.95],[\"2010-05-18\",12.75],[\"2010-05-19\",12.75],[\"2010-05-20\",12.75],[\"2010-05-21\",9.95],[\"2010-05-23\",10.65],[\"2010-05-24\",9.95],[\"2010-05-25\",9.95],[\"2010-05-26\",9.95],[\"2010-05-27\",9.95],[\"2010-05-28\",9.95],[\"2010-05-30\",9.95],[\"2010-06-01\",15.95],[\"2010-06-02\",8.95],[\"2010-06-03\",8.95],[\"2010-06-04\",9.96],[\"2010-06-06\",9.95],[\"2010-06-07\",9.95],[\"2010-06-08\",10.65],[\"2010-06-09\",12.75],[\"2010-06-10\",9.95],[\"2010-06-11\",9.95],[\"2010-06-13\",9.95],[\"2010-06-14\",10.95],[\"2010-06-15\",9.95],[\"2010-06-16\",10.95],[\"2010-06-17\",9.95],[\"2010-06-18\",10.95],[\"2010-06-20\",9.95],[\"2010-06-21\",12.75],[\"2010-06-22\",14.95],[\"2010-06-23\",10.75],[\"2010-06-24\",9.95],[\"2010-06-25\",9.95],[\"2010-06-27\",9.95],[\"2010-06-28\",9.95],[\"2010-06-29\",9.95],[\"2010-06-30\",12.75],[\"2010-07-01\",9.95],[\"2010-07-02\",8.95],[\"2010-07-04\",10.95],[\"2010-07-05\",9.95],[\"2010-07-06\",10.95],[\"2010-07-07\",8.95],[\"2010-07-08\",9.95],[\"2010-07-09\",15.95],[\"2010-07-11\",12.75],[\"2010-07-12\",9.95],[\"2010-07-13\",9.95],[\"2010-07-14\",12.75],[\"2010-07-15\",9.95],[\"2010-07-16\",9.95],[\"2010-07-19\",8.95],[\"2010-07-20\",9.95],[\"2010-07-21\",9.95],[\"2010-07-22\",10.95],[\"2010-07-23\",9.95],[\"2010-07-25\",15.0],[\"2010-07-26\",9.95],[\"2010-07-27\",9.95],[\"2010-07-28\",9.95],[\"2010-07-29\",10.95],[\"2010-07-30\",9.95],[\"2010-08-01\",12.75],[\"2010-08-02\",9.95],[\"2010-08-03\",9.95],[\"2010-08-04\",10.95],[\"2010-08-05\",9.95],[\"2010-08-08\",9.95],[\"2010-08-11\",9.95],[\"2010-08-12\",9.95],[\"2010-08-13\",9.32],[\"2010-08-15\",9.95],[\"2010-08-16\",9.32],[\"2010-08-17\",9.95],[\"2010-08-18\",9.95],[\"2010-08-19\",8.95],[\"2010-08-20\",9.95],[\"2010-08-23\",9.95],[\"2010-08-24\",9.95],[\"2010-08-25\",12.75],[\"2010-08-31\",9.95],[\"2010-09-01\",10.95],[\"2010-09-02\",9.95],[\"2010-09-03\",10.0],[\"2010-09-05\",10.95],[\"2010-09-06\",12.75],[\"2010-09-07\",8.95],[\"2010-09-09\",9.95],[\"2010-09-12\",9.95],[\"2010-09-13\",9.95],[\"2010-09-14\",9.95],[\"2010-09-15\",16.95],[\"2010-09-16\",9.95],[\"2010-09-17\",79.95],[\"2010-09-19\",14.95],[\"2010-09-20\",9.95],[\"2010-09-21\",9.95],[\"2010-09-23\",9.95],[\"2010-09-24\",12.75],[\"2010-09-26\",8.95],[\"2010-09-27\",9.95],[\"2010-09-28\",8.95],[\"2010-09-29\",9.95],[\"2010-09-30\",9.95],[\"2010-10-01\",12.75],[\"2010-10-04\",9.95],[\"2010-10-05\",9.95],[\"2010-10-06\",8.95],[\"2010-10-07\",9.95],[\"2010-10-08\",16.95],[\"2010-10-10\",12.75],[\"2010-10-11\",9.95],[\"2010-10-12\",8.95],[\"2010-10-13\",16.95],[\"2010-10-14\",9.95],[\"2010-10-15\",8.95],[\"2010-10-17\",14.95],[\"2010-10-18\",9.95],[\"2010-10-19\",9.95],[\"2010-10-20\",8.95],[\"2010-10-21\",8.95],[\"2010-10-22\",12.75],[\"2010-10-24\",9.95],[\"2010-10-25\",12.75],[\"2010-10-26\",9.95],[\"2010-10-27\",9.95],[\"2010-10-28\",8.95],[\"2010-10-29\",9.95],[\"2010-10-31\",9.95],[\"2010-11-01\",9.95],[\"2010-11-02\",9.95],[\"2010-11-03\",12.75],[\"2010-11-04\",9.95],[\"2010-11-05\",9.95],[\"2010-11-07\",8.95],[\"2010-11-08\",9.95],[\"2010-11-09\",9.95],[\"2010-11-10\",8.95],[\"2010-11-11\",9.95],[\"2010-11-12\",10.95],[\"2010-11-14\",9.95],[\"2010-11-15\",8.95],[\"2010-11-16\",9.95],[\"2010-11-17\",8.95],[\"2010-11-18\",9.95],[\"2010-11-19\",8.95],[\"2010-11-21\",9.95],[\"2010-11-22\",9.95],[\"2010-11-23\",10.95],[\"2010-11-24\",9.95],[\"2010-11-25\",9.95],[\"2010-11-28\",9.95],[\"2010-11-29\",8.95],[\"2010-11-30\",12.75],[\"2010-12-01\",9.95],[\"2010-12-02\",8.95],[\"2010-12-03\",14.95],[\"2010-12-05\",10.95],[\"2010-12-06\",10.95],[\"2010-12-07\",8.95],[\"2010-12-08\",8.95],[\"2010-12-09\",9.95],[\"2010-12-10\",12.75],[\"2010-12-12\",9.95],[\"2010-12-13\",9.95],[\"2010-12-14\",9.95],[\"2010-12-15\",9.95],[\"2010-12-16\",9.95],[\"2010-12-17\",10.95],[\"2010-12-20\",9.95],[\"2010-12-21\",12.75],[\"2011-01-05\",9.95],[\"2011-01-07\",9.95],[\"2011-01-09\",10.95],[\"2011-01-10\",18.0],[\"2011-01-11\",9.95],[\"2011-01-12\",9.95],[\"2011-01-14\",9.95],[\"2011-01-17\",9.95],[\"2011-01-19\",18.0],[\"2011-01-20\",8.95],[\"2011-01-21\",10.95],[\"2011-01-23\",9.95],[\"2011-01-24\",9.95],[\"2011-01-25\",10.95],[\"2011-01-26\",10.95],[\"2011-01-27\",8.95],[\"2011-01-31\",9.95],[\"2011-02-01\",9.95],[\"2011-02-02\",9.95],[\"2011-02-03\",14.95],[\"2011-02-04\",10.95],[\"2011-02-07\",9.95],[\"2011-02-09\",10.95],[\"2011-02-10\",10.95],[\"2011-02-11\",9.95],[\"2011-02-14\",9.95],[\"2011-02-15\",9.95],[\"2011-02-17\",12.75],[\"2011-02-18\",14.95],[\"2011-02-20\",9.95],[\"2011-02-21\",9.95],[\"2011-02-22\",10.95],[\"2011-02-23\",9.95],[\"2011-02-24\",9.95],[\"2011-02-25\",12.75],[\"2011-02-27\",18.0],[\"2011-02-28\",14.95],[\"2011-03-01\",9.95],[\"2011-03-02\",10.95],[\"2011-03-03\",10.95],[\"2011-03-04\",9.95],[\"2011-03-06\",10.95],[\"2011-03-07\",8.95],[\"2011-03-08\",9.95],[\"2011-03-09\",8.87],[\"2011-03-10\",9.95],[\"2011-03-11\",9.95],[\"2011-03-14\",9.95],[\"2011-03-15\",9.95],[\"2011-03-16\",9.95],[\"2011-03-17\",10.95],[\"2011-03-18\",12.75],[\"2011-03-20\",9.95],[\"2011-03-21\",10.95],[\"2011-03-22\",9.95],[\"2011-03-23\",10.95],[\"2011-03-25\",18.0],[\"2011-03-27\",9.95],[\"2011-03-28\",12.75],[\"2011-03-29\",9.95],[\"2011-03-30\",9.95],[\"2011-03-31\",9.95],[\"2011-04-01\",9.95],[\"2011-04-03\",9.95],[\"2011-04-04\",162.6],[\"2011-04-05\",10.95],[\"2011-04-07\",10.95],[\"2011-04-08\",9.95],[\"2011-04-10\",10.95],[\"2011-04-12\",9.95],[\"2011-04-13\",9.95],[\"2011-04-14\",10.95],[\"2011-04-15\",9.95],[\"2011-04-17\",9.95],[\"2011-04-18\",12.75],[\"2011-04-20\",9.95],[\"2011-04-21\",12.75],[\"2011-04-26\",8.95],[\"2011-04-27\",9.95],[\"2011-04-28\",8.95],[\"2011-05-01\",9.95],[\"2011-05-03\",9.95],[\"2011-05-04\",9.95],[\"2011-05-05\",8.95],[\"2011-05-06\",9.95],[\"2011-05-08\",16.95],[\"2011-05-09\",9.95],[\"2011-05-10\",9.95],[\"2011-05-11\",10.95],[\"2011-05-12\",9.95],[\"2011-05-13\",9.95],[\"2011-05-15\",16.95],[\"2011-05-16\",9.95],[\"2011-05-17\",12.5],[\"2011-05-18\",12.75],[\"2011-05-19\",9.95],[\"2011-05-20\",9.95],[\"2011-05-22\",9.95],[\"2011-05-23\",9.95],[\"2011-05-24\",9.95],[\"2011-05-26\",9.95],[\"2011-05-27\",9.95],[\"2011-05-31\",10.95],[\"2011-06-01\",9.95],[\"2011-06-02\",12.5],[\"2011-06-03\",12.75],[\"2011-06-05\",9.95],[\"2011-06-06\",12.75],[\"2011-06-07\",12.75],[\"2011-06-08\",9.95],[\"2011-06-09\",11.95],[\"2011-06-10\",9.08],[\"2011-06-12\",9.95],[\"2011-06-13\",9.95],[\"2011-06-14\",9.95],[\"2011-06-15\",10.95],[\"2011-06-16\",21.95],[\"2011-06-17\",8.95],[\"2011-06-20\",9.95],[\"2011-06-21\",19.95],[\"2011-06-22\",10.95],[\"2011-06-23\",9.95],[\"2011-06-24\",12.75],[\"2011-06-26\",8.95],[\"2011-06-28\",9.95],[\"2011-06-29\",9.95],[\"2011-06-30\",12.5],[\"2011-07-01\",9.95],[\"2011-07-03\",10.95],[\"2011-07-04\",12.75],[\"2011-07-05\",9.95],[\"2011-07-06\",10.95],[\"2011-07-07\",12.75],[\"2011-07-08\",9.95],[\"2011-07-11\",18.0],[\"2011-07-12\",10.95],[\"2011-07-13\",12.75],[\"2011-07-14\",9.95],[\"2011-07-15\",10.95],[\"2011-07-17\",12.75],[\"2011-07-18\",12.75],[\"2011-07-19\",18.0],[\"2011-07-20\",9.95],[\"2011-07-21\",9.95],[\"2011-07-24\",8.95],[\"2011-07-25\",12.5],[\"2011-07-26\",12.75],[\"2011-07-28\",9.95],[\"2011-07-29\",9.95],[\"2011-07-31\",9.95],[\"2011-08-03\",9.95],[\"2011-08-04\",12.75],[\"2011-08-05\",9.95],[\"2011-08-08\",40.0],[\"2011-08-09\",12.75],[\"2011-08-10\",12.5],[\"2011-08-11\",9.95],[\"2011-08-14\",9.95],[\"2011-08-16\",18.0],[\"2011-08-18\",10.95],[\"2011-08-19\",9.95],[\"2011-08-22\",9.95],[\"2011-08-24\",10.95],[\"2011-08-25\",9.95],[\"2011-08-26\",85.0],[\"2011-08-30\",9.95],[\"2011-08-31\",10.95],[\"2011-09-01\",10.95],[\"2011-09-02\",10.95],[\"2011-09-04\",9.95],[\"2011-09-06\",9.95],[\"2011-09-07\",10.4],[\"2011-09-08\",10.95],[\"2011-09-09\",9.95],[\"2011-09-12\",8.95],[\"2011-09-13\",8.95],[\"2011-09-14\",8.95],[\"2011-09-15\",12.75],[\"2011-09-16\",18.0],[\"2011-09-18\",9.95],[\"2011-09-20\",9.95],[\"2011-09-21\",9.95],[\"2011-09-22\",12.75],[\"2011-09-23\",9.95],[\"2011-09-25\",8.95],[\"2011-09-26\",12.5],[\"2011-09-27\",10.95],[\"2011-09-28\",9.95],[\"2011-09-29\",10.95],[\"2011-09-30\",9.95],[\"2011-10-02\",9.95],[\"2011-10-03\",32.22],[\"2011-10-04\",40.0],[\"2011-10-05\",9.95],[\"2011-10-06\",9.95],[\"2011-10-07\",18.0],[\"2011-10-10\",12.75],[\"2011-10-11\",12.75],[\"2011-10-12\",18.0],[\"2011-10-13\",9.95],[\"2011-10-14\",12.75],[\"2011-10-17\",9.95],[\"2011-10-18\",9.95],[\"2011-10-19\",9.95],[\"2011-10-20\",9.95],[\"2011-10-21\",12.5],[\"2011-10-23\",12.75],[\"2011-10-24\",9.95],[\"2011-10-25\",12.5],[\"2011-10-26\",9.95],[\"2011-10-27\",9.95],[\"2011-10-28\",9.95],[\"2011-10-30\",9.95],[\"2011-10-31\",18.0],[\"2011-11-01\",9.95],[\"2011-11-03\",12.5],[\"2011-11-04\",8.95],[\"2011-11-06\",9.95],[\"2011-11-07\",8.95],[\"2011-11-08\",9.95],[\"2011-11-09\",9.95],[\"2011-11-10\",15.0],[\"2011-11-11\",16.95],[\"2011-11-13\",10.95],[\"2011-11-14\",9.95],[\"2011-11-15\",8.95],[\"2011-11-16\",9.95],[\"2011-11-17\",8.95],[\"2011-11-18\",9.95],[\"2011-11-20\",9.95],[\"2011-11-21\",9.95],[\"2011-11-22\",9.95],[\"2011-11-23\",8.95],[\"2011-11-24\",9.95],[\"2011-11-25\",8.95],[\"2011-11-27\",9.95],[\"2011-11-28\",9.95],[\"2011-11-29\",8.95],[\"2011-11-30\",12.5],[\"2011-12-01\",9.95],[\"2011-12-02\",9.95],[\"2011-12-04\",9.95],[\"2011-12-05\",8.95],[\"2011-12-06\",10.95],[\"2011-12-07\",9.95],[\"2011-12-08\",9.95],[\"2011-12-09\",8.95]]","source":"online_retail_ii","split":"dev","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 (l.quantity <= ? AND l.unit_price > ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC","sql_parameters":"[1800,8.5]","state":"{\"question\":\"Return the minimum of l.unit_price 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_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}248{"category":"single_table/or/grouped","domain":"commerce","family_id":"51d595f8116262eb3d3d4ab6","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"2155ebfe6b8ee77a5b1164908da7785b18c6d3ea66fbe5acf8e041abe4007eca","language":"en","license":"CC-BY-4.0","query":"Return the average of product_duration for shopping sessions where (month equals 'Dec' or traffic_type equals 13), grouped by revenue, ordered by revenue ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Dec\\\",13],\\\"sql\\\":\\\"SELECT revenue, AVG(product_duration) AS value FROM shopping_sessions WHERE (month = ? AND traffic_type = ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Dec\\\",13],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (month = ? OR traffic_type = ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Dec\\\",13],\\\"sql\\\":\\\"SELECT revenue, AVG(product_duration) AS value FROM shopping_sessions WHERE (month = ? OR traffic_type = ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Dec\\\",13],\\\"sql\\\":\\\"SELECT revenue, SUM(product_duration) AS value FROM shopping_sessions WHERE (month = ? OR traffic_type = ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,1114.3116530692355],[1,1605.7822628603487]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, AVG(product_duration) AS value FROM shopping_sessions WHERE (month = ? OR traffic_type = ?) GROUP BY revenue ORDER BY revenue ASC","sql_parameters":"[\"Dec\",13]","state":"{\"question\":\"Return the average of product_duration for shopping sessions where (month equals 'Dec' or traffic_type equals 13), grouped by revenue, ordered by revenue ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}249{"category":"single_table/date/or/having","domain":"commerce","family_id":"1c1ba7065f3f2f0a782cc73d","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"a3a10656ab3cebe1ef3fde85a81057488dd6509be4ad9971ac27ed0739c80698","language":"en","license":"CC-BY-4.0","query":"Return the average of unit_price for retail invoice lines where (unit_price is greater than 49.95 or invoice_date is before '2010-12-02'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[49.95,\\\"2010-12-02\\\",2],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (unit_price > ? AND invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[49.95,\\\"2010-12-02\\\",2],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[49.95,\\\"2010-12-02\\\",2],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[49.95,\\\"2010-12-02\\\",2],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Singapore\",1684.305],[\"United Arab Emirates\",134.0],[\"Norway\",94.75],[\"EIRE\",45.93494382022472],[\"Austria\",14.4]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5","sql_parameters":"[49.95,\"2010-12-02\",2]","state":"{\"question\":\"Return the average of unit_price for retail invoice lines where (unit_price is greater than 49.95 or invoice_date is before '2010-12-02'), 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_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}250{"category":"single_table/aggregate","domain":"commerce","family_id":"2762d321f30a94b1841400c7","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"9bb101ebe816f24a9ed1ddc871e73ef46ac661d887f7ab39f107453b5fc22d01","language":"en","license":"CC-BY-4.0","query":"Return the minimum of unit_price for retail invoice lines where (country equals 'Canada').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Canada\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (country = ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Canada\\\"],\\\"sql\\\":\\\"SELECT SUM(unit_price) AS value FROM retail_lines WHERE (country = ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Canada\\\"],\\\"sql\\\":\\\"SELECT AVG(unit_price) AS value FROM retail_lines WHERE (country = ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Canada\\\"],\\\"sql\\\":\\\"SELECT MIN(unit_price) AS value FROM retail_lines WHERE (country = ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0.83]]","source":"online_retail_ii","split":"dev","sql":"SELECT MIN(unit_price) AS value FROM retail_lines WHERE (country = ?)","sql_parameters":"[\"Canada\"]","state":"{\"question\":\"Return the minimum of unit_price for retail invoice lines where (country equals 'Canada').\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}251{"category":"single_table/and/aggregate","domain":"sensor","family_id":"b5e849a902f75a9f34767740","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"fd20a2b46c7089c1157f24cf9c8c857efbe2d0827cb6bbce11c1eab095f8430a","language":"en","license":"CC-BY-4.0","query":"Return the maximum of fs1_mean for hydraulic cycles where (fs1_mean is greater than 6.57291 and ts1_mean is at most 36.33327).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[6.57291,36.33327],\\\"sql\\\":\\\"SELECT MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ? AND ts1_mean <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[6.57291,36.33327],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (fs1_mean > ? AND ts1_mean <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[6.57291,36.33327],\\\"sql\\\":\\\"SELECT SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ? AND ts1_mean <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[6.57291,36.33327],\\\"sql\\\":\\\"SELECT AVG(fs1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ? AND ts1_mean <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[6.72271]]","source":"hydraulic","split":"dev","sql":"SELECT MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ? AND ts1_mean <= ?)","sql_parameters":"[6.57291,36.33327]","state":"{\"question\":\"Return the maximum of fs1_mean for hydraulic cycles where (fs1_mean is greater than 6.57291 and ts1_mean is at most 36.33327).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}252{"category":"single_table/or/aggregate","domain":"commerce","family_id":"9cb44a8699ea4e44a28e6f7c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"beff235ba06184139b5e73d3468ce1b2b53b5f66d92c8944177e32f97c96dbea","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail invoice lines where (country equals 'Austria' or quantity is at most 1800).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Austria\\\",1800],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Austria\\\",1800],\\\"sql\\\":\\\"SELECT SUM(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Austria\\\",1800],\\\"sql\\\":\\\"SELECT AVG(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Austria\\\",1800],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[26999]]","source":"online_retail_ii","split":"dev","sql":"SELECT COUNT(*) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?)","sql_parameters":"[\"Austria\",1800]","state":"{\"question\":\"Return the number of rows for retail invoice lines where (country equals 'Austria' or quantity is at most 1800).\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}253{"category":"single_table/or/having","domain":"commerce","family_id":"791c56d0b032a0abf781fbed","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"0e9186f12b51fd36e3551c414ef90c8ed536416c7f40c4f1048fd0abe5cbc75b","language":"en","license":"CC-BY-4.0","query":"Return the average of product_duration for shopping sessions where (region equals 4 or product_duration is greater than 3395.729484), grouped by revenue, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by revenue ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[4,3395.729484,2],\\\"sql\\\":\\\"SELECT revenue, AVG(product_duration) AS value FROM shopping_sessions WHERE (region = ? AND product_duration > ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[4,3395.729484,2],\\\"sql\\\":\\\"SELECT revenue, AVG(product_duration) AS value FROM shopping_sessions WHERE (region = ? OR product_duration > ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[4,3395.729484,2],\\\"sql\\\":\\\"SELECT revenue, AVG(product_duration) AS value FROM shopping_sessions WHERE (region = ? OR product_duration > ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[4,3395.729484,2],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (region = ? OR product_duration > ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1,4426.5949829588635],[0,2887.1064136497366]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, AVG(product_duration) AS value FROM shopping_sessions WHERE (region = ? OR product_duration > ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 5","sql_parameters":"[4,3395.729484,2]","state":"{\"question\":\"Return the average of product_duration for shopping sessions where (region equals 4 or product_duration is greater than 3395.729484), grouped by revenue, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by revenue ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}254{"category":"join/date/having","domain":"commerce","family_id":"c4c6f87dc35603f27088d677","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"79c622b2710e0e1f7d6ef23d886178da871a6c90da8df80b6ffc43e0e55db538","language":"en","license":"CC-BY-4.0","query":"Return the maximum of l.unit_price for retail lines joined to their invoices where (i.invoice_date is before '2010-07-14'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT i.country, MAX(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-07-14\\\",10],\\\"sql\\\":\\\"SELECT i.country, MAX(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 DESC, i.country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\",10],\\\"sql\\\":\\\"SELECT i.country, MAX(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\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\",10],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) 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\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",4.95],[\"Cyprus\",6.35],[\"Netherlands\",15.0]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, MAX(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","sql_parameters":"[\"2010-07-14\",10]","state":"{\"question\":\"Return the maximum of l.unit_price for retail lines joined to their invoices where (i.invoice_date is before '2010-07-14'), 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_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}255{"category":"single_table/having","domain":"sensor","family_id":"e1d0afb093674b1051cabdc6","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"b46a6ac35b30f10f5d43d551fcaa94ef26a95e8b092fa892de72b190448054a8","language":"en","license":"CC-BY-4.0","query":"Return the maximum of vs1_mean for hydraulic cycles where (valve equals 80), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[80,2],\\\"sql\\\":\\\"SELECT pump_leakage, MAX(vs1_mean) AS value FROM hydraulic_cycles WHERE (valve = ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value ASC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[80,2],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (valve = ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[80,2],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (valve = ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[80,2],\\\"sql\\\":\\\"SELECT pump_leakage, MAX(vs1_mean) AS value FROM hydraulic_cycles WHERE (valve = ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[2,0.778],[0,0.77435],[1,0.75612]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, MAX(vs1_mean) AS value FROM hydraulic_cycles WHERE (valve = ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 5","sql_parameters":"[80,2]","state":"{\"question\":\"Return the maximum of vs1_mean for hydraulic cycles where (valve equals 80), 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\":{\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}256{"category":"single_table/and/ranked","domain":"commerce","family_id":"e800a983ccb8f96b555628c5","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"6910a88b207d6b9b07e5f7f5638812a3b3c5d299e3fb9a4eb9f69a5b94f5a17c","language":"en","license":"CC-BY-4.0","query":"Return the average of administrative for shopping sessions where (traffic_type equals 16 and product_related is greater than 340), grouped by visitor_type; return at most 3 groups ordered by aggregate value ASC, breaking ties by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[16,340],\\\"sql\\\":\\\"SELECT visitor_type, AVG(administrative) AS value FROM shopping_sessions WHERE (traffic_type = ? OR product_related > ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT visitor_type, AVG(administrative) AS value FROM shopping_sessions GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[16],\\\"sql\\\":\\\"SELECT visitor_type, AVG(administrative) AS value FROM shopping_sessions WHERE (traffic_type = ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[16,340],\\\"sql\\\":\\\"SELECT visitor_type, AVG(administrative) AS value FROM shopping_sessions WHERE (traffic_type = ? AND product_related > ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, AVG(administrative) AS value FROM shopping_sessions WHERE (traffic_type = ? AND product_related > ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3","sql_parameters":"[16,340]","state":"{\"question\":\"Return the average of administrative for shopping sessions where (traffic_type equals 16 and product_related is greater than 340), grouped by visitor_type; return at most 3 groups ordered by aggregate value ASC, breaking ties by visitor_type ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}257{"category":"single_table/ranked","domain":"commerce","family_id":"4a37dd01a26161e846947906","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"badfca31023f96a2796820899517913b6eedc93e73acf6b66e92b648339e75ac","language":"en","license":"CC-BY-4.0","query":"Return the sum of administrative for shopping sessions where (product_related is at most 93), grouped by month; return at most 3 groups ordered by aggregate value ASC, breaking ties by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[93],\\\"sql\\\":\\\"SELECT month, SUM(administrative) AS value FROM shopping_sessions WHERE (product_related <= ?) GROUP BY month ORDER BY value DESC, month ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[93],\\\"sql\\\":\\\"SELECT month, SUM(administrative) AS value FROM shopping_sessions WHERE (product_related <= ?) GROUP BY month ORDER BY value ASC, month ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[93],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (product_related <= ?) GROUP BY month ORDER BY value ASC, month ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[93],\\\"sql\\\":\\\"SELECT month, AVG(administrative) AS value FROM shopping_sessions WHERE (product_related <= ?) GROUP BY month ORDER BY value ASC, month ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Feb\",94],[\"June\",439],[\"Jul\",816]]","source":"online_shoppers","split":"dev","sql":"SELECT month, SUM(administrative) AS value FROM shopping_sessions WHERE (product_related <= ?) GROUP BY month ORDER BY value ASC, month ASC LIMIT 3","sql_parameters":"[93]","state":"{\"question\":\"Return the sum of administrative for shopping sessions where (product_related is at most 93), grouped by month; return at most 3 groups ordered by aggregate value ASC, breaking ties by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}258{"category":"single_table/date/having","domain":"commerce","family_id":"e6a1e078d18b23cb2bd723ec","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"1d4fb71465d8cd9b3af7abb5f71e2c6353c2e4f9d43c2243ebdfc3c74ce9e7c5","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (invoice_date is before '2010-02-18'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\",10],\\\"sql\\\":\\\"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\",10],\\\"sql\\\":\\\"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\",10],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-23\",3.75],[\"2010-01-17\",4.95],[\"2010-02-07\",4.95]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3","sql_parameters":"[\"2010-02-18\",10]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines where (invoice_date is before '2010-02-18'), 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\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}259{"category":"single_table/or/having","domain":"sensor","family_id":"e9234a70a13675e94dffcddc","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"63766090fd8c3c42732b4713e55be78a68d6d29fa29220ea0a2910704893ffa0","language":"en","license":"CC-BY-4.0","query":"Return the average of fs1_mean for hydraulic cycles where (accumulator equals 130 or ps1_mean is greater than 172.56377), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[130,172.56377,2],\\\"sql\\\":\\\"SELECT pump_leakage, AVG(fs1_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\\\":[130,172.56377,2],\\\"sql\\\":\\\"SELECT pump_leakage, AVG(fs1_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\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[130,172.56377,2],\\\"sql\\\":\\\"SELECT pump_leakage, AVG(fs1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ? OR ps1_mean > ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value ASC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[130,172.56377,2],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) 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\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,6.492918423913043],[1,5.013830758928571],[2,4.864843893805309]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, AVG(fs1_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","sql_parameters":"[130,172.56377,2]","state":"{\"question\":\"Return the average of fs1_mean for hydraulic cycles where (accumulator equals 130 or ps1_mean is greater than 172.56377), 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\":{\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}260{"category":"join/date/having","domain":"commerce","family_id":"def637983f9f30b35e1190c4","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"71db0838508d383e8428e96d0afa2eaf5e9c5f36a4608dcc7e724e4c13966c1c","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail lines joined to their invoices where (i.invoice_date is before '2011-05-10'), grouped by i.invoice_date, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\",2],\\\"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 HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\",2],\\\"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 HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\",2],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.invoice_date < ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\",2],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.invoice_date < ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-12-01\",248],[\"2010-12-02\",226],[\"2010-12-09\",194],[\"2010-12-08\",178],[\"2010-12-07\",144]]","source":"online_retail_ii","split":"dev","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 HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5","sql_parameters":"[\"2011-05-10\",2]","state":"{\"question\":\"Return the number of rows for retail lines joined to their invoices where (i.invoice_date is before '2011-05-10'), grouped by i.invoice_date, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}261{"category":"single_table/date/and/having","domain":"commerce","family_id":"1ea2878e2c85a8a05bf6ac2b","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"3d3ff8804b114e81760d403c1ac0034a899bb6d0c44d788ecd1bc28e9e6d82b7","language":"en","license":"CC-BY-4.0","query":"Return the minimum of quantity for retail invoice lines where (country equals 'Australia' and invoice_date is before '2011-09-29'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Australia\\\",\\\"2011-09-29\\\",2],\\\"sql\\\":\\\"SELECT country, MIN(quantity) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Australia\\\",\\\"2011-09-29\\\",2],\\\"sql\\\":\\\"SELECT country, MIN(quantity) AS value FROM retail_lines WHERE (country = ? OR invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Australia\\\",\\\"2011-09-29\\\",2],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Australia\\\",\\\"2011-09-29\\\",2],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",3]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, MIN(quantity) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5","sql_parameters":"[\"Australia\",\"2011-09-29\",2]","state":"{\"question\":\"Return the minimum of quantity for retail invoice lines where (country equals 'Australia' and invoice_date is before '2011-09-29'), 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_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}262{"category":"single_table/or/having","domain":"sensor","family_id":"d6577a1a5dfb2896fa0397fd","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"1bdc139619e33a1b5d490fa5ad3bc12c2d0ef3195c923e04d6d45215e1940d99","language":"en","license":"CC-BY-4.0","query":"Return the minimum of vs1_mean for hydraulic cycles where (fs1_mean is greater than 3.36184 or vs1_mean is greater than 0.61133), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[3.36184,0.61133,2],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(vs1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ? AND vs1_mean > ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[3.36184,0.61133,2],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(vs1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ? OR vs1_mean > ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value ASC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[3.36184,0.61133,2],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(vs1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ? OR vs1_mean > ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[3.36184,0.61133,2],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (fs1_mean > ? OR vs1_mean > ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[2,0.52967],[1,0.52943],[0,0.52437]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, MIN(vs1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ? OR vs1_mean > ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 5","sql_parameters":"[3.36184,0.61133,2]","state":"{\"question\":\"Return the minimum of vs1_mean for hydraulic cycles where (fs1_mean is greater than 3.36184 or vs1_mean is greater than 0.61133), 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\":{\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}263{"category":"single_table/or/ranked","domain":"commerce","family_id":"83b11e7ea81cb87d008b169b","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"e279f2f26739ad5b1e62083a8bc5006551ee7f1dd026dbe92ed9b82f078c9446","language":"en","license":"CC-BY-4.0","query":"Return the sum of quantity for retail invoice lines where (country equals 'EIRE' or unit_price is at most 49.95), grouped by country; return at most 3 groups ordered by aggregate value ASC, breaking ties by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"EIRE\\\",49.95],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"EIRE\\\",49.95],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"EIRE\\\",49.95],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"EIRE\\\",49.95],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"United Arab Emirates\",1],[\"Israel\",34],[\"USA\",36]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3","sql_parameters":"[\"EIRE\",49.95]","state":"{\"question\":\"Return the sum of quantity for retail invoice lines where (country equals 'EIRE' or unit_price is at most 49.95), 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\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}264{"category":"single_table/or/having","domain":"commerce","family_id":"6aa42ccbbe132117187df371","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"8645aa12ef9c208e6ba52a5d73f99b3cd57b0bf289b9931023f506796c9b420d","language":"en","license":"CC-BY-4.0","query":"Return the average of administrative for shopping sessions where (administrative is greater than 7 or product_related is greater than 93), grouped by month, keeping only groups with at least 10 matching rows; return at most 3 groups ordered by aggregate value ASC, breaking ties by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[7,93,10],\\\"sql\\\":\\\"SELECT month, AVG(administrative) AS value FROM shopping_sessions WHERE (administrative > ? AND product_related > ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value ASC, month ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[7,93,10],\\\"sql\\\":\\\"SELECT month, AVG(administrative) AS value FROM shopping_sessions WHERE (administrative > ? OR product_related > ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[7,93,10],\\\"sql\\\":\\\"SELECT month, AVG(administrative) AS value FROM shopping_sessions WHERE (administrative > ? OR product_related > ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value ASC, month ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[7,93,10],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (administrative > ? OR product_related > ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value ASC, month ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Jul\",7.19672131147541],[\"Nov\",7.295867768595041],[\"Dec\",8.06280193236715]]","source":"online_shoppers","split":"dev","sql":"SELECT month, AVG(administrative) AS value FROM shopping_sessions WHERE (administrative > ? OR product_related > ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value ASC, month ASC LIMIT 3","sql_parameters":"[7,93,10]","state":"{\"question\":\"Return the average of administrative for shopping sessions where (administrative is greater than 7 or product_related is greater than 93), grouped by month, keeping only groups with at least 10 matching rows; return at most 3 groups ordered by aggregate value ASC, breaking ties by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}265{"category":"single_table/and/ranked","domain":"commerce","family_id":"d17f7890e9a12d8911fb0af8","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"a3f62f543da5d2b93678c5fa8ea6ac55eb1dd156d41921a4294395ced671ed86","language":"en","license":"CC-BY-4.0","query":"Return the maximum of quantity for retail invoice lines where (country equals 'EIRE' and quantity is at most 25), grouped by invoice_date; return at most 5 groups ordered by aggregate value DESC, breaking ties by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"EIRE\\\",25],\\\"sql\\\":\\\"SELECT invoice_date, MAX(quantity) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"EIRE\\\",25],\\\"sql\\\":\\\"SELECT invoice_date, MAX(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"EIRE\\\",25],\\\"sql\\\":\\\"SELECT invoice_date, MAX(quantity) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"EIRE\\\",25],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-06-17\",24],[\"2010-10-22\",24],[\"2010-11-19\",24],[\"2011-02-21\",24],[\"2011-06-21\",24]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MAX(quantity) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5","sql_parameters":"[\"EIRE\",25]","state":"{\"question\":\"Return the maximum of quantity for retail invoice lines where (country equals 'EIRE' and quantity is at most 25), 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\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}266{"category":"single_table/date/and/aggregate","domain":"commerce","family_id":"703a64886a64179d55274c94","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"aa71cf3472191b25ec2b23a16aba7672ff07ae94a1a0792a324f2157fe2c77b3","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (country equals 'EIRE' and invoice_date is on or after '2010-02-18').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"EIRE\\\",\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT MAX(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"EIRE\\\",\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT MAX(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date >= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"EIRE\\\",\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"EIRE\\\",\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1917.0]]","source":"online_retail_ii","split":"dev","sql":"SELECT MAX(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?)","sql_parameters":"[\"EIRE\",\"2010-02-18\"]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines where (country equals 'EIRE' and invoice_date is on or after '2010-02-18').\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}267{"category":"single_table/or/ranked","domain":"commerce","family_id":"a28c661bd60144c582ec93f6","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"14a86f094112a153d55cc5cdc11b48bbe7c4b4306bc51116c56a9113f4d330f2","language":"en","license":"CC-BY-4.0","query":"Return the maximum of product_duration for shopping sessions where (region equals 9 or product_duration is greater than 1564.0), grouped by visitor_type; return at most 5 groups ordered by aggregate value DESC, breaking ties by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[9,1564.0],\\\"sql\\\":\\\"SELECT visitor_type, MAX(product_duration) AS value FROM shopping_sessions WHERE (region = ? AND product_duration > ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[9,1564.0],\\\"sql\\\":\\\"SELECT visitor_type, MAX(product_duration) AS value FROM shopping_sessions WHERE (region = ? OR product_duration > ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[9,1564.0],\\\"sql\\\":\\\"SELECT visitor_type, MAX(product_duration) AS value FROM shopping_sessions WHERE (region = ? OR product_duration > ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[9,1564.0],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (region = ? OR product_duration > ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Returning_Visitor\",63973.52223],[\"New_Visitor\",12983.78771],[\"Other\",9630.209524]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, MAX(product_duration) AS value FROM shopping_sessions WHERE (region = ? OR product_duration > ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5","sql_parameters":"[9,1564.0]","state":"{\"question\":\"Return the maximum of product_duration for shopping sessions where (region equals 9 or product_duration is greater than 1564.0), 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\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}268{"category":"single_table/and/having","domain":"commerce","family_id":"ca9b6f1104eb699e170b2d64","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"d58da3132462e6c3196c9278c543598650d539137bd104e7c704011300b2b643","language":"en","license":"CC-BY-4.0","query":"Return the minimum of administrative for shopping sessions where (administrative is greater than 7 and product_related is at most 31), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[7,31,10],\\\"sql\\\":\\\"SELECT revenue, MIN(administrative) AS value FROM shopping_sessions WHERE (administrative > ? OR product_related <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[7,31,10],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (administrative > ? AND product_related <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[7,31,10],\\\"sql\\\":\\\"SELECT revenue, SUM(administrative) AS value FROM shopping_sessions WHERE (administrative > ? AND product_related <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[7,31,10],\\\"sql\\\":\\\"SELECT revenue, MIN(administrative) AS value FROM shopping_sessions WHERE (administrative > ? AND product_related <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,8],[1,8]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, MIN(administrative) AS value FROM shopping_sessions WHERE (administrative > ? AND product_related <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3","sql_parameters":"[7,31,10]","state":"{\"question\":\"Return the minimum of administrative for shopping sessions where (administrative is greater than 7 and product_related is at most 31), 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\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}269{"category":"single_table/and/having","domain":"commerce","family_id":"5854525d53bc31c1644e6835","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"a8f1564de1661d6ba29f15ed084a4ec4dafff1834be3b620fdaf7cab67f7ebc1","language":"en","license":"CC-BY-4.0","query":"Return the average of quantity for retail invoice lines where (country equals 'Finland' and quantity is at most 1800), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Finland\\\",1800,10],\\\"sql\\\":\\\"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Finland\\\",1800,10],\\\"sql\\\":\\\"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Finland\\\",1800],\\\"sql\\\":\\\"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[10],\\\"sql\\\":\\\"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3","sql_parameters":"[\"Finland\",1800,10]","state":"{\"question\":\"Return the average of quantity for retail invoice lines where (country equals 'Finland' and quantity is at most 1800), 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\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}270{"category":"single_table/or/aggregate","domain":"commerce","family_id":"f68057e8cac0f017e32f4acc","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"759cc4ed6301741bdac97db063c625203b951194efe0ed10392e72effc9a9f70","language":"en","license":"CC-BY-4.0","query":"Return the sum of quantity for retail invoice lines where (country equals 'Canada' or quantity is at most 1800).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Canada\\\",1800],\\\"sql\\\":\\\"SELECT SUM(quantity) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Canada\\\",1800],\\\"sql\\\":\\\"SELECT SUM(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Canada\\\",1800],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Canada\\\",1800],\\\"sql\\\":\\\"SELECT AVG(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1085925]]","source":"online_retail_ii","split":"dev","sql":"SELECT SUM(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?)","sql_parameters":"[\"Canada\",1800]","state":"{\"question\":\"Return the sum of quantity for retail invoice lines where (country equals 'Canada' or quantity is at most 1800).\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}271{"category":"join/grouped","domain":"commerce","family_id":"d3693bfd4a50763a6329b571","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"c01dab0de25cdc650323bc04fd8a5272cf1859bf5598c9b306edbea2784bf521","language":"en","license":"CC-BY-4.0","query":"Return the average of l.unit_price for retail lines joined to their invoices where (i.country equals 'Cyprus'), grouped by i.country, ordered by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Cyprus\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Cyprus\\\"],\\\"sql\\\":\\\"SELECT i.country, AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Cyprus\\\"],\\\"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.country = ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Cyprus\\\"],\\\"sql\\\":\\\"SELECT i.country, MIN(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Cyprus\",3.615625]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?) GROUP BY i.country ORDER BY i.country ASC","sql_parameters":"[\"Cyprus\"]","state":"{\"question\":\"Return the average of l.unit_price for retail lines joined to their invoices where (i.country equals 'Cyprus'), grouped by i.country, ordered by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}272{"category":"single_table/and/grouped","domain":"commerce","family_id":"b0173f80ef440cb77ae65116","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"b1aa2295cc18d123b97a99538fb59db536745cbe087e1f83fbb4e659a6d14bd8","language":"en","license":"CC-BY-4.0","query":"Return the average of administrative for shopping sessions where (traffic_type equals 1 and product_related is at most 155), grouped by month, ordered by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[1,155],\\\"sql\\\":\\\"SELECT month, AVG(administrative) AS value FROM shopping_sessions WHERE (traffic_type = ? OR product_related <= ?) GROUP BY month ORDER BY month ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[1,155],\\\"sql\\\":\\\"SELECT month, AVG(administrative) AS value FROM shopping_sessions WHERE (traffic_type = ? AND product_related <= ?) GROUP BY month ORDER BY month ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[1,155],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (traffic_type = ? AND product_related <= ?) GROUP BY month ORDER BY month ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[1,155],\\\"sql\\\":\\\"SELECT month, SUM(administrative) AS value FROM shopping_sessions WHERE (traffic_type = ? AND product_related <= ?) GROUP BY month ORDER BY month ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Aug\",2.525252525252525],[\"Dec\",1.9840425531914894],[\"Feb\",0.59375],[\"Jul\",1.6111111111111112],[\"June\",1.4310344827586208],[\"Mar\",1.25],[\"May\",1.5062344139650872],[\"Nov\",2.074829931972789],[\"Oct\",3.16],[\"Sep\",2.3333333333333335]]","source":"online_shoppers","split":"dev","sql":"SELECT month, AVG(administrative) AS value FROM shopping_sessions WHERE (traffic_type = ? AND product_related <= ?) GROUP BY month ORDER BY month ASC","sql_parameters":"[1,155]","state":"{\"question\":\"Return the average of administrative for shopping sessions where (traffic_type equals 1 and product_related is at most 155), grouped by month, ordered by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}273{"category":"single_table/date/or/grouped","domain":"commerce","family_id":"0ce758f625f0a8ea74688b4f","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"361a1e15e76f5b46278f9649293555621e58c098030ee3a6310d33f275a76d48","language":"en","license":"CC-BY-4.0","query":"Return the minimum of quantity for retail invoice lines where (unit_price is greater than 4.77 or invoice_date is on or after '2011-05-10'), grouped by invoice_date, ordered by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[4.77,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (unit_price > ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[4.77,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[4.77,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[4.77,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-01\",1],[\"2009-12-02\",1],[\"2009-12-03\",1],[\"2009-12-04\",1],[\"2009-12-05\",1],[\"2009-12-06\",2],[\"2009-12-07\",1],[\"2009-12-08\",1],[\"2009-12-09\",1],[\"2009-12-10\",1],[\"2009-12-11\",1],[\"2009-12-13\",1],[\"2009-12-14\",1],[\"2009-12-15\",1],[\"2009-12-16\",1],[\"2009-12-17\",1],[\"2009-12-18\",1],[\"2009-12-20\",4],[\"2009-12-21\",1],[\"2009-12-22\",1],[\"2010-01-04\",12],[\"2010-01-05\",1],[\"2010-01-06\",1],[\"2010-01-07\",1],[\"2010-01-08\",3],[\"2010-01-10\",2],[\"2010-01-11\",1],[\"2010-01-12\",1],[\"2010-01-13\",12],[\"2010-01-14\",3],[\"2010-01-15\",1],[\"2010-01-17\",6],[\"2010-01-19\",2],[\"2010-01-20\",1],[\"2010-01-21\",1],[\"2010-01-22\",1],[\"2010-01-24\",3],[\"2010-01-25\",1],[\"2010-01-26\",1],[\"2010-01-27\",1],[\"2010-01-28\",2],[\"2010-01-29\",1],[\"2010-01-31\",1],[\"2010-02-01\",1],[\"2010-02-02\",1],[\"2010-02-03\",1],[\"2010-02-04\",1],[\"2010-02-05\",1],[\"2010-02-07\",24],[\"2010-02-08\",2],[\"2010-02-09\",1],[\"2010-02-10\",1],[\"2010-02-11\",2],[\"2010-02-12\",12],[\"2010-02-14\",1],[\"2010-02-15\",2],[\"2010-02-16\",1],[\"2010-02-17\",4],[\"2010-02-18\",1],[\"2010-02-19\",1],[\"2010-02-21\",1],[\"2010-02-22\",1],[\"2010-02-23\",1],[\"2010-02-24\",1],[\"2010-02-25\",2],[\"2010-02-26\",1],[\"2010-02-28\",1],[\"2010-03-01\",2],[\"2010-03-02\",1],[\"2010-03-03\",2],[\"2010-03-04\",2],[\"2010-03-05\",1],[\"2010-03-07\",1],[\"2010-03-08\",1],[\"2010-03-09\",1],[\"2010-03-10\",1],[\"2010-03-11\",2],[\"2010-03-12\",2],[\"2010-03-14\",8],[\"2010-03-15\",1],[\"2010-03-16\",1],[\"2010-03-17\",1],[\"2010-03-18\",1],[\"2010-03-19\",3],[\"2010-03-21\",4],[\"2010-03-22\",1],[\"2010-03-23\",1],[\"2010-03-24\",1],[\"2010-03-25\",1],[\"2010-03-26\",1],[\"2010-03-28\",12],[\"2010-03-29\",1],[\"2010-03-30\",1],[\"2010-03-31\",1],[\"2010-04-01\",1],[\"2010-04-06\",1],[\"2010-04-07\",6],[\"2010-04-08\",1],[\"2010-04-09\",1],[\"2010-04-11\",2],[\"2010-04-12\",1],[\"2010-04-13\",1],[\"2010-04-14\",1],[\"2010-04-15\",1],[\"2010-04-16\",1],[\"2010-04-18\",2],[\"2010-04-19\",1],[\"2010-04-20\",1],[\"2010-04-21\",1],[\"2010-04-22\",1],[\"2010-04-23\",1],[\"2010-04-25\",2],[\"2010-04-26\",1],[\"2010-04-27\",1],[\"2010-04-28\",2],[\"2010-04-29\",1],[\"2010-04-30\",1],[\"2010-05-02\",1],[\"2010-05-04\",1],[\"2010-05-05\",1],[\"2010-05-06\",1],[\"2010-05-07\",1],[\"2010-05-09\",1],[\"2010-05-10\",1],[\"2010-05-11\",1],[\"2010-05-12\",1],[\"2010-05-13\",1],[\"2010-05-14\",1],[\"2010-05-16\",2],[\"2010-05-17\",1],[\"2010-05-18\",1],[\"2010-05-19\",1],[\"2010-05-20\",1],[\"2010-05-21\",1],[\"2010-05-23\",1],[\"2010-05-24\",1],[\"2010-05-25\",1],[\"2010-05-26\",1],[\"2010-05-27\",1],[\"2010-05-28\",1],[\"2010-05-30\",1],[\"2010-06-01\",1],[\"2010-06-02\",1],[\"2010-06-03\",1],[\"2010-06-04\",1],[\"2010-06-06\",1],[\"2010-06-07\",2],[\"2010-06-08\",2],[\"2010-06-09\",1],[\"2010-06-10\",2],[\"2010-06-11\",1],[\"2010-06-13\",1],[\"2010-06-14\",1],[\"2010-06-15\",1],[\"2010-06-16\",2],[\"2010-06-17\",1],[\"2010-06-18\",1],[\"2010-06-20\",1],[\"2010-06-21\",2],[\"2010-06-22\",1],[\"2010-06-23\",1],[\"2010-06-24\",1],[\"2010-06-25\",1],[\"2010-06-27\",1],[\"2010-06-28\",2],[\"2010-06-29\",1],[\"2010-06-30\",1],[\"2010-07-01\",1],[\"2010-07-02\",1],[\"2010-07-04\",1],[\"2010-07-05\",1],[\"2010-07-06\",2],[\"2010-07-07\",1],[\"2010-07-08\",1],[\"2010-07-09\",1],[\"2010-07-11\",1],[\"2010-07-12\",1],[\"2010-07-13\",1],[\"2010-07-14\",1],[\"2010-07-15\",1],[\"2010-07-16\",1],[\"2010-07-18\",4],[\"2010-07-19\",4],[\"2010-07-20\",1],[\"2010-07-21\",1],[\"2010-07-22\",1],[\"2010-07-23\",1],[\"2010-07-25\",1],[\"2010-07-26\",1],[\"2010-07-27\",1],[\"2010-07-28\",1],[\"2010-07-29\",10],[\"2010-07-30\",1],[\"2010-08-01\",2],[\"2010-08-02\",1],[\"2010-08-03\",1],[\"2010-08-04\",1],[\"2010-08-05\",2],[\"2010-08-06\",1],[\"2010-08-08\",2],[\"2010-08-09\",13],[\"2010-08-10\",4],[\"2010-08-11\",1],[\"2010-08-12\",1],[\"2010-08-13\",1],[\"2010-08-15\",1],[\"2010-08-16\",2],[\"2010-08-17\",1],[\"2010-08-18\",1],[\"2010-08-19\",1],[\"2010-08-20\",1],[\"2010-08-22\",2],[\"2010-08-23\",1],[\"2010-08-24\",1],[\"2010-08-25\",1],[\"2010-08-26\",1],[\"2010-08-27\",3],[\"2010-08-29\",1],[\"2010-08-31\",2],[\"2010-09-01\",1],[\"2010-09-02\",1],[\"2010-09-03\",1],[\"2010-09-05\",2],[\"2010-09-06\",2],[\"2010-09-07\",2],[\"2010-09-09\",1],[\"2010-09-10\",4],[\"2010-09-12\",1],[\"2010-09-13\",1],[\"2010-09-14\",1],[\"2010-09-15\",1],[\"2010-09-16\",1],[\"2010-09-17\",1],[\"2010-09-19\",2],[\"2010-09-20\",1],[\"2010-09-21\",1],[\"2010-09-22\",1],[\"2010-09-23\",1],[\"2010-09-24\",1],[\"2010-09-26\",1],[\"2010-09-27\",1],[\"2010-09-28\",1],[\"2010-09-29\",1],[\"2010-09-30\",1],[\"2010-10-01\",1],[\"2010-10-03\",6],[\"2010-10-04\",2],[\"2010-10-05\",1],[\"2010-10-06\",1],[\"2010-10-07\",1],[\"2010-10-08\",1],[\"2010-10-10\",1],[\"2010-10-11\",1],[\"2010-10-12\",1],[\"2010-10-13\",1],[\"2010-10-14\",1],[\"2010-10-15\",1],[\"2010-10-17\",1],[\"2010-10-18\",1],[\"2010-10-19\",1],[\"2010-10-20\",1],[\"2010-10-21\",1],[\"2010-10-22\",2],[\"2010-10-24\",1],[\"2010-10-25\",1],[\"2010-10-26\",1],[\"2010-10-27\",1],[\"2010-10-28\",1],[\"2010-10-29\",1],[\"2010-10-31\",1],[\"2010-11-01\",3],[\"2010-11-02\",1],[\"2010-11-03\",1],[\"2010-11-04\",1],[\"2010-11-05\",1],[\"2010-11-07\",1],[\"2010-11-08\",1],[\"2010-11-09\",1],[\"2010-11-10\",1],[\"2010-11-11\",1],[\"2010-11-12\",1],[\"2010-11-14\",1],[\"2010-11-15\",1],[\"2010-11-16\",1],[\"2010-11-17\",1],[\"2010-11-18\",1],[\"2010-11-19\",1],[\"2010-11-21\",1],[\"2010-11-22\",1],[\"2010-11-23\",2],[\"2010-11-24\",1],[\"2010-11-25\",1],[\"2010-11-26\",2],[\"2010-11-28\",1],[\"2010-11-29\",1],[\"2010-11-30\",1],[\"2010-12-01\",1],[\"2010-12-02\",2],[\"2010-12-03\",1],[\"2010-12-05\",1],[\"2010-12-06\",1],[\"2010-12-07\",1],[\"2010-12-08\",1],[\"2010-12-09\",1],[\"2010-12-10\",1],[\"2010-12-12\",1],[\"2010-12-13\",1],[\"2010-12-14\",1],[\"2010-12-15\",1],[\"2010-12-16\",1],[\"2010-12-17\",1],[\"2010-12-19\",1],[\"2010-12-20\",1],[\"2010-12-21\",1],[\"2010-12-22\",1],[\"2010-12-23\",1],[\"2011-01-04\",4],[\"2011-01-05\",1],[\"2011-01-06\",6],[\"2011-01-07\",2],[\"2011-01-09\",2],[\"2011-01-10\",1],[\"2011-01-11\",1],[\"2011-01-12\",1],[\"2011-01-13\",2],[\"2011-01-14\",1],[\"2011-01-17\",1],[\"2011-01-18\",3],[\"2011-01-19\",1],[\"2011-01-20\",2],[\"2011-01-21\",1],[\"2011-01-23\",1],[\"2011-01-24\",1],[\"2011-01-25\",1],[\"2011-01-26\",2],[\"2011-01-27\",2],[\"2011-01-28\",4],[\"2011-01-31\",1],[\"2011-02-01\",1],[\"2011-02-02\",1],[\"2011-02-03\",2],[\"2011-02-04\",1],[\"2011-02-07\",1],[\"2011-02-08\",4],[\"2011-02-09\",1],[\"2011-02-10\",1],[\"2011-02-11\",1],[\"2011-02-13\",4],[\"2011-02-14\",1],[\"2011-02-15\",1],[\"2011-02-16\",3],[\"2011-02-17\",1],[\"2011-02-18\",4],[\"2011-02-20\",5],[\"2011-02-21\",1],[\"2011-02-22\",8],[\"2011-02-23\",2],[\"2011-02-24\",2],[\"2011-02-25\",1],[\"2011-02-27\",1],[\"2011-02-28\",1],[\"2011-03-01\",1],[\"2011-03-02\",3],[\"2011-03-03\",1],[\"2011-03-04\",1],[\"2011-03-06\",2],[\"2011-03-07\",1],[\"2011-03-08\",4],[\"2011-03-09\",1],[\"2011-03-10\",1],[\"2011-03-11\",1],[\"2011-03-14\",1],[\"2011-03-15\",1],[\"2011-03-16\",1],[\"2011-03-17\",2],[\"2011-03-18\",1],[\"2011-03-20\",1],[\"2011-03-21\",1],[\"2011-03-22\",16],[\"2011-03-23\",1],[\"2011-03-24\",4],[\"2011-03-25\",2],[\"2011-03-27\",2],[\"2011-03-28\",1],[\"2011-03-29\",4],[\"2011-03-30\",1],[\"2011-03-31\",1],[\"2011-04-01\",1],[\"2011-04-03\",1],[\"2011-04-04\",1],[\"2011-04-05\",1],[\"2011-04-06\",1],[\"2011-04-07\",1],[\"2011-04-08\",1],[\"2011-04-10\",24],[\"2011-04-11\",1],[\"2011-04-12\",2],[\"2011-04-13\",1],[\"2011-04-14\",1],[\"2011-04-15\",1],[\"2011-04-17\",2],[\"2011-04-18\",1],[\"2011-04-19\",3],[\"2011-04-20\",2],[\"2011-04-21\",1],[\"2011-04-26\",1],[\"2011-04-27\",1],[\"2011-04-28\",1],[\"2011-05-01\",2],[\"2011-05-03\",1],[\"2011-05-04\",1],[\"2011-05-05\",1],[\"2011-05-06\",1],[\"2011-05-08\",1],[\"2011-05-09\",1],[\"2011-05-10\",1],[\"2011-05-11\",1],[\"2011-05-12\",1],[\"2011-05-13\",1],[\"2011-05-15\",1],[\"2011-05-16\",2],[\"2011-05-17\",2],[\"2011-05-18\",1],[\"2011-05-19\",1],[\"2011-05-20\",1],[\"2011-05-22\",2],[\"2011-05-23\",1],[\"2011-05-24\",1],[\"2011-05-25\",1],[\"2011-05-26\",1],[\"2011-05-27\",1],[\"2011-05-29\",1],[\"2011-05-31\",1],[\"2011-06-01\",1],[\"2011-06-02\",1],[\"2011-06-03\",1],[\"2011-06-05\",1],[\"2011-06-06\",2],[\"2011-06-07\",1],[\"2011-06-08\",1],[\"2011-06-09\",1],[\"2011-06-10\",1],[\"2011-06-12\",1],[\"2011-06-13\",1],[\"2011-06-14\",1],[\"2011-06-15\",1],[\"2011-06-16\",1],[\"2011-06-17\",1],[\"2011-06-19\",1],[\"2011-06-20\",1],[\"2011-06-21\",1],[\"2011-06-22\",1],[\"2011-06-23\",1],[\"2011-06-24\",1],[\"2011-06-26\",1],[\"2011-06-27\",4],[\"2011-06-28\",1],[\"2011-06-29\",1],[\"2011-06-30\",1],[\"2011-07-01\",1],[\"2011-07-03\",2],[\"2011-07-04\",4],[\"2011-07-05\",1],[\"2011-07-06\",1],[\"2011-07-07\",1],[\"2011-07-08\",1],[\"2011-07-10\",1],[\"2011-07-11\",1],[\"2011-07-12\",5],[\"2011-07-13\",1],[\"2011-07-14\",1],[\"2011-07-15\",1],[\"2011-07-17\",1],[\"2011-07-18\",1],[\"2011-07-19\",1],[\"2011-07-20\",1],[\"2011-07-21\",1],[\"2011-07-22\",1],[\"2011-07-24\",1],[\"2011-07-25\",1],[\"2011-07-26\",1],[\"2011-07-27\",1],[\"2011-07-28\",1],[\"2011-07-29\",1],[\"2011-07-31\",1],[\"2011-08-01\",1],[\"2011-08-02\",1],[\"2011-08-03\",1],[\"2011-08-04\",1],[\"2011-08-05\",1],[\"2011-08-07\",1],[\"2011-08-08\",1],[\"2011-08-09\",1],[\"2011-08-10\",1],[\"2011-08-11\",1],[\"2011-08-12\",8],[\"2011-08-14\",1],[\"2011-08-15\",3],[\"2011-08-16\",1],[\"2011-08-17\",12],[\"2011-08-18\",1],[\"2011-08-19\",1],[\"2011-08-21\",1],[\"2011-08-22\",1],[\"2011-08-23\",1],[\"2011-08-24\",1],[\"2011-08-25\",1],[\"2011-08-26\",2],[\"2011-08-28\",3],[\"2011-08-30\",1],[\"2011-08-31\",1],[\"2011-09-01\",2],[\"2011-09-02\",1],[\"2011-09-04\",1],[\"2011-09-05\",3],[\"2011-09-06\",1],[\"2011-09-07\",1],[\"2011-09-08\",1],[\"2011-09-09\",1],[\"2011-09-11\",4],[\"2011-09-12\",1],[\"2011-09-13\",1],[\"2011-09-14\",2],[\"2011-09-15\",1],[\"2011-09-16\",1],[\"2011-09-18\",1],[\"2011-09-19\",1],[\"2011-09-20\",1],[\"2011-09-21\",1],[\"2011-09-22\",1],[\"2011-09-23\",1],[\"2011-09-25\",1],[\"2011-09-26\",1],[\"2011-09-27\",1],[\"2011-09-28\",1],[\"2011-09-29\",4],[\"2011-09-30\",1],[\"2011-10-02\",1],[\"2011-10-03\",1],[\"2011-10-04\",1],[\"2011-10-05\",1],[\"2011-10-06\",1],[\"2011-10-07\",1],[\"2011-10-09\",2],[\"2011-10-10\",1],[\"2011-10-11\",1],[\"2011-10-12\",1],[\"2011-10-13\",1],[\"2011-10-14\",1],[\"2011-10-17\",1],[\"2011-10-18\",1],[\"2011-10-19\",1],[\"2011-10-20\",1],[\"2011-10-21\",1],[\"2011-10-23\",1],[\"2011-10-24\",1],[\"2011-10-25\",1],[\"2011-10-26\",1],[\"2011-10-27\",1],[\"2011-10-28\",1],[\"2011-10-30\",2],[\"2011-10-31\",1],[\"2011-11-01\",1],[\"2011-11-02\",1],[\"2011-11-03\",1],[\"2011-11-04\",1],[\"2011-11-06\",1],[\"2011-11-07\",1],[\"2011-11-08\",1],[\"2011-11-09\",1],[\"2011-11-10\",1],[\"2011-11-11\",1],[\"2011-11-13\",1],[\"2011-11-14\",1],[\"2011-11-15\",1],[\"2011-11-16\",1],[\"2011-11-17\",1],[\"2011-11-18\",1],[\"2011-11-20\",1],[\"2011-11-21\",1],[\"2011-11-22\",1],[\"2011-11-23\",1],[\"2011-11-24\",1],[\"2011-11-25\",1],[\"2011-11-27\",1],[\"2011-11-28\",1],[\"2011-11-29\",1],[\"2011-11-30\",1],[\"2011-12-01\",2],[\"2011-12-02\",1],[\"2011-12-04\",1],[\"2011-12-05\",1],[\"2011-12-06\",1],[\"2011-12-07\",1],[\"2011-12-08\",1],[\"2011-12-09\",2]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC","sql_parameters":"[4.77,\"2011-05-10\"]","state":"{\"question\":\"Return the minimum of quantity for retail invoice lines where (unit_price is greater than 4.77 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\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}274{"category":"join/ranked","domain":"commerce","family_id":"a711eb615a890a64d3b11756","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"e8a8c3a426a34f378feb113c053abf6067b23ffd88cd16cecee4040f98c770e2","language":"en","license":"CC-BY-4.0","query":"Return the average of l.unit_price for retail lines joined to their invoices where (l.quantity is greater than 25), grouped by i.invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[25],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(l.unit_price) 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 ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[25],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(l.unit_price) 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 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[25],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) 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 ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[25],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.unit_price) 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 ASC, i.invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-01-18\",0.29],[\"2011-09-16\",0.358],[\"2010-03-12\",0.4000000000000001]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.invoice_date, AVG(l.unit_price) 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 ASC, i.invoice_date ASC LIMIT 3","sql_parameters":"[25]","state":"{\"question\":\"Return the average of l.unit_price for retail lines joined to their invoices where (l.quantity is greater than 25), grouped by i.invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}275{"category":"join/null/date/or/ranked","domain":"commerce","family_id":"48ae36a68d71dea15e4c7e60","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"cf42c2c84ef77091f4733125f6ebf13017e403f4512e1f37c5f332fecf000325","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail lines joined to their invoices where (i.invoice_date is before '2010-07-14' or i.customer_id is present), grouped by i.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.invoice_date < ? OR i.customer_id IS NOT NULL) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.invoice_date < ? AND i.customer_id IS NOT NULL) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.invoice_date < ? OR i.customer_id IS NOT NULL) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.invoice_date < ? OR i.customer_id IS NOT NULL) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Israel\",2],[\"United Arab Emirates\",2],[\"USA\",3]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.invoice_date < ? OR i.customer_id IS NOT NULL) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3","sql_parameters":"[\"2010-07-14\"]","state":"{\"question\":\"Return the number of rows for retail lines joined to their invoices where (i.invoice_date is before '2010-07-14' or i.customer_id is present), grouped by i.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}276{"category":"single_table/and/aggregate","domain":"sensor","family_id":"44d252ab82f2ec4c3cdd6f1b","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"ad1f5bfa57db7c86afadbdded511cee74e3071c44e394fe04045ca10379cdf43","language":"en","license":"CC-BY-4.0","query":"Return the sum of fs1_mean for hydraulic cycles where (pump_leakage equals 2 and ps2_mean is greater than 107.72581).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2,107.72581],\\\"sql\\\":\\\"SELECT SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? OR ps2_mean > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2,107.72581],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? AND ps2_mean > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2,107.72581],\\\"sql\\\":\\\"SELECT SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? AND ps2_mean > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2,107.72581],\\\"sql\\\":\\\"SELECT AVG(fs1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? AND ps2_mean > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1440.40534]]","source":"hydraulic","split":"dev","sql":"SELECT SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? AND ps2_mean > ?)","sql_parameters":"[2,107.72581]","state":"{\"question\":\"Return the sum of fs1_mean for hydraulic cycles where (pump_leakage equals 2 and ps2_mean is greater than 107.72581).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}277{"category":"single_table/and/aggregate","domain":"commerce","family_id":"8e16333fe157eadab478e8ed","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"e77b7e1dd7a396020bcdbb74c5f76078a9bc7450397b8539285d47bb6285a281","language":"en","license":"CC-BY-4.0","query":"Return the average of product_duration for shopping sessions where (administrative is at most 7 and product_duration is at most 167.5).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[7,167.5],\\\"sql\\\":\\\"SELECT AVG(product_duration) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_duration <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[7,167.5],\\\"sql\\\":\\\"SELECT AVG(product_duration) AS value FROM shopping_sessions WHERE (administrative <= ? AND product_duration <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[7,167.5],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (administrative <= ? AND product_duration <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[7,167.5],\\\"sql\\\":\\\"SELECT SUM(product_duration) AS value FROM shopping_sessions WHERE (administrative <= ? AND product_duration <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[59.37698932863993]]","source":"online_shoppers","split":"dev","sql":"SELECT AVG(product_duration) AS value FROM shopping_sessions WHERE (administrative <= ? AND product_duration <= ?)","sql_parameters":"[7,167.5]","state":"{\"question\":\"Return the average of product_duration for shopping sessions where (administrative is at most 7 and product_duration is at most 167.5).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}278{"category":"single_table/date/and/ranked","domain":"commerce","family_id":"396ea24a73a6c0ab5f0937eb","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"d35fcd3aae1b0d12ab87a54ce0660097f548bcd67c7fcab5e712e8cd1a7e6ebf","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (quantity is at most 229 and invoice_date is on or after '2010-07-14'), grouped by country; return at most 5 groups ordered by aggregate value DESC, breaking ties by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[229,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date >= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[229,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[229,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[229,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Singapore\",3949.32],[\"EIRE\",1917.0],[\"Germany\",549.34],[\"Norway\",376.5],[\"United Kingdom\",295.0]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5","sql_parameters":"[229,\"2010-07-14\"]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines where (quantity is at most 229 and invoice_date is on or after '2010-07-14'), 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\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}279{"category":"single_table/and/aggregate","domain":"sensor","family_id":"3c008d8ad692921c3ac0d08a","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"0276052154f6406b043a06ab058008a92d437a31ac944b7e560957075482b914","language":"en","license":"CC-BY-4.0","query":"Return the minimum of ps1_mean for hydraulic cycles where (ps1_mean is greater than 172.56377 and ts1_mean is at most 56.73035).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[172.56377,56.73035],\\\"sql\\\":\\\"SELECT MIN(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? OR ts1_mean <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[172.56377,56.73035],\\\"sql\\\":\\\"SELECT MIN(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? AND ts1_mean <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[172.56377,56.73035],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? AND ts1_mean <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[172.56377,56.73035],\\\"sql\\\":\\\"SELECT SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? AND ts1_mean <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[172.64997]]","source":"hydraulic","split":"dev","sql":"SELECT MIN(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? AND ts1_mean <= ?)","sql_parameters":"[172.56377,56.73035]","state":"{\"question\":\"Return the minimum of ps1_mean for hydraulic cycles where (ps1_mean is greater than 172.56377 and ts1_mean is at most 56.73035).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}280{"category":"single_table/having","domain":"sensor","family_id":"44c0f01d183810d0814c3877","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"41238a3fcf373e4cc43533423334d8783134184d2b6f22629e2ede48bf11d37d","language":"en","license":"CC-BY-4.0","query":"Return the minimum of vs1_mean for hydraulic cycles where (ts1_mean is at most 35.56605), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[35.56605,2],\\\"sql\\\":\\\"SELECT valve, MIN(vs1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[35.56605,2],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[35.56605,2],\\\"sql\\\":\\\"SELECT valve, SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[35.56605,2],\\\"sql\\\":\\\"SELECT valve, MIN(vs1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[90,0.5463],[80,0.54358],[73,0.54168],[100,0.53702]]","source":"hydraulic","split":"dev","sql":"SELECT valve, MIN(vs1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 5","sql_parameters":"[35.56605,2]","state":"{\"question\":\"Return the minimum of vs1_mean for hydraulic cycles where (ts1_mean is at most 35.56605), 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\":{\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}281{"category":"single_table/grouped","domain":"commerce","family_id":"07cf3278e6dbd0b0cfb39d31","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"30316ebc14913af54fa4ae27405eb86cc1f6a4ea3d4326f53a1803598f4d5ee4","language":"en","license":"CC-BY-4.0","query":"Return the average of administrative for shopping sessions, grouped by visitor_type, ordered by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT visitor_type, AVG(administrative) AS value FROM shopping_sessions GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT visitor_type, SUM(administrative) AS value FROM shopping_sessions GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT visitor_type, MIN(administrative) AS value FROM shopping_sessions GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"New_Visitor\",2.551948051948052],[\"Other\",1.4705882352941178],[\"Returning_Visitor\",2.2839541275708464]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, AVG(administrative) AS value FROM shopping_sessions GROUP BY visitor_type ORDER BY visitor_type ASC","sql_parameters":"[]","state":"{\"question\":\"Return the average of administrative for shopping sessions, grouped by visitor_type, ordered by visitor_type ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}282{"category":"join/and/having","domain":"commerce","family_id":"5dd78d1596ff321b7a34eeae","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"0fa32bd57b37204e252d998fa56b0d4f3d8fcb4de1846a43ce75c8890c91ba45","language":"en","license":"CC-BY-4.0","query":"Return the average of l.unit_price for retail lines joined to their invoices where (i.customer_id equals '12364' and l.unit_price is greater than 0.55), grouped by i.invoice_date, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12364\\\",0.55,2],\\\"sql\\\":\\\"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.customer_id = ? OR l.unit_price > ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12364\\\",0.55,2],\\\"sql\\\":\\\"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.customer_id = ? AND l.unit_price > ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12364\\\",0.55],\\\"sql\\\":\\\"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.customer_id = ? AND l.unit_price > ?) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","sql":"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.customer_id = ? AND l.unit_price > ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5","sql_parameters":"[\"12364\",0.55,2]","state":"{\"question\":\"Return the average of l.unit_price for retail lines joined to their invoices where (i.customer_id equals '12364' and l.unit_price is greater than 0.55), grouped by i.invoice_date, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}283{"category":"single_table/aggregate","domain":"sensor","family_id":"252b3774a1110712bfc58ff0","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"792e2b4a02e22429d314857f406c1418d3e3d842c09fab511f7d513fe1172323","language":"en","license":"CC-BY-4.0","query":"Return the maximum of eps1_mean for hydraulic cycles where (ts1_mean is at most 35.56605).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[35.56605],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[35.56605],\\\"sql\\\":\\\"SELECT SUM(eps1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[35.56605],\\\"sql\\\":\\\"SELECT MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[35.56605],\\\"sql\\\":\\\"SELECT AVG(eps1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[2577.59263]]","source":"hydraulic","split":"dev","sql":"SELECT MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ?)","sql_parameters":"[35.56605]","state":"{\"question\":\"Return the maximum of eps1_mean for hydraulic cycles where (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_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}284{"category":"single_table/grouped","domain":"sensor","family_id":"ad1dd5ffb07bb7da83bdebd0","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"977928a4da9d9555328aecd14c6cb84cf7f39ae45f257afba55eded98f466ee2","language":"en","license":"CC-BY-4.0","query":"Return the minimum of ts1_mean for hydraulic cycles where (ps2_mean is greater than 122.4767), grouped by valve, ordered by valve ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[122.4767],\\\"sql\\\":\\\"SELECT valve, MIN(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[122.4767],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps2_mean > ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[122.4767],\\\"sql\\\":\\\"SELECT valve, SUM(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[122.4767],\\\"sql\\\":\\\"SELECT valve, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ?) GROUP BY valve ORDER BY valve ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[73,54.1396],[80,54.67508],[90,55.6226],[100,54.25603]]","source":"hydraulic","split":"dev","sql":"SELECT valve, MIN(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ?) GROUP BY valve ORDER BY valve ASC","sql_parameters":"[122.4767]","state":"{\"question\":\"Return the minimum of ts1_mean for hydraulic cycles where (ps2_mean is greater than 122.4767), 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\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}285{"category":"single_table/date/and/having","domain":"commerce","family_id":"856711faead756dadb591bef","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"9535ca765f9c1feff2bf6abe306fda8d8ce93b02c7b3d991844c4a71c321fa9c","language":"en","license":"CC-BY-4.0","query":"Return the average of unit_price for retail invoice lines where (country equals 'Canada' and invoice_date is on or after '2010-12-02'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Canada\\\",\\\"2010-12-02\\\",10],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Canada\\\",\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Canada\\\",\\\"2010-12-02\\\",10],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[10],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","sql":"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3","sql_parameters":"[\"Canada\",\"2010-12-02\",10]","state":"{\"question\":\"Return the average of unit_price for retail invoice lines where (country equals 'Canada' and invoice_date is on or after '2010-12-02'), 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\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}286{"category":"join/distinct_invoice/date/or/having","domain":"commerce","family_id":"e8e758ef12e239db58277e99","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"bca18c9809c9ee2bdeaab1ab6fd6b386fd7f64ac70552254155b5b0cd88c6360","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.quantity is greater than 25 or i.invoice_date is on or after '2010-02-18'), grouped by i.invoice_date, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[25,\\\"2010-02-18\\\",2],\\\"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 > ? OR i.invoice_date >= ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[25,\\\"2010-02-18\\\",2],\\\"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 > ? AND i.invoice_date >= ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[25,\\\"2010-02-18\\\",2],\\\"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 > ? OR i.invoice_date >= ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[25,\\\"2010-02-18\\\",2],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) 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.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-12-01\",68],[\"2010-12-02\",68],[\"2010-12-09\",52],[\"2010-12-08\",46],[\"2010-12-07\",34]]","source":"online_retail_ii","split":"dev","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 > ? OR i.invoice_date >= ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5","sql_parameters":"[25,\"2010-02-18\",2]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.quantity is greater than 25 or i.invoice_date is on or after '2010-02-18'), grouped by i.invoice_date, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}287{"category":"join/distinct_invoice/grouped","domain":"commerce","family_id":"1cfed92e113d55bb616613f1","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"8880fcb560bcd7548ce18b019790d43391ac115de23f2de06220b1ceb7d3b656","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.quantity is greater than 1800), grouped by i.invoice_date, ordered by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[1800],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) 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 i.invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[1800],\\\"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 i.invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[1800],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.quantity) 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 i.invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[1800],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(l.quantity) 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 i.invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-03\",1],[\"2010-03-23\",1],[\"2010-05-18\",1],[\"2010-06-08\",1],[\"2010-08-03\",1],[\"2010-09-03\",1],[\"2010-10-08\",2],[\"2010-11-04\",2],[\"2010-12-02\",2],[\"2011-01-11\",1],[\"2011-02-03\",1],[\"2011-03-20\",1],[\"2011-04-18\",1],[\"2011-05-23\",1],[\"2011-11-03\",1]]","source":"online_retail_ii","split":"dev","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 i.invoice_date ASC","sql_parameters":"[1800]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.quantity is greater than 1800), grouped by i.invoice_date, ordered by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}288{"category":"join/distinct_invoice/or/ranked","domain":"commerce","family_id":"8c383719bcb783b00ff32351","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"5ce7174a98f1e945ce26247ce53578e523ee4ac045e92b213712406b24f406e8","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.customer_id equals '12353' or l.unit_price is at most 4.77), grouped by i.country; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12353\\\",4.77],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? AND l.unit_price <= ?) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12353\\\",4.77],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) 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.country ORDER BY value ASC, i.country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12353\\\",4.77],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) 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.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12353\\\",4.77],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) 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.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"United Kingdom\",6157],[\"Germany\",105],[\"France\",58],[\"EIRE\",47],[\"Netherlands\",33]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, COUNT(DISTINCT i.invoice) 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.country ORDER BY value DESC, i.country ASC LIMIT 5","sql_parameters":"[\"12353\",4.77]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.customer_id equals '12353' or l.unit_price is at most 4.77), grouped by i.country; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}289{"category":"single_table/grouped","domain":"commerce","family_id":"7522a640a3143f1ff0404f53","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"7b88bcde0377f5f345bfc75d4527ab88720c0efea3f48396d13b27a5ce72f16a","language":"en","license":"CC-BY-4.0","query":"Return the maximum of administrative for shopping sessions where (visitor_type equals 'Returning_Visitor'), grouped by visitor_type, ordered by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Returning_Visitor\\\"],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (visitor_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Returning_Visitor\\\"],\\\"sql\\\":\\\"SELECT visitor_type, SUM(administrative) AS value FROM shopping_sessions WHERE (visitor_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Returning_Visitor\\\"],\\\"sql\\\":\\\"SELECT visitor_type, MAX(administrative) AS value FROM shopping_sessions WHERE (visitor_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Returning_Visitor\\\"],\\\"sql\\\":\\\"SELECT visitor_type, AVG(administrative) AS value FROM shopping_sessions WHERE (visitor_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Returning_Visitor\",27]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, MAX(administrative) AS value FROM shopping_sessions WHERE (visitor_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC","sql_parameters":"[\"Returning_Visitor\"]","state":"{\"question\":\"Return the maximum of administrative for shopping sessions where (visitor_type equals 'Returning_Visitor'), grouped by visitor_type, ordered by visitor_type ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}290{"category":"single_table/grouped","domain":"sensor","family_id":"041838376c2bcc9ff30b92a9","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"e2401b391e752fa86175a08f190a71f378b6d18fc007decf12a26c36bbddcb7a","language":"en","license":"CC-BY-4.0","query":"Return the maximum of eps1_mean for hydraulic cycles where (ps1_mean is greater than 158.96089), grouped by valve, ordered by valve ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[158.96089],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps1_mean > ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[158.96089],\\\"sql\\\":\\\"SELECT valve, MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[158.96089],\\\"sql\\\":\\\"SELECT valve, SUM(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[158.96089],\\\"sql\\\":\\\"SELECT valve, AVG(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ?) GROUP BY valve ORDER BY valve ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[73,2740.641],[80,2728.44763],[90,2736.7313],[100,2716.9452]]","source":"hydraulic","split":"dev","sql":"SELECT valve, MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ?) GROUP BY valve ORDER BY valve ASC","sql_parameters":"[158.96089]","state":"{\"question\":\"Return the maximum of eps1_mean for hydraulic cycles where (ps1_mean is greater than 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\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}291{"category":"single_table/or/having","domain":"commerce","family_id":"23d5f7887b44dff314c5a7fb","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"c66dbd198db6038dcf41aa6df0e912649c3e8c15b4042eef797582f2924a80b1","language":"en","license":"CC-BY-4.0","query":"Return the minimum of product_related for shopping sessions where (revenue equals 0 or region equals 6), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[0,6,10],\\\"sql\\\":\\\"SELECT revenue, MIN(product_related) AS value FROM shopping_sessions WHERE (revenue = ? AND region = ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[0,6,10],\\\"sql\\\":\\\"SELECT revenue, MIN(product_related) AS value FROM shopping_sessions WHERE (revenue = ? OR region = ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[0,6,10],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (revenue = ? OR region = ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[0,6,10],\\\"sql\\\":\\\"SELECT revenue, SUM(product_related) AS value FROM shopping_sessions WHERE (revenue = ? OR region = ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,0],[1,0]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, MIN(product_related) AS value FROM shopping_sessions WHERE (revenue = ? OR region = ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3","sql_parameters":"[0,6,10]","state":"{\"question\":\"Return the minimum of product_related for shopping sessions where (revenue equals 0 or region equals 6), 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\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}292{"category":"single_table/having","domain":"commerce","family_id":"6200ae26ecfae5bf0843abb5","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"856da367dc8908800977be2dd4dbfc2c0186800917ac8052e15a77c04bef44af","language":"en","license":"CC-BY-4.0","query":"Return the average of product_duration for shopping sessions where (administrative is greater than 2), grouped by revenue, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by revenue ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2,2],\\\"sql\\\":\\\"SELECT revenue, AVG(product_duration) AS value FROM shopping_sessions WHERE (administrative > ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2,2],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (administrative > ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2,2],\\\"sql\\\":\\\"SELECT revenue, SUM(product_duration) AS value FROM shopping_sessions WHERE (administrative > ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2,2],\\\"sql\\\":\\\"SELECT revenue, AVG(product_duration) AS value FROM shopping_sessions WHERE (administrative > ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1,2507.275721348998],[0,1776.5207842887776]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, AVG(product_duration) AS value FROM shopping_sessions WHERE (administrative > ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 5","sql_parameters":"[2,2]","state":"{\"question\":\"Return the average of product_duration for shopping sessions where (administrative is greater than 2), grouped by revenue, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by revenue ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}293{"category":"single_table/and/grouped","domain":"sensor","family_id":"451117fa45709a4c79282b16","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"103736feb7595f42ab7479b3308d2bcb5292dc1e0322d005faeca9a7505da868","language":"en","license":"CC-BY-4.0","query":"Return the average of fs1_mean for hydraulic cycles where (ps2_mean is at most 105.7255 and vs1_mean is greater than 0.64278), grouped by pump_leakage, ordered by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[105.7255,0.64278],\\\"sql\\\":\\\"SELECT pump_leakage, AVG(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR vs1_mean > ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[105.7255,0.64278],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND vs1_mean > ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[105.7255,0.64278],\\\"sql\\\":\\\"SELECT pump_leakage, AVG(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND vs1_mean > ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[105.7255,0.64278],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND vs1_mean > ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,6.559129462365592],[1,6.3440037837837835],[2,6.267983]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, AVG(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND vs1_mean > ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC","sql_parameters":"[105.7255,0.64278]","state":"{\"question\":\"Return the average of fs1_mean for hydraulic cycles where (ps2_mean is at most 105.7255 and vs1_mean is greater than 0.64278), 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_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}294{"category":"single_table/grouped","domain":"commerce","family_id":"97266738089e8bb511d813f5","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"1a4ec04438e5f4d517be1e8e8e4da36de386c062628eda4d6a2944aa87cc0c77","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for shopping sessions where (revenue equals 1), grouped by revenue, ordered by revenue ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[1],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (revenue = ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[1],\\\"sql\\\":\\\"SELECT revenue, SUM(administrative) AS value FROM shopping_sessions WHERE (revenue = ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[1],\\\"sql\\\":\\\"SELECT revenue, AVG(administrative) AS value FROM shopping_sessions WHERE (revenue = ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[1],\\\"sql\\\":\\\"SELECT revenue, MIN(administrative) AS value FROM shopping_sessions WHERE (revenue = ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1,1908]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (revenue = ?) GROUP BY revenue ORDER BY revenue ASC","sql_parameters":"[1]","state":"{\"question\":\"Return the number of rows for shopping sessions where (revenue equals 1), grouped by revenue, ordered by revenue ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}295{"category":"join/date/or/aggregate","domain":"commerce","family_id":"cbc2c9c4740cb941b7dac0b0","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"7412380766607894c835663e0fdf6d2aed0e379010e043ff25a95b0f0f7fe42b","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.quantity for retail lines joined to their invoices where (i.customer_id equals '12366' or i.invoice_date is on or after '2011-05-10').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12366\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? AND i.invoice_date >= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12366\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR i.invoice_date >= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12366\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR i.invoice_date >= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12366\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR i.invoice_date >= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[348978]]","source":"online_retail_ii","split":"dev","sql":"SELECT SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR i.invoice_date >= ?)","sql_parameters":"[\"12366\",\"2011-05-10\"]","state":"{\"question\":\"Return the sum of l.quantity for retail lines joined to their invoices where (i.customer_id equals '12366' or i.invoice_date is on or after '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_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}296{"category":"join/date/or/aggregate","domain":"commerce","family_id":"ee1674eaa49d9f1785c9f379","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"1b0c8982dc68f45a56bd28d6b085ba80daf845725e88e3c6bbbeb75dd5bcfbc0","language":"en","license":"CC-BY-4.0","query":"Return the maximum of l.unit_price for retail lines joined to their invoices where (l.unit_price is at most 8.5 or i.invoice_date is on or after '2010-07-14').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[8.5,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT MAX(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price <= ? AND i.invoice_date >= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[8.5,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price <= ? OR i.invoice_date >= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[8.5,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT 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 >= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[8.5,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT SUM(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 >= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[3949.32]]","source":"online_retail_ii","split":"dev","sql":"SELECT 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 >= ?)","sql_parameters":"[8.5,\"2010-07-14\"]","state":"{\"question\":\"Return the maximum of l.unit_price for retail lines joined to their invoices where (l.unit_price is at most 8.5 or i.invoice_date is on or after '2010-07-14').\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}297{"category":"join/date/and/ranked","domain":"commerce","family_id":"3c874d409f179dc037f70aa7","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"ef011ce789fb28e3597c2b211a03b7c2064890fd4576fba965c1be09c0a14efe","language":"en","license":"CC-BY-4.0","query":"Return the average of l.unit_price for retail lines joined to their invoices where (i.customer_id equals '12348' and i.invoice_date is on or after '2011-09-29'), grouped by i.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12348\\\",\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT i.country, AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR i.invoice_date >= ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT i.country, AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12348\\\"],\\\"sql\\\":\\\"SELECT i.country, AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12348\\\",\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT i.country, AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? AND i.invoice_date >= ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? AND i.invoice_date >= ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3","sql_parameters":"[\"12348\",\"2011-09-29\"]","state":"{\"question\":\"Return the average of l.unit_price for retail lines joined to their invoices where (i.customer_id equals '12348' and i.invoice_date is on or after '2011-09-29'), grouped by i.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}298{"category":"join/date/ranked","domain":"commerce","family_id":"cf40e6a830fad4365f284a61","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"8cb78684916c82fd1a4f806953c355fad3c7f93026e79818c68f69e9c1a147c8","language":"en","license":"CC-BY-4.0","query":"Return the average of l.unit_price for retail lines joined to their invoices where (i.invoice_date is before '2011-05-10'), grouped by i.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2011-05-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 (i.invoice_date < ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2011-05-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 (i.invoice_date < ?) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) 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_4\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\"],\\\"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\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Poland\",1.6],[\"Channel Islands\",1.6833333333333333],[\"USA\",2.55]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, 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.country ORDER BY value ASC, i.country ASC LIMIT 3","sql_parameters":"[\"2011-05-10\"]","state":"{\"question\":\"Return the average of l.unit_price for retail lines joined to their invoices where (i.invoice_date is before '2011-05-10'), grouped by i.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}299{"category":"single_table/aggregate","domain":"commerce","family_id":"7ad90302893867a27feeabc2","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"e5dcaa0a190432bbbd8c4edca5f6e8d700814f0298d7567eeee57440346273d3","language":"en","license":"CC-BY-4.0","query":"Return the average of product_related for shopping sessions where (region equals 2).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (region = ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2],\\\"sql\\\":\\\"SELECT SUM(product_related) AS value FROM shopping_sessions WHERE (region = ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2],\\\"sql\\\":\\\"SELECT AVG(product_related) AS value FROM shopping_sessions WHERE (region = ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2],\\\"sql\\\":\\\"SELECT MIN(product_related) AS value FROM shopping_sessions WHERE (region = ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[30.427816901408452]]","source":"online_shoppers","split":"dev","sql":"SELECT AVG(product_related) AS value FROM shopping_sessions WHERE (region = ?)","sql_parameters":"[2]","state":"{\"question\":\"Return the average of product_related for shopping sessions where (region equals 2).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}300{"category":"single_table/grouped","domain":"commerce","family_id":"25eab7326f5a86b93788cdd9","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"fe79da3d18ed3a6c460606afdff7032368c1b462ca24bef797a193ed8fb6fff4","language":"en","license":"CC-BY-4.0","query":"Return the average of quantity for retail invoice lines where (quantity is at most 25), grouped by country, ordered by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[25],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (quantity <= ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[25],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (quantity <= ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[25],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (quantity <= ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[25],\\\"sql\\\":\\\"SELECT country, MIN(quantity) AS value FROM retail_lines WHERE (quantity <= ?) GROUP BY country ORDER BY country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",9.357142857142858],[\"Austria\",10.647058823529411],[\"Bahrain\",8.818181818181818],[\"Belgium\",5.780821917808219],[\"Canada\",10.4],[\"Channel Islands\",10.25],[\"Cyprus\",6.0],[\"Denmark\",8.833333333333334],[\"EIRE\",9.32283464566929],[\"Finland\",8.666666666666666],[\"France\",8.574585635359115],[\"Germany\",8.151241534988714],[\"Israel\",4.25],[\"Italy\",8.307692307692308],[\"Japan\",12.3],[\"Netherlands\",7.551724137931035],[\"Norway\",7.125],[\"Poland\",18.25],[\"Portugal\",6.7894736842105265],[\"Singapore\",1.0],[\"Spain\",7.956521739130435],[\"Sweden\",10.8],[\"Switzerland\",5.958333333333333],[\"USA\",12.0],[\"United Arab Emirates\",1.0],[\"United Kingdom\",9.095717748451387]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (quantity <= ?) GROUP BY country ORDER BY country ASC","sql_parameters":"[25]","state":"{\"question\":\"Return the average of quantity for retail invoice lines where (quantity is at most 25), 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\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}301{"category":"single_table/date/and/ranked","domain":"commerce","family_id":"824ca90e038b0d94d31544de","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"6a862fc8a9e85fb9fbeff0f60e89d99b1cb1733549ca5791f45a8ca241ba2410","language":"en","license":"CC-BY-4.0","query":"Return the maximum of quantity for retail invoice lines where (quantity is at most 229 and invoice_date is on or after '2011-09-29'), grouped by country; return at most 3 groups ordered by aggregate value ASC, breaking ties by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[229,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT country, MAX(quantity) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[229,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT country, MAX(quantity) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date >= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[229,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT country, MAX(quantity) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[229,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Singapore\",1],[\"Switzerland\",1],[\"Israel\",3]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, MAX(quantity) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3","sql_parameters":"[229,\"2011-09-29\"]","state":"{\"question\":\"Return the maximum of quantity for retail invoice lines where (quantity is at most 229 and invoice_date is on or after '2011-09-29'), 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\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}302{"category":"single_table/date/and/ranked","domain":"commerce","family_id":"e8235dac71153b3c2964ddfb","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"d25f6e6c5106349ac0bd752fd437d12ec1ab5ab65d9e40d59804c0da6c9216a2","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (unit_price is greater than 0.55 and invoice_date is before '2010-07-14'), grouped by country; return at most 5 groups ordered by aggregate value DESC, breaking ties by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[0.55,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (unit_price > ? AND invoice_date < ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[0.55,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date < ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[0.55,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (unit_price > ? AND invoice_date < ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[0.55,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (unit_price > ? AND invoice_date < ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"United Kingdom\",867.79],[\"Spain\",230.0],[\"EIRE\",50.0],[\"Austria\",40.0],[\"Finland\",40.0]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (unit_price > ? AND invoice_date < ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5","sql_parameters":"[0.55,\"2010-07-14\"]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines where (unit_price is greater than 0.55 and invoice_date is before '2010-07-14'), 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\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}303{"category":"single_table/or/ranked","domain":"commerce","family_id":"db34912d82a74a6c55a9038b","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"f4f2003bd9a81c24e25e18090fff53af5a488c4de6ca9f49d9082299545e8c59","language":"en","license":"CC-BY-4.0","query":"Return the average of quantity for retail invoice lines where (country equals 'Denmark' or quantity is greater than 92), grouped by invoice_date; return at most 5 groups ordered by aggregate value DESC, breaking ties by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Denmark\\\",92],\\\"sql\\\":\\\"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (country = ? AND quantity > ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Denmark\\\",92],\\\"sql\\\":\\\"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity > ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Denmark\\\",92],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? OR quantity > ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Denmark\\\",92],\\\"sql\\\":\\\"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity > ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-03-23\",2985.6],[\"2010-05-18\",1894.2857142857142],[\"2009-12-03\",1855.2727272727273],[\"2011-04-18\",1519.0],[\"2010-11-04\",1424.842105263158]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity > ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5","sql_parameters":"[\"Denmark\",92]","state":"{\"question\":\"Return the average of quantity for retail invoice lines where (country equals 'Denmark' or quantity is greater than 92), 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\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}304{"category":"single_table/date/having","domain":"commerce","family_id":"b76645b3ae7dfabb48d93d1e","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"42082a7a3d21ba0f4afbe341ac2dcf9ddeef5b6923816f66c5aa9d39be14630d","language":"en","license":"CC-BY-4.0","query":"Return the sum of quantity for retail invoice lines where (invoice_date is on or after '2011-05-10'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\",10],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\",10],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\",10],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Denmark\",733],[\"Belgium\",775],[\"Channel Islands\",882]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3","sql_parameters":"[\"2011-05-10\",10]","state":"{\"question\":\"Return the sum of quantity for retail invoice lines where (invoice_date is on or after '2011-05-10'), 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\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}305{"category":"single_table/and/having","domain":"commerce","family_id":"f5d3452fe9ec4e7a6fb3eb81","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"5b271347dfa44bf6e2dea76fa268ff37293280857092dcc2c6de9e43632a668b","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for shopping sessions where (region equals 4 and traffic_type equals 18), grouped by month, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[4,18,2],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (region = ? OR traffic_type = ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[4,2],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[4,18,2],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (region = ? AND traffic_type = ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_shoppers","split":"dev","sql":"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (region = ? AND traffic_type = ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5","sql_parameters":"[4,18,2]","state":"{\"question\":\"Return the number of rows for shopping sessions where (region equals 4 and traffic_type equals 18), grouped by month, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}306{"category":"single_table/date/or/ranked","domain":"commerce","family_id":"e1311b3776c20051cacb1a98","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"64bccf877e7dc0feae14606664b97bd9a6dbdefd5762268a1b88a106e5cc7915","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (country equals 'Australia' or invoice_date is before '2010-02-18'), grouped by invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Australia\\\",\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Australia\\\",\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date < ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Australia\\\",\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? OR invoice_date < ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Australia\\\",\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date < ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-01-06\",1.25],[\"2010-03-23\",1.65],[\"2010-01-18\",2.25]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date < ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3","sql_parameters":"[\"Australia\",\"2010-02-18\"]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines where (country equals 'Australia' or invoice_date is before '2010-02-18'), grouped by invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by invoice_date ascending.\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}307{"category":"single_table/and/aggregate","domain":"sensor","family_id":"1b45cc35b8922167bdb8de3f","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"f9b5482750acbc75b633a6c4ac289972791ab2f9617c7024cc3d8cfa4943982c","language":"en","license":"CC-BY-4.0","query":"Return the maximum of fs1_mean for hydraulic cycles where (ps1_mean is at most 156.56746 and ts1_mean is greater than 44.84172).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[156.56746,44.84172],\\\"sql\\\":\\\"SELECT MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR ts1_mean > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[156.56746,44.84172],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? AND ts1_mean > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[156.56746,44.84172],\\\"sql\\\":\\\"SELECT SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? AND ts1_mean > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[156.56746,44.84172],\\\"sql\\\":\\\"SELECT MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? AND ts1_mean > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[6.60185]]","source":"hydraulic","split":"dev","sql":"SELECT MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? AND ts1_mean > ?)","sql_parameters":"[156.56746,44.84172]","state":"{\"question\":\"Return the maximum of fs1_mean for hydraulic cycles where (ps1_mean is at most 156.56746 and ts1_mean is greater than 44.84172).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}308{"category":"single_table/and/grouped","domain":"commerce","family_id":"d91dc34bd7035f35659a1fcf","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"0bde874d9fd56b5732033f314bd65a7f3dd12c5b2c25851556a8a78ff98aa6a6","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (country equals 'Finland' and unit_price is greater than 0.55), grouped by country, ordered by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Finland\\\",0.55],\\\"sql\\\":\\\"SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price > ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Finland\\\",0.55],\\\"sql\\\":\\\"SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (country = ? AND unit_price > ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Finland\\\",0.55],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND unit_price > ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Finland\\\",0.55],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND unit_price > ?) GROUP BY country ORDER BY country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Finland\",40.0]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (country = ? AND unit_price > ?) GROUP BY country ORDER BY country ASC","sql_parameters":"[\"Finland\",0.55]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines where (country equals 'Finland' and unit_price is greater than 0.55), 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\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}309{"category":"single_table/or/having","domain":"commerce","family_id":"ff5edadf0e64d4198da50436","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"71b608b9b8c76b828c789f7dcf6b9c4850b8548e3e8883f2b38cb2b46789d888","language":"en","license":"CC-BY-4.0","query":"Return the average of unit_price for retail invoice lines where (quantity is at most 648 or unit_price is at most 8.5), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[648,8.5,2],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (quantity <= ? AND unit_price <= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[648,8.5,2],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price <= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[648,8.5,2],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price <= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[648,8.5,2],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price <= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-04-04\",193.91809523809525],[\"2011-10-19\",83.71802631578947],[\"2011-06-20\",68.40395833333334],[\"2010-03-24\",25.192195121951215],[\"2010-08-03\",20.43057142857143]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price <= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5","sql_parameters":"[648,8.5,2]","state":"{\"question\":\"Return the average of unit_price for retail invoice lines where (quantity is at most 648 or unit_price is at most 8.5), 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\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}310{"category":"single_table/date/and/ranked","domain":"commerce","family_id":"1a7b0643cad29459dd1171e5","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"ded4a745b54de149d042a9d4de8ba19025bf98083b143894c61a5e7c17b33ad4","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail invoice lines where (unit_price is greater than 49.95 and invoice_date is before '2010-07-14'), grouped by invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[49.95,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date < ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[49.95,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (unit_price > ? AND invoice_date < ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[49.95,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (unit_price > ? AND invoice_date < ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[49.95,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (unit_price > ? AND invoice_date < ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-07\",1],[\"2009-12-09\",1],[\"2010-02-02\",1]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (unit_price > ? AND invoice_date < ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3","sql_parameters":"[49.95,\"2010-07-14\"]","state":"{\"question\":\"Return the number of rows for retail invoice lines where (unit_price is greater than 49.95 and invoice_date is before '2010-07-14'), grouped by invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by invoice_date ascending.\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}311{"category":"single_table/date/ranked","domain":"commerce","family_id":"874eb54c09ae446bf567a27c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"57352ddefbd1a7d8b4cf61be2cf7953a29aa14f7fe3c1b2aa2fe8d81099ccbc1","language":"en","license":"CC-BY-4.0","query":"Return the minimum of unit_price for retail invoice lines where (invoice_date is on or after '2010-02-18'), grouped by invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MIN(unit_price) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MIN(unit_price) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-09-16\",0.04],[\"2011-09-30\",0.04],[\"2011-10-19\",0.04]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MIN(unit_price) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3","sql_parameters":"[\"2010-02-18\"]","state":"{\"question\":\"Return the minimum of unit_price for retail invoice lines where (invoice_date is on or after '2010-02-18'), grouped by invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by invoice_date ascending.\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}312{"category":"single_table/and/having","domain":"sensor","family_id":"d6c4c9b315f2984a3b5393e3","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"e233d27fb113acdce71f71846f8948714c99fa90377d8ab2d559a2dbef1fe2dc","language":"en","license":"CC-BY-4.0","query":"Return the maximum of fs1_mean for hydraulic cycles where (cooler equals 3 and valve equals 100), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[3,100,10],\\\"sql\\\":\\\"SELECT valve, MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? OR valve = ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[3,100,10],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (cooler = ? AND valve = ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[3,100,10],\\\"sql\\\":\\\"SELECT valve, SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? AND valve = ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[3,100,10],\\\"sql\\\":\\\"SELECT valve, MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? AND valve = ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[100,6.72056]]","source":"hydraulic","split":"dev","sql":"SELECT valve, MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? AND valve = ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 3","sql_parameters":"[3,100,10]","state":"{\"question\":\"Return the maximum of fs1_mean for hydraulic cycles where (cooler equals 3 and valve equals 100), 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\",\"cooler\":\"INTEGER\",\"cycle_id\":\"INTEGER\",\"eps1_mean\":\"REAL\",\"fs1_mean\":\"REAL\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}313{"category":"join/null/and/having","domain":"commerce","family_id":"c44abf79779b836549ef1a71","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"52a73f0aea40a721b7299d660c2514cbe24a8e8418b3b9ae3f4a6d67edd98ef7","language":"en","license":"CC-BY-4.0","query":"Return the minimum of l.quantity for retail lines joined to their invoices where (i.country equals 'Austria' and i.customer_id is present), grouped by i.country, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Austria\\\",2],\\\"sql\\\":\\\"SELECT i.country, MIN(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.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Austria\\\",2],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) 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.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Austria\\\",2],\\\"sql\\\":\\\"SELECT i.country, MIN(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.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Austria\\\",2],\\\"sql\\\":\\\"SELECT i.country, SUM(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.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Austria\",1]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, MIN(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.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5","sql_parameters":"[\"Austria\",2]","state":"{\"question\":\"Return the minimum of l.quantity for retail lines joined to their invoices where (i.country equals 'Austria' and i.customer_id is present), grouped by i.country, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}314{"category":"single_table/and/having","domain":"sensor","family_id":"2019945c0ab701a8da15c7c0","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"637523cf13a5f1f688b873b2389cbf4a371551d6020f91127c41be63b07736f9","language":"en","license":"CC-BY-4.0","query":"Return the sum of fs1_mean for hydraulic cycles where (cooler equals 20 and ps1_mean is at most 172.56377), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[20,172.56377,2],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? OR ps1_mean <= ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[20,172.56377,2],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? AND ps1_mean <= ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value ASC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[20,172.56377,2],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (cooler = ? AND ps1_mean <= ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[20,172.56377,2],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? AND ps1_mean <= ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,2684.9661],[1,1058.4061],[2,1042.32946]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? AND ps1_mean <= ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 5","sql_parameters":"[20,172.56377,2]","state":"{\"question\":\"Return the sum of fs1_mean for hydraulic cycles where (cooler equals 20 and ps1_mean is at most 172.56377), 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\":{\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}315{"category":"single_table/and/grouped","domain":"commerce","family_id":"a179fc9f6a5c2d78af20b5ee","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"0c53bf94f2cae8660350864cce73943434ddee8ceed1311b90f30e66c69733aa","language":"en","license":"CC-BY-4.0","query":"Return the maximum of product_related for shopping sessions where (month equals 'Mar' and visitor_type equals 'Other'), grouped by visitor_type, ordered by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Mar\\\",\\\"Other\\\"],\\\"sql\\\":\\\"SELECT visitor_type, MAX(product_related) AS value FROM shopping_sessions WHERE (month = ? AND visitor_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Mar\\\",\\\"Other\\\"],\\\"sql\\\":\\\"SELECT visitor_type, MAX(product_related) AS value FROM shopping_sessions WHERE (month = ? OR visitor_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT visitor_type, MAX(product_related) AS value FROM shopping_sessions GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Mar\\\"],\\\"sql\\\":\\\"SELECT visitor_type, MAX(product_related) AS value FROM shopping_sessions WHERE (month = ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, MAX(product_related) AS value FROM shopping_sessions WHERE (month = ? AND visitor_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC","sql_parameters":"[\"Mar\",\"Other\"]","state":"{\"question\":\"Return the maximum of product_related for shopping sessions where (month equals 'Mar' and visitor_type equals 'Other'), grouped by visitor_type, ordered by visitor_type ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}316{"category":"single_table/or/having","domain":"sensor","family_id":"01ada82ee9eb354af3e6485f","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"b3dbd4e713948409ed0495dd1fbef0da2f17485a72f5a773a613f05c953fab6f","language":"en","license":"CC-BY-4.0","query":"Return the average of ts1_mean for hydraulic cycles where (accumulator equals 100 or ps1_mean is at most 156.56746), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[100,156.56746,2],\\\"sql\\\":\\\"SELECT cooler, AVG(ts1_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\\\":[100,156.56746,2],\\\"sql\\\":\\\"SELECT cooler, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ? OR ps1_mean <= ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value ASC, cooler ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[100,156.56746,2],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (accumulator = ? OR ps1_mean <= ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[100,156.56746,2],\\\"sql\\\":\\\"SELECT cooler, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ? OR ps1_mean <= ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[3,56.27948189102564],[20,44.36632296296296],[100,36.253498571428565]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ? OR ps1_mean <= ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5","sql_parameters":"[100,156.56746,2]","state":"{\"question\":\"Return the average of ts1_mean for hydraulic cycles where (accumulator equals 100 or ps1_mean is at most 156.56746), 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_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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}317{"category":"single_table/and/having","domain":"sensor","family_id":"c1201c6ef718d601ba7b6536","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"8a321b2c1511196cdaa8ba325a7a7d963a1261a796a8073dc95dbe67c78dd43a","language":"en","license":"CC-BY-4.0","query":"Return the minimum of vs1_mean for hydraulic cycles where (ps1_mean is at most 160.79926 and eps1_mean is greater than 2598.8769), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[160.79926,2598.8769,2],\\\"sql\\\":\\\"SELECT cooler, MIN(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? AND eps1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[160.79926,2598.8769,2],\\\"sql\\\":\\\"SELECT cooler, MIN(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR eps1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2],\\\"sql\\\":\\\"SELECT cooler, MIN(vs1_mean) AS value FROM hydraulic_cycles GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[160.79926,2],\\\"sql\\\":\\\"SELECT cooler, MIN(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"hydraulic","split":"dev","sql":"SELECT cooler, MIN(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? AND eps1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5","sql_parameters":"[160.79926,2598.8769,2]","state":"{\"question\":\"Return the minimum of vs1_mean for hydraulic cycles where (ps1_mean is at most 160.79926 and eps1_mean is greater than 2598.8769), 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_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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}318{"category":"single_table/having","domain":"commerce","family_id":"f4b5d204199d5c5857d19cd1","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"72d67d1f502d64e5fc771ebd72ddb79d5570f5f71401307b44b99d6fffa99a5f","language":"en","license":"CC-BY-4.0","query":"Return the maximum of product_duration for shopping sessions where (region equals 6), grouped by month, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[6,2],\\\"sql\\\":\\\"SELECT month, MAX(product_duration) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value ASC, month ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[6,2],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[6,2],\\\"sql\\\":\\\"SELECT month, SUM(product_duration) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[6,2],\\\"sql\\\":\\\"SELECT month, MAX(product_duration) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Nov\",10415.32566],[\"Mar\",9128.283883],[\"June\",9050.459482],[\"May\",8699.407065],[\"Jul\",6978.613711]]","source":"online_shoppers","split":"dev","sql":"SELECT month, MAX(product_duration) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5","sql_parameters":"[6,2]","state":"{\"question\":\"Return the maximum of product_duration for shopping sessions where (region equals 6), grouped by month, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}319{"category":"join/date/and/aggregate","domain":"commerce","family_id":"26f0be1282f4d9d916472fad","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"068fc42aeb5547eda0b9165e2a86080251d26ce8e5f50d7b638c89c53c0cc8f1","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail lines joined to their invoices where (i.country equals 'Australia' and i.invoice_date is on or after '2010-02-18').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Australia\\\",\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR i.invoice_date >= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Australia\\\",\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND i.invoice_date >= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Australia\\\",\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND i.invoice_date >= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Australia\\\",\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND i.invoice_date >= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[42]]","source":"online_retail_ii","split":"dev","sql":"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND i.invoice_date >= ?)","sql_parameters":"[\"Australia\",\"2010-02-18\"]","state":"{\"question\":\"Return the number of rows for retail lines joined to their invoices where (i.country equals 'Australia' and i.invoice_date is on or after '2010-02-18').\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}320{"category":"single_table/or/aggregate","domain":"commerce","family_id":"ceb8ac1120c58bf87d9209fc","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"728610b0edff81c1d67424dc77d850bfb713d34c91e5dbdf6ab3d9f9582bd931","language":"en","license":"CC-BY-4.0","query":"Return the average of administrative for shopping sessions where (traffic_type equals 12 or product_duration is greater than 3395.729484).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[12,3395.729484],\\\"sql\\\":\\\"SELECT AVG(administrative) AS value FROM shopping_sessions WHERE (traffic_type = ? OR product_duration > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[12,3395.729484],\\\"sql\\\":\\\"SELECT AVG(administrative) AS value FROM shopping_sessions WHERE (traffic_type = ? AND product_duration > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[12,3395.729484],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (traffic_type = ? OR product_duration > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[12,3395.729484],\\\"sql\\\":\\\"SELECT SUM(administrative) AS value FROM shopping_sessions WHERE (traffic_type = ? OR product_duration > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[5.622384937238493]]","source":"online_shoppers","split":"dev","sql":"SELECT AVG(administrative) AS value FROM shopping_sessions WHERE (traffic_type = ? OR product_duration > ?)","sql_parameters":"[12,3395.729484]","state":"{\"question\":\"Return the average of administrative for shopping sessions where (traffic_type equals 12 or product_duration is greater than 3395.729484).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}321{"category":"single_table/or/aggregate","domain":"commerce","family_id":"4c674cff15c59a43c6688913","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"10c9e491fd2fe50e9c6171ac3015159667daeb6e7f20275f55c81382e7e5aef0","language":"en","license":"CC-BY-4.0","query":"Return the sum of product_related for shopping sessions where (month equals 'May' or product_duration is greater than 3395.729484).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"May\\\",3395.729484],\\\"sql\\\":\\\"SELECT SUM(product_related) AS value FROM shopping_sessions WHERE (month = ? AND product_duration > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"May\\\",3395.729484],\\\"sql\\\":\\\"SELECT SUM(product_related) AS value FROM shopping_sessions WHERE (month = ? OR product_duration > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"May\\\",3395.729484],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (month = ? OR product_duration > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"May\\\",3395.729484],\\\"sql\\\":\\\"SELECT AVG(product_related) AS value FROM shopping_sessions WHERE (month = ? OR product_duration > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[199979]]","source":"online_shoppers","split":"dev","sql":"SELECT SUM(product_related) AS value FROM shopping_sessions WHERE (month = ? OR product_duration > ?)","sql_parameters":"[\"May\",3395.729484]","state":"{\"question\":\"Return the sum of product_related for shopping sessions where (month equals 'May' or product_duration is greater than 3395.729484).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}322{"category":"join/null/or/grouped","domain":"commerce","family_id":"c5fcfc1f83f2df13d34972d6","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"925990a25b4463331f4b8b4966a1f165a3b91e77c45e811142f5057813c87522","language":"en","license":"CC-BY-4.0","query":"Return the maximum of l.quantity for retail lines joined to their invoices where (i.country equals 'Australia' or i.customer_id is present), grouped by i.country, ordered by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Australia\\\"],\\\"sql\\\":\\\"SELECT i.country, 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.country ORDER BY i.country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Australia\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) 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.country ORDER BY i.country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Australia\\\"],\\\"sql\\\":\\\"SELECT i.country, 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.country ORDER BY i.country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Australia\\\"],\\\"sql\\\":\\\"SELECT i.country, SUM(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.country ORDER BY i.country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",100],[\"Austria\",48],[\"Bahrain\",8],[\"Belgium\",272],[\"Canada\",16],[\"Channel Islands\",200],[\"Cyprus\",200],[\"Denmark\",256],[\"EIRE\",1440],[\"Finland\",144],[\"France\",576],[\"Germany\",288],[\"Israel\",3],[\"Italy\",96],[\"Japan\",576],[\"Netherlands\",576],[\"Norway\",24],[\"Poland\",48],[\"Portugal\",60],[\"Singapore\",1],[\"Spain\",560],[\"Sweden\",1440],[\"Switzerland\",144],[\"USA\",12],[\"United Arab Emirates\",1],[\"United Kingdom\",10000]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, 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.country ORDER BY i.country ASC","sql_parameters":"[\"Australia\"]","state":"{\"question\":\"Return the maximum of l.quantity for retail lines joined to their invoices where (i.country equals 'Australia' or i.customer_id is present), grouped by i.country, ordered by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}323{"category":"single_table/and/aggregate","domain":"commerce","family_id":"1151449ea5b65635e765f7e9","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"4f8c051c72f09e60acf7a9fb2721ab0df7f624f1a98d1e8c493c1a4800af0408","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for shopping sessions where (region equals 7 and administrative is greater than 18).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[7,18],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (region = ? AND administrative > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[7,18],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (region = ? OR administrative > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[7,18],\\\"sql\\\":\\\"SELECT SUM(administrative) AS value FROM shopping_sessions WHERE (region = ? AND administrative > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[7,18],\\\"sql\\\":\\\"SELECT AVG(administrative) AS value FROM shopping_sessions WHERE (region = ? AND administrative > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1]]","source":"online_shoppers","split":"dev","sql":"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (region = ? AND administrative > ?)","sql_parameters":"[7,18]","state":"{\"question\":\"Return the number of rows for shopping sessions where (region equals 7 and administrative is greater than 18).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}324{"category":"join/date/or/grouped","domain":"commerce","family_id":"aad3471752e83c75a5c4b735","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"c11c1c52ebcdf1d1823f1b2e753fe5682b151c3561267628c5c590d086a657f0","language":"en","license":"CC-BY-4.0","query":"Return the maximum of l.unit_price for retail lines joined to their invoices where (l.unit_price is at most 0.55 or i.invoice_date is before '2010-02-18'), grouped by i.country, ordered by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[0.55,\\\"2010-02-18\\\"],\\\"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 <= ? AND i.invoice_date < ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[0.55,\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) 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_3\":\"{\\\"parameters\\\":[0.55,\\\"2010-02-18\\\"],\\\"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 i.country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[0.55,\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT i.country, SUM(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 i.country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",1.65],[\"Austria\",0.55],[\"Belgium\",0.36],[\"Cyprus\",2.95],[\"EIRE\",50.0],[\"Finland\",40.0],[\"France\",4.95],[\"Germany\",18.0],[\"Japan\",0.42],[\"Netherlands\",15.0],[\"Portugal\",28.0],[\"Spain\",28.0],[\"Sweden\",40.0],[\"United Kingdom\",79.95]]","source":"online_retail_ii","split":"dev","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 i.country ASC","sql_parameters":"[0.55,\"2010-02-18\"]","state":"{\"question\":\"Return the maximum of l.unit_price for retail lines joined to their invoices where (l.unit_price is at most 0.55 or i.invoice_date is before '2010-02-18'), grouped by i.country, ordered by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}325{"category":"single_table/date/or/grouped","domain":"commerce","family_id":"83c6ec21092e5f713b393768","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"107aac599822bc279e78523b4f78da16aea6d67f5512478640cdf137c74e1224","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (quantity is at most 92 or invoice_date is before '2011-05-10'), grouped by invoice_date, ordered by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[92,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[92,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[92,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[92,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-01\",7.95],[\"2009-12-02\",34.95],[\"2009-12-03\",79.95],[\"2009-12-04\",12.75],[\"2009-12-05\",12.75],[\"2009-12-06\",49.95],[\"2009-12-07\",50.0],[\"2009-12-08\",15.95],[\"2009-12-09\",79.95],[\"2009-12-10\",49.95],[\"2009-12-11\",39.95],[\"2009-12-13\",40.0],[\"2009-12-14\",14.95],[\"2009-12-15\",35.95],[\"2009-12-16\",39.95],[\"2009-12-17\",12.75],[\"2009-12-18\",10.95],[\"2009-12-20\",9.95],[\"2009-12-21\",10.95],[\"2009-12-22\",16.48],[\"2009-12-23\",3.75],[\"2010-01-04\",6.95],[\"2010-01-05\",45.95],[\"2010-01-06\",7.95],[\"2010-01-07\",18.0],[\"2010-01-08\",16.95],[\"2010-01-10\",7.95],[\"2010-01-11\",34.95],[\"2010-01-12\",21.95],[\"2010-01-13\",8.5],[\"2010-01-14\",9.95],[\"2010-01-15\",39.95],[\"2010-01-17\",4.95],[\"2010-01-18\",2.25],[\"2010-01-19\",14.95],[\"2010-01-20\",12.75],[\"2010-01-21\",12.75],[\"2010-01-22\",35.95],[\"2010-01-24\",12.75],[\"2010-01-25\",14.26],[\"2010-01-26\",39.95],[\"2010-01-27\",9.95],[\"2010-01-28\",12.75],[\"2010-01-29\",28.0],[\"2010-01-31\",9.95],[\"2010-02-01\",45.95],[\"2010-02-02\",79.95],[\"2010-02-03\",79.95],[\"2010-02-04\",16.95],[\"2010-02-05\",21.95],[\"2010-02-07\",4.95],[\"2010-02-08\",14.95],[\"2010-02-09\",10.95],[\"2010-02-10\",40.0],[\"2010-02-11\",6.95],[\"2010-02-12\",8.49],[\"2010-02-14\",26.95],[\"2010-02-15\",12.75],[\"2010-02-16\",45.95],[\"2010-02-17\",8.5],[\"2010-02-18\",12.75],[\"2010-02-19\",13.57],[\"2010-02-21\",12.75],[\"2010-02-22\",79.95],[\"2010-02-23\",45.95],[\"2010-02-24\",10.95],[\"2010-02-25\",18.0],[\"2010-02-26\",45.95],[\"2010-02-28\",12.75],[\"2010-03-01\",12.75],[\"2010-03-02\",12.75],[\"2010-03-03\",45.95],[\"2010-03-04\",26.95],[\"2010-03-05\",18.0],[\"2010-03-07\",7.95],[\"2010-03-08\",39.95],[\"2010-03-09\",12.75],[\"2010-03-10\",10.95],[\"2010-03-11\",12.75],[\"2010-03-12\",9.95],[\"2010-03-14\",16.95],[\"2010-03-15\",25.52],[\"2010-03-16\",18.0],[\"2010-03-17\",9.95],[\"2010-03-18\",29.95],[\"2010-03-19\",14.95],[\"2010-03-21\",12.75],[\"2010-03-22\",12.75],[\"2010-03-23\",12.75],[\"2010-03-24\",867.79],[\"2010-03-25\",40.0],[\"2010-03-26\",16.95],[\"2010-03-28\",4.95],[\"2010-03-29\",8.5],[\"2010-03-30\",18.95],[\"2010-03-31\",34.95],[\"2010-04-01\",10.95],[\"2010-04-06\",15.95],[\"2010-04-07\",10.95],[\"2010-04-08\",12.75],[\"2010-04-09\",12.75],[\"2010-04-11\",7.95],[\"2010-04-12\",12.75],[\"2010-04-13\",9.95],[\"2010-04-14\",12.75],[\"2010-04-15\",12.75],[\"2010-04-16\",12.75],[\"2010-04-18\",14.95],[\"2010-04-19\",26.95],[\"2010-04-20\",10.75],[\"2010-04-21\",125.0],[\"2010-04-22\",18.0],[\"2010-04-23\",45.95],[\"2010-04-25\",12.75],[\"2010-04-26\",39.95],[\"2010-04-27\",25.49],[\"2010-04-28\",7.65],[\"2010-04-29\",12.75],[\"2010-04-30\",14.95],[\"2010-05-02\",15.0],[\"2010-05-04\",230.0],[\"2010-05-05\",12.75],[\"2010-05-06\",19.95],[\"2010-05-07\",15.95],[\"2010-05-09\",16.95],[\"2010-05-10\",29.95],[\"2010-05-11\",16.95],[\"2010-05-12\",12.75],[\"2010-05-13\",12.75],[\"2010-05-14\",16.98],[\"2010-05-16\",8.5],[\"2010-05-17\",12.75],[\"2010-05-18\",18.95],[\"2010-05-19\",79.95],[\"2010-05-20\",12.75],[\"2010-05-21\",12.75],[\"2010-05-23\",12.75],[\"2010-05-24\",14.95],[\"2010-05-25\",19.95],[\"2010-05-26\",25.49],[\"2010-05-27\",12.75],[\"2010-05-28\",15.95],[\"2010-05-30\",12.75],[\"2010-06-01\",15.95],[\"2010-06-02\",12.75],[\"2010-06-03\",12.75],[\"2010-06-04\",25.49],[\"2010-06-06\",9.95],[\"2010-06-07\",18.0],[\"2010-06-08\",12.75],[\"2010-06-09\",40.0],[\"2010-06-10\",12.75],[\"2010-06-11\",39.95],[\"2010-06-13\",16.95],[\"2010-06-14\",16.95],[\"2010-06-15\",12.75],[\"2010-06-16\",19.95],[\"2010-06-17\",12.75],[\"2010-06-18\",10.95],[\"2010-06-20\",12.75],[\"2010-06-21\",12.75],[\"2010-06-22\",19.95],[\"2010-06-23\",19.95],[\"2010-06-24\",25.49],[\"2010-06-25\",12.75],[\"2010-06-27\",12.75],[\"2010-06-28\",14.95],[\"2010-06-29\",125.0],[\"2010-06-30\",19.95],[\"2010-07-01\",18.95],[\"2010-07-02\",8.95],[\"2010-07-04\",24.95],[\"2010-07-05\",18.0],[\"2010-07-06\",19.95],[\"2010-07-07\",12.75],[\"2010-07-08\",125.0],[\"2010-07-09\",15.95],[\"2010-07-11\",15.95],[\"2010-07-12\",295.0],[\"2010-07-13\",40.0],[\"2010-07-14\",12.75],[\"2010-07-15\",18.0],[\"2010-07-16\",34.95],[\"2010-07-18\",4.95],[\"2010-07-19\",10.95],[\"2010-07-20\",12.75],[\"2010-07-21\",15.95],[\"2010-07-22\",28.0],[\"2010-07-23\",10.95],[\"2010-07-25\",15.0],[\"2010-07-26\",18.0],[\"2010-07-27\",19.95],[\"2010-07-28\",10.95],[\"2010-07-29\",10.95],[\"2010-07-30\",12.75],[\"2010-08-01\",12.75],[\"2010-08-02\",295.0],[\"2010-08-03\",295.0],[\"2010-08-04\",12.75],[\"2010-08-05\",12.95],[\"2010-08-06\",8.5],[\"2010-08-08\",34.95],[\"2010-08-09\",6.68],[\"2010-08-10\",5.95],[\"2010-08-11\",18.0],[\"2010-08-12\",16.95],[\"2010-08-13\",10.65],[\"2010-08-15\",12.75],[\"2010-08-16\",12.75],[\"2010-08-17\",9.95],[\"2010-08-18\",12.75],[\"2010-08-19\",12.75],[\"2010-08-20\",15.0],[\"2010-08-22\",8.5],[\"2010-08-23\",14.95],[\"2010-08-24\",295.0],[\"2010-08-25\",12.75],[\"2010-08-26\",8.5],[\"2010-08-27\",7.49],[\"2010-08-29\",8.5],[\"2010-08-31\",9.95],[\"2010-09-01\",79.95],[\"2010-09-02\",39.95],[\"2010-09-03\",15.0],[\"2010-09-05\",10.95],[\"2010-09-06\",18.0],[\"2010-09-07\",10.95],[\"2010-09-08\",2.55],[\"2010-09-09\",110.0],[\"2010-09-10\",6.75],[\"2010-09-12\",16.95],[\"2010-09-13\",12.75],[\"2010-09-14\",12.75],[\"2010-09-15\",16.95],[\"2010-09-16\",18.0],[\"2010-09-17\",79.95],[\"2010-09-19\",14.95],[\"2010-09-20\",129.95],[\"2010-09-21\",9.95],[\"2010-09-22\",7.95],[\"2010-09-23\",18.95],[\"2010-09-24\",14.95],[\"2010-09-26\",12.75],[\"2010-09-27\",16.95],[\"2010-09-28\",16.95],[\"2010-09-29\",50.0],[\"2010-09-30\",16.98],[\"2010-10-01\",18.95],[\"2010-10-03\",5.45],[\"2010-10-04\",29.95],[\"2010-10-05\",12.75],[\"2010-10-06\",50.0],[\"2010-10-07\",12.75],[\"2010-10-08\",16.95],[\"2010-10-10\",14.95],[\"2010-10-11\",79.95],[\"2010-10-12\",10.95],[\"2010-10-13\",16.95],[\"2010-10-14\",52.78],[\"2010-10-15\",16.98],[\"2010-10-17\",14.95],[\"2010-10-18\",18.0],[\"2010-10-19\",21.95],[\"2010-10-20\",34.95],[\"2010-10-21\",145.0],[\"2010-10-22\",145.0],[\"2010-10-24\",39.95],[\"2010-10-25\",14.95],[\"2010-10-26\",9.95],[\"2010-10-27\",14.95],[\"2010-10-28\",12.75],[\"2010-10-29\",39.95],[\"2010-10-31\",18.0],[\"2010-11-01\",9.95],[\"2010-11-02\",40.0],[\"2010-11-03\",165.0],[\"2010-11-04\",14.95],[\"2010-11-05\",14.95],[\"2010-11-07\",8.95],[\"2010-11-08\",32.69],[\"2010-11-09\",50.0],[\"2010-11-10\",16.95],[\"2010-11-11\",14.95],[\"2010-11-12\",15.0],[\"2010-11-14\",28.0],[\"2010-11-15\",40.0],[\"2010-11-16\",24.95],[\"2010-11-17\",295.0],[\"2010-11-18\",34.95],[\"2010-11-19\",253.0],[\"2010-11-21\",14.95],[\"2010-11-22\",12.75],[\"2010-11-23\",12.75],[\"2010-11-24\",79.95],[\"2010-11-25\",65.0],[\"2010-11-26\",8.5],[\"2010-11-28\",110.0],[\"2010-11-29\",18.0],[\"2010-11-30\",24.95],[\"2010-12-01\",19.95],[\"2010-12-02\",10.95],[\"2010-12-03\",40.0],[\"2010-12-05\",18.0],[\"2010-12-06\",14.95],[\"2010-12-07\",19.84],[\"2010-12-08\",21.95],[\"2010-12-09\",18.0],[\"2010-12-10\",16.95],[\"2010-12-12\",19.95],[\"2010-12-13\",12.75],[\"2010-12-14\",29.95],[\"2010-12-15\",12.75],[\"2010-12-16\",39.95],[\"2010-12-17\",18.0],[\"2010-12-19\",8.5],[\"2010-12-20\",22.0],[\"2010-12-21\",18.0],[\"2010-12-22\",4.95],[\"2010-12-23\",5.95],[\"2011-01-04\",8.5],[\"2011-01-05\",12.75],[\"2011-01-06\",8.5],[\"2011-01-07\",39.95],[\"2011-01-09\",12.75],[\"2011-01-10\",18.0],[\"2011-01-11\",18.0],[\"2011-01-12\",165.0],[\"2011-01-13\",8.5],[\"2011-01-14\",18.0],[\"2011-01-16\",3.95],[\"2011-01-17\",12.75],[\"2011-01-18\",6.95],[\"2011-01-19\",18.0],[\"2011-01-20\",8.95],[\"2011-01-21\",40.0],[\"2011-01-23\",14.95],[\"2011-01-24\",12.75],[\"2011-01-25\",40.0],[\"2011-01-26\",12.75],[\"2011-01-27\",18.0],[\"2011-01-28\",7.95],[\"2011-01-30\",2.95],[\"2011-01-31\",14.95],[\"2011-02-01\",14.95],[\"2011-02-02\",12.75],[\"2011-02-03\",15.0],[\"2011-02-04\",295.0],[\"2011-02-07\",12.75],[\"2011-02-08\",4.95],[\"2011-02-09\",15.0],[\"2011-02-10\",165.0],[\"2011-02-11\",145.0],[\"2011-02-13\",5.95],[\"2011-02-14\",16.95],[\"2011-02-15\",10.95],[\"2011-02-16\",8.5],[\"2011-02-17\",18.0],[\"2011-02-18\",14.95],[\"2011-02-20\",10.95],[\"2011-02-21\",12.75],[\"2011-02-22\",10.95],[\"2011-02-23\",34.95],[\"2011-02-24\",10.95],[\"2011-02-25\",40.0],[\"2011-02-27\",18.0],[\"2011-02-28\",125.0],[\"2011-03-01\",376.5],[\"2011-03-02\",10.95],[\"2011-03-03\",40.0],[\"2011-03-04\",28.0],[\"2011-03-06\",10.95],[\"2011-03-07\",125.0],[\"2011-03-08\",10.95],[\"2011-03-09\",40.0],[\"2011-03-10\",14.95],[\"2011-03-11\",16.95],[\"2011-03-14\",10.95],[\"2011-03-15\",9.95],[\"2011-03-16\",10.95],[\"2011-03-17\",10.95],[\"2011-03-18\",18.0],[\"2011-03-20\",18.0],[\"2011-03-21\",10.95],[\"2011-03-22\",9.95],[\"2011-03-23\",16.95],[\"2011-03-24\",8.5],[\"2011-03-25\",18.0],[\"2011-03-27\",12.75],[\"2011-03-28\",150.0],[\"2011-03-29\",10.65],[\"2011-03-30\",12.75],[\"2011-03-31\",18.0],[\"2011-04-01\",16.95],[\"2011-04-03\",10.95],[\"2011-04-04\",2382.92],[\"2011-04-05\",125.0],[\"2011-04-06\",8.5],[\"2011-04-07\",12.75],[\"2011-04-08\",18.0],[\"2011-04-10\",10.95],[\"2011-04-11\",8.5],[\"2011-04-12\",10.95],[\"2011-04-13\",12.75],[\"2011-04-14\",18.0],[\"2011-04-15\",40.0],[\"2011-04-17\",9.95],[\"2011-04-18\",12.75],[\"2011-04-19\",5.95],[\"2011-04-20\",14.95],[\"2011-04-21\",40.0],[\"2011-04-26\",40.0],[\"2011-04-27\",50.0],[\"2011-04-28\",295.0],[\"2011-05-01\",9.95],[\"2011-05-03\",110.0],[\"2011-05-04\",9.95],[\"2011-05-05\",39.95],[\"2011-05-06\",40.0],[\"2011-05-08\",16.95],[\"2011-05-09\",12.75],[\"2011-05-10\",16.95],[\"2011-05-11\",18.0],[\"2011-05-12\",12.5],[\"2011-05-13\",34.95],[\"2011-05-15\",16.95],[\"2011-05-16\",10.4],[\"2011-05-17\",12.5],[\"2011-05-18\",40.0],[\"2011-05-19\",39.95],[\"2011-05-20\",16.95],[\"2011-05-22\",9.95],[\"2011-05-23\",18.0],[\"2011-05-24\",29.95],[\"2011-05-25\",8.5],[\"2011-05-26\",125.0],[\"2011-05-27\",10.95],[\"2011-05-29\",5.45],[\"2011-05-31\",12.75],[\"2011-06-01\",16.95],[\"2011-06-02\",40.0],[\"2011-06-03\",18.0],[\"2011-06-05\",34.95],[\"2011-06-06\",12.75],[\"2011-06-07\",12.75],[\"2011-06-08\",15.0],[\"2011-06-09\",18.0],[\"2011-06-10\",18.0],[\"2011-06-12\",19.95],[\"2011-06-13\",19.95],[\"2011-06-14\",15.0],[\"2011-06-15\",12.75],[\"2011-06-16\",25.0],[\"2011-06-17\",16.95],[\"2011-06-19\",7.95],[\"2011-06-20\",1917.0],[\"2011-06-21\",25.0],[\"2011-06-22\",15.0],[\"2011-06-23\",9.95],[\"2011-06-24\",16.95],[\"2011-06-26\",28.0],[\"2011-06-27\",4.95],[\"2011-06-28\",12.75],[\"2011-06-29\",24.95],[\"2011-06-30\",165.0],[\"2011-07-01\",50.0],[\"2011-07-03\",10.95],[\"2011-07-04\",12.75],[\"2011-07-05\",15.0],[\"2011-07-06\",12.75],[\"2011-07-07\",15.0],[\"2011-07-08\",85.0],[\"2011-07-10\",2.55],[\"2011-07-11\",18.0],[\"2011-07-12\",10.95],[\"2011-07-13\",85.0],[\"2011-07-14\",14.95],[\"2011-07-15\",16.95],[\"2011-07-17\",18.0],[\"2011-07-18\",16.95],[\"2011-07-19\",18.0],[\"2011-07-20\",28.0],[\"2011-07-21\",14.95],[\"2011-07-22\",8.5],[\"2011-07-24\",24.95],[\"2011-07-25\",15.0],[\"2011-07-26\",16.95],[\"2011-07-27\",7.65],[\"2011-07-28\",15.0],[\"2011-07-29\",12.75],[\"2011-07-31\",12.5],[\"2011-08-01\",4.95],[\"2011-08-02\",8.5],[\"2011-08-03\",12.75],[\"2011-08-04\",49.95],[\"2011-08-05\",18.0],[\"2011-08-07\",8.5],[\"2011-08-08\",40.0],[\"2011-08-09\",18.0],[\"2011-08-10\",12.75],[\"2011-08-11\",15.0],[\"2011-08-12\",6.75],[\"2011-08-14\",39.95],[\"2011-08-15\",5.95],[\"2011-08-16\",18.0],[\"2011-08-17\",3.39],[\"2011-08-18\",12.75],[\"2011-08-19\",14.95],[\"2011-08-21\",8.5],[\"2011-08-22\",10.95],[\"2011-08-23\",7.65],[\"2011-08-24\",18.0],[\"2011-08-25\",34.95],[\"2011-08-26\",85.0],[\"2011-08-28\",5.95],[\"2011-08-30\",40.0],[\"2011-08-31\",18.0],[\"2011-09-01\",12.75],[\"2011-09-02\",10.95],[\"2011-09-04\",18.0],[\"2011-09-05\",6.35],[\"2011-09-06\",18.0],[\"2011-09-07\",10.75],[\"2011-09-08\",19.95],[\"2011-09-09\",15.0],[\"2011-09-11\",7.5],[\"2011-09-12\",9.95],[\"2011-09-13\",40.0],[\"2011-09-14\",9.95],[\"2011-09-15\",50.0],[\"2011-09-16\",18.0],[\"2011-09-18\",9.95],[\"2011-09-19\",8.5],[\"2011-09-20\",9.95],[\"2011-09-21\",12.75],[\"2011-09-22\",18.0],[\"2011-09-23\",49.95],[\"2011-09-25\",40.0],[\"2011-09-26\",12.5],[\"2011-09-27\",12.5],[\"2011-09-28\",15.0],[\"2011-09-29\",10.95],[\"2011-09-30\",50.0],[\"2011-10-02\",9.95],[\"2011-10-03\",152.78],[\"2011-10-04\",40.0],[\"2011-10-05\",39.95],[\"2011-10-06\",18.0],[\"2011-10-07\",18.0],[\"2011-10-09\",7.08],[\"2011-10-10\",12.75],[\"2011-10-11\",50.0],[\"2011-10-12\",18.0],[\"2011-10-13\",12.75],[\"2011-10-14\",12.75],[\"2011-10-17\",9.95],[\"2011-10-18\",39.95],[\"2011-10-19\",3949.32],[\"2011-10-20\",18.0],[\"2011-10-21\",20.8],[\"2011-10-23\",12.75],[\"2011-10-24\",25.0],[\"2011-10-25\",250.0],[\"2011-10-26\",25.0],[\"2011-10-27\",18.0],[\"2011-10-28\",12.5],[\"2011-10-30\",29.95],[\"2011-10-31\",18.0],[\"2011-11-01\",10.4],[\"2011-11-02\",7.65],[\"2011-11-03\",25.0],[\"2011-11-04\",18.0],[\"2011-11-06\",16.65],[\"2011-11-07\",50.0],[\"2011-11-08\",12.5],[\"2011-11-09\",24.95],[\"2011-11-10\",549.34],[\"2011-11-11\",18.0],[\"2011-11-13\",16.65],[\"2011-11-14\",12.75],[\"2011-11-15\",10.95],[\"2011-11-16\",145.0],[\"2011-11-17\",40.0],[\"2011-11-18\",39.95],[\"2011-11-20\",9.95],[\"2011-11-21\",15.0],[\"2011-11-22\",40.0],[\"2011-11-23\",40.0],[\"2011-11-24\",14.95],[\"2011-11-25\",50.0],[\"2011-11-27\",9.95],[\"2011-11-28\",15.0],[\"2011-11-29\",40.0],[\"2011-11-30\",18.0],[\"2011-12-01\",40.0],[\"2011-12-02\",40.0],[\"2011-12-04\",18.0],[\"2011-12-05\",219.5],[\"2011-12-06\",25.0],[\"2011-12-07\",18.0],[\"2011-12-08\",18.0],[\"2011-12-09\",12.75]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC","sql_parameters":"[92,\"2011-05-10\"]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines where (quantity is at most 92 or invoice_date is before '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\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}326{"category":"join/ranked","domain":"commerce","family_id":"5926ef03550325a9e7620ae5","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"3fd45e235ec0ae0c69ab8d7fbe56bc0f61e24afc6eb913956fa4f2c4330fb6f7","language":"en","license":"CC-BY-4.0","query":"Return the maximum of l.quantity for retail lines joined to their invoices where (l.unit_price is greater than 4.77), grouped by i.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[4.77],\\\"sql\\\":\\\"SELECT i.country, MAX(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ?) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[4.77],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[4.77],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[4.77],\\\"sql\\\":\\\"SELECT i.country, MAX(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Japan\",1],[\"Poland\",1],[\"Singapore\",1]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, MAX(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3","sql_parameters":"[4.77]","state":"{\"question\":\"Return the maximum of l.quantity for retail lines joined to their invoices where (l.unit_price is greater than 4.77), grouped by i.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}327{"category":"join/date/and/grouped","domain":"commerce","family_id":"c8459c37935bd6397251c943","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"71c52383422f305f29fc2179fba2d6355ecd1349b1054d7f3b12c0949a7e9542","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail lines joined to their invoices where (l.unit_price is at most 0.55 and i.invoice_date is before '2010-02-18'), grouped by i.invoice_date, ordered by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[0.55,\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) 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\":\"{\\\"parameters\\\":[0.55,\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.quantity) 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\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[0.55,\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(l.quantity) 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\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[0.55,\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) 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\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-01\",2],[\"2009-12-02\",4],[\"2009-12-03\",9],[\"2009-12-04\",5],[\"2009-12-05\",3],[\"2009-12-06\",4],[\"2009-12-07\",2],[\"2009-12-08\",2],[\"2009-12-09\",10],[\"2009-12-10\",6],[\"2009-12-11\",3],[\"2009-12-13\",2],[\"2009-12-14\",4],[\"2009-12-15\",9],[\"2009-12-16\",3],[\"2009-12-17\",4],[\"2009-12-18\",5],[\"2009-12-20\",4],[\"2009-12-21\",2],[\"2009-12-22\",2],[\"2009-12-23\",5],[\"2010-01-04\",1],[\"2010-01-08\",4],[\"2010-01-11\",4],[\"2010-01-12\",2],[\"2010-01-13\",1],[\"2010-01-14\",4],[\"2010-01-15\",1],[\"2010-01-18\",3],[\"2010-01-19\",1],[\"2010-01-20\",6],[\"2010-01-21\",1],[\"2010-01-24\",1],[\"2010-01-26\",2],[\"2010-01-27\",1],[\"2010-01-29\",2],[\"2010-01-31\",3],[\"2010-02-01\",4],[\"2010-02-04\",3],[\"2010-02-05\",3],[\"2010-02-07\",5],[\"2010-02-08\",1],[\"2010-02-09\",2],[\"2010-02-10\",2],[\"2010-02-11\",1],[\"2010-02-12\",7],[\"2010-02-14\",1],[\"2010-02-15\",2],[\"2010-02-17\",7]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.invoice_date, COUNT(*) 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","sql_parameters":"[0.55,\"2010-02-18\"]","state":"{\"question\":\"Return the number of rows for retail lines joined to their invoices where (l.unit_price is at most 0.55 and i.invoice_date is before '2010-02-18'), grouped by i.invoice_date, ordered by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}328{"category":"single_table/aggregate","domain":"sensor","family_id":"dbb54f71ecaf70c329b2a4ef","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"8d85da2c7b50cb90c5e334fbd7e5842489e0c9ddf0c2d84b31b8df9af1b767a6","language":"en","license":"CC-BY-4.0","query":"Return the maximum of ps2_mean for hydraulic cycles where (ps2_mean is at most 105.7255).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[105.7255],\\\"sql\\\":\\\"SELECT MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[105.7255],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[105.7255],\\\"sql\\\":\\\"SELECT SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[105.7255],\\\"sql\\\":\\\"SELECT AVG(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[105.7255]]","source":"hydraulic","split":"dev","sql":"SELECT MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ?)","sql_parameters":"[105.7255]","state":"{\"question\":\"Return the maximum of ps2_mean for hydraulic cycles where (ps2_mean is at most 105.7255).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}329{"category":"single_table/date/or/ranked","domain":"commerce","family_id":"373dde6589162641acfa304f","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"63a7446372c430fdddbaabc0aaac63b6ffd520a04d8f58f822034390bb45e69e","language":"en","license":"CC-BY-4.0","query":"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 country; return at most 3 groups ordered by aggregate value ASC, breaking ties by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[1800,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (quantity > ? AND invoice_date >= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[1800,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (quantity > ? OR invoice_date >= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[1800,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (quantity > ? OR invoice_date >= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[1800,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (quantity > ? OR invoice_date >= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Singapore\",1.0],[\"Portugal\",2.5],[\"Italy\",3.6666666666666665]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (quantity > ? OR invoice_date >= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3","sql_parameters":"[1800,\"2010-12-02\"]","state":"{\"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 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\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}330{"category":"single_table/and/aggregate","domain":"sensor","family_id":"3a7ce923537925be32bdbea8","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"c20040232bf4e26dadf71eb3780e69a7b884400df9bb59b9399d90fa3a8fb9b6","language":"en","license":"CC-BY-4.0","query":"Return the sum of eps1_mean for hydraulic cycles where (valve equals 100 and vs1_mean is greater than 0.56377).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[100,0.56377],\\\"sql\\\":\\\"SELECT SUM(eps1_mean) AS value FROM hydraulic_cycles WHERE (valve = ? OR vs1_mean > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[100,0.56377],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (valve = ? AND vs1_mean > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[100,0.56377],\\\"sql\\\":\\\"SELECT AVG(eps1_mean) AS value FROM hydraulic_cycles WHERE (valve = ? AND vs1_mean > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[100,0.56377],\\\"sql\\\":\\\"SELECT SUM(eps1_mean) AS value FROM hydraulic_cycles WHERE (valve = ? AND vs1_mean > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1941249.08796]]","source":"hydraulic","split":"dev","sql":"SELECT SUM(eps1_mean) AS value FROM hydraulic_cycles WHERE (valve = ? AND vs1_mean > ?)","sql_parameters":"[100,0.56377]","state":"{\"question\":\"Return the sum of eps1_mean for hydraulic cycles where (valve equals 100 and vs1_mean is greater than 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_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}331{"category":"single_table/having","domain":"sensor","family_id":"4da1ae5975daec3c882cb47d","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"7d9fcee01bf70f81793fd90a56a8778521b78e536138347030c3e7126014d307","language":"en","license":"CC-BY-4.0","query":"Return the maximum of eps1_mean for hydraulic cycles where (vs1_mean is greater than 0.56377), grouped by pump_leakage, keeping only groups with at least 10 matching rows; return at most 3 groups ordered by aggregate value ASC, breaking ties by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[0.56377,10],\\\"sql\\\":\\\"SELECT pump_leakage, MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (vs1_mean > ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[0.56377,10],\\\"sql\\\":\\\"SELECT pump_leakage, MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (vs1_mean > ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[0.56377,10],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (vs1_mean > ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[0.56377,10],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(eps1_mean) AS value FROM hydraulic_cycles WHERE (vs1_mean > ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,2716.9452],[1,2722.5409],[2,2740.641]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (vs1_mean > ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value ASC, pump_leakage ASC LIMIT 3","sql_parameters":"[0.56377,10]","state":"{\"question\":\"Return the maximum of eps1_mean for hydraulic cycles where (vs1_mean is greater than 0.56377), grouped by pump_leakage, keeping only groups with at least 10 matching rows; 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\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}332{"category":"single_table/or/grouped","domain":"sensor","family_id":"2c6bf081d9472bf191854e50","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"4533c26050e400a34730c5fdabf5c5e262d1831d4851b6aee935ee861798fcf3","language":"en","license":"CC-BY-4.0","query":"Return the average of ps1_mean for hydraulic cycles where (fs1_mean is at most 6.63763 or ts1_mean is greater than 35.56605), grouped by cooler, ordered by cooler ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[6.63763,35.56605],\\\"sql\\\":\\\"SELECT cooler, AVG(ps1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? OR ts1_mean > ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[6.63763,35.56605],\\\"sql\\\":\\\"SELECT cooler, AVG(ps1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? AND ts1_mean > ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[6.63763,35.56605],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? OR ts1_mean > ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[6.63763,35.56605],\\\"sql\\\":\\\"SELECT cooler, SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? OR ts1_mean > ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[3,162.15242837431694],[20,158.47893025956284],[100,160.71674064638782]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, AVG(ps1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? OR ts1_mean > ?) GROUP BY cooler ORDER BY cooler ASC","sql_parameters":"[6.63763,35.56605]","state":"{\"question\":\"Return the average of ps1_mean for hydraulic cycles where (fs1_mean is at most 6.63763 or ts1_mean is greater than 35.56605), grouped by cooler, ordered by cooler ascending.\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}333{"category":"single_table/having","domain":"commerce","family_id":"62e4cd07951e5e64396d6806","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"81d5edc5ff8cb1c0ff9bf2236c167655d71404dd77d7c9c10e5d05de943b920a","language":"en","license":"CC-BY-4.0","query":"Return the sum of product_duration for shopping sessions where (region equals 6), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[6,10],\\\"sql\\\":\\\"SELECT revenue, SUM(product_duration) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[6,10],\\\"sql\\\":\\\"SELECT revenue, SUM(product_duration) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[6,10],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[6,10],\\\"sql\\\":\\\"SELECT revenue, AVG(product_duration) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1,145532.96618816],[0,687832.81856626]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, SUM(product_duration) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3","sql_parameters":"[6,10]","state":"{\"question\":\"Return the sum of product_duration for shopping sessions where (region equals 6), 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\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}334{"category":"join/date/or/aggregate","domain":"commerce","family_id":"cbc2c9c4740cb941b7dac0b0","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"5187ecea31d5edf0f8fc49f837500ea9c2d1ef9617d94080e4cace38f862ffbe","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.quantity for retail lines joined to their invoices where (i.customer_id equals '12348' or i.invoice_date is on or after '2011-05-10').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12348\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? AND i.invoice_date >= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12348\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR i.invoice_date >= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12348\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR i.invoice_date >= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12348\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR i.invoice_date >= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[349552]]","source":"online_retail_ii","split":"dev","sql":"SELECT SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR i.invoice_date >= ?)","sql_parameters":"[\"12348\",\"2011-05-10\"]","state":"{\"question\":\"Return the sum of l.quantity for retail lines joined to their invoices where (i.customer_id equals '12348' or i.invoice_date is on or after '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_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}335{"category":"single_table/and/aggregate","domain":"commerce","family_id":"5b59445dfde61c2b36df8853","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"8b8c84aa9fc355c1a3176e0fe88937f7bc633950264e7d6d42fb6abff0c04d98","language":"en","license":"CC-BY-4.0","query":"Return the maximum of product_related for shopping sessions where (month equals 'Feb' and product_duration is greater than 472.4166667).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Feb\\\",472.4166667],\\\"sql\\\":\\\"SELECT MAX(product_related) AS value FROM shopping_sessions WHERE (month = ? OR product_duration > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Feb\\\",472.4166667],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (month = ? AND product_duration > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Feb\\\",472.4166667],\\\"sql\\\":\\\"SELECT MAX(product_related) AS value FROM shopping_sessions WHERE (month = ? AND product_duration > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Feb\\\",472.4166667],\\\"sql\\\":\\\"SELECT SUM(product_related) AS value FROM shopping_sessions WHERE (month = ? AND product_duration > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[128]]","source":"online_shoppers","split":"dev","sql":"SELECT MAX(product_related) AS value FROM shopping_sessions WHERE (month = ? AND product_duration > ?)","sql_parameters":"[\"Feb\",472.4166667]","state":"{\"question\":\"Return the maximum of product_related for shopping sessions where (month equals 'Feb' and product_duration is greater than 472.4166667).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}336{"category":"single_table/grouped","domain":"sensor","family_id":"5bea0a13066c2321cb24cd4a","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"72b5a7db85f33ac25c063701095faa2e27c2d8b8dbe930f948f692eca4f2bd98","language":"en","license":"CC-BY-4.0","query":"Return the minimum of vs1_mean for hydraulic cycles where (cooler equals 100), grouped by cooler, ordered by cooler ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[100],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (cooler = ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[100],\\\"sql\\\":\\\"SELECT cooler, SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[100],\\\"sql\\\":\\\"SELECT cooler, AVG(vs1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[100],\\\"sql\\\":\\\"SELECT cooler, MIN(vs1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[100,0.52437]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, MIN(vs1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ?) GROUP BY cooler ORDER BY cooler ASC","sql_parameters":"[100]","state":"{\"question\":\"Return the minimum of vs1_mean for hydraulic cycles where (cooler equals 100), grouped by cooler, ordered by cooler ascending.\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}337{"category":"single_table/date/and/grouped","domain":"commerce","family_id":"27cb87399ff7b7d31ef1c5b6","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"f15281a6d4550a1d03a0413ecb635716093f8f1b47042924b94e9c4084319b5a","language":"en","license":"CC-BY-4.0","query":"Return the minimum of quantity for retail invoice lines where (country equals 'Cyprus' and invoice_date is on or after '2011-09-29'), grouped by invoice_date, ordered by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (country = ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Cyprus\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (country = ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC","sql_parameters":"[\"Cyprus\",\"2011-09-29\"]","state":"{\"question\":\"Return the minimum of quantity for retail invoice lines where (country equals 'Cyprus' and invoice_date is on or after '2011-09-29'), 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\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}338{"category":"single_table/and/ranked","domain":"sensor","family_id":"27e6d41ead918afb6fcfd945","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"53e6c3f8db6ed26b5e150518ef216b1e013f4c6ae8f4012d40b23fbbfc8b9d6c","language":"en","license":"CC-BY-4.0","query":"Return the minimum of fs1_mean for hydraulic cycles where (pump_leakage equals 1 and vs1_mean is greater than 0.71948), grouped by valve; return at most 5 groups ordered by aggregate value DESC, breaking ties by valve ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[1,0.71948],\\\"sql\\\":\\\"SELECT valve, MIN(fs1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? AND vs1_mean > ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[1,0.71948],\\\"sql\\\":\\\"SELECT valve, MIN(fs1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? OR vs1_mean > ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[1,0.71948],\\\"sql\\\":\\\"SELECT valve, MIN(fs1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? AND vs1_mean > ?) GROUP BY valve ORDER BY value ASC, valve ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[1,0.71948],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? AND vs1_mean > ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[100,3.29517],[90,2.08678],[73,2.08135],[80,2.07884]]","source":"hydraulic","split":"dev","sql":"SELECT valve, MIN(fs1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? AND vs1_mean > ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 5","sql_parameters":"[1,0.71948]","state":"{\"question\":\"Return the minimum of fs1_mean for hydraulic cycles where (pump_leakage equals 1 and vs1_mean is greater than 0.71948), grouped by valve; return at most 5 groups ordered by aggregate value DESC, breaking ties by valve ascending.\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}339{"category":"single_table/or/having","domain":"commerce","family_id":"9b28fb03a20a72207130c39b","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"044352223ac2be33eede95d8819a29d9f50154bf66198be7e5127f6ff5e90255","language":"en","license":"CC-BY-4.0","query":"Return the maximum of quantity for retail invoice lines where (quantity is at most 229 or unit_price is greater than 4.77), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[229,4.77,10],\\\"sql\\\":\\\"SELECT invoice_date, MAX(quantity) AS value FROM retail_lines WHERE (quantity <= ? AND unit_price > ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[229,4.77],\\\"sql\\\":\\\"SELECT invoice_date, MAX(quantity) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[229,4.77,10],\\\"sql\\\":\\\"SELECT invoice_date, MAX(quantity) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[229,4.77,10],\\\"sql\\\":\\\"SELECT invoice_date, MAX(quantity) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-12-19\",6],[\"2011-06-12\",10],[\"2010-08-01\",12]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MAX(quantity) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3","sql_parameters":"[229,4.77,10]","state":"{\"question\":\"Return the maximum of quantity for retail invoice lines where (quantity is at most 229 or unit_price is greater than 4.77), 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\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}340{"category":"single_table/aggregate","domain":"commerce","family_id":"9e00ce09a7e6ed8778957396","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"240dee4d3a79a85388d8322a1c67a71a643022088337a882a468deed1d5f84df","language":"en","license":"CC-BY-4.0","query":"Return the average of product_duration for shopping sessions where (month equals 'Dec').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Dec\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (month = ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Dec\\\"],\\\"sql\\\":\\\"SELECT AVG(product_duration) AS value FROM shopping_sessions WHERE (month = ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Dec\\\"],\\\"sql\\\":\\\"SELECT SUM(product_duration) AS value FROM shopping_sessions WHERE (month = ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Dec\\\"],\\\"sql\\\":\\\"SELECT MIN(product_duration) AS value FROM shopping_sessions WHERE (month = ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1111.470727005501]]","source":"online_shoppers","split":"dev","sql":"SELECT AVG(product_duration) AS value FROM shopping_sessions WHERE (month = ?)","sql_parameters":"[\"Dec\"]","state":"{\"question\":\"Return the average of product_duration for shopping sessions where (month equals 'Dec').\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}341{"category":"join/or/ranked","domain":"commerce","family_id":"1da7c40db61094c86d9b497d","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"4c90a521c71727bd174a25a3cdd56a44285444cf2fe066ce23ef149da13e55e2","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail lines joined to their invoices where (i.country equals 'Finland' or i.customer_id equals '12352'), grouped by i.invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Finland\\\",\\\"12352\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND i.customer_id = ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Finland\\\",\\\"12352\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR i.customer_id = ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Finland\\\",\\\"12352\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR i.customer_id = ?) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Finland\\\",\\\"12352\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR i.customer_id = ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-10-04\",2],[\"2011-11-23\",2],[\"2011-09-25\",3]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.invoice_date, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR i.customer_id = ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3","sql_parameters":"[\"Finland\",\"12352\"]","state":"{\"question\":\"Return the number of rows for retail lines joined to their invoices where (i.country equals 'Finland' or i.customer_id equals '12352'), grouped by i.invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}342{"category":"join/and/having","domain":"commerce","family_id":"5dd78d1596ff321b7a34eeae","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"57e0a3af3e2c3289522836e5bd8977b58cd0d70e34a8b66ab91179fa5b8ff6ba","language":"en","license":"CC-BY-4.0","query":"Return the average of l.unit_price for retail lines joined to their invoices where (i.customer_id equals '12352' and l.unit_price is greater than 0.55), grouped by i.invoice_date, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12352\\\",0.55,2],\\\"sql\\\":\\\"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.customer_id = ? OR l.unit_price > ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12352\\\",0.55,2],\\\"sql\\\":\\\"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.customer_id = ? AND l.unit_price > ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12352\\\",0.55,2],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? AND l.unit_price > ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12352\\\",0.55,2],\\\"sql\\\":\\\"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.customer_id = ? AND l.unit_price > ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-03-01\",112.66875],[\"2010-11-12\",2.075]]","source":"online_retail_ii","split":"dev","sql":"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.customer_id = ? AND l.unit_price > ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5","sql_parameters":"[\"12352\",0.55,2]","state":"{\"question\":\"Return the average of l.unit_price for retail lines joined to their invoices where (i.customer_id equals '12352' and l.unit_price is greater than 0.55), grouped by i.invoice_date, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}343{"category":"single_table/date/or/ranked","domain":"commerce","family_id":"7c62f85d3879e771635e3dc2","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"1954f439d8eb27dbe1b89a282b316c80022e48797d8df99ca3b99df72c719ad5","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail invoice lines where (country equals 'Austria' or invoice_date is before '2011-09-29'), grouped by invoice_date; return at most 5 groups ordered by aggregate value DESC, breaking ties by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Austria\\\",\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Austria\\\",\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? OR invoice_date < ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Austria\\\",\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? OR invoice_date < ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Austria\\\",\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (country = ? OR invoice_date < ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-12-01\",248],[\"2010-12-02\",226],[\"2010-12-09\",194],[\"2010-12-08\",178],[\"2010-12-07\",144]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? OR invoice_date < ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5","sql_parameters":"[\"Austria\",\"2011-09-29\"]","state":"{\"question\":\"Return the number of rows for retail invoice lines where (country equals 'Austria' or invoice_date is before '2011-09-29'), 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\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}344{"category":"single_table/having","domain":"sensor","family_id":"779cd6658b0da65c6b34e892","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"931ab737468134cff089579e876dd2a0145f3816f1d3cec6af3534ef6536fb4f","language":"en","license":"CC-BY-4.0","query":"Return the minimum of vs1_mean for hydraulic cycles where (ts1_mean is greater than 35.56605), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[35.56605,2],\\\"sql\\\":\\\"SELECT cooler, MIN(vs1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value ASC, cooler ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[35.56605,2],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (ts1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[35.56605,2],\\\"sql\\\":\\\"SELECT cooler, SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[35.56605,2],\\\"sql\\\":\\\"SELECT cooler, MIN(vs1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[20,0.57873],[3,0.56585],[100,0.52437]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, MIN(vs1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5","sql_parameters":"[35.56605,2]","state":"{\"question\":\"Return the minimum of vs1_mean for hydraulic cycles where (ts1_mean is greater than 35.56605), 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_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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}345{"category":"single_table/date/and/grouped","domain":"commerce","family_id":"41792b28bcb0cb79210acdc6","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"cc999861153204aca0ff8a585d68c5a0572e5a6ef33945664d557ea2dc6aa683","language":"en","license":"CC-BY-4.0","query":"Return the sum of unit_price for retail invoice lines where (country equals 'Channel Islands' and invoice_date is on or after '2010-07-14'), grouped by country, ordered by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\",\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date >= ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\",\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\",\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\",\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY country ORDER BY country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Channel Islands\",58.47]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY country ORDER BY country ASC","sql_parameters":"[\"Channel Islands\",\"2010-07-14\"]","state":"{\"question\":\"Return the sum of unit_price for retail invoice lines where (country equals 'Channel Islands' and invoice_date is on or after '2010-07-14'), 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\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}346{"category":"single_table/and/having","domain":"commerce","family_id":"e75fafcc9caa10ebb887a48f","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"77d93c0a87d947177cc5acf1b5385844eba79d61da4060f9df9585f39933e717","language":"en","license":"CC-BY-4.0","query":"Return the average of unit_price for retail invoice lines where (country equals 'Austria' and quantity is greater than 92), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Austria\\\",92,2],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? OR quantity > ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Austria\\\",92,2],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? AND quantity > ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Austria\\\",2],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (country = ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","sql":"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? AND quantity > ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5","sql_parameters":"[\"Austria\",92,2]","state":"{\"question\":\"Return the average of unit_price for retail invoice lines where (country equals 'Austria' and quantity is greater than 92), 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_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}347{"category":"single_table/and/aggregate","domain":"commerce","family_id":"98e596ab68d9ba226a72aab3","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"2822a264a9765833985d9a91f8d01070b302737a144177172913af8add65372e","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (quantity is greater than 25 and unit_price is at most 49.95).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[25,49.95],\\\"sql\\\":\\\"SELECT MAX(unit_price) AS value FROM retail_lines WHERE (quantity > ? AND unit_price <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[25,49.95],\\\"sql\\\":\\\"SELECT MAX(unit_price) AS value FROM retail_lines WHERE (quantity > ? OR unit_price <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[25,49.95],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (quantity > ? AND unit_price <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[25,49.95],\\\"sql\\\":\\\"SELECT SUM(unit_price) AS value FROM retail_lines WHERE (quantity > ? AND unit_price <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[32.69]]","source":"online_retail_ii","split":"dev","sql":"SELECT MAX(unit_price) AS value FROM retail_lines WHERE (quantity > ? AND unit_price <= ?)","sql_parameters":"[25,49.95]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines where (quantity is greater than 25 and unit_price is at most 49.95).\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}348{"category":"single_table/or/aggregate","domain":"commerce","family_id":"892e076daa482f5b67388f05","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"b342e2b1c1e17842284c08e88068a57ba4b0725c99afcfce78a447a3c2565ed2","language":"en","license":"CC-BY-4.0","query":"Return the average of quantity for retail invoice lines where (quantity is greater than 1800 or unit_price is greater than 49.95).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[1800,49.95],\\\"sql\\\":\\\"SELECT AVG(quantity) AS value FROM retail_lines WHERE (quantity > ? AND unit_price > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[1800,49.95],\\\"sql\\\":\\\"SELECT AVG(quantity) AS value FROM retail_lines WHERE (quantity > ? OR unit_price > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[1800,49.95],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (quantity > ? OR unit_price > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[1800,49.95],\\\"sql\\\":\\\"SELECT SUM(quantity) AS value FROM retail_lines WHERE (quantity > ? OR unit_price > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1142.5746268656717]]","source":"online_retail_ii","split":"dev","sql":"SELECT AVG(quantity) AS value FROM retail_lines WHERE (quantity > ? OR unit_price > ?)","sql_parameters":"[1800,49.95]","state":"{\"question\":\"Return the average of quantity for retail invoice lines where (quantity is greater than 1800 or unit_price is greater than 49.95).\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}349{"category":"single_table/and/aggregate","domain":"commerce","family_id":"c183ad0636c05652cec17b2f","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"50aec622561bfa2bf1366290ef5919b8a70511d18f08270f2a675fe9c7553784","language":"en","license":"CC-BY-4.0","query":"Return the maximum of product_related for shopping sessions where (region equals 5 and product_related is greater than 226).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[5,226],\\\"sql\\\":\\\"SELECT MAX(product_related) AS value FROM shopping_sessions WHERE (region = ? OR product_related > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[5,226],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (region = ? AND product_related > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[5,226],\\\"sql\\\":\\\"SELECT MAX(product_related) AS value FROM shopping_sessions WHERE (region = ? AND product_related > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT MAX(product_related) AS value FROM shopping_sessions\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[358]]","source":"online_shoppers","split":"dev","sql":"SELECT MAX(product_related) AS value FROM shopping_sessions WHERE (region = ? AND product_related > ?)","sql_parameters":"[5,226]","state":"{\"question\":\"Return the maximum of product_related for shopping sessions where (region equals 5 and 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\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}350{"category":"join/date/and/grouped","domain":"commerce","family_id":"df82df06480b132df30acdff","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"33de6e7a264708bfd55a061c1b87dee631907fa92a56fbe017812cca5e4bdb01","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.unit_price for retail lines joined to their invoices where (l.unit_price is greater than 0.55 and i.invoice_date is on or after '2011-09-29'), grouped by i.country, ordered by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[0.55,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT i.country, SUM(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 i.country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[0.55,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) 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\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[0.55,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT i.country, SUM(l.unit_price) 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\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[0.55,\\\"2011-09-29\\\"],\\\"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.unit_price > ? AND i.invoice_date >= ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",22.310000000000002],[\"Belgium\",106.8],[\"Channel Islands\",41.41],[\"Denmark\",63.09],[\"EIRE\",437.63],[\"Finland\",429.4],[\"France\",318.83],[\"Germany\",1744.81],[\"Israel\",9.2],[\"Netherlands\",194.87],[\"Norway\",17.4],[\"Portugal\",83.6],[\"Singapore\",6068.0599999999995],[\"Spain\",44.65],[\"Sweden\",52.24],[\"Switzerland\",11.25],[\"United Kingdom\",11554.66]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, SUM(l.unit_price) 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","sql_parameters":"[0.55,\"2011-09-29\"]","state":"{\"question\":\"Return the sum of l.unit_price for retail lines joined to their invoices where (l.unit_price is greater than 0.55 and i.invoice_date is on or after '2011-09-29'), grouped by i.country, ordered by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}351{"category":"join/ranked","domain":"commerce","family_id":"e61433703d200d6b6928cd16","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"0fdd3ce9ad647c2dae8b2ddcb1d16990cdfae2ca532c35073dd445652a1a2577","language":"en","license":"CC-BY-4.0","query":"Return the minimum of l.unit_price for retail lines joined to their invoices where (i.country equals 'Channel Islands'), grouped by i.invoice_date; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\"],\\\"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.country = ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\"],\\\"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.country = ?) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-11-06\",2.08],[\"2011-08-21\",1.79],[\"2010-06-24\",1.65],[\"2010-08-20\",1.65],[\"2010-10-18\",1.65]]","source":"online_retail_ii","split":"dev","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.country = ?) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5","sql_parameters":"[\"Channel Islands\"]","state":"{\"question\":\"Return the minimum of l.unit_price for retail lines joined to their invoices where (i.country equals 'Channel Islands'), 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_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}352{"category":"join/date/and/grouped","domain":"commerce","family_id":"c8459c37935bd6397251c943","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"80a02b21577787d1d4b0e148f5ac5f9a552f804532ef2415024f8ce51a9c8b22","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail lines joined to their invoices where (l.unit_price is at most 0.55 and i.invoice_date is before '2010-07-14'), grouped by i.invoice_date, ordered by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[0.55,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) 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\":\"{\\\"parameters\\\":[0.55,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) 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\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[0.55,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.quantity) 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\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[0.55,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(l.quantity) 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\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-01\",2],[\"2009-12-02\",4],[\"2009-12-03\",9],[\"2009-12-04\",5],[\"2009-12-05\",3],[\"2009-12-06\",4],[\"2009-12-07\",2],[\"2009-12-08\",2],[\"2009-12-09\",10],[\"2009-12-10\",6],[\"2009-12-11\",3],[\"2009-12-13\",2],[\"2009-12-14\",4],[\"2009-12-15\",9],[\"2009-12-16\",3],[\"2009-12-17\",4],[\"2009-12-18\",5],[\"2009-12-20\",4],[\"2009-12-21\",2],[\"2009-12-22\",2],[\"2009-12-23\",5],[\"2010-01-04\",1],[\"2010-01-08\",4],[\"2010-01-11\",4],[\"2010-01-12\",2],[\"2010-01-13\",1],[\"2010-01-14\",4],[\"2010-01-15\",1],[\"2010-01-18\",3],[\"2010-01-19\",1],[\"2010-01-20\",6],[\"2010-01-21\",1],[\"2010-01-24\",1],[\"2010-01-26\",2],[\"2010-01-27\",1],[\"2010-01-29\",2],[\"2010-01-31\",3],[\"2010-02-01\",4],[\"2010-02-04\",3],[\"2010-02-05\",3],[\"2010-02-07\",5],[\"2010-02-08\",1],[\"2010-02-09\",2],[\"2010-02-10\",2],[\"2010-02-11\",1],[\"2010-02-12\",7],[\"2010-02-14\",1],[\"2010-02-15\",2],[\"2010-02-17\",7],[\"2010-02-18\",3],[\"2010-02-19\",2],[\"2010-02-21\",3],[\"2010-02-22\",1],[\"2010-02-24\",1],[\"2010-02-25\",5],[\"2010-02-26\",1],[\"2010-02-28\",2],[\"2010-03-01\",9],[\"2010-03-02\",2],[\"2010-03-03\",4],[\"2010-03-05\",14],[\"2010-03-08\",8],[\"2010-03-09\",2],[\"2010-03-10\",5],[\"2010-03-11\",5],[\"2010-03-12\",12],[\"2010-03-15\",6],[\"2010-03-17\",10],[\"2010-03-18\",9],[\"2010-03-19\",3],[\"2010-03-21\",2],[\"2010-03-23\",11],[\"2010-03-25\",2],[\"2010-03-26\",1],[\"2010-03-28\",1],[\"2010-03-29\",2],[\"2010-03-31\",1],[\"2010-04-01\",5],[\"2010-04-06\",7],[\"2010-04-07\",1],[\"2010-04-08\",5],[\"2010-04-11\",3],[\"2010-04-12\",2],[\"2010-04-13\",3],[\"2010-04-14\",3],[\"2010-04-15\",1],[\"2010-04-16\",5],[\"2010-04-18\",1],[\"2010-04-19\",1],[\"2010-04-21\",1],[\"2010-04-22\",5],[\"2010-04-23\",4],[\"2010-04-26\",6],[\"2010-04-27\",1],[\"2010-04-28\",2],[\"2010-04-29\",4],[\"2010-05-02\",2],[\"2010-05-05\",5],[\"2010-05-06\",5],[\"2010-05-07\",4],[\"2010-05-09\",1],[\"2010-05-10\",3],[\"2010-05-11\",1],[\"2010-05-12\",12],[\"2010-05-13\",5],[\"2010-05-14\",6],[\"2010-05-16\",5],[\"2010-05-18\",5],[\"2010-05-19\",3],[\"2010-05-20\",1],[\"2010-05-23\",5],[\"2010-05-24\",5],[\"2010-05-25\",6],[\"2010-05-26\",2],[\"2010-05-27\",6],[\"2010-05-28\",6],[\"2010-05-30\",1],[\"2010-06-01\",1],[\"2010-06-03\",8],[\"2010-06-04\",1],[\"2010-06-06\",2],[\"2010-06-07\",5],[\"2010-06-09\",1],[\"2010-06-10\",1],[\"2010-06-11\",4],[\"2010-06-13\",9],[\"2010-06-14\",3],[\"2010-06-15\",3],[\"2010-06-16\",8],[\"2010-06-17\",1],[\"2010-06-18\",4],[\"2010-06-22\",3],[\"2010-06-23\",7],[\"2010-06-24\",2],[\"2010-06-25\",2],[\"2010-06-27\",4],[\"2010-06-28\",3],[\"2010-06-29\",3],[\"2010-06-30\",8],[\"2010-07-02\",1],[\"2010-07-04\",1],[\"2010-07-05\",6],[\"2010-07-06\",10],[\"2010-07-07\",1],[\"2010-07-08\",3],[\"2010-07-12\",3],[\"2010-07-13\",1]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.invoice_date, COUNT(*) 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","sql_parameters":"[0.55,\"2010-07-14\"]","state":"{\"question\":\"Return the number of rows for retail lines joined to their invoices where (l.unit_price is at most 0.55 and i.invoice_date is before '2010-07-14'), grouped by i.invoice_date, ordered by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}353{"category":"join/null/or/having","domain":"commerce","family_id":"dad5f56e2f5f1ff4dc5a6965","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"630ae9764acb253f8d69404b1d7c859b9d97eb79d9d724b68226f17ebe560107","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.unit_price for retail lines joined to their invoices where (l.quantity is at most 25 or i.customer_id is present), grouped by i.country, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[25,2],\\\"sql\\\":\\\"SELECT i.country, SUM(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? AND i.customer_id IS NOT NULL) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[25,2],\\\"sql\\\":\\\"SELECT i.country, SUM(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? OR i.customer_id IS NOT NULL) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[25,2],\\\"sql\\\":\\\"SELECT i.country, SUM(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? OR i.customer_id IS NOT NULL) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[25,2],\\\"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 NOT NULL) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"United Kingdom\",99455.23],[\"Singapore\",10105.83],[\"EIRE\",4591.14],[\"Germany\",4113.2300000000005],[\"France\",1186.13]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, SUM(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? OR i.customer_id IS NOT NULL) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5","sql_parameters":"[25,2]","state":"{\"question\":\"Return the sum of l.unit_price for retail lines joined to their invoices where (l.quantity is at most 25 or i.customer_id is present), grouped by i.country, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}354{"category":"single_table/and/ranked","domain":"commerce","family_id":"7df2ae5cef36a76cbb74aa12","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"85c1443cecac4fb46579c1451344730e60e79609db9a020b1640238e115c3722","language":"en","license":"CC-BY-4.0","query":"Return the average of product_duration for shopping sessions where (region equals 2 and traffic_type equals 18), grouped by revenue; return at most 5 groups ordered by aggregate value DESC, breaking ties by revenue ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2,18],\\\"sql\\\":\\\"SELECT revenue, AVG(product_duration) AS value FROM shopping_sessions WHERE (region = ? AND traffic_type = ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2,18],\\\"sql\\\":\\\"SELECT revenue, AVG(product_duration) AS value FROM shopping_sessions WHERE (region = ? OR traffic_type = ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2,18],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (region = ? AND traffic_type = ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT revenue, AVG(product_duration) AS value FROM shopping_sessions GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,1098.0]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, AVG(product_duration) AS value FROM shopping_sessions WHERE (region = ? AND traffic_type = ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5","sql_parameters":"[2,18]","state":"{\"question\":\"Return the average of product_duration for shopping sessions where (region equals 2 and traffic_type equals 18), 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_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}355{"category":"join/null/ranked","domain":"commerce","family_id":"ff4277a273d60914ee55be86","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"1eb9192cb691e304e06ef62d550e9bf9b59c8a5212893b7ba854c6116c838141","language":"en","license":"CC-BY-4.0","query":"Return the average of l.unit_price for retail lines joined to their invoices where (i.customer_id is present), grouped by i.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT i.country, AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id IS NOT NULL) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT i.country, AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id IS NOT NULL) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id IS NOT NULL) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[],\\\"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.customer_id IS NOT NULL) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Canada\",0.998],[\"Japan\",1.9694736842105265],[\"USA\",2.55]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id IS NOT NULL) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3","sql_parameters":"[]","state":"{\"question\":\"Return the average of l.unit_price for retail lines joined to their invoices where (i.customer_id is present), grouped by i.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}356{"category":"single_table/or/having","domain":"sensor","family_id":"f8d74d956f2af2fd90a81c80","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"22c3b99b650546c4e108846b10a478288ed40f279005fa63d3e46e4d9fce4b0d","language":"en","license":"CC-BY-4.0","query":"Return the sum of vs1_mean for hydraulic cycles where (ps1_mean is at most 158.27043 or eps1_mean is at most 2480.92663), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[158.27043,2480.92663,10],\\\"sql\\\":\\\"SELECT valve, SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? AND eps1_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[158.27043,2480.92663,10],\\\"sql\\\":\\\"SELECT valve, SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR eps1_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[158.27043,2480.92663,10],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR eps1_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[158.27043,2480.92663,10],\\\"sql\\\":\\\"SELECT valve, SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR eps1_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[73,96.74352],[90,102.28211],[80,103.94894]]","source":"hydraulic","split":"dev","sql":"SELECT valve, SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR eps1_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 3","sql_parameters":"[158.27043,2480.92663,10]","state":"{\"question\":\"Return the sum of vs1_mean for hydraulic cycles where (ps1_mean is at most 158.27043 or eps1_mean is at most 2480.92663), 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\",\"cooler\":\"INTEGER\",\"cycle_id\":\"INTEGER\",\"eps1_mean\":\"REAL\",\"fs1_mean\":\"REAL\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}357{"category":"single_table/date/having","domain":"commerce","family_id":"b76645b3ae7dfabb48d93d1e","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"6b91f4958cfb6338fcd2b3965df28057b0cd6a836b8388787c3d03cb87da1b5b","language":"en","license":"CC-BY-4.0","query":"Return the sum of quantity for retail invoice lines where (invoice_date is on or after '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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2011-09-29\\\",10],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2011-09-29\\\",10],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2011-09-29\\\",10],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"France\",707],[\"Denmark\",733],[\"Netherlands\",947]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3","sql_parameters":"[\"2011-09-29\",10]","state":"{\"question\":\"Return the sum of quantity for retail invoice lines where (invoice_date is on or after '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.\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}358{"category":"single_table/and/ranked","domain":"sensor","family_id":"86a8ac503d11d56192e0f38a","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"c489222578d23ed4106701099147d43fa803e44f4dc6bed9bf55109690e65fa4","language":"en","license":"CC-BY-4.0","query":"Return the maximum of ps1_mean for hydraulic cycles where (eps1_mean is greater than 2598.8769 and fs1_mean is at most 6.63763), grouped by valve; return at most 5 groups ordered by aggregate value DESC, breaking ties by valve ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2598.8769,6.63763],\\\"sql\\\":\\\"SELECT valve, MAX(ps1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ? AND fs1_mean <= ?) GROUP BY valve ORDER BY value ASC, valve ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2598.8769,6.63763],\\\"sql\\\":\\\"SELECT valve, MAX(ps1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ? AND fs1_mean <= ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2598.8769,6.63763],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (eps1_mean > ? AND fs1_mean <= ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2598.8769,6.63763],\\\"sql\\\":\\\"SELECT valve, SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ? AND fs1_mean <= ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[100,180.92271],[73,180.70461],[80,180.62794],[90,180.54151]]","source":"hydraulic","split":"dev","sql":"SELECT valve, MAX(ps1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ? AND fs1_mean <= ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 5","sql_parameters":"[2598.8769,6.63763]","state":"{\"question\":\"Return the maximum of ps1_mean for hydraulic cycles where (eps1_mean is greater than 2598.8769 and fs1_mean is at most 6.63763), grouped by valve; return at most 5 groups ordered by aggregate value DESC, breaking ties by valve ascending.\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}359{"category":"single_table/grouped","domain":"commerce","family_id":"97266738089e8bb511d813f5","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"cac228780e7491869e690cda918750229f938234999b3d35d33a2d5b23617186","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for shopping sessions where (revenue equals 0), grouped by revenue, ordered by revenue ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[0],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (revenue = ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[0],\\\"sql\\\":\\\"SELECT revenue, SUM(administrative) AS value FROM shopping_sessions WHERE (revenue = ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[0],\\\"sql\\\":\\\"SELECT revenue, AVG(administrative) AS value FROM shopping_sessions WHERE (revenue = ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[0],\\\"sql\\\":\\\"SELECT revenue, MIN(administrative) AS value FROM shopping_sessions WHERE (revenue = ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,10422]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (revenue = ?) GROUP BY revenue ORDER BY revenue ASC","sql_parameters":"[0]","state":"{\"question\":\"Return the number of rows for shopping sessions where (revenue equals 0), grouped by revenue, ordered by revenue ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}360{"category":"join/distinct_invoice/date/and/having","domain":"commerce","family_id":"02260edb4192ef30aed6e214","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"184bc5c2f3cf824ff684a33e5067b28ad5fd39feb06248352bada26beee428de","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.customer_id equals '12348' and i.invoice_date is on or after '2011-05-10'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12348\\\",\\\"2011-05-10\\\",10],\\\"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.customer_id = ? OR i.invoice_date >= ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12348\\\",\\\"2011-05-10\\\"],\\\"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.customer_id = ? AND i.invoice_date >= ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12348\\\",\\\"2011-05-10\\\",10],\\\"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.customer_id = ? AND i.invoice_date >= ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[10],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","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.customer_id = ? AND i.invoice_date >= ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3","sql_parameters":"[\"12348\",\"2011-05-10\",10]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.customer_id equals '12348' and i.invoice_date is on or after '2011-05-10'), 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_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}361{"category":"join/null/date/and/having","domain":"commerce","family_id":"f86bffb9e47daa73b7b49f0e","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"b44ea0276bc1ce3edbc658a1a3758bd01329390e3aa1309dbe68a048747fd8df","language":"en","license":"CC-BY-4.0","query":"Return the maximum of l.unit_price for retail lines joined to their invoices where (i.invoice_date is before '2010-12-02' and i.customer_id is present), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\",10],\\\"sql\\\":\\\"SELECT i.country, MAX(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.invoice_date < ? OR i.customer_id IS NOT NULL) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"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 (i.invoice_date < ? AND i.customer_id IS NOT NULL) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\",10],\\\"sql\\\":\\\"SELECT i.country, MAX(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.invoice_date < ? AND i.customer_id IS NOT NULL) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\",10],\\\"sql\\\":\\\"SELECT i.country, MAX(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.invoice_date < ? AND i.customer_id IS NOT NULL) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Channel Islands\",1.85],[\"Australia\",4.95],[\"Cyprus\",7.95]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, MAX(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.invoice_date < ? AND i.customer_id IS NOT NULL) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3","sql_parameters":"[\"2010-12-02\",10]","state":"{\"question\":\"Return the maximum of l.unit_price for retail lines joined to their invoices where (i.invoice_date is before '2010-12-02' and i.customer_id is present), 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_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}362{"category":"single_table/ranked","domain":"commerce","family_id":"d9b4122d1e3a949c06a61640","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"8e9a68410f5e21529e1f5f9e4026fd8daccfd7de05fb56f5d45eff9b51392390","language":"en","license":"CC-BY-4.0","query":"Return the average of product_duration for shopping sessions where (product_related is at most 31), grouped by month; return at most 3 groups ordered by aggregate value ASC, breaking ties by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[31],\\\"sql\\\":\\\"SELECT month, AVG(product_duration) AS value FROM shopping_sessions WHERE (product_related <= ?) GROUP BY month ORDER BY value DESC, month ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[31],\\\"sql\\\":\\\"SELECT month, AVG(product_duration) AS value FROM shopping_sessions WHERE (product_related <= ?) GROUP BY month ORDER BY value ASC, month ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[31],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (product_related <= ?) GROUP BY month ORDER BY value ASC, month ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[31],\\\"sql\\\":\\\"SELECT month, SUM(product_duration) AS value FROM shopping_sessions WHERE (product_related <= ?) GROUP BY month ORDER BY value ASC, month ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Feb\",316.90747568701744],[\"June\",386.34196888835896],[\"Jul\",424.22766834027306]]","source":"online_shoppers","split":"dev","sql":"SELECT month, AVG(product_duration) AS value FROM shopping_sessions WHERE (product_related <= ?) GROUP BY month ORDER BY value ASC, month ASC LIMIT 3","sql_parameters":"[31]","state":"{\"question\":\"Return the average of product_duration for shopping sessions where (product_related is at most 31), grouped by month; return at most 3 groups ordered by aggregate value ASC, breaking ties by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}363{"category":"single_table/having","domain":"commerce","family_id":"af7ef7f24a43297693f1d84c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"ec979fcb5116633fa59d104c8984916cc1a7c41b39a4e64fd40750324d43dd8e","language":"en","license":"CC-BY-4.0","query":"Return the maximum of product_duration for shopping sessions where (region equals 6), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[6,10],\\\"sql\\\":\\\"SELECT revenue, MAX(product_duration) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[6,10],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[6,10],\\\"sql\\\":\\\"SELECT revenue, SUM(product_duration) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[6,10],\\\"sql\\\":\\\"SELECT revenue, MAX(product_duration) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1,6165.878774],[0,10415.32566]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, MAX(product_duration) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3","sql_parameters":"[6,10]","state":"{\"question\":\"Return the maximum of product_duration for shopping sessions where (region equals 6), 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\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}364{"category":"single_table/or/having","domain":"commerce","family_id":"90eceda805d2d4bed6ea4422","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"b3c28c614b47e71aa4b5fa4ace764c2a21f56295f2710de0a30e9e2630ab8ed9","language":"en","license":"CC-BY-4.0","query":"Return the maximum of quantity for retail invoice lines where (country equals 'Denmark' or unit_price is greater than 4.77), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Denmark\\\",4.77,2],\\\"sql\\\":\\\"SELECT country, MAX(quantity) AS value FROM retail_lines WHERE (country = ? AND unit_price > ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Denmark\\\",4.77,2],\\\"sql\\\":\\\"SELECT country, MAX(quantity) AS value FROM retail_lines WHERE (country = ? OR unit_price > ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Denmark\\\",4.77,2],\\\"sql\\\":\\\"SELECT country, MAX(quantity) AS value FROM retail_lines WHERE (country = ? OR unit_price > ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Denmark\\\",4.77,2],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? OR unit_price > ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"United Kingdom\",670],[\"Denmark\",256],[\"EIRE\",240],[\"Netherlands\",80],[\"France\",52]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, MAX(quantity) AS value FROM retail_lines WHERE (country = ? OR unit_price > ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5","sql_parameters":"[\"Denmark\",4.77,2]","state":"{\"question\":\"Return the maximum of quantity for retail invoice lines where (country equals 'Denmark' or unit_price is greater than 4.77), 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_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}365{"category":"single_table/or/ranked","domain":"sensor","family_id":"81640307dd9867a69378123f","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"a71b5bfdce41737de2cc05618040c2b49135549eb1ce94c37517db1d737d71b3","language":"en","license":"CC-BY-4.0","query":"Return the maximum of ps2_mean for hydraulic cycles where (ps1_mean is at most 158.27043 or eps1_mean is at most 2480.92663), grouped by pump_leakage; return at most 3 groups ordered by aggregate value ASC, breaking ties by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[158.27043,2480.92663],\\\"sql\\\":\\\"SELECT pump_leakage, MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? AND eps1_mean <= ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[158.27043,2480.92663],\\\"sql\\\":\\\"SELECT pump_leakage, MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR eps1_mean <= ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[158.27043,2480.92663],\\\"sql\\\":\\\"SELECT pump_leakage, MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR eps1_mean <= ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[158.27043,2480.92663],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR eps1_mean <= ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[2,107.60725],[1,107.77483],[0,108.51089]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR eps1_mean <= ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3","sql_parameters":"[158.27043,2480.92663]","state":"{\"question\":\"Return the maximum of ps2_mean for hydraulic cycles where (ps1_mean is at most 158.27043 or eps1_mean is at most 2480.92663), 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\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}366{"category":"join/date/and/aggregate","domain":"commerce","family_id":"6dd71b9c4047db93f8a3533f","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"9aea9d39e2805ef956aac37e2750bd1e8947fc33f1c654816c1124b5c7bc674f","language":"en","license":"CC-BY-4.0","query":"Return the minimum of l.unit_price for retail lines joined to their invoices where (l.unit_price is greater than 2.25 and i.invoice_date is before '2011-09-29').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2.25,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT MIN(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\\\":[2.25,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT MIN(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ? AND i.invoice_date < ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2.25,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ? AND i.invoice_date < ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2.25,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT SUM(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ? AND i.invoice_date < ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[2.26]]","source":"online_retail_ii","split":"dev","sql":"SELECT MIN(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ? AND i.invoice_date < ?)","sql_parameters":"[2.25,\"2011-09-29\"]","state":"{\"question\":\"Return the minimum of l.unit_price for retail lines joined to their invoices where (l.unit_price is greater than 2.25 and i.invoice_date is before '2011-09-29').\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}367{"category":"join/date/and/grouped","domain":"commerce","family_id":"d5656d46cdec66c7b1904a07","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"790d7c6b72e08ff7d39a0c70eeecf074269427b1ff881ab9cef5f4a47a301b03","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.unit_price for retail lines joined to their invoices where (l.quantity is at most 229 and i.invoice_date is on or after '2011-05-10'), grouped by i.invoice_date, ordered by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[229,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(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.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[229,\\\"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 (l.quantity <= ? AND i.invoice_date >= ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[229,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, 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.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[229,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(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.invoice_date ORDER BY i.invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-05-10\",203.02],[\"2011-05-11\",213.84],[\"2011-05-12\",252.79],[\"2011-05-13\",257.72],[\"2011-05-15\",64.77],[\"2011-05-16\",194.84],[\"2011-05-17\",264.73],[\"2011-05-18\",219.99],[\"2011-05-19\",309.13],[\"2011-05-20\",293.39],[\"2011-05-22\",166.03],[\"2011-05-23\",263.15],[\"2011-05-24\",353.06],[\"2011-05-25\",115.1],[\"2011-05-26\",457.11],[\"2011-05-27\",175.31],[\"2011-05-29\",31.51],[\"2011-05-31\",149.89000000000001],[\"2011-06-01\",122.51],[\"2011-06-02\",171.72],[\"2011-06-03\",130.94],[\"2011-06-05\",156.78],[\"2011-06-06\",109.12],[\"2011-06-07\",173.93],[\"2011-06-08\",230.15],[\"2011-06-09\",233.74],[\"2011-06-10\",128.47],[\"2011-06-12\",88.35],[\"2011-06-13\",137.09],[\"2011-06-14\",93.37],[\"2011-06-15\",104.67],[\"2011-06-16\",269.65],[\"2011-06-17\",115.72],[\"2011-06-19\",65.47],[\"2011-06-20\",3278.02],[\"2011-06-21\",147.41],[\"2011-06-22\",108.86],[\"2011-06-23\",59.63],[\"2011-06-24\",128.35999999999999],[\"2011-06-26\",147.99],[\"2011-06-27\",45.94],[\"2011-06-28\",144.94],[\"2011-06-29\",134.42],[\"2011-06-30\",394.58],[\"2011-07-01\",177.71],[\"2011-07-03\",39.59],[\"2011-07-04\",105.87],[\"2011-07-05\",178.79],[\"2011-07-06\",144.16],[\"2011-07-07\",219.68],[\"2011-07-08\",182.58],[\"2011-07-10\",5.79],[\"2011-07-11\",110.84],[\"2011-07-12\",75.74],[\"2011-07-13\",207.11],[\"2011-07-14\",213.1],[\"2011-07-15\",154.16],[\"2011-07-17\",176.16],[\"2011-07-18\",125.2],[\"2011-07-19\",124.33],[\"2011-07-20\",133.0],[\"2011-07-21\",105.75],[\"2011-07-22\",108.26],[\"2011-07-24\",228.78],[\"2011-07-25\",274.94],[\"2011-07-26\",131.09],[\"2011-07-27\",71.05],[\"2011-07-28\",291.26],[\"2011-07-29\",121.42999999999999],[\"2011-07-31\",78.05],[\"2011-08-01\",39.88],[\"2011-08-02\",64.84],[\"2011-08-03\",133.27],[\"2011-08-04\",303.43],[\"2011-08-05\",175.24],[\"2011-08-07\",96.05],[\"2011-08-08\",93.75],[\"2011-08-09\",138.59],[\"2011-08-10\",111.71],[\"2011-08-11\",191.77],[\"2011-08-12\",48.17],[\"2011-08-14\",173.87],[\"2011-08-15\",51.65],[\"2011-08-16\",130.51],[\"2011-08-17\",21.509999999999998],[\"2011-08-18\",121.31],[\"2011-08-19\",132.89],[\"2011-08-21\",85.5],[\"2011-08-22\",166.68],[\"2011-08-23\",101.57000000000001],[\"2011-08-24\",162.11],[\"2011-08-25\",317.61],[\"2011-08-26\",127.31],[\"2011-08-28\",41.59],[\"2011-08-30\",117.97],[\"2011-08-31\",69.27],[\"2011-09-01\",172.65],[\"2011-09-02\",103.1],[\"2011-09-04\",111.66],[\"2011-09-05\",72.77],[\"2011-09-06\",235.53],[\"2011-09-07\",66.63],[\"2011-09-08\",238.19],[\"2011-09-09\",206.25],[\"2011-09-11\",81.0],[\"2011-09-12\",113.76],[\"2011-09-13\",116.21],[\"2011-09-14\",216.92000000000002],[\"2011-09-15\",174.14000000000001],[\"2011-09-16\",70.31],[\"2011-09-18\",17.5],[\"2011-09-19\",124.02],[\"2011-09-20\",169.42],[\"2011-09-21\",143.96],[\"2011-09-22\",269.06],[\"2011-09-23\",96.71000000000001],[\"2011-09-25\",139.79],[\"2011-09-26\",79.93],[\"2011-09-27\",171.7],[\"2011-09-28\",143.04],[\"2011-09-29\",113.55],[\"2011-09-30\",180.19],[\"2011-10-02\",54.84],[\"2011-10-03\",401.11],[\"2011-10-04\",150.01],[\"2011-10-05\",313.18],[\"2011-10-06\",258.27],[\"2011-10-07\",155.44],[\"2011-10-09\",29.56],[\"2011-10-10\",180.9],[\"2011-10-11\",246.01],[\"2011-10-12\",213.48],[\"2011-10-13\",174.39000000000001],[\"2011-10-14\",111.31],[\"2011-10-17\",210.7],[\"2011-10-18\",168.16],[\"2011-10-19\",6361.85],[\"2011-10-20\",153.85],[\"2011-10-21\",185.12],[\"2011-10-23\",16.79],[\"2011-10-24\",198.25],[\"2011-10-25\",318.04],[\"2011-10-26\",321.06],[\"2011-10-27\",288.66],[\"2011-10-28\",204.79],[\"2011-10-30\",227.6],[\"2011-10-31\",122.1],[\"2011-11-01\",162.39000000000001],[\"2011-11-02\",68.36],[\"2011-11-03\",217.53],[\"2011-11-04\",155.06],[\"2011-11-06\",231.21],[\"2011-11-07\",354.86],[\"2011-11-08\",224.86],[\"2011-11-09\",372.86],[\"2011-11-10\",1380.68],[\"2011-11-11\",111.06],[\"2011-11-13\",120.22],[\"2011-11-14\",139.74],[\"2011-11-15\",240.39],[\"2011-11-16\",525.89],[\"2011-11-17\",506.9],[\"2011-11-18\",351.24],[\"2011-11-20\",90.53],[\"2011-11-21\",184.41],[\"2011-11-22\",253.53],[\"2011-11-23\",301.89],[\"2011-11-24\",221.79],[\"2011-11-25\",317.88],[\"2011-11-27\",24.11],[\"2011-11-28\",178.49],[\"2011-11-29\",428.42],[\"2011-11-30\",176.17000000000002],[\"2011-12-01\",433.83],[\"2011-12-02\",415.62],[\"2011-12-04\",150.1],[\"2011-12-05\",539.04],[\"2011-12-06\",362.18],[\"2011-12-07\",176.98],[\"2011-12-08\",254.34],[\"2011-12-09\",163.5]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.invoice_date, SUM(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.invoice_date ORDER BY i.invoice_date ASC","sql_parameters":"[229,\"2011-05-10\"]","state":"{\"question\":\"Return the sum of l.unit_price for retail lines joined to their invoices where (l.quantity is at most 229 and 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\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}368{"category":"single_table/or/having","domain":"sensor","family_id":"a88cfb089ef95025fd2286ba","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"71de664183fd6c1d11b5d7555a53ae2769ef41627e66a978836603014ec6c6df","language":"en","license":"CC-BY-4.0","query":"Return the minimum of eps1_mean for hydraulic cycles where (valve equals 73 or fs1_mean is greater than 6.63763), grouped by pump_leakage, keeping only groups with at least 10 matching rows; return at most 3 groups ordered by aggregate value ASC, breaking ties by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[73,6.63763,10],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(eps1_mean) AS value FROM hydraulic_cycles WHERE (valve = ? AND fs1_mean > ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[73,6.63763,10],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(eps1_mean) AS value FROM hydraulic_cycles WHERE (valve = ? OR fs1_mean > ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[73,6.63763,10],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(eps1_mean) AS value FROM hydraulic_cycles WHERE (valve = ? OR fs1_mean > ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[73,6.63763,10],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (valve = ? OR fs1_mean > ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,2366.33493],[1,2376.22887],[2,2419.16687]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, MIN(eps1_mean) AS value FROM hydraulic_cycles WHERE (valve = ? OR fs1_mean > ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value ASC, pump_leakage ASC LIMIT 3","sql_parameters":"[73,6.63763,10]","state":"{\"question\":\"Return the minimum of eps1_mean for hydraulic cycles where (valve equals 73 or fs1_mean is greater than 6.63763), grouped by pump_leakage, keeping only groups with at least 10 matching rows; 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\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}369{"category":"single_table/ranked","domain":"commerce","family_id":"5415a2442d6af70db14d02de","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"cd56286cf0121c412bd5adcec6fe7dce859c5a2354b6682fa3f2d1b014e5634b","language":"en","license":"CC-BY-4.0","query":"Return the average of product_duration for shopping sessions where (administrative is at most 2), grouped by visitor_type; return at most 3 groups ordered by aggregate value ASC, breaking ties by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2],\\\"sql\\\":\\\"SELECT visitor_type, AVG(product_duration) AS value FROM shopping_sessions WHERE (administrative <= ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2],\\\"sql\\\":\\\"SELECT visitor_type, AVG(product_duration) AS value FROM shopping_sessions WHERE (administrative <= ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (administrative <= ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2],\\\"sql\\\":\\\"SELECT visitor_type, SUM(product_duration) AS value FROM shopping_sessions WHERE (administrative <= ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Other\",513.4853646979366],[\"New_Visitor\",591.941066014912],[\"Returning_Visitor\",860.0014264564128]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, AVG(product_duration) AS value FROM shopping_sessions WHERE (administrative <= ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3","sql_parameters":"[2]","state":"{\"question\":\"Return the average of product_duration for shopping sessions where (administrative is at most 2), grouped by visitor_type; return at most 3 groups ordered by aggregate value ASC, breaking ties by visitor_type ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}370{"category":"single_table/date/or/aggregate","domain":"commerce","family_id":"8a0474bf701ec91e9430d0fd","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"1e84e1b0594b8be72e404f8786031034b113dac23b371d25635e4151cd687376","language":"en","license":"CC-BY-4.0","query":"Return the average of quantity for retail invoice lines where (quantity is at most 229 or invoice_date is on or after '2011-09-29').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[229,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT AVG(quantity) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date >= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[229,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT AVG(quantity) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[229,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date >= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[229,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT SUM(quantity) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date >= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[27.739573820395737]]","source":"online_retail_ii","split":"dev","sql":"SELECT AVG(quantity) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date >= ?)","sql_parameters":"[229,\"2011-09-29\"]","state":"{\"question\":\"Return the average of quantity for retail invoice lines where (quantity is at most 229 or invoice_date is on or after '2011-09-29').\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}371{"category":"join/null/date/or/ranked","domain":"commerce","family_id":"e7135d7929e7c4929ff82e32","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"40c704287ea6b39c5a7044a5ed8ba09108ce0d2e5bcc30b49dde8509bab74fb6","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.quantity for retail lines joined to their invoices where (i.invoice_date is before '2010-07-14' or i.customer_id is present), grouped by i.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.invoice_date < ? OR i.customer_id IS NOT NULL) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.invoice_date < ? AND i.customer_id IS NOT NULL) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.invoice_date < ? OR i.customer_id IS NOT NULL) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.invoice_date < ? OR i.customer_id IS NOT NULL) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"United Arab Emirates\",2],[\"Israel\",4],[\"Singapore\",6]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.invoice_date < ? OR i.customer_id IS NOT NULL) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3","sql_parameters":"[\"2010-07-14\"]","state":"{\"question\":\"Return the sum of l.quantity for retail lines joined to their invoices where (i.invoice_date is before '2010-07-14' or i.customer_id is present), grouped by i.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}372{"category":"join/distinct_invoice/or/ranked","domain":"commerce","family_id":"cd57663e272533143103ee61","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"3f23af6f7c3d0d8f0cdb94be3b6a8083cecf29a357f4c5b1c054a184f0503a4a","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.country equals 'Canada' or l.quantity is greater than 25), grouped by i.country; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Canada\\\",25],\\\"sql\\\":\\\"SELECT i.country, 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.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Canada\\\",25],\\\"sql\\\":\\\"SELECT i.country, 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.country ORDER BY value ASC, i.country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Canada\\\",25],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR l.quantity > ?) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Canada\\\",25],\\\"sql\\\":\\\"SELECT i.country, 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.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"United Kingdom\",3041],[\"Germany\",39],[\"EIRE\",31],[\"France\",30],[\"Netherlands\",27]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, 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.country ORDER BY value DESC, i.country ASC LIMIT 5","sql_parameters":"[\"Canada\",25]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.country equals 'Canada' or l.quantity is greater than 25), grouped by i.country; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}373{"category":"single_table/date/and/ranked","domain":"commerce","family_id":"c059efaf9ed75d71484195f9","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"8656f0a3b2f47f36d9b706142cd8c82176f11458e7a3132fed1e0116ccd550a5","language":"en","license":"CC-BY-4.0","query":"Return the average of quantity for retail invoice lines where (country equals 'Finland' and invoice_date is before '2010-02-18'), grouped by invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Finland\\\",\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (country = ? OR invoice_date < ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Finland\\\",\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Finland\\\",\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Finland\\\",\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-13\",33.5]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3","sql_parameters":"[\"Finland\",\"2010-02-18\"]","state":"{\"question\":\"Return the average of quantity for retail invoice lines where (country equals 'Finland' and invoice_date is before '2010-02-18'), grouped by invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by invoice_date ascending.\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}374{"category":"single_table/and/having","domain":"commerce","family_id":"925bad6450f94bf83f052a52","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"7e29a1eea4713248dd5ee450a4a277ef1de76dc7c4fe6d2824b5b5195153bc33","language":"en","license":"CC-BY-4.0","query":"Return the sum of administrative for shopping sessions where (weekend equals 1 and administrative is greater than 7), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[1,7,10],\\\"sql\\\":\\\"SELECT revenue, SUM(administrative) AS value FROM shopping_sessions WHERE (weekend = ? OR administrative > ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[1,7,10],\\\"sql\\\":\\\"SELECT revenue, SUM(administrative) AS value FROM shopping_sessions WHERE (weekend = ? AND administrative > ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[1,7,10],\\\"sql\\\":\\\"SELECT revenue, SUM(administrative) AS value FROM shopping_sessions WHERE (weekend = ? AND administrative > ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[1,7,10],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (weekend = ? AND administrative > ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1,766],[0,1995]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, SUM(administrative) AS value FROM shopping_sessions WHERE (weekend = ? AND administrative > ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3","sql_parameters":"[1,7,10]","state":"{\"question\":\"Return the sum of administrative for shopping sessions where (weekend equals 1 and administrative is greater than 7), 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\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}375{"category":"single_table/or/grouped","domain":"commerce","family_id":"914d718a9102bd7e8e40224a","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"7cf735085bc0af17ab6c9f5696c2ad24cf1ca3f414e858e6605c811deedbf43a","language":"en","license":"CC-BY-4.0","query":"Return the average of product_duration for shopping sessions where (administrative is at most 23 or product_related is at most 340), grouped by visitor_type, ordered by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[23,340],\\\"sql\\\":\\\"SELECT visitor_type, AVG(product_duration) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_related <= ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[23,340],\\\"sql\\\":\\\"SELECT visitor_type, AVG(product_duration) AS value FROM shopping_sessions WHERE (administrative <= ? AND product_related <= ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[23,340],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_related <= ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[23,340],\\\"sql\\\":\\\"SELECT visitor_type, SUM(product_duration) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_related <= ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"New_Visitor\",636.3933542463164],[\"Other\",570.4048622487059],[\"Returning_Visitor\",1287.1888133299747]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, AVG(product_duration) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_related <= ?) GROUP BY visitor_type ORDER BY visitor_type ASC","sql_parameters":"[23,340]","state":"{\"question\":\"Return the average of product_duration for shopping sessions where (administrative is at most 23 or product_related is at most 340), grouped by visitor_type, ordered by visitor_type ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}376{"category":"single_table/grouped","domain":"sensor","family_id":"f3a54d84d090b18001cb2f2f","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"9e8610cb098b77b64462580c7495461297a92dfaa609477d767af12e82cfdad7","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for hydraulic cycles where (ps1_mean is greater than 160.79926), grouped by cooler, ordered by cooler ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[160.79926],\\\"sql\\\":\\\"SELECT cooler, SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[160.79926],\\\"sql\\\":\\\"SELECT cooler, AVG(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[160.79926],\\\"sql\\\":\\\"SELECT cooler, MIN(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[160.79926],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps1_mean > ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[3,240],[100,423]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps1_mean > ?) GROUP BY cooler ORDER BY cooler ASC","sql_parameters":"[160.79926]","state":"{\"question\":\"Return the number of rows for hydraulic cycles where (ps1_mean is greater than 160.79926), grouped by cooler, ordered by cooler ascending.\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}377{"category":"join/date/ranked","domain":"commerce","family_id":"3f7078e823bf17ee64bb2f2c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"f9410f54e65c9ff26494cd6da5db88fa128463fa9621a76c1dcd7c249fe29182","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.unit_price for retail lines joined to their invoices where (i.invoice_date is before '2010-02-18'), grouped by i.country; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\"],\\\"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 DESC, i.country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\"],\\\"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 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) 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 DESC, i.country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT i.country, 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.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"United Kingdom\",9227.62],[\"Germany\",90.82],[\"Sweden\",75.2],[\"EIRE\",63.07],[\"Finland\",50.89]]","source":"online_retail_ii","split":"dev","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 DESC, i.country ASC LIMIT 5","sql_parameters":"[\"2010-02-18\"]","state":"{\"question\":\"Return the sum of l.unit_price for retail lines joined to their invoices where (i.invoice_date is before '2010-02-18'), grouped by i.country; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}378{"category":"single_table/date/or/having","domain":"commerce","family_id":"a623653dc0bfde9f6f9139be","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"adcfa2fee2ad48a5c1fa3607648cddfbadf2e56f3319cd005d1af1009db8123d","language":"en","license":"CC-BY-4.0","query":"Return the average of unit_price for retail invoice lines where (quantity is greater than 92 or 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[92,\\\"2011-05-10\\\",10],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (quantity > ? AND invoice_date < ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[92,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (quantity > ? OR invoice_date < ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[92,\\\"2011-05-10\\\",10],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (quantity > ? OR invoice_date < ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[92,\\\"2011-05-10\\\",10],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (quantity > ? OR invoice_date < ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-07-24\",0.7038461538461539],[\"2011-07-05\",0.738],[\"2011-11-22\",0.8745454545454546]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (quantity > ? OR invoice_date < ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3","sql_parameters":"[92,\"2011-05-10\",10]","state":"{\"question\":\"Return the average of unit_price for retail invoice lines where (quantity is greater than 92 or 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\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}379{"category":"single_table/or/ranked","domain":"commerce","family_id":"5d263412fce5f887c0b44942","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"24753f78d59746a5f422de192d073ddcc9562505cb125a440b4b15fbbf96dbf2","language":"en","license":"CC-BY-4.0","query":"Return the sum of administrative for shopping sessions where (region equals 5 or product_related is at most 31), grouped by month; return at most 5 groups ordered by aggregate value DESC, breaking ties by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[5,31],\\\"sql\\\":\\\"SELECT month, SUM(administrative) AS value FROM shopping_sessions WHERE (region = ? OR product_related <= ?) GROUP BY month ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[5,31],\\\"sql\\\":\\\"SELECT month, SUM(administrative) AS value FROM shopping_sessions WHERE (region = ? AND product_related <= ?) GROUP BY month ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[5,31],\\\"sql\\\":\\\"SELECT month, SUM(administrative) AS value FROM shopping_sessions WHERE (region = ? OR product_related <= ?) GROUP BY month ORDER BY value ASC, month ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[5,31],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (region = ? OR product_related <= ?) GROUP BY month ORDER BY value DESC, month ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"May\",3116],[\"Nov\",2534],[\"Mar\",2088],[\"Dec\",1874],[\"Oct\",1077]]","source":"online_shoppers","split":"dev","sql":"SELECT month, SUM(administrative) AS value FROM shopping_sessions WHERE (region = ? OR product_related <= ?) GROUP BY month ORDER BY value DESC, month ASC LIMIT 5","sql_parameters":"[5,31]","state":"{\"question\":\"Return the sum of administrative for shopping sessions where (region equals 5 or product_related is at most 31), grouped by month; return at most 5 groups ordered by aggregate value DESC, breaking ties by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}380{"category":"single_table/ranked","domain":"sensor","family_id":"5cccfd1c6033c891ba7ee53d","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"8ac0b32438bdb02cb5346578c1becb7fe54d8cc944c65e0318976ed00a405507","language":"en","license":"CC-BY-4.0","query":"Return the maximum of ts1_mean for hydraulic cycles where (accumulator equals 90), grouped by cooler; return at most 3 groups ordered by aggregate value ASC, breaking ties by cooler ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[90],\\\"sql\\\":\\\"SELECT cooler, MAX(ts1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[90],\\\"sql\\\":\\\"SELECT cooler, MAX(ts1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ?) GROUP BY cooler ORDER BY value DESC, cooler ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[90],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (accumulator = ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[90],\\\"sql\\\":\\\"SELECT cooler, SUM(ts1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[100,44.66558],[20,55.61657],[3,57.42863]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, MAX(ts1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 3","sql_parameters":"[90]","state":"{\"question\":\"Return the maximum of ts1_mean for hydraulic cycles where (accumulator equals 90), 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\",\"cycle_id\":\"INTEGER\",\"eps1_mean\":\"REAL\",\"fs1_mean\":\"REAL\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}381{"category":"single_table/grouped","domain":"commerce","family_id":"7c8f35d330bce012c0587f22","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"650db9779b3ec6f5a31f17482fe0720f4ec3ff96e9794fd4487784be32a0239c","language":"en","license":"CC-BY-4.0","query":"Return the sum of product_duration for shopping sessions where (product_related is greater than 31), grouped by month, ordered by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[31],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (product_related > ?) GROUP BY month ORDER BY month ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[31],\\\"sql\\\":\\\"SELECT month, AVG(product_duration) AS value FROM shopping_sessions WHERE (product_related > ?) GROUP BY month ORDER BY month ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[31],\\\"sql\\\":\\\"SELECT month, MIN(product_duration) AS value FROM shopping_sessions WHERE (product_related > ?) GROUP BY month ORDER BY month ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[31],\\\"sql\\\":\\\"SELECT month, SUM(product_duration) AS value FROM shopping_sessions WHERE (product_related > ?) GROUP BY month ORDER BY month ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Aug\",425496.526756],[\"Dec\",1287836.9888663],[\"Feb\",32158.6092787],[\"Jul\",401706.2334195],[\"June\",274116.0660329],[\"Mar\",780836.203122],[\"May\",2112871.8614669],[\"Nov\",4342114.9972448],[\"Oct\",435069.5065917],[\"Sep\",401212.0143544]]","source":"online_shoppers","split":"dev","sql":"SELECT month, SUM(product_duration) AS value FROM shopping_sessions WHERE (product_related > ?) GROUP BY month ORDER BY month ASC","sql_parameters":"[31]","state":"{\"question\":\"Return the sum of product_duration for shopping sessions where (product_related is greater than 31), grouped by month, ordered by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}382{"category":"single_table/date/and/grouped","domain":"commerce","family_id":"3be764ee3a45b069268d6291","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"635249f31405c7295905cf104a197efc340235dc4ee7f3dd1f2e5d6602656d5a","language":"en","license":"CC-BY-4.0","query":"Return the average of unit_price for retail invoice lines where (country equals 'Denmark' and invoice_date is on or after '2010-12-02'), grouped by country, ordered by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Denmark\\\",\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date >= ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Denmark\\\",\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Denmark\\\",\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Denmark\\\",\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY country ORDER BY country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Denmark\",5.735454545454545]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY country ORDER BY country ASC","sql_parameters":"[\"Denmark\",\"2010-12-02\"]","state":"{\"question\":\"Return the average of unit_price for retail invoice lines where (country equals 'Denmark' 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\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}383{"category":"single_table/date/and/having","domain":"commerce","family_id":"063e05b47b5b6a2868850183","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"345e935ff0b87936f6ae51249530d5532e0ff36f9901de2536b1e28e485d57b1","language":"en","license":"CC-BY-4.0","query":"Return the minimum of quantity for retail invoice lines where (quantity is greater than 92 and invoice_date is before '2011-05-10'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[92,\\\"2011-05-10\\\",2],\\\"sql\\\":\\\"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (quantity > ? OR invoice_date < ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[92,\\\"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 value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[92,\\\"2011-05-10\\\",2],\\\"sql\\\":\\\"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (quantity > ? AND invoice_date < ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[92,\\\"2011-05-10\\\",2],\\\"sql\\\":\\\"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (quantity > ? AND invoice_date < ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-03-08\",432],[\"2010-08-03\",400],[\"2011-03-04\",280],[\"2010-01-20\",240],[\"2010-03-22\",240]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (quantity > ? AND invoice_date < ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5","sql_parameters":"[92,\"2011-05-10\",2]","state":"{\"question\":\"Return the minimum of quantity for retail invoice lines where (quantity is greater than 92 and invoice_date is before '2011-05-10'), 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\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}384{"category":"single_table/or/grouped","domain":"sensor","family_id":"8eb7a324474a2b0c384824aa","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"b80f30c62cdd96c2529811e84fd9be5d8f632328319c7778631a79727bdbcbbe","language":"en","license":"CC-BY-4.0","query":"Return the minimum of fs1_mean for hydraulic cycles where (valve equals 80 or eps1_mean is greater than 2449.13677), grouped by cooler, ordered by cooler ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[80,2449.13677],\\\"sql\\\":\\\"SELECT cooler, MIN(fs1_mean) AS value FROM hydraulic_cycles WHERE (valve = ? AND eps1_mean > ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[80,2449.13677],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (valve = ? OR eps1_mean > ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[80,2449.13677],\\\"sql\\\":\\\"SELECT cooler, MIN(fs1_mean) AS value FROM hydraulic_cycles WHERE (valve = ? OR eps1_mean > ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[80,2449.13677],\\\"sql\\\":\\\"SELECT cooler, SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (valve = ? OR eps1_mean > ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[3,2.01857],[20,6.31642],[100,6.36245]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, MIN(fs1_mean) AS value FROM hydraulic_cycles WHERE (valve = ? OR eps1_mean > ?) GROUP BY cooler ORDER BY cooler ASC","sql_parameters":"[80,2449.13677]","state":"{\"question\":\"Return the minimum of fs1_mean for hydraulic cycles where (valve equals 80 or eps1_mean is greater than 2449.13677), grouped by cooler, ordered by cooler ascending.\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}385{"category":"single_table/or/aggregate","domain":"commerce","family_id":"56c73c8d6fc79e20a6f4474d","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"c6a8739748df247f2009525eb751c31a8bc54306e237b87f01fadb73260d2bca","language":"en","license":"CC-BY-4.0","query":"Return the maximum of product_duration for shopping sessions where (administrative is at most 18 or product_duration is greater than 876.3).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[18,876.3],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_duration > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[18,876.3],\\\"sql\\\":\\\"SELECT SUM(product_duration) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_duration > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[18,876.3],\\\"sql\\\":\\\"SELECT AVG(product_duration) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_duration > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[18,876.3],\\\"sql\\\":\\\"SELECT MAX(product_duration) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_duration > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[63973.52223]]","source":"online_shoppers","split":"dev","sql":"SELECT MAX(product_duration) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_duration > ?)","sql_parameters":"[18,876.3]","state":"{\"question\":\"Return the maximum of product_duration for shopping sessions where (administrative is at most 18 or product_duration is greater than 876.3).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}386{"category":"single_table/date/ranked","domain":"commerce","family_id":"df12b68e615402dc858b5e35","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"231ff5db6e9899dfde2617620c9771198671306f03b7c3c6e2b90e8c3fad9692","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail invoice lines where (invoice_date is on or after '2010-12-02'), grouped by country; return at most 5 groups ordered by aggregate value DESC, breaking ties by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"United Kingdom\",12764],[\"Germany\",361],[\"France\",180],[\"EIRE\",125],[\"Finland\",65]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5","sql_parameters":"[\"2010-12-02\"]","state":"{\"question\":\"Return the number of rows for retail invoice lines where (invoice_date is on or after '2010-12-02'), 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\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}387{"category":"single_table/or/ranked","domain":"sensor","family_id":"896437bb8591ddd1d156757c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"1e9c047dc2f51b01b09c13004dc22f898a5a8d6b75f415aaccef6361c5a861d9","language":"en","license":"CC-BY-4.0","query":"Return the average of eps1_mean for hydraulic cycles where (eps1_mean is at most 2449.13677 or vs1_mean is greater than 0.64278), grouped by cooler; return at most 3 groups ordered by aggregate value ASC, breaking ties by cooler ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2449.13677,0.64278],\\\"sql\\\":\\\"SELECT cooler, AVG(eps1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ? AND vs1_mean > ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2449.13677,0.64278],\\\"sql\\\":\\\"SELECT cooler, AVG(eps1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ? OR vs1_mean > ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2449.13677,0.64278],\\\"sql\\\":\\\"SELECT cooler, AVG(eps1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ? OR vs1_mean > ?) GROUP BY cooler ORDER BY value DESC, cooler ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2449.13677,0.64278],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ? OR vs1_mean > ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[20,2440.8669220725387],[3,2473.81730970547],[100,2568.565]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, AVG(eps1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ? OR vs1_mean > ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 3","sql_parameters":"[2449.13677,0.64278]","state":"{\"question\":\"Return the average of eps1_mean for hydraulic cycles where (eps1_mean is at most 2449.13677 or vs1_mean is greater than 0.64278), 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\",\"cycle_id\":\"INTEGER\",\"eps1_mean\":\"REAL\",\"fs1_mean\":\"REAL\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}388{"category":"single_table/aggregate","domain":"sensor","family_id":"f2527297c6df200271eabca5","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"14510e8c88a1b76c874ea5f33fa1878b994c0b71ea7649a46788302e12ae74aa","language":"en","license":"CC-BY-4.0","query":"Return the average of vs1_mean for hydraulic cycles where (eps1_mean is greater than 2544.76).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2544.76],\\\"sql\\\":\\\"SELECT AVG(vs1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2544.76],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (eps1_mean > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2544.76],\\\"sql\\\":\\\"SELECT SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2544.76],\\\"sql\\\":\\\"SELECT MIN(vs1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0.6136524622356495]]","source":"hydraulic","split":"dev","sql":"SELECT AVG(vs1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ?)","sql_parameters":"[2544.76]","state":"{\"question\":\"Return the average of vs1_mean for hydraulic cycles where (eps1_mean is greater than 2544.76).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}389{"category":"single_table/ranked","domain":"commerce","family_id":"9300383b7648a6cebbfd9453","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"332acab217a53304b47cff41099f8e7346bc77b657a0dc7f6bc7d426160fed4f","language":"en","license":"CC-BY-4.0","query":"Return the maximum of administrative for shopping sessions where (product_duration is at most 876.3), grouped by visitor_type; return at most 3 groups ordered by aggregate value ASC, breaking ties by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[876.3],\\\"sql\\\":\\\"SELECT visitor_type, MAX(administrative) AS value FROM shopping_sessions WHERE (product_duration <= ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[876.3],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (product_duration <= ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[876.3],\\\"sql\\\":\\\"SELECT visitor_type, MAX(administrative) AS value FROM shopping_sessions WHERE (product_duration <= ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[876.3],\\\"sql\\\":\\\"SELECT visitor_type, SUM(administrative) AS value FROM shopping_sessions WHERE (product_duration <= ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"New_Visitor\",13],[\"Other\",14],[\"Returning_Visitor\",18]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, MAX(administrative) AS value FROM shopping_sessions WHERE (product_duration <= ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3","sql_parameters":"[876.3]","state":"{\"question\":\"Return the maximum of administrative for shopping sessions where (product_duration is at most 876.3), grouped by visitor_type; return at most 3 groups ordered by aggregate value ASC, breaking ties by visitor_type ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}390{"category":"join/and/ranked","domain":"commerce","family_id":"2d38d211bf822698a43bc4e1","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"6cabf0b49ab70d7018b02c527ad250215bfd36c72b3a98470f79c120deb5c772","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail lines joined to their invoices where (i.country equals 'Finland' and i.customer_id equals '12352'), grouped by i.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Finland\\\",\\\"12352\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND i.customer_id = ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Finland\\\",\\\"12352\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR i.customer_id = ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Finland\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND i.customer_id = ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3","sql_parameters":"[\"Finland\",\"12352\"]","state":"{\"question\":\"Return the number of rows for retail lines joined to their invoices where (i.country equals 'Finland' and i.customer_id equals '12352'), grouped by i.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}391{"category":"single_table/and/ranked","domain":"sensor","family_id":"fc5d0c0a5096839a859ab020","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"4556b7fec53fef8d2587886d435240e69901c309b006e7b9a12f4bc060b76d09","language":"en","license":"CC-BY-4.0","query":"Return the minimum of ps2_mean for hydraulic cycles where (ts1_mean is at most 35.56605 and vs1_mean is at most 0.61133), grouped by cooler; return at most 5 groups ordered by aggregate value DESC, breaking ties by cooler ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[35.56605,0.61133],\\\"sql\\\":\\\"SELECT cooler, MIN(ps2_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? OR vs1_mean <= ?) GROUP BY cooler ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[35.56605,0.61133],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? AND vs1_mean <= ?) GROUP BY cooler ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[35.56605,0.61133],\\\"sql\\\":\\\"SELECT cooler, MIN(ps2_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? AND vs1_mean <= ?) GROUP BY cooler ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[35.56605,0.61133],\\\"sql\\\":\\\"SELECT cooler, SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? AND vs1_mean <= ?) GROUP BY cooler ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[100,108.68061]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, MIN(ps2_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? AND vs1_mean <= ?) GROUP BY cooler ORDER BY value DESC, cooler ASC LIMIT 5","sql_parameters":"[35.56605,0.61133]","state":"{\"question\":\"Return the minimum of ps2_mean for hydraulic cycles where (ts1_mean is at most 35.56605 and vs1_mean is at most 0.61133), 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_mean\":\"REAL\",\"fs1_mean\":\"REAL\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}392{"category":"single_table/date/ranked","domain":"commerce","family_id":"874eb54c09ae446bf567a27c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"7e97e8d286d17542c45af07fcdd724a548311c45a9b00cd316f2728555848012","language":"en","license":"CC-BY-4.0","query":"Return the minimum of unit_price for retail invoice lines where (invoice_date is on or after '2011-09-29'), grouped by invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MIN(unit_price) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MIN(unit_price) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-09-30\",0.04],[\"2011-10-19\",0.04],[\"2011-11-23\",0.04]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MIN(unit_price) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3","sql_parameters":"[\"2011-09-29\"]","state":"{\"question\":\"Return the minimum of unit_price for retail invoice lines where (invoice_date is on or after '2011-09-29'), grouped by invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by invoice_date ascending.\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}393{"category":"single_table/or/grouped","domain":"commerce","family_id":"1f98d5717cbcfe7a9907e193","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"df324b71328e9ec69720b376da013f4902844cb21be7c366f7356d63a0021a3b","language":"en","license":"CC-BY-4.0","query":"Return the minimum of product_related for shopping sessions where (traffic_type equals 16 or administrative is at most 18), grouped by revenue, ordered by revenue ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[16,18],\\\"sql\\\":\\\"SELECT revenue, MIN(product_related) AS value FROM shopping_sessions WHERE (traffic_type = ? AND administrative <= ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[16,18],\\\"sql\\\":\\\"SELECT revenue, MIN(product_related) AS value FROM shopping_sessions WHERE (traffic_type = ? OR administrative <= ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[16,18],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (traffic_type = ? OR administrative <= ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[16,18],\\\"sql\\\":\\\"SELECT revenue, SUM(product_related) AS value FROM shopping_sessions WHERE (traffic_type = ? OR administrative <= ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,0],[1,0]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, MIN(product_related) AS value FROM shopping_sessions WHERE (traffic_type = ? OR administrative <= ?) GROUP BY revenue ORDER BY revenue ASC","sql_parameters":"[16,18]","state":"{\"question\":\"Return the minimum of product_related for shopping sessions where (traffic_type equals 16 or administrative is at most 18), grouped by revenue, ordered by revenue ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}394{"category":"single_table/having","domain":"commerce","family_id":"304d0e4519767e0560f2c430","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"d8b6985bb8dfbad7781fe2ce0c037166301ca2e3fcb007e28909e87596c69bb9","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (country equals 'Denmark'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Denmark\\\",2],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Denmark\\\",2],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (country = ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Denmark\\\",2],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (country = ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Denmark\\\",2],\\\"sql\\\":\\\"SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (country = ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Denmark\",18.0]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (country = ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5","sql_parameters":"[\"Denmark\",2]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines where (country equals 'Denmark'), 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_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}395{"category":"single_table/ranked","domain":"commerce","family_id":"3324f9e963e3942f800a9e99","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"ee70a4adefd09cb58ac35b2acfb795f7b450c6cedf5d47e8f3e9bbcb32b6040f","language":"en","license":"CC-BY-4.0","query":"Return the maximum of quantity for retail invoice lines where (unit_price is at most 8.5), grouped by country; return at most 5 groups ordered by aggregate value DESC, breaking ties by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[8.5],\\\"sql\\\":\\\"SELECT country, MAX(quantity) AS value FROM retail_lines WHERE (unit_price <= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[8.5],\\\"sql\\\":\\\"SELECT country, MAX(quantity) AS value FROM retail_lines WHERE (unit_price <= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[8.5],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (unit_price <= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[8.5],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (unit_price <= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"United Kingdom\",10000],[\"EIRE\",1440],[\"Sweden\",1440],[\"France\",576],[\"Japan\",576]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, MAX(quantity) AS value FROM retail_lines WHERE (unit_price <= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5","sql_parameters":"[8.5]","state":"{\"question\":\"Return the maximum of quantity for retail invoice lines where (unit_price is at most 8.5), 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\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}396{"category":"single_table/date/and/having","domain":"commerce","family_id":"81752c6c7114cfbc11f11e16","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"c90606340017a6bd867e3ec11e2b29ea3360ab1fe077a8f43c57dc9a814df73d","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail invoice lines where (unit_price is greater than 4.77 and invoice_date is on or after '2010-02-18'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[4.77,\\\"2010-02-18\\\",10],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (unit_price > ? AND invoice_date >= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[4.77,\\\"2010-02-18\\\",10],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date >= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[4.77,\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (unit_price > ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[4.77,\\\"2010-02-18\\\",10],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (unit_price > ? AND invoice_date >= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-03-19\",10],[\"2010-05-11\",10],[\"2010-06-20\",10]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (unit_price > ? AND invoice_date >= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3","sql_parameters":"[4.77,\"2010-02-18\",10]","state":"{\"question\":\"Return the number of rows for retail invoice lines where (unit_price is greater than 4.77 and invoice_date is on or after '2010-02-18'), 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\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}397{"category":"single_table/having","domain":"commerce","family_id":"af7ef7f24a43297693f1d84c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"c754d6c6e6c5ecc1bd22b6e71f4bec5fb9f779c4f4258c32cceae2290b87fad3","language":"en","license":"CC-BY-4.0","query":"Return the maximum of product_duration for shopping sessions where (region equals 3), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[3,10],\\\"sql\\\":\\\"SELECT revenue, MAX(product_duration) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[3,10],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[3,10],\\\"sql\\\":\\\"SELECT revenue, MAX(product_duration) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[3,10],\\\"sql\\\":\\\"SELECT revenue, SUM(product_duration) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1,18504.12621],[0,24844.1562]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, MAX(product_duration) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3","sql_parameters":"[3,10]","state":"{\"question\":\"Return the maximum of product_duration for shopping sessions where (region equals 3), 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\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}398{"category":"single_table/and/ranked","domain":"sensor","family_id":"bae9396c9f1c1aa3ba634946","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"3c30b23ac08608647a41b80ac1eaf61955f1b92431a24e0b2460604eb5c8ab90","language":"en","license":"CC-BY-4.0","query":"Return the sum of ts1_mean for hydraulic cycles where (pump_leakage equals 2 and vs1_mean is greater than 0.54422), grouped by cooler; return at most 5 groups ordered by aggregate value DESC, breaking ties by cooler ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2,0.54422],\\\"sql\\\":\\\"SELECT cooler, SUM(ts1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? OR vs1_mean > ?) GROUP BY cooler ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2,0.54422],\\\"sql\\\":\\\"SELECT cooler, SUM(ts1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? AND vs1_mean > ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2,0.54422],\\\"sql\\\":\\\"SELECT cooler, SUM(ts1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? AND vs1_mean > ?) GROUP BY cooler ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2,0.54422],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? AND vs1_mean > ?) GROUP BY cooler ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[3,9159.3407],[20,7345.04078],[100,2915.78427]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, SUM(ts1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? AND vs1_mean > ?) GROUP BY cooler ORDER BY value DESC, cooler ASC LIMIT 5","sql_parameters":"[2,0.54422]","state":"{\"question\":\"Return the sum of ts1_mean for hydraulic cycles where (pump_leakage equals 2 and vs1_mean is greater than 0.54422), 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_mean\":\"REAL\",\"fs1_mean\":\"REAL\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}399{"category":"single_table/and/having","domain":"sensor","family_id":"cf580738cc4603de8d432738","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"1f20fece915a0bb71a4998633075cfedf9fe4a21a051084ff30258f1e8ca75b3","language":"en","license":"CC-BY-4.0","query":"Return the maximum of eps1_mean for hydraulic cycles where (ps1_mean is at most 172.56377 and fs1_mean is greater than 6.68926), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[172.56377,6.68926,2],\\\"sql\\\":\\\"SELECT cooler, MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR fs1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[172.56377,6.68926],\\\"sql\\\":\\\"SELECT cooler, MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? AND fs1_mean > ?) GROUP BY cooler ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[172.56377,6.68926,2],\\\"sql\\\":\\\"SELECT cooler, MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? AND fs1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[172.56377,6.68926,2],\\\"sql\\\":\\\"SELECT cooler, MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? AND fs1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value ASC, cooler ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[100,2555.55997],[3,2538.92917]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? AND fs1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5","sql_parameters":"[172.56377,6.68926,2]","state":"{\"question\":\"Return the maximum of eps1_mean for hydraulic cycles where (ps1_mean is at most 172.56377 and fs1_mean is greater than 6.68926), 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_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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}400{"category":"single_table/and/grouped","domain":"commerce","family_id":"20319910906d6b9af0536333","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"bf6219b614d403845982e5b644ee22dd57607832de32b215d8b6e9a9d74cb970","language":"en","license":"CC-BY-4.0","query":"Return the average of product_related for shopping sessions where (region equals 4 and product_related is greater than 93), grouped by month, ordered by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[4,93],\\\"sql\\\":\\\"SELECT month, AVG(product_related) AS value FROM shopping_sessions WHERE (region = ? OR product_related > ?) GROUP BY month ORDER BY month ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[4,93],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (region = ? AND product_related > ?) GROUP BY month ORDER BY month ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[4,93],\\\"sql\\\":\\\"SELECT month, AVG(product_related) AS value FROM shopping_sessions WHERE (region = ? AND product_related > ?) GROUP BY month ORDER BY month ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[4,93],\\\"sql\\\":\\\"SELECT month, SUM(product_related) AS value FROM shopping_sessions WHERE (region = ? AND product_related > ?) GROUP BY month ORDER BY month ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Aug\",130.0],[\"Dec\",149.27272727272728],[\"Jul\",143.0],[\"June\",193.0],[\"May\",121.0],[\"Nov\",148.36363636363637],[\"Oct\",187.88888888888889],[\"Sep\",232.25]]","source":"online_shoppers","split":"dev","sql":"SELECT month, AVG(product_related) AS value FROM shopping_sessions WHERE (region = ? AND product_related > ?) GROUP BY month ORDER BY month ASC","sql_parameters":"[4,93]","state":"{\"question\":\"Return the average of product_related for shopping sessions where (region equals 4 and product_related is greater than 93), grouped by month, ordered by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}401{"category":"join/date/and/having","domain":"commerce","family_id":"211772f0e8e64621bea3343d","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"796fb9456436c5115ca3a56f7a3ed07a589b1371b1ad8520d88a8b31512bf6c4","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail lines joined to their invoices where (i.customer_id equals '12359' and i.invoice_date is before '2010-02-18'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12359\\\",\\\"2010-02-18\\\",10],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR i.invoice_date < ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12359\\\",\\\"2010-02-18\\\",10],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? AND i.invoice_date < ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12359\\\",\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? AND i.invoice_date < ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[10],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","sql":"SELECT i.invoice_date, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? AND i.invoice_date < ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3","sql_parameters":"[\"12359\",\"2010-02-18\",10]","state":"{\"question\":\"Return the number of rows for retail lines joined to their invoices where (i.customer_id equals '12359' and i.invoice_date is before '2010-02-18'), 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_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}402{"category":"join/or/aggregate","domain":"commerce","family_id":"7cff13acfc3a32f923a621fa","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"532d0ef507c5bec84fdba5f3b1e5386ff8cb1175e15b181a4a07128acbccc038","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.quantity for retail lines joined to their invoices where (i.country equals 'Denmark' or i.customer_id equals '12356').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Denmark\\\",\\\"12356\\\"],\\\"sql\\\":\\\"SELECT SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND i.customer_id = ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Denmark\\\",\\\"12356\\\"],\\\"sql\\\":\\\"SELECT SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR i.customer_id = ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Denmark\\\",\\\"12356\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR i.customer_id = ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Denmark\\\",\\\"12356\\\"],\\\"sql\\\":\\\"SELECT AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR i.customer_id = ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[902]]","source":"online_retail_ii","split":"dev","sql":"SELECT SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR i.customer_id = ?)","sql_parameters":"[\"Denmark\",\"12356\"]","state":"{\"question\":\"Return the sum of l.quantity for retail lines joined to their invoices where (i.country equals 'Denmark' or i.customer_id equals '12356').\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}403{"category":"single_table/and/ranked","domain":"sensor","family_id":"f72c92d3f7277b49067dbb7d","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"87a77f2828773985f034a1e11cd035e53d2c9dfe26548beb9351a14d4d977eec","language":"en","license":"CC-BY-4.0","query":"Return the maximum of vs1_mean for hydraulic cycles where (fs1_mean is greater than 6.68926 and vs1_mean is at most 0.61133), grouped by cooler; return at most 3 groups ordered by aggregate value ASC, breaking ties by cooler ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[6.68926,0.61133],\\\"sql\\\":\\\"SELECT cooler, MAX(vs1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ? AND vs1_mean <= ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[6.68926,0.61133],\\\"sql\\\":\\\"SELECT cooler, MAX(vs1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ? OR vs1_mean <= ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[6.68926,0.61133],\\\"sql\\\":\\\"SELECT cooler, MAX(vs1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ? AND vs1_mean <= ?) GROUP BY cooler ORDER BY value DESC, cooler ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[6.68926,0.61133],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (fs1_mean > ? AND vs1_mean <= ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[100,0.57483],[3,0.57737],[20,0.59597]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, MAX(vs1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ? AND vs1_mean <= ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 3","sql_parameters":"[6.68926,0.61133]","state":"{\"question\":\"Return the maximum of vs1_mean for hydraulic cycles where (fs1_mean is greater than 6.68926 and vs1_mean is at most 0.61133), 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\",\"cycle_id\":\"INTEGER\",\"eps1_mean\":\"REAL\",\"fs1_mean\":\"REAL\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}404{"category":"single_table/having","domain":"commerce","family_id":"304d0e4519767e0560f2c430","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"1190214d0479820a4c1e8ae6d0e00105593d3050a4ffa907257f6986faa01a25","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (country equals 'Cyprus'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",2],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",2],\\\"sql\\\":\\\"SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (country = ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",2],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (country = ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",2],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (country = ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Cyprus\",7.95]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (country = ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5","sql_parameters":"[\"Cyprus\",2]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines where (country equals 'Cyprus'), 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_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}405{"category":"single_table/date/or/having","domain":"commerce","family_id":"bddf51817038891670b21427","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"62af9381e06faf016b14ff360a443c79d587c615eb730867d88e671863290bac","language":"en","license":"CC-BY-4.0","query":"Return the sum of unit_price for retail invoice lines where (quantity is at most 229 or invoice_date is before '2010-12-02'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[229,\\\"2010-12-02\\\",2],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[229,\\\"2010-12-02\\\",2],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[229,\\\"2010-12-02\\\",2],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[229,\\\"2010-12-02\\\",2],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"United Kingdom\",98950.83],[\"Singapore\",10105.83],[\"EIRE\",4585.03],[\"Germany\",4111.96],[\"France\",1184.68]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5","sql_parameters":"[229,\"2010-12-02\",2]","state":"{\"question\":\"Return the sum of unit_price for retail invoice lines where (quantity is at most 229 or invoice_date is before '2010-12-02'), 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_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}406{"category":"single_table/or/aggregate","domain":"commerce","family_id":"90d367864b8b6bdd4e63532a","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"5a769b8297fd74a27dd7faa9fee770c81b48587669bca6f0e6c67b107556f8c5","language":"en","license":"CC-BY-4.0","query":"Return the average of product_duration for shopping sessions where (region equals 5 or product_related is greater than 226).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[5,226],\\\"sql\\\":\\\"SELECT AVG(product_duration) AS value FROM shopping_sessions WHERE (region = ? AND product_related > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[5,226],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (region = ? OR product_related > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[5,226],\\\"sql\\\":\\\"SELECT AVG(product_duration) AS value FROM shopping_sessions WHERE (region = ? OR product_related > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[5,226],\\\"sql\\\":\\\"SELECT SUM(product_duration) AS value FROM shopping_sessions WHERE (region = ? OR product_related > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[3968.5534029773257]]","source":"online_shoppers","split":"dev","sql":"SELECT AVG(product_duration) AS value FROM shopping_sessions WHERE (region = ? OR product_related > ?)","sql_parameters":"[5,226]","state":"{\"question\":\"Return the average of product_duration for shopping sessions where (region equals 5 or 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\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}407{"category":"single_table/or/aggregate","domain":"sensor","family_id":"49ff465f8158cd8e7f446a80","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"2cc685e1889bca84f3603dbb212eae44b2176d4821efaa17c393ba6afd7e56be","language":"en","license":"CC-BY-4.0","query":"Return the sum of vs1_mean for hydraulic cycles where (cooler equals 100 or pump_leakage equals 0).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[100,0],\\\"sql\\\":\\\"SELECT SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? AND pump_leakage = ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[100,0],\\\"sql\\\":\\\"SELECT SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? OR pump_leakage = ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[100,0],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (cooler = ? OR pump_leakage = ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[100,0],\\\"sql\\\":\\\"SELECT AVG(vs1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? OR pump_leakage = ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[917.30392]]","source":"hydraulic","split":"dev","sql":"SELECT SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? OR pump_leakage = ?)","sql_parameters":"[100,0]","state":"{\"question\":\"Return the sum of vs1_mean for hydraulic cycles where (cooler equals 100 or pump_leakage equals 0).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}408{"category":"join/distinct_invoice/or/grouped","domain":"commerce","family_id":"3d4d4d768f9cb28048cf1160","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"7922d8f857a5083da152b9dfdccd66db335cbe333edd4a40b9179dd00ba9d400","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.country equals 'Austria' or l.quantity is greater than 648), grouped by i.invoice_date, ordered by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Austria\\\",648],\\\"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 = ? OR l.quantity > ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Austria\\\",648],\\\"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 i.invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Austria\\\",648],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) 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 i.invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Austria\\\",648],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.quantity) 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 i.invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-03\",1],[\"2009-12-08\",1],[\"2010-01-07\",1],[\"2010-01-12\",1],[\"2010-01-27\",1],[\"2010-02-07\",1],[\"2010-02-17\",1],[\"2010-02-19\",1],[\"2010-03-18\",1],[\"2010-03-19\",1],[\"2010-03-23\",2],[\"2010-03-25\",1],[\"2010-03-29\",1],[\"2010-04-06\",1],[\"2010-04-11\",1],[\"2010-04-16\",1],[\"2010-04-19\",1],[\"2010-04-29\",1],[\"2010-05-07\",1],[\"2010-05-12\",2],[\"2010-05-14\",1],[\"2010-05-18\",1],[\"2010-05-25\",1],[\"2010-05-26\",1],[\"2010-06-07\",5],[\"2010-06-08\",1],[\"2010-06-23\",1],[\"2010-06-28\",1],[\"2010-06-30\",1],[\"2010-07-15\",1],[\"2010-08-03\",1],[\"2010-08-15\",1],[\"2010-08-19\",1],[\"2010-08-24\",1],[\"2010-08-25\",1],[\"2010-09-03\",2],[\"2010-09-13\",1],[\"2010-09-20\",1],[\"2010-09-26\",1],[\"2010-09-27\",1],[\"2010-10-04\",1],[\"2010-10-06\",1],[\"2010-10-08\",2],[\"2010-10-12\",1],[\"2010-10-22\",1],[\"2010-11-04\",2],[\"2010-11-05\",1],[\"2010-11-10\",1],[\"2010-11-11\",1],[\"2010-11-12\",1],[\"2010-11-17\",1],[\"2010-11-19\",1],[\"2010-12-02\",2],[\"2010-12-03\",2],[\"2010-12-07\",2],[\"2010-12-09\",2],[\"2010-12-20\",1],[\"2011-01-11\",3],[\"2011-01-26\",1],[\"2011-02-03\",1],[\"2011-02-10\",1],[\"2011-02-15\",1],[\"2011-03-03\",1],[\"2011-03-04\",1],[\"2011-03-08\",1],[\"2011-03-17\",1],[\"2011-03-20\",1],[\"2011-04-01\",2],[\"2011-04-08\",1],[\"2011-04-13\",1],[\"2011-04-18\",1],[\"2011-04-20\",1],[\"2011-04-21\",1],[\"2011-04-26\",2],[\"2011-04-27\",1],[\"2011-05-06\",1],[\"2011-05-19\",1],[\"2011-05-23\",1],[\"2011-05-24\",1],[\"2011-05-31\",1],[\"2011-06-08\",1],[\"2011-06-14\",1],[\"2011-06-17\",1],[\"2011-06-30\",1],[\"2011-07-05\",1],[\"2011-07-06\",1],[\"2011-07-07\",1],[\"2011-07-17\",1],[\"2011-07-21\",1],[\"2011-08-02\",1],[\"2011-08-04\",2],[\"2011-08-08\",1],[\"2011-08-17\",1],[\"2011-08-18\",1],[\"2011-08-24\",1],[\"2011-09-02\",1],[\"2011-09-04\",1],[\"2011-10-03\",1],[\"2011-10-04\",1],[\"2011-10-07\",1],[\"2011-10-24\",1],[\"2011-10-25\",1],[\"2011-10-27\",1],[\"2011-11-02\",1],[\"2011-11-03\",1],[\"2011-11-09\",1],[\"2011-11-15\",1],[\"2011-11-22\",1],[\"2011-11-28\",1],[\"2011-12-05\",1]]","source":"online_retail_ii","split":"dev","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 = ? OR l.quantity > ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC","sql_parameters":"[\"Austria\",648]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.country equals 'Austria' or l.quantity is greater than 648), grouped by i.invoice_date, ordered by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}409{"category":"join/date/or/having","domain":"commerce","family_id":"f77c7f0656fcaba598cb9faf","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"4cd8011e9e2397505bd459a27c46f76a478bdec9e6ef192a4b4b97839f4079a1","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.unit_price for retail lines joined to their invoices where (l.unit_price is at most 0.55 or i.invoice_date is before '2010-02-18'), grouped by i.invoice_date, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[0.55,\\\"2010-02-18\\\",2],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.unit_price) 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 HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[0.55,\\\"2010-02-18\\\",2],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(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.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[0.55,\\\"2010-02-18\\\",2],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(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.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[0.55,\\\"2010-02-18\\\",2],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) 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 HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-09\",479.06],[\"2009-12-03\",442.63],[\"2009-12-15\",328.57],[\"2009-12-17\",327.24],[\"2009-12-02\",323.13]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.invoice_date, SUM(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.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5","sql_parameters":"[0.55,\"2010-02-18\",2]","state":"{\"question\":\"Return the sum of l.unit_price for retail lines joined to their invoices where (l.unit_price is at most 0.55 or i.invoice_date is before '2010-02-18'), grouped by i.invoice_date, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}410{"category":"single_table/and/having","domain":"commerce","family_id":"eba2457535bd23632c2155de","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"a914e273ccade697f5aff74b444cf61ffda32b1fa45508eda749fb6bc85e3720","language":"en","license":"CC-BY-4.0","query":"Return the minimum of administrative for shopping sessions where (administrative is at most 23 and product_duration is greater than 167.5), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[23,167.5,10],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (administrative <= ? AND product_duration > ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[23,167.5,10],\\\"sql\\\":\\\"SELECT revenue, SUM(administrative) AS value FROM shopping_sessions WHERE (administrative <= ? AND product_duration > ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[23,167.5,10],\\\"sql\\\":\\\"SELECT revenue, AVG(administrative) AS value FROM shopping_sessions WHERE (administrative <= ? AND product_duration > ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[23,167.5,10],\\\"sql\\\":\\\"SELECT revenue, MIN(administrative) AS value FROM shopping_sessions WHERE (administrative <= ? AND product_duration > ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,0],[1,0]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, MIN(administrative) AS value FROM shopping_sessions WHERE (administrative <= ? AND product_duration > ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3","sql_parameters":"[23,167.5,10]","state":"{\"question\":\"Return the minimum of administrative for shopping sessions where (administrative is at most 23 and product_duration is greater than 167.5), 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\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}411{"category":"single_table/and/aggregate","domain":"commerce","family_id":"de1344b7deb9fe1cf44cda1f","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"dcc839a904f525dc8e54e33a216afcb7e3d68ad4a78db8472031f3e96584fd52","language":"en","license":"CC-BY-4.0","query":"Return the minimum of product_related for shopping sessions where (product_related is greater than 31 and product_duration is greater than 1564.0).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[31,1564.0],\\\"sql\\\":\\\"SELECT MIN(product_related) AS value FROM shopping_sessions WHERE (product_related > ? OR product_duration > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[31,1564.0],\\\"sql\\\":\\\"SELECT MIN(product_related) AS value FROM shopping_sessions WHERE (product_related > ? AND product_duration > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[31,1564.0],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (product_related > ? AND product_duration > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[31,1564.0],\\\"sql\\\":\\\"SELECT SUM(product_related) AS value FROM shopping_sessions WHERE (product_related > ? AND product_duration > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[32]]","source":"online_shoppers","split":"dev","sql":"SELECT MIN(product_related) AS value FROM shopping_sessions WHERE (product_related > ? AND product_duration > ?)","sql_parameters":"[31,1564.0]","state":"{\"question\":\"Return the minimum of product_related for shopping sessions where (product_related is greater than 31 and product_duration is greater than 1564.0).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}412{"category":"join/aggregate","domain":"commerce","family_id":"a286c939813c3ad57c6bd03d","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"8a2403e0b12dc5b19fdf1465b3bce723fd870fc644894d0cd5f865d3f0cae7b4","language":"en","license":"CC-BY-4.0","query":"Return the average of l.unit_price for retail lines joined to their invoices where (i.customer_id equals '12346').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12346\\\"],\\\"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 = ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12346\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12346\\\"],\\\"sql\\\":\\\"SELECT SUM(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12346\\\"],\\\"sql\\\":\\\"SELECT MIN(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[5.41]]","source":"online_retail_ii","split":"dev","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 = ?)","sql_parameters":"[\"12346\"]","state":"{\"question\":\"Return the average of l.unit_price for retail lines joined to their invoices where (i.customer_id equals '12346').\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}413{"category":"join/distinct_invoice/or/ranked","domain":"commerce","family_id":"97a7b831a820e5f31fba2187","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"1a40c851d16c68feda83b546882c694a68f3e5ae46289da1f9b86315e447eb9c","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.country equals 'Canada' or l.quantity is at most 229), grouped by i.country; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Canada\\\",229],\\\"sql\\\":\\\"SELECT i.country, 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.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Canada\\\",229],\\\"sql\\\":\\\"SELECT i.country, 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.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Canada\\\",229],\\\"sql\\\":\\\"SELECT i.country, 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.country ORDER BY value ASC, i.country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Canada\\\",229],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR l.quantity <= ?) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"United Kingdom\",6487],[\"Germany\",121],[\"France\",60],[\"EIRE\",53],[\"Netherlands\",36]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, 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.country ORDER BY value DESC, i.country ASC LIMIT 5","sql_parameters":"[\"Canada\",229]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.country equals 'Canada' or l.quantity is at most 229), grouped by i.country; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}414{"category":"single_table/grouped","domain":"sensor","family_id":"c074c0521d173876d39e2f28","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"dc406d3edb18aa6cd3549d888894f05caa6bb9e8b75375dda81265dbb8ee4c72","language":"en","license":"CC-BY-4.0","query":"Return the average of ps2_mean for hydraulic cycles where (fs1_mean is greater than 6.57291), grouped by cooler, ordered by cooler ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[6.57291],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (fs1_mean > ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[6.57291],\\\"sql\\\":\\\"SELECT cooler, SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[6.57291],\\\"sql\\\":\\\"SELECT cooler, AVG(ps2_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[6.57291],\\\"sql\\\":\\\"SELECT cooler, MIN(ps2_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[3,106.41983042345277],[20,107.40494687344913],[100,109.46675498789345]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, AVG(ps2_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ?) GROUP BY cooler ORDER BY cooler ASC","sql_parameters":"[6.57291]","state":"{\"question\":\"Return the average of ps2_mean for hydraulic cycles where (fs1_mean is greater than 6.57291), grouped by cooler, ordered by cooler ascending.\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}415{"category":"join/or/grouped","domain":"commerce","family_id":"4a6a6e19fca5bdab76838720","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"7b22ce94e8771932c6112ca7c43b3ad8d1ba0a3ccdad7d42691c337a14fe8db5","language":"en","license":"CC-BY-4.0","query":"Return the maximum of l.unit_price for retail lines joined to their invoices where (i.country equals 'EIRE' or l.unit_price is at most 0.55), grouped by i.invoice_date, ordered by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"EIRE\\\",0.55],\\\"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 = ? OR l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"EIRE\\\",0.55],\\\"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 l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"EIRE\\\",0.55],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"EIRE\\\",0.55],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-01\",0.55],[\"2009-12-02\",0.42],[\"2009-12-03\",0.55],[\"2009-12-04\",0.42],[\"2009-12-05\",0.38],[\"2009-12-06\",0.42],[\"2009-12-07\",50.0],[\"2009-12-08\",0.42],[\"2009-12-09\",0.42],[\"2009-12-10\",0.38],[\"2009-12-11\",0.42],[\"2009-12-13\",0.42],[\"2009-12-14\",0.42],[\"2009-12-15\",0.55],[\"2009-12-16\",0.55],[\"2009-12-17\",0.42],[\"2009-12-18\",0.42],[\"2009-12-20\",0.42],[\"2009-12-21\",0.42],[\"2009-12-22\",0.42],[\"2009-12-23\",0.38],[\"2010-01-04\",0.42],[\"2010-01-08\",0.55],[\"2010-01-11\",0.42],[\"2010-01-12\",0.38],[\"2010-01-13\",0.36],[\"2010-01-14\",0.42],[\"2010-01-15\",0.55],[\"2010-01-18\",0.42],[\"2010-01-19\",0.42],[\"2010-01-20\",1.45],[\"2010-01-21\",0.55],[\"2010-01-24\",0.42],[\"2010-01-26\",0.3],[\"2010-01-27\",0.42],[\"2010-01-29\",0.55],[\"2010-01-31\",0.42],[\"2010-02-01\",0.55],[\"2010-02-04\",0.42],[\"2010-02-05\",0.42],[\"2010-02-07\",0.42],[\"2010-02-08\",0.42],[\"2010-02-09\",0.36],[\"2010-02-10\",0.55],[\"2010-02-11\",0.55],[\"2010-02-12\",0.4],[\"2010-02-14\",0.42],[\"2010-02-15\",0.55],[\"2010-02-17\",2.55],[\"2010-02-18\",0.42],[\"2010-02-19\",0.21],[\"2010-02-21\",0.42],[\"2010-02-22\",0.42],[\"2010-02-24\",0.42],[\"2010-02-25\",0.55],[\"2010-02-26\",0.42],[\"2010-02-28\",0.36],[\"2010-03-01\",0.42],[\"2010-03-02\",0.38],[\"2010-03-03\",12.75],[\"2010-03-05\",0.55],[\"2010-03-08\",0.5],[\"2010-03-09\",0.42],[\"2010-03-10\",0.42],[\"2010-03-11\",0.55],[\"2010-03-12\",0.55],[\"2010-03-15\",0.42],[\"2010-03-17\",0.55],[\"2010-03-18\",2.55],[\"2010-03-19\",0.42],[\"2010-03-21\",0.42],[\"2010-03-23\",0.5],[\"2010-03-25\",0.55],[\"2010-03-26\",0.29],[\"2010-03-28\",0.29],[\"2010-03-29\",0.29],[\"2010-03-31\",0.42],[\"2010-04-01\",0.5],[\"2010-04-06\",0.42],[\"2010-04-07\",0.1],[\"2010-04-08\",0.55],[\"2010-04-11\",0.55],[\"2010-04-12\",0.55],[\"2010-04-13\",1.25],[\"2010-04-14\",0.42],[\"2010-04-15\",0.29],[\"2010-04-16\",0.55],[\"2010-04-18\",0.55],[\"2010-04-19\",0.09],[\"2010-04-21\",0.42],[\"2010-04-22\",9.95],[\"2010-04-23\",0.42],[\"2010-04-26\",0.42],[\"2010-04-27\",0.42],[\"2010-04-28\",0.55],[\"2010-04-29\",0.55],[\"2010-05-02\",0.42],[\"2010-05-05\",0.55],[\"2010-05-06\",0.55],[\"2010-05-07\",0.55],[\"2010-05-09\",0.42],[\"2010-05-10\",0.42],[\"2010-05-11\",0.42],[\"2010-05-12\",0.42],[\"2010-05-13\",0.42],[\"2010-05-14\",0.55],[\"2010-05-16\",0.42],[\"2010-05-18\",0.5],[\"2010-05-19\",0.55],[\"2010-05-20\",0.42],[\"2010-05-23\",0.55],[\"2010-05-24\",0.42],[\"2010-05-25\",0.4],[\"2010-05-26\",0.53],[\"2010-05-27\",0.42],[\"2010-05-28\",0.42],[\"2010-05-30\",0.55],[\"2010-06-01\",0.42],[\"2010-06-03\",0.55],[\"2010-06-04\",0.42],[\"2010-06-06\",0.55],[\"2010-06-07\",0.55],[\"2010-06-09\",0.42],[\"2010-06-10\",0.42],[\"2010-06-11\",0.42],[\"2010-06-13\",0.55],[\"2010-06-14\",0.55],[\"2010-06-15\",0.55],[\"2010-06-16\",0.42],[\"2010-06-17\",9.95],[\"2010-06-18\",0.55],[\"2010-06-20\",9.95],[\"2010-06-22\",0.42],[\"2010-06-23\",0.55],[\"2010-06-24\",0.55],[\"2010-06-25\",0.42],[\"2010-06-27\",0.42],[\"2010-06-28\",0.42],[\"2010-06-29\",0.55],[\"2010-06-30\",0.55],[\"2010-07-02\",0.55],[\"2010-07-04\",0.42],[\"2010-07-05\",0.42],[\"2010-07-06\",0.42],[\"2010-07-07\",0.42],[\"2010-07-08\",0.55],[\"2010-07-09\",3.81],[\"2010-07-12\",0.55],[\"2010-07-13\",0.38],[\"2010-07-14\",0.42],[\"2010-07-15\",0.42],[\"2010-07-16\",0.42],[\"2010-07-18\",0.36],[\"2010-07-19\",0.21],[\"2010-07-21\",0.42],[\"2010-07-22\",0.14],[\"2010-07-23\",0.55],[\"2010-07-25\",0.42],[\"2010-07-26\",0.55],[\"2010-07-27\",0.55],[\"2010-07-28\",0.42],[\"2010-07-29\",0.42],[\"2010-07-30\",0.42],[\"2010-08-02\",0.42],[\"2010-08-03\",0.18],[\"2010-08-04\",0.42],[\"2010-08-05\",0.42],[\"2010-08-08\",0.29],[\"2010-08-09\",0.42],[\"2010-08-11\",0.14],[\"2010-08-13\",0.55],[\"2010-08-15\",0.55],[\"2010-08-16\",0.38],[\"2010-08-17\",0.55],[\"2010-08-18\",0.21],[\"2010-08-19\",1.45],[\"2010-08-23\",9.95],[\"2010-08-24\",0.42],[\"2010-08-25\",0.42],[\"2010-08-27\",0.42],[\"2010-08-29\",0.42],[\"2010-08-31\",0.42],[\"2010-09-01\",0.55],[\"2010-09-02\",0.55],[\"2010-09-03\",0.55],[\"2010-09-05\",0.55],[\"2010-09-07\",0.42],[\"2010-09-08\",0.42],[\"2010-09-09\",0.42],[\"2010-09-10\",0.42],[\"2010-09-12\",2.55],[\"2010-09-13\",0.42],[\"2010-09-14\",0.29],[\"2010-09-15\",0.55],[\"2010-09-16\",0.42],[\"2010-09-17\",0.38],[\"2010-09-19\",0.42],[\"2010-09-20\",0.55],[\"2010-09-21\",0.55],[\"2010-09-24\",0.29],[\"2010-09-26\",0.55],[\"2010-09-27\",0.36],[\"2010-09-28\",0.42],[\"2010-09-29\",50.0],[\"2010-09-30\",0.55],[\"2010-10-03\",0.42],[\"2010-10-04\",0.42],[\"2010-10-05\",0.55],[\"2010-10-06\",50.0],[\"2010-10-08\",0.42],[\"2010-10-10\",0.42],[\"2010-10-11\",0.42],[\"2010-10-12\",0.55],[\"2010-10-13\",0.42],[\"2010-10-14\",0.53],[\"2010-10-15\",0.53],[\"2010-10-18\",0.55],[\"2010-10-19\",0.29],[\"2010-10-20\",0.42],[\"2010-10-21\",0.55],[\"2010-10-22\",1.95],[\"2010-10-24\",0.42],[\"2010-10-25\",0.29],[\"2010-10-26\",8.5],[\"2010-10-28\",0.55],[\"2010-10-29\",0.42],[\"2010-11-01\",0.42],[\"2010-11-02\",0.42],[\"2010-11-03\",50.0],[\"2010-11-04\",0.55],[\"2010-11-05\",0.42],[\"2010-11-07\",0.42],[\"2010-11-08\",0.42],[\"2010-11-09\",50.0],[\"2010-11-10\",0.55],[\"2010-11-11\",0.42],[\"2010-11-12\",0.42],[\"2010-11-15\",0.42],[\"2010-11-16\",0.42],[\"2010-11-17\",0.55],[\"2010-11-18\",0.42],[\"2010-11-19\",12.75],[\"2010-11-22\",0.55],[\"2010-11-23\",0.55],[\"2010-11-24\",0.55],[\"2010-11-25\",0.55],[\"2010-11-26\",0.12],[\"2010-11-28\",0.29],[\"2010-11-29\",0.42],[\"2010-11-30\",0.55],[\"2010-12-01\",0.55],[\"2010-12-02\",0.55],[\"2010-12-03\",0.85],[\"2010-12-06\",0.55],[\"2010-12-07\",0.42],[\"2010-12-08\",0.55],[\"2010-12-09\",0.55],[\"2010-12-10\",0.42],[\"2010-12-12\",0.42],[\"2010-12-13\",0.42],[\"2010-12-14\",0.55],[\"2010-12-15\",0.19],[\"2010-12-16\",0.42],[\"2010-12-17\",0.42],[\"2010-12-20\",0.42],[\"2010-12-22\",0.42],[\"2011-01-04\",0.42],[\"2011-01-05\",0.42],[\"2011-01-06\",0.55],[\"2011-01-07\",0.42],[\"2011-01-11\",0.42],[\"2011-01-12\",0.42],[\"2011-01-13\",0.42],[\"2011-01-17\",0.42],[\"2011-01-23\",0.42],[\"2011-01-24\",0.42],[\"2011-01-25\",0.55],[\"2011-01-26\",0.55],[\"2011-01-28\",0.42],[\"2011-01-31\",0.42],[\"2011-02-01\",0.42],[\"2011-02-02\",0.55],[\"2011-02-03\",0.21],[\"2011-02-04\",0.42],[\"2011-02-07\",0.42],[\"2011-02-10\",0.55],[\"2011-02-11\",0.32],[\"2011-02-15\",0.5],[\"2011-02-16\",0.42],[\"2011-02-17\",0.39],[\"2011-02-18\",0.55],[\"2011-02-20\",0.42],[\"2011-02-21\",9.95],[\"2011-02-22\",0.42],[\"2011-02-23\",0.42],[\"2011-02-24\",0.42],[\"2011-02-25\",0.42],[\"2011-02-28\",0.42],[\"2011-03-01\",12.75],[\"2011-03-02\",0.34],[\"2011-03-03\",0.42],[\"2011-03-04\",0.36],[\"2011-03-06\",0.42],[\"2011-03-07\",0.42],[\"2011-03-08\",0.25],[\"2011-03-09\",0.42],[\"2011-03-10\",14.95],[\"2011-03-11\",0.42],[\"2011-03-15\",0.42],[\"2011-03-16\",0.42],[\"2011-03-17\",0.5],[\"2011-03-18\",0.42],[\"2011-03-20\",0.25],[\"2011-03-21\",0.55],[\"2011-03-23\",0.42],[\"2011-03-24\",0.42],[\"2011-03-25\",0.29],[\"2011-03-27\",0.42],[\"2011-03-28\",0.39],[\"2011-03-29\",0.42],[\"2011-03-30\",0.42],[\"2011-03-31\",0.55],[\"2011-04-01\",0.42],[\"2011-04-03\",0.21],[\"2011-04-04\",0.21],[\"2011-04-05\",0.2],[\"2011-04-07\",0.39],[\"2011-04-08\",0.42],[\"2011-04-12\",0.55],[\"2011-04-13\",0.42],[\"2011-04-14\",0.42],[\"2011-04-18\",0.42],[\"2011-04-19\",0.55],[\"2011-04-20\",0.42],[\"2011-04-21\",0.42],[\"2011-04-26\",0.55],[\"2011-04-27\",50.0],[\"2011-04-28\",0.42],[\"2011-05-03\",0.42],[\"2011-05-04\",0.42],[\"2011-05-05\",0.55],[\"2011-05-06\",0.42],[\"2011-05-08\",0.55],[\"2011-05-10\",14.95],[\"2011-05-11\",0.42],[\"2011-05-13\",0.55],[\"2011-05-16\",0.29],[\"2011-05-17\",0.42],[\"2011-05-18\",0.42],[\"2011-05-19\",0.55],[\"2011-05-20\",0.55],[\"2011-05-22\",0.5],[\"2011-05-23\",0.55],[\"2011-05-24\",0.55],[\"2011-05-25\",0.42],[\"2011-05-26\",0.42],[\"2011-05-27\",0.55],[\"2011-05-29\",0.21],[\"2011-05-31\",0.29],[\"2011-06-01\",0.19],[\"2011-06-02\",0.42],[\"2011-06-03\",0.55],[\"2011-06-05\",0.55],[\"2011-06-06\",0.42],[\"2011-06-07\",0.42],[\"2011-06-08\",0.55],[\"2011-06-09\",0.55],[\"2011-06-13\",0.55],[\"2011-06-14\",0.55],[\"2011-06-15\",2.49],[\"2011-06-16\",0.55],[\"2011-06-17\",0.55],[\"2011-06-19\",0.42],[\"2011-06-20\",1917.0],[\"2011-06-21\",25.0],[\"2011-06-22\",0.42],[\"2011-06-23\",0.42],[\"2011-06-24\",1.45],[\"2011-06-27\",0.42],[\"2011-06-28\",0.55],[\"2011-06-29\",14.95],[\"2011-06-30\",0.42],[\"2011-07-01\",50.0],[\"2011-07-04\",0.42],[\"2011-07-05\",0.42],[\"2011-07-06\",0.42],[\"2011-07-07\",0.55],[\"2011-07-10\",0.55],[\"2011-07-11\",0.55],[\"2011-07-12\",0.39],[\"2011-07-13\",0.39],[\"2011-07-15\",0.42],[\"2011-07-17\",0.42],[\"2011-07-18\",0.42],[\"2011-07-19\",1.45],[\"2011-07-20\",0.55],[\"2011-07-21\",0.42],[\"2011-07-22\",0.55],[\"2011-07-24\",0.42],[\"2011-07-25\",0.55],[\"2011-07-26\",0.42],[\"2011-07-27\",4.95],[\"2011-07-28\",0.55],[\"2011-07-29\",0.39],[\"2011-08-01\",0.42],[\"2011-08-02\",0.42],[\"2011-08-03\",0.25],[\"2011-08-04\",0.42],[\"2011-08-05\",0.42],[\"2011-08-07\",0.42],[\"2011-08-08\",0.55],[\"2011-08-10\",0.42],[\"2011-08-11\",0.55],[\"2011-08-15\",0.55],[\"2011-08-16\",0.42],[\"2011-08-17\",0.55],[\"2011-08-18\",0.55],[\"2011-08-19\",0.42],[\"2011-08-21\",0.55],[\"2011-08-22\",0.36],[\"2011-08-23\",0.42],[\"2011-08-24\",0.42],[\"2011-08-28\",0.42],[\"2011-08-30\",0.42],[\"2011-09-01\",0.55],[\"2011-09-02\",0.55],[\"2011-09-04\",4.15],[\"2011-09-05\",3.45],[\"2011-09-06\",4.95],[\"2011-09-07\",0.55],[\"2011-09-08\",0.55],[\"2011-09-09\",0.36],[\"2011-09-12\",0.42],[\"2011-09-13\",0.42],[\"2011-09-14\",0.42],[\"2011-09-15\",50.0],[\"2011-09-16\",0.39],[\"2011-09-18\",0.39],[\"2011-09-19\",0.55],[\"2011-09-20\",0.29],[\"2011-09-21\",0.55],[\"2011-09-22\",0.42],[\"2011-09-23\",0.29],[\"2011-09-25\",0.42],[\"2011-09-26\",0.39],[\"2011-09-27\",0.42],[\"2011-09-28\",9.95],[\"2011-09-29\",0.42],[\"2011-09-30\",50.0],[\"2011-10-02\",0.55],[\"2011-10-03\",0.55],[\"2011-10-04\",0.55],[\"2011-10-05\",0.55],[\"2011-10-06\",0.42],[\"2011-10-07\",0.42],[\"2011-10-10\",5.75],[\"2011-10-11\",50.0],[\"2011-10-12\",0.42],[\"2011-10-13\",0.55],[\"2011-10-14\",0.55],[\"2011-10-17\",9.95],[\"2011-10-18\",0.39],[\"2011-10-19\",0.55],[\"2011-10-20\",0.55],[\"2011-10-23\",0.39],[\"2011-10-24\",0.42],[\"2011-10-25\",0.42],[\"2011-10-26\",0.55],[\"2011-10-27\",0.32],[\"2011-10-28\",0.39],[\"2011-10-30\",0.55],[\"2011-10-31\",0.42],[\"2011-11-01\",0.39],[\"2011-11-02\",0.42],[\"2011-11-03\",0.55],[\"2011-11-04\",0.42],[\"2011-11-07\",50.0],[\"2011-11-08\",0.42],[\"2011-11-09\",0.42],[\"2011-11-10\",0.55],[\"2011-11-11\",0.55],[\"2011-11-14\",0.36],[\"2011-11-15\",8.95],[\"2011-11-16\",50.0],[\"2011-11-17\",0.55],[\"2011-11-18\",0.42],[\"2011-11-20\",0.55],[\"2011-11-21\",0.29],[\"2011-11-22\",0.5],[\"2011-11-23\",0.55],[\"2011-11-24\",0.42],[\"2011-11-25\",50.0],[\"2011-11-28\",0.42],[\"2011-11-29\",0.42],[\"2011-11-30\",0.55],[\"2011-12-01\",0.42],[\"2011-12-02\",0.42],[\"2011-12-04\",0.42],[\"2011-12-05\",8.5],[\"2011-12-06\",0.42],[\"2011-12-07\",0.55],[\"2011-12-08\",0.39]]","source":"online_retail_ii","split":"dev","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 = ? OR l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC","sql_parameters":"[\"EIRE\",0.55]","state":"{\"question\":\"Return the maximum of l.unit_price for retail lines joined to their invoices where (i.country equals 'EIRE' 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_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}416{"category":"single_table/having","domain":"commerce","family_id":"e07624973d66e9a1534a4fe1","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"c956d0093e877f6b39e4d2c50ef3d24420e9fb85707150e02d8db1823767cf43","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for shopping sessions where (product_related is at most 155), grouped by revenue, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by revenue ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[155,2],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (product_related <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[155,2],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (product_related <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[155,2],\\\"sql\\\":\\\"SELECT revenue, SUM(administrative) AS value FROM shopping_sessions WHERE (product_related <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[155,2],\\\"sql\\\":\\\"SELECT revenue, AVG(administrative) AS value FROM shopping_sessions WHERE (product_related <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,10248],[1,1808]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (product_related <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 5","sql_parameters":"[155,2]","state":"{\"question\":\"Return the number of rows for shopping sessions where (product_related is at most 155), grouped by revenue, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by revenue ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}417{"category":"single_table/or/ranked","domain":"sensor","family_id":"8824b20925c919718e489e87","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"dd08c2126dbc6e1a9705418505b2aa9976b4eafbfc756380eeb22c26ed394e91","language":"en","license":"CC-BY-4.0","query":"Return the maximum of fs1_mean for hydraulic cycles where (pump_leakage equals 1 or fs1_mean is at most 6.41875), grouped by valve; return at most 5 groups ordered by aggregate value DESC, breaking ties by valve ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[1,6.41875],\\\"sql\\\":\\\"SELECT valve, MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? AND fs1_mean <= ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[1,6.41875],\\\"sql\\\":\\\"SELECT valve, MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? OR fs1_mean <= ?) GROUP BY valve ORDER BY value ASC, valve ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[1,6.41875],\\\"sql\\\":\\\"SELECT valve, MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? OR fs1_mean <= ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[1,6.41875],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? OR fs1_mean <= ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[100,6.53533],[90,6.52959],[80,6.51384],[73,6.49375]]","source":"hydraulic","split":"dev","sql":"SELECT valve, MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? OR fs1_mean <= ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 5","sql_parameters":"[1,6.41875]","state":"{\"question\":\"Return the maximum of fs1_mean for hydraulic cycles where (pump_leakage equals 1 or fs1_mean is at most 6.41875), grouped by valve; return at most 5 groups ordered by aggregate value DESC, breaking ties by valve ascending.\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}418{"category":"single_table/or/aggregate","domain":"commerce","family_id":"b0977ab0737770cdd1c951c1","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"fac946c71603334f374fb325922f67c1bd82bc0a568552dd66e0790edd7728d3","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (quantity is greater than 92 or unit_price is greater than 2.25).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[92,2.25],\\\"sql\\\":\\\"SELECT MAX(unit_price) AS value FROM retail_lines WHERE (quantity > ? AND unit_price > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[92,2.25],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (quantity > ? OR unit_price > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[92,2.25],\\\"sql\\\":\\\"SELECT SUM(unit_price) AS value FROM retail_lines WHERE (quantity > ? OR unit_price > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[92,2.25],\\\"sql\\\":\\\"SELECT MAX(unit_price) AS value FROM retail_lines WHERE (quantity > ? OR unit_price > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[3949.32]]","source":"online_retail_ii","split":"dev","sql":"SELECT MAX(unit_price) AS value FROM retail_lines WHERE (quantity > ? OR unit_price > ?)","sql_parameters":"[92,2.25]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines where (quantity is greater than 92 or unit_price is greater than 2.25).\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}419{"category":"single_table/and/ranked","domain":"sensor","family_id":"d28a8a3c9940f3b9839ac9eb","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"39c2444c611a2fa57ff4a5e8fb61439138563891fadbc78385537071e83aa086","language":"en","license":"CC-BY-4.0","query":"Return the sum of vs1_mean for hydraulic cycles where (eps1_mean is greater than 2598.8769 and 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2598.8769,35.56605],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(vs1_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\\\":[2598.8769,35.56605],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(vs1_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\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(vs1_mean) AS value FROM hydraulic_cycles GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2598.8769],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, SUM(vs1_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","sql_parameters":"[2598.8769,35.56605]","state":"{\"question\":\"Return the sum of vs1_mean for hydraulic cycles where (eps1_mean is greater than 2598.8769 and 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\",\"cooler\":\"INTEGER\",\"cycle_id\":\"INTEGER\",\"eps1_mean\":\"REAL\",\"fs1_mean\":\"REAL\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}420{"category":"single_table/and/having","domain":"commerce","family_id":"8719e601ad9ad50d87f74b0e","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"cc4ffc26f15436db6c4779e2db022d051cf4ffa346c7b90894342e2100852b9f","language":"en","license":"CC-BY-4.0","query":"Return the average of quantity for retail invoice lines where (country equals 'Denmark' and quantity is greater than 92), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Denmark\\\",92,2],\\\"sql\\\":\\\"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity > ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Denmark\\\",92,2],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND quantity > ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Denmark\\\",92,2],\\\"sql\\\":\\\"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (country = ? AND quantity > ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Denmark\\\",92,2],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (country = ? AND quantity > ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-10-07\",256.0]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (country = ? AND quantity > ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5","sql_parameters":"[\"Denmark\",92,2]","state":"{\"question\":\"Return the average of quantity for retail invoice lines where (country equals 'Denmark' and quantity is greater than 92), 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\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}421{"category":"single_table/having","domain":"sensor","family_id":"b530cf8660703dad44babb19","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"7301ad043705a23c07846f49320a917a57ddae1937836283c4055943a6533d13","language":"en","license":"CC-BY-4.0","query":"Return the sum of vs1_mean for hydraulic cycles where (fs1_mean is greater than 6.41875), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[6.41875,10],\\\"sql\\\":\\\"SELECT cooler, SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[6.41875,10],\\\"sql\\\":\\\"SELECT cooler, SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[6.41875,10],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (fs1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[6.41875,10],\\\"sql\\\":\\\"SELECT cooler, AVG(vs1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[3,254.67229],[100,336.48913],[20,336.7878]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value ASC, cooler ASC LIMIT 3","sql_parameters":"[6.41875,10]","state":"{\"question\":\"Return the sum of vs1_mean for hydraulic cycles where (fs1_mean is greater than 6.41875), 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\":\"INTEGER\",\"cooler\":\"INTEGER\",\"cycle_id\":\"INTEGER\",\"eps1_mean\":\"REAL\",\"fs1_mean\":\"REAL\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}422{"category":"single_table/date/and/grouped","domain":"commerce","family_id":"9f3e51e611ec96f8397367e4","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"ca170f1e917de0a91749fbc08bc8e26e5740fb6babe74fa0c5166ad1fa826c35","language":"en","license":"CC-BY-4.0","query":"Return the sum of unit_price for retail invoice lines where (unit_price is at most 49.95 and invoice_date is on or after '2010-02-18'), grouped by invoice_date, ordered by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[49.95,\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (unit_price <= ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[49.95,\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (unit_price <= ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[49.95,\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (unit_price <= ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[49.95,\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (unit_price <= ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-02-18\",115.9],[\"2010-02-19\",118.49],[\"2010-02-21\",49.26],[\"2010-02-22\",205.07],[\"2010-02-23\",206.51],[\"2010-02-24\",173.2],[\"2010-02-25\",194.48],[\"2010-02-26\",102.08],[\"2010-02-28\",194.66],[\"2010-03-01\",166.58],[\"2010-03-02\",99.24],[\"2010-03-03\",217.4],[\"2010-03-04\",128.68],[\"2010-03-05\",261.63],[\"2010-03-07\",65.5],[\"2010-03-08\",270.65],[\"2010-03-09\",159.07],[\"2010-03-10\",85.11],[\"2010-03-11\",107.32],[\"2010-03-12\",115.72],[\"2010-03-14\",79.31],[\"2010-03-15\",101.76],[\"2010-03-16\",89.98],[\"2010-03-17\",80.06],[\"2010-03-18\",275.37],[\"2010-03-19\",117.88],[\"2010-03-21\",105.2],[\"2010-03-22\",142.83],[\"2010-03-23\",159.64],[\"2010-03-24\",165.09],[\"2010-03-25\",150.36],[\"2010-03-26\",141.88],[\"2010-03-28\",22.24],[\"2010-03-29\",128.07999999999998],[\"2010-03-30\",170.98],[\"2010-03-31\",185.15],[\"2010-04-01\",91.81],[\"2010-04-06\",182.47],[\"2010-04-07\",110.33],[\"2010-04-08\",226.8],[\"2010-04-09\",75.24],[\"2010-04-11\",68.98],[\"2010-04-12\",179.17000000000002],[\"2010-04-13\",78.96],[\"2010-04-14\",129.97],[\"2010-04-15\",105.49000000000001],[\"2010-04-16\",114.16],[\"2010-04-18\",65.6],[\"2010-04-19\",275.21],[\"2010-04-20\",143.88],[\"2010-04-21\",104.64],[\"2010-04-22\",208.37],[\"2010-04-23\",230.78],[\"2010-04-25\",131.3],[\"2010-04-26\",207.38],[\"2010-04-27\",224.82],[\"2010-04-28\",109.2],[\"2010-04-29\",231.26],[\"2010-04-30\",187.32999999999998],[\"2010-05-02\",77.35],[\"2010-05-04\",108.49],[\"2010-05-05\",313.73],[\"2010-05-06\",242.60999999999999],[\"2010-05-07\",205.46],[\"2010-05-09\",198.89],[\"2010-05-10\",274.13],[\"2010-05-11\",118.28],[\"2010-05-12\",195.45],[\"2010-05-13\",97.51],[\"2010-05-14\",202.76],[\"2010-05-16\",46.04],[\"2010-05-17\",74.0],[\"2010-05-18\",166.59],[\"2010-05-19\",307.5],[\"2010-05-20\",156.72],[\"2010-05-21\",211.6],[\"2010-05-23\",68.88],[\"2010-05-24\",222.19],[\"2010-05-25\",147.23],[\"2010-05-26\",246.32],[\"2010-05-27\",190.29],[\"2010-05-28\",117.06],[\"2010-05-30\",61.3],[\"2010-06-01\",99.25],[\"2010-06-02\",156.2],[\"2010-06-03\",222.73],[\"2010-06-04\",210.02],[\"2010-06-06\",50.08],[\"2010-06-07\",232.65],[\"2010-06-08\",161.64],[\"2010-06-09\",189.22],[\"2010-06-10\",167.87],[\"2010-06-11\",195.66],[\"2010-06-13\",183.67],[\"2010-06-14\",173.78],[\"2010-06-15\",94.87],[\"2010-06-16\",249.21],[\"2010-06-17\",193.44],[\"2010-06-18\",83.04],[\"2010-06-20\",114.41],[\"2010-06-21\",74.0],[\"2010-06-22\",68.4],[\"2010-06-23\",223.98],[\"2010-06-24\",205.91],[\"2010-06-25\",63.82],[\"2010-06-27\",151.19],[\"2010-06-28\",187.3],[\"2010-06-29\",140.41],[\"2010-06-30\",139.77],[\"2010-07-01\",126.64],[\"2010-07-02\",17.15],[\"2010-07-04\",90.19],[\"2010-07-05\",259.23],[\"2010-07-06\",173.37],[\"2010-07-07\",173.91],[\"2010-07-08\",249.17],[\"2010-07-09\",39.23],[\"2010-07-11\",37.2],[\"2010-07-12\",159.18],[\"2010-07-13\",240.62],[\"2010-07-14\",66.77],[\"2010-07-15\",233.48],[\"2010-07-16\",234.46],[\"2010-07-18\",53.89],[\"2010-07-19\",119.9],[\"2010-07-20\",197.4],[\"2010-07-21\",195.05],[\"2010-07-22\",111.7],[\"2010-07-23\",71.92],[\"2010-07-25\",39.08],[\"2010-07-26\",117.25],[\"2010-07-27\",270.78],[\"2010-07-28\",112.65],[\"2010-07-29\",85.7],[\"2010-07-30\",215.59],[\"2010-08-01\",47.8],[\"2010-08-02\",173.87],[\"2010-08-03\",125.07],[\"2010-08-04\",88.26],[\"2010-08-05\",177.35],[\"2010-08-06\",71.13],[\"2010-08-08\",102.97],[\"2010-08-09\",99.53],[\"2010-08-10\",41.160000000000004],[\"2010-08-11\",106.99],[\"2010-08-12\",174.82999999999998],[\"2010-08-13\",155.5],[\"2010-08-15\",147.9],[\"2010-08-16\",82.55],[\"2010-08-17\",132.11],[\"2010-08-18\",100.36],[\"2010-08-19\",211.51],[\"2010-08-20\",167.24],[\"2010-08-22\",58.75],[\"2010-08-23\",110.21],[\"2010-08-24\",62.66],[\"2010-08-25\",132.87],[\"2010-08-26\",102.91],[\"2010-08-27\",86.96000000000001],[\"2010-08-29\",82.06],[\"2010-08-31\",88.8],[\"2010-09-01\",131.22],[\"2010-09-02\",339.54],[\"2010-09-03\",213.18],[\"2010-09-05\",134.04999999999998],[\"2010-09-06\",83.7],[\"2010-09-07\",105.16],[\"2010-09-08\",14.08],[\"2010-09-09\",174.04],[\"2010-09-10\",40.64],[\"2010-09-12\",70.69],[\"2010-09-13\",216.37],[\"2010-09-14\",209.35999999999999],[\"2010-09-15\",64.65],[\"2010-09-16\",188.48],[\"2010-09-17\",103.98],[\"2010-09-19\",82.07],[\"2010-09-20\",179.25],[\"2010-09-21\",214.12],[\"2010-09-22\",94.67],[\"2010-09-23\",177.2],[\"2010-09-24\",133.24],[\"2010-09-26\",188.85],[\"2010-09-27\",192.13],[\"2010-09-28\",322.94],[\"2010-09-29\",220.89000000000001],[\"2010-09-30\",200.53],[\"2010-10-01\",200.17000000000002],[\"2010-10-03\",47.06],[\"2010-10-04\",159.88],[\"2010-10-05\",143.92],[\"2010-10-06\",136.54],[\"2010-10-07\",198.82],[\"2010-10-08\",148.29],[\"2010-10-10\",107.38],[\"2010-10-11\",172.56],[\"2010-10-12\",212.33],[\"2010-10-13\",121.8],[\"2010-10-14\",180.28],[\"2010-10-15\",271.88],[\"2010-10-17\",31.39],[\"2010-10-18\",430.89],[\"2010-10-19\",180.12],[\"2010-10-20\",280.26],[\"2010-10-21\",434.04],[\"2010-10-22\",242.68],[\"2010-10-24\",252.72],[\"2010-10-25\",112.32],[\"2010-10-26\",295.3],[\"2010-10-27\",222.25],[\"2010-10-28\",153.67],[\"2010-10-29\",266.48],[\"2010-10-31\",178.8],[\"2010-11-01\",69.48],[\"2010-11-02\",224.05],[\"2010-11-03\",281.14],[\"2010-11-04\",387.17],[\"2010-11-05\",137.0],[\"2010-11-07\",95.93],[\"2010-11-08\",155.7],[\"2010-11-09\",257.74],[\"2010-11-10\",423.29],[\"2010-11-11\",327.05],[\"2010-11-12\",249.36],[\"2010-11-14\",149.1],[\"2010-11-15\",268.8],[\"2010-11-16\",410.27],[\"2010-11-17\",317.18],[\"2010-11-18\",343.09],[\"2010-11-19\",302.46],[\"2010-11-21\",151.25],[\"2010-11-22\",248.12],[\"2010-11-23\",238.08],[\"2010-11-24\",328.7],[\"2010-11-25\",417.85],[\"2010-11-26\",131.96],[\"2010-11-28\",227.85],[\"2010-11-29\",235.95],[\"2010-11-30\",243.18],[\"2010-12-01\",829.6],[\"2010-12-02\",593.68],[\"2010-12-03\",330.42],[\"2010-12-05\",368.74],[\"2010-12-06\",385.56],[\"2010-12-07\",586.52],[\"2010-12-08\",730.2],[\"2010-12-09\",708.18],[\"2010-12-10\",171.0],[\"2010-12-12\",109.75999999999999],[\"2010-12-13\",164.56],[\"2010-12-14\",293.63],[\"2010-12-15\",236.28],[\"2010-12-16\",538.01],[\"2010-12-17\",232.06],[\"2010-12-19\",38.7],[\"2010-12-20\",122.03],[\"2010-12-21\",140.08],[\"2010-12-22\",40.44],[\"2010-12-23\",69.48],[\"2011-01-04\",38.24],[\"2011-01-05\",141.31],[\"2011-01-06\",66.95],[\"2011-01-07\",137.41],[\"2011-01-09\",104.35],[\"2011-01-10\",38.26],[\"2011-01-11\",196.56],[\"2011-01-12\",166.91],[\"2011-01-13\",40.47],[\"2011-01-14\",157.75],[\"2011-01-16\",7.34],[\"2011-01-17\",118.69],[\"2011-01-18\",97.8],[\"2011-01-19\",32.35],[\"2011-01-20\",136.28],[\"2011-01-21\",198.48],[\"2011-01-23\",77.72],[\"2011-01-24\",138.27],[\"2011-01-25\",168.76],[\"2011-01-26\",139.05],[\"2011-01-27\",160.9],[\"2011-01-28\",53.67],[\"2011-01-30\",11.05],[\"2011-01-31\",149.93],[\"2011-02-01\",177.32],[\"2011-02-02\",113.52],[\"2011-02-03\",124.41],[\"2011-02-04\",156.0],[\"2011-02-07\",136.94],[\"2011-02-08\",46.11],[\"2011-02-09\",66.99],[\"2011-02-10\",113.08],[\"2011-02-11\",129.56],[\"2011-02-13\",17.23],[\"2011-02-14\",111.39999999999999],[\"2011-02-15\",108.51],[\"2011-02-16\",147.88],[\"2011-02-17\",178.47],[\"2011-02-18\",91.51],[\"2011-02-20\",39.66],[\"2011-02-21\",70.12],[\"2011-02-22\",78.51],[\"2011-02-23\",120.56],[\"2011-02-24\",98.89],[\"2011-02-25\",142.83],[\"2011-02-27\",39.44],[\"2011-02-28\",76.72],[\"2011-03-01\",201.19],[\"2011-03-02\",52.69],[\"2011-03-03\",217.42],[\"2011-03-04\",177.4],[\"2011-03-06\",65.14],[\"2011-03-07\",191.5],[\"2011-03-08\",150.07],[\"2011-03-09\",205.69],[\"2011-03-10\",183.10999999999999],[\"2011-03-11\",234.35],[\"2011-03-14\",118.17],[\"2011-03-15\",83.92],[\"2011-03-16\",155.37],[\"2011-03-17\",140.37],[\"2011-03-18\",226.65],[\"2011-03-20\",285.16],[\"2011-03-21\",116.04],[\"2011-03-22\",40.63],[\"2011-03-23\",182.02],[\"2011-03-24\",64.27],[\"2011-03-25\",104.45],[\"2011-03-27\",114.01],[\"2011-03-28\",224.75],[\"2011-03-29\",69.89],[\"2011-03-30\",159.55],[\"2011-03-31\",293.62],[\"2011-04-01\",275.0],[\"2011-04-03\",56.89],[\"2011-04-04\",34.51],[\"2011-04-05\",169.42],[\"2011-04-06\",66.7],[\"2011-04-07\",210.95],[\"2011-04-08\",275.42],[\"2011-04-10\",12.2],[\"2011-04-11\",140.81],[\"2011-04-12\",109.13],[\"2011-04-13\",170.17],[\"2011-04-14\",245.72],[\"2011-04-15\",105.33],[\"2011-04-17\",66.39],[\"2011-04-18\",100.86],[\"2011-04-19\",44.97],[\"2011-04-20\",174.45],[\"2011-04-21\",220.72],[\"2011-04-26\",236.45],[\"2011-04-27\",172.54],[\"2011-04-28\",202.67],[\"2011-05-01\",20.95],[\"2011-05-03\",201.61],[\"2011-05-04\",205.37],[\"2011-05-05\",454.16],[\"2011-05-06\",287.91],[\"2011-05-08\",85.02],[\"2011-05-09\",191.64000000000001],[\"2011-05-10\",203.02],[\"2011-05-11\",214.9],[\"2011-05-12\",252.79],[\"2011-05-13\",258.01],[\"2011-05-15\",64.77],[\"2011-05-16\",194.84],[\"2011-05-17\",265.79],[\"2011-05-18\",219.99],[\"2011-05-19\",309.74],[\"2011-05-20\",297.33],[\"2011-05-22\",166.03],[\"2011-05-23\",269.56],[\"2011-05-24\",372.37],[\"2011-05-25\",115.1],[\"2011-05-26\",207.11],[\"2011-05-27\",175.31],[\"2011-05-29\",31.51],[\"2011-05-31\",152.22],[\"2011-06-01\",122.51],[\"2011-06-02\",174.27],[\"2011-06-03\",130.94],[\"2011-06-05\",157.84],[\"2011-06-06\",109.12],[\"2011-06-07\",173.93],[\"2011-06-08\",231.05],[\"2011-06-09\",233.74],[\"2011-06-10\",128.47],[\"2011-06-12\",88.35],[\"2011-06-13\",140.77],[\"2011-06-14\",96.12],[\"2011-06-15\",104.67],[\"2011-06-16\",271.5],[\"2011-06-17\",115.97],[\"2011-06-19\",65.47],[\"2011-06-20\",150.27],[\"2011-06-21\",147.41],[\"2011-06-22\",112.94],[\"2011-06-23\",59.63],[\"2011-06-24\",128.35999999999999],[\"2011-06-26\",147.99],[\"2011-06-27\",45.94],[\"2011-06-28\",148.55],[\"2011-06-29\",134.42],[\"2011-06-30\",109.88],[\"2011-07-01\",127.71000000000001],[\"2011-07-03\",39.59],[\"2011-07-04\",128.77],[\"2011-07-05\",183.84],[\"2011-07-06\",144.43],[\"2011-07-07\",220.48],[\"2011-07-08\",97.58],[\"2011-07-10\",5.79],[\"2011-07-11\",113.25],[\"2011-07-12\",77.19],[\"2011-07-13\",122.11],[\"2011-07-14\",213.1],[\"2011-07-15\",154.16],[\"2011-07-17\",176.41],[\"2011-07-18\",125.2],[\"2011-07-19\",129.72],[\"2011-07-20\",133.5],[\"2011-07-21\",107.2],[\"2011-07-22\",108.26],[\"2011-07-24\",230.62],[\"2011-07-25\",274.94],[\"2011-07-26\",131.09],[\"2011-07-27\",76.35000000000001],[\"2011-07-28\",298.06],[\"2011-07-29\",121.42999999999999],[\"2011-07-31\",78.05],[\"2011-08-01\",41.72],[\"2011-08-02\",67.54],[\"2011-08-03\",133.52],[\"2011-08-04\",305.19],[\"2011-08-05\",176.28],[\"2011-08-07\",96.17],[\"2011-08-08\",96.06],[\"2011-08-09\",138.59],[\"2011-08-10\",111.71],[\"2011-08-11\",191.77],[\"2011-08-12\",48.17],[\"2011-08-14\",173.87],[\"2011-08-15\",51.65],[\"2011-08-16\",130.51],[\"2011-08-17\",24.69],[\"2011-08-18\",125.0],[\"2011-08-19\",132.89],[\"2011-08-21\",85.5],[\"2011-08-22\",173.82],[\"2011-08-23\",103.34],[\"2011-08-24\",175.23],[\"2011-08-25\",317.61],[\"2011-08-26\",43.76],[\"2011-08-28\",41.59],[\"2011-08-30\",117.97],[\"2011-08-31\",69.27],[\"2011-09-01\",173.61],[\"2011-09-02\",125.66],[\"2011-09-04\",112.08],[\"2011-09-05\",73.13],[\"2011-09-06\",235.53],[\"2011-09-07\",66.63],[\"2011-09-08\",239.63],[\"2011-09-09\",206.25],[\"2011-09-11\",81.0],[\"2011-09-12\",113.76],[\"2011-09-13\",118.0],[\"2011-09-14\",217.17000000000002],[\"2011-09-15\",147.04],[\"2011-09-16\",70.96],[\"2011-09-18\",17.5],[\"2011-09-19\",124.02],[\"2011-09-20\",175.82],[\"2011-09-21\",143.96],[\"2011-09-22\",269.06],[\"2011-09-23\",97.77],[\"2011-09-25\",139.79],[\"2011-09-26\",79.93],[\"2011-09-27\",172.28],[\"2011-09-28\",148.01],[\"2011-09-29\",114.29],[\"2011-09-30\",130.19],[\"2011-10-02\",55.39],[\"2011-10-03\",129.23],[\"2011-10-04\",155.42],[\"2011-10-05\",313.18],[\"2011-10-06\",263.31],[\"2011-10-07\",162.55],[\"2011-10-09\",29.56],[\"2011-10-10\",186.65],[\"2011-10-11\",196.01],[\"2011-10-12\",213.48],[\"2011-10-13\",174.53],[\"2011-10-14\",111.31],[\"2011-10-17\",217.55],[\"2011-10-18\",168.45000000000002],[\"2011-10-19\",294.51],[\"2011-10-20\",153.85],[\"2011-10-21\",185.12],[\"2011-10-23\",16.79],[\"2011-10-24\",204.26],[\"2011-10-25\",75.6],[\"2011-10-26\",324.36],[\"2011-10-27\",288.98],[\"2011-10-28\",205.15],[\"2011-10-30\",227.6],[\"2011-10-31\",122.1],[\"2011-11-01\",162.39000000000001],[\"2011-11-02\",72.6],[\"2011-11-03\",227.2],[\"2011-11-04\",155.06],[\"2011-11-06\",231.21],[\"2011-11-07\",306.31],[\"2011-11-08\",224.86],[\"2011-11-09\",384.3],[\"2011-11-10\",322.28000000000003],[\"2011-11-11\",111.26],[\"2011-11-13\",120.22],[\"2011-11-14\",139.74],[\"2011-11-15\",240.71],[\"2011-11-16\",330.89],[\"2011-11-17\",512.8],[\"2011-11-18\",352.17],[\"2011-11-20\",91.25],[\"2011-11-21\",184.41],[\"2011-11-22\",254.5],[\"2011-11-23\",309.39],[\"2011-11-24\",222.42],[\"2011-11-25\",267.88],[\"2011-11-27\",24.11],[\"2011-11-28\",192.1],[\"2011-11-29\",429.48],[\"2011-11-30\",176.17000000000002],[\"2011-12-01\",436.22],[\"2011-12-02\",416.04],[\"2011-12-04\",150.1],[\"2011-12-05\",324.75],[\"2011-12-06\",362.18],[\"2011-12-07\",176.98],[\"2011-12-08\",254.34],[\"2011-12-09\",163.5]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (unit_price <= ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC","sql_parameters":"[49.95,\"2010-02-18\"]","state":"{\"question\":\"Return the sum of unit_price for retail invoice lines where (unit_price is at most 49.95 and invoice_date is on or after '2010-02-18'), 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\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}423{"category":"single_table/or/aggregate","domain":"sensor","family_id":"ae9e6d272066e1a81d2fc9d0","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"7a6d66a0a6b0c55f9657e7017e5625f0ae7433ab9119870af05e7b0c0d777cd3","language":"en","license":"CC-BY-4.0","query":"Return the maximum of ts1_mean for hydraulic cycles where (accumulator equals 90 or eps1_mean is greater than 2544.76).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[90,2544.76],\\\"sql\\\":\\\"SELECT MAX(ts1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ? OR eps1_mean > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[90,2544.76],\\\"sql\\\":\\\"SELECT MAX(ts1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ? AND eps1_mean > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[90,2544.76],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (accumulator = ? OR eps1_mean > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[90,2544.76],\\\"sql\\\":\\\"SELECT SUM(ts1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ? OR eps1_mean > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[57.78898]]","source":"hydraulic","split":"dev","sql":"SELECT MAX(ts1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ? OR eps1_mean > ?)","sql_parameters":"[90,2544.76]","state":"{\"question\":\"Return the maximum of ts1_mean for hydraulic cycles where (accumulator equals 90 or eps1_mean is greater than 2544.76).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}424{"category":"join/date/having","domain":"commerce","family_id":"e5a66eee8e9f131df847f0d6","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"5671480829f3f74c2e79e129dbc67c8c6a5c45d9fb76aefa39850b52a2e3985e","language":"en","license":"CC-BY-4.0","query":"Return the sum 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, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\",2],\\\"sql\\\":\\\"SELECT i.invoice_date, 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.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\",2],\\\"sql\\\":\\\"SELECT i.invoice_date, 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.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\",2],\\\"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 HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\",2],\\\"sql\\\":\\\"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 HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-10-19\",6362.57],[\"2011-06-20\",3283.39],[\"2011-11-10\",1380.68],[\"2011-12-05\",544.25],[\"2011-11-16\",525.89]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.invoice_date, 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.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5","sql_parameters":"[\"2011-05-10\",2]","state":"{\"question\":\"Return the sum 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, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}425{"category":"join/distinct_invoice/and/ranked","domain":"commerce","family_id":"b8d51090092f7b2a87973ffd","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"8886f8bc1902fe26ed78554ad3310d03a47306f29dc372975ff078799666fa8c","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.quantity is at most 648 and l.unit_price is at most 4.77), grouped by i.invoice_date; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[648,4.77],\\\"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 <= ? AND l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[648,4.77],\\\"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 <= ? OR l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[648,4.77],\\\"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 <= ? AND l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[648,4.77],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) 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 value DESC, i.invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-12-01\",68],[\"2010-12-02\",66],[\"2010-12-09\",50],[\"2010-12-08\",38],[\"2010-12-07\",32]]","source":"online_retail_ii","split":"dev","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 <= ? AND l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5","sql_parameters":"[648,4.77]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.quantity is at most 648 and l.unit_price is at most 4.77), 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_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}426{"category":"single_table/or/grouped","domain":"sensor","family_id":"66e7a4f643b13794caa2992c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"7ee66c407d4ac8e16b1e14b97fdfacfc46f0cb1aaa9b3151691462b762b026d7","language":"en","license":"CC-BY-4.0","query":"Return the maximum of ps2_mean for hydraulic cycles where (fs1_mean is greater than 6.68926 or vs1_mean is at most 0.61133), grouped by valve, ordered by valve ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[6.68926,0.61133],\\\"sql\\\":\\\"SELECT valve, MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ? OR vs1_mean <= ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[6.68926,0.61133],\\\"sql\\\":\\\"SELECT valve, MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ? AND vs1_mean <= ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[6.68926,0.61133],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (fs1_mean > ? OR vs1_mean <= ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[6.68926,0.61133],\\\"sql\\\":\\\"SELECT valve, SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ? OR vs1_mean <= ?) GROUP BY valve ORDER BY valve ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[73,109.15166],[80,109.41733],[90,109.64259],[100,109.8156]]","source":"hydraulic","split":"dev","sql":"SELECT valve, MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ? OR vs1_mean <= ?) GROUP BY valve ORDER BY valve ASC","sql_parameters":"[6.68926,0.61133]","state":"{\"question\":\"Return the maximum of ps2_mean for hydraulic cycles where (fs1_mean is greater than 6.68926 or vs1_mean is at most 0.61133), 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\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}427{"category":"single_table/grouped","domain":"commerce","family_id":"604bfba9378518aa7648a632","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"b5861a18ebb90247ad4f29b709d43fb249e439c072abd5d2c9f49d9f3dfefe64","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines, grouped by country, ordered by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT country, MAX(unit_price) AS value FROM retail_lines GROUP BY country ORDER BY country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines GROUP BY country ORDER BY country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines GROUP BY country ORDER BY country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines GROUP BY country ORDER BY country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",8.95],[\"Austria\",40.0],[\"Bahrain\",9.95],[\"Belgium\",16.95],[\"Canada\",1.25],[\"Channel Islands\",16.65],[\"Cyprus\",7.95],[\"Denmark\",18.0],[\"EIRE\",1917.0],[\"Finland\",40.0],[\"France\",20.0],[\"Germany\",549.34],[\"Israel\",8.5],[\"Italy\",28.0],[\"Japan\",9.95],[\"Netherlands\",39.95],[\"Norway\",376.5],[\"Poland\",40.0],[\"Portugal\",29.95],[\"Singapore\",3949.32],[\"Spain\",230.0],[\"Sweden\",40.0],[\"Switzerland\",40.0],[\"USA\",2.55],[\"United Arab Emirates\",253.0],[\"United Kingdom\",867.79]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, MAX(unit_price) AS value FROM retail_lines GROUP BY country ORDER BY country ASC","sql_parameters":"[]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines, 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\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}428{"category":"single_table/or/having","domain":"commerce","family_id":"2cc5c742b3f1e95029a1531e","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"47ed628e9e621a56a57a23ff4c0c9b8df184344e71c52b210c0d0bf40e38f72e","language":"en","license":"CC-BY-4.0","query":"Return the average of administrative for shopping sessions where (traffic_type equals 14 or product_related is at most 93), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[14,93,10],\\\"sql\\\":\\\"SELECT visitor_type, AVG(administrative) AS value FROM shopping_sessions WHERE (traffic_type = ? AND product_related <= ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[14,93,10],\\\"sql\\\":\\\"SELECT visitor_type, AVG(administrative) AS value FROM shopping_sessions WHERE (traffic_type = ? OR product_related <= ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value DESC, visitor_type ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[14,93,10],\\\"sql\\\":\\\"SELECT visitor_type, AVG(administrative) AS value FROM shopping_sessions WHERE (traffic_type = ? OR product_related <= ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[14,93,10],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (traffic_type = ? OR product_related <= ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Other\",1.4880952380952381],[\"Returning_Visitor\",1.9532854209445585],[\"New_Visitor\",2.5369047619047618]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, AVG(administrative) AS value FROM shopping_sessions WHERE (traffic_type = ? OR product_related <= ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value ASC, visitor_type ASC LIMIT 3","sql_parameters":"[14,93,10]","state":"{\"question\":\"Return the average of administrative for shopping sessions where (traffic_type equals 14 or product_related is at most 93), 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_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}429{"category":"single_table/aggregate","domain":"commerce","family_id":"4fc5594464c0f9751e09a199","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"7866a8c892b76e91e89e1f490b98b165496898dbd34297e05bd599c164fd1c75","language":"en","license":"CC-BY-4.0","query":"Return the sum of product_related for shopping sessions where (product_related is at most 93).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[93],\\\"sql\\\":\\\"SELECT SUM(product_related) AS value FROM shopping_sessions WHERE (product_related <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[93],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (product_related <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[93],\\\"sql\\\":\\\"SELECT AVG(product_related) AS value FROM shopping_sessions WHERE (product_related <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[93],\\\"sql\\\":\\\"SELECT MIN(product_related) AS value FROM shopping_sessions WHERE (product_related <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[259878]]","source":"online_shoppers","split":"dev","sql":"SELECT SUM(product_related) AS value FROM shopping_sessions WHERE (product_related <= ?)","sql_parameters":"[93]","state":"{\"question\":\"Return the sum of product_related for shopping sessions where (product_related is at most 93).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}430{"category":"single_table/grouped","domain":"commerce","family_id":"421c5b839c99a3ea61bf033c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"03a12c6242a5b72eb3b2136aa4d29efe94770909dc48f3cd7adc760ba19d430b","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail invoice lines where (country equals 'Canada'), grouped by country, ordered by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Canada\\\"],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (country = ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Canada\\\"],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (country = ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Canada\\\"],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Canada\\\"],\\\"sql\\\":\\\"SELECT country, MIN(quantity) AS value FROM retail_lines WHERE (country = ?) GROUP BY country ORDER BY country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Canada\",5]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ?) GROUP BY country ORDER BY country ASC","sql_parameters":"[\"Canada\"]","state":"{\"question\":\"Return the number of rows for retail invoice lines where (country equals 'Canada'), 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\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}431{"category":"single_table/date/and/grouped","domain":"commerce","family_id":"41792b28bcb0cb79210acdc6","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"2e8f1c0b58d251a58977a0151b8b06715e031e8249ea17464f4fe8443497a838","language":"en","license":"CC-BY-4.0","query":"Return the sum of unit_price for retail invoice lines where (country equals 'EIRE' and invoice_date is on or after '2010-07-14'), grouped by country, ordered by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"EIRE\\\",\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date >= ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"EIRE\\\",\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"EIRE\\\",\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"EIRE\\\",\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY country ORDER BY country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"EIRE\",4403.4]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY country ORDER BY country ASC","sql_parameters":"[\"EIRE\",\"2010-07-14\"]","state":"{\"question\":\"Return the sum of unit_price for retail invoice lines where (country equals 'EIRE' and invoice_date is on or after '2010-07-14'), 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\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}432{"category":"single_table/date/and/ranked","domain":"commerce","family_id":"78da8bdfbdad5df144e8bb9c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"0ef0f07c1c580f11318bca606f6699ba1e547992efdfbc99d53518eddb612f35","language":"en","license":"CC-BY-4.0","query":"Return the average of quantity for retail invoice lines where (unit_price is greater than 4.77 and invoice_date is on or after '2010-02-18'), grouped by invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[4.77,\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (unit_price > ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[4.77,\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[4.77,\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (unit_price > ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[4.77,\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (unit_price > ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-06-22\",1.0],[\"2010-07-02\",1.0],[\"2010-07-09\",1.0]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (unit_price > ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3","sql_parameters":"[4.77,\"2010-02-18\"]","state":"{\"question\":\"Return the average of quantity for retail invoice lines where (unit_price is greater than 4.77 and invoice_date is on or after '2010-02-18'), grouped by invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by invoice_date ascending.\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}433{"category":"single_table/and/ranked","domain":"commerce","family_id":"86f9ebaa9d087222c7aeac53","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"9818a3b198a68f120aa21a1980425ddc0387f33e59109fd4cb2eb49fffa6ff26","language":"en","license":"CC-BY-4.0","query":"Return the minimum of unit_price for retail invoice lines where (country equals 'Austria' and quantity is at most 92), grouped by country; return at most 5 groups ordered by aggregate value DESC, breaking ties by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Austria\\\",92],\\\"sql\\\":\\\"SELECT country, MIN(unit_price) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Austria\\\",92],\\\"sql\\\":\\\"SELECT country, MIN(unit_price) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Austria\\\",92],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Austria\\\",92],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Austria\",0.55]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, MIN(unit_price) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5","sql_parameters":"[\"Austria\",92]","state":"{\"question\":\"Return the minimum of unit_price for retail invoice lines where (country equals 'Austria' and quantity is at most 92), 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\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}434{"category":"single_table/or/aggregate","domain":"commerce","family_id":"f8be036087f396a60e3e02b2","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"d1d19de2e6f40ed2ed44cf8ee121939b2ab9d30340dbbed03eeb76d45dd8b973","language":"en","license":"CC-BY-4.0","query":"Return the maximum of product_duration for shopping sessions where (month equals 'Oct' or region equals 9).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Oct\\\",9],\\\"sql\\\":\\\"SELECT MAX(product_duration) AS value FROM shopping_sessions WHERE (month = ? AND region = ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Oct\\\",9],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (month = ? OR region = ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Oct\\\",9],\\\"sql\\\":\\\"SELECT MAX(product_duration) AS value FROM shopping_sessions WHERE (month = ? OR region = ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Oct\\\",9],\\\"sql\\\":\\\"SELECT SUM(product_duration) AS value FROM shopping_sessions WHERE (month = ? OR region = ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[14213.63652]]","source":"online_shoppers","split":"dev","sql":"SELECT MAX(product_duration) AS value FROM shopping_sessions WHERE (month = ? OR region = ?)","sql_parameters":"[\"Oct\",9]","state":"{\"question\":\"Return the maximum of product_duration for shopping sessions where (month equals 'Oct' or region equals 9).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}435{"category":"single_table/and/aggregate","domain":"commerce","family_id":"3553d8e42cdadaf7ce92f855","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"edb9fd303da87f1f333e9dede392fc98d9c9c4524c029fcf8b33b28b1cb072ed","language":"en","license":"CC-BY-4.0","query":"Return the maximum of administrative for shopping sessions where (administrative is greater than 7 and product_duration is at most 167.5).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[7,167.5],\\\"sql\\\":\\\"SELECT MAX(administrative) AS value FROM shopping_sessions WHERE (administrative > ? AND product_duration <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[7,167.5],\\\"sql\\\":\\\"SELECT MAX(administrative) AS value FROM shopping_sessions WHERE (administrative > ? OR product_duration <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[7,167.5],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (administrative > ? AND product_duration <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[7,167.5],\\\"sql\\\":\\\"SELECT SUM(administrative) AS value FROM shopping_sessions WHERE (administrative > ? AND product_duration <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[14]]","source":"online_shoppers","split":"dev","sql":"SELECT MAX(administrative) AS value FROM shopping_sessions WHERE (administrative > ? AND product_duration <= ?)","sql_parameters":"[7,167.5]","state":"{\"question\":\"Return the maximum of administrative for shopping sessions where (administrative is greater than 7 and product_duration is at most 167.5).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}436{"category":"single_table/aggregate","domain":"commerce","family_id":"6d2dfef934b3cbe8680c500d","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"1d5ec19c850680a6456dca455ab3db07f6723f7b4ba6f3cee6c67c6fb9c04ca7","language":"en","license":"CC-BY-4.0","query":"Return the minimum of product_duration for shopping sessions where (month equals 'Jul').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Jul\\\"],\\\"sql\\\":\\\"SELECT MIN(product_duration) AS value FROM shopping_sessions WHERE (month = ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Jul\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (month = ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Jul\\\"],\\\"sql\\\":\\\"SELECT SUM(product_duration) AS value FROM shopping_sessions WHERE (month = ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Jul\\\"],\\\"sql\\\":\\\"SELECT AVG(product_duration) AS value FROM shopping_sessions WHERE (month = ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0.0]]","source":"online_shoppers","split":"dev","sql":"SELECT MIN(product_duration) AS value FROM shopping_sessions WHERE (month = ?)","sql_parameters":"[\"Jul\"]","state":"{\"question\":\"Return the minimum of product_duration for shopping sessions where (month equals 'Jul').\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}437{"category":"single_table/and/grouped","domain":"sensor","family_id":"f848ba31b205dc9ca0f82931","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"53d98b8b1d4e05fe56a4b22c9399a2ea19644da1f713607d9010e34d7b4edd6e","language":"en","license":"CC-BY-4.0","query":"Return the maximum of fs1_mean for hydraulic cycles where (ps2_mean is at most 122.4767 and fs1_mean is at most 3.36184), grouped by cooler, ordered by cooler ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[122.4767,3.36184],\\\"sql\\\":\\\"SELECT cooler, MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR fs1_mean <= ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[122.4767,3.36184],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND fs1_mean <= ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[122.4767,3.36184],\\\"sql\\\":\\\"SELECT cooler, SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND fs1_mean <= ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[122.4767,3.36184],\\\"sql\\\":\\\"SELECT cooler, MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND fs1_mean <= ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[3,3.36]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND fs1_mean <= ?) GROUP BY cooler ORDER BY cooler ASC","sql_parameters":"[122.4767,3.36184]","state":"{\"question\":\"Return the maximum of fs1_mean for hydraulic cycles where (ps2_mean is at most 122.4767 and fs1_mean is at most 3.36184), grouped by cooler, ordered by cooler ascending.\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}438{"category":"single_table/having","domain":"commerce","family_id":"edda25df97d881748e0e2649","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"c4b2c4648f562a7aec71a7f00b036540d639b14ad3cd44017378f722748aaa5e","language":"en","license":"CC-BY-4.0","query":"Return the minimum of product_related for shopping sessions where (product_related is greater than 155), grouped by visitor_type, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[155,2],\\\"sql\\\":\\\"SELECT visitor_type, MIN(product_related) AS value FROM shopping_sessions WHERE (product_related > ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[155],\\\"sql\\\":\\\"SELECT visitor_type, MIN(product_related) AS value FROM shopping_sessions WHERE (product_related > ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[155,2],\\\"sql\\\":\\\"SELECT visitor_type, MIN(product_related) AS value FROM shopping_sessions WHERE (product_related > ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value ASC, visitor_type ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[155,2],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (product_related > ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"New_Visitor\",162],[\"Returning_Visitor\",156]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, MIN(product_related) AS value FROM shopping_sessions WHERE (product_related > ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value DESC, visitor_type ASC LIMIT 5","sql_parameters":"[155,2]","state":"{\"question\":\"Return the minimum of product_related for shopping sessions where (product_related is greater than 155), grouped by visitor_type, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by visitor_type ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}439{"category":"single_table/ranked","domain":"sensor","family_id":"f6e6d4f452c08a687f11e6e6","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"06486ca163fcebce0f5632d9e1005956dca1d228e4e7b0ff1b69e106f6ff1633","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for hydraulic cycles where (vs1_mean is at most 0.56377), grouped by pump_leakage; return at most 3 groups ordered by aggregate value ASC, breaking ties by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[0.56377],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (vs1_mean <= ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[0.56377],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (vs1_mean <= ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[0.56377],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (vs1_mean <= ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[0.56377],\\\"sql\\\":\\\"SELECT pump_leakage, AVG(ps1_mean) AS value FROM hydraulic_cycles WHERE (vs1_mean <= ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1,162],[2,164],[0,366]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (vs1_mean <= ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3","sql_parameters":"[0.56377]","state":"{\"question\":\"Return the number of rows for hydraulic cycles where (vs1_mean is at most 0.56377), 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\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}440{"category":"join/aggregate","domain":"commerce","family_id":"76dc60f99f4d73729f9b90f8","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"0fafd20580c5dc914a8d19d7ed0a1706af4c02bb6eb50cc94b143fdf0e569069","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.quantity for retail lines joined to their invoices where (i.country equals 'Cyprus').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Cyprus\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Cyprus\\\"],\\\"sql\\\":\\\"SELECT SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Cyprus\\\"],\\\"sql\\\":\\\"SELECT AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Cyprus\\\"],\\\"sql\\\":\\\"SELECT MIN(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[754]]","source":"online_retail_ii","split":"dev","sql":"SELECT SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?)","sql_parameters":"[\"Cyprus\"]","state":"{\"question\":\"Return the sum of l.quantity for retail lines joined to their invoices where (i.country equals 'Cyprus').\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}441{"category":"single_table/or/aggregate","domain":"sensor","family_id":"e732a2e3fec00919d3f76488","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"eb3d34ce91eba5b6d15681eb03ec409def1236a6abd079759983a74958d4e2b9","language":"en","license":"CC-BY-4.0","query":"Return the average of fs1_mean for hydraulic cycles where (cooler equals 100 or vs1_mean is greater than 0.71948).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[100,0.71948],\\\"sql\\\":\\\"SELECT AVG(fs1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? AND vs1_mean > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[100,0.71948],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (cooler = ? OR vs1_mean > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[100,0.71948],\\\"sql\\\":\\\"SELECT AVG(fs1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? OR vs1_mean > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[100,0.71948],\\\"sql\\\":\\\"SELECT SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? OR vs1_mean > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[5.91492711252654]]","source":"hydraulic","split":"dev","sql":"SELECT AVG(fs1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? OR vs1_mean > ?)","sql_parameters":"[100,0.71948]","state":"{\"question\":\"Return the average of fs1_mean for hydraulic cycles where (cooler equals 100 or vs1_mean is greater than 0.71948).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}442{"category":"join/date/and/ranked","domain":"commerce","family_id":"4bf8b45c1d4c2429b97f8101","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"bf8dffcc90c73ff1d961b142435c239d5d91ad86ea237f0acc4962fea3834971","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.unit_price for retail lines joined to their invoices where (l.unit_price is at most 4.77 and i.invoice_date is before '2010-12-02'), grouped by i.invoice_date; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[4.77,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.unit_price) 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 value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[4.77,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(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.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[4.77,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.unit_price) 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 value ASC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[4.77,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) 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 value DESC, i.invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-12-01\",424.5],[\"2010-11-25\",211.7],[\"2010-11-04\",176.47],[\"2010-11-10\",168.73],[\"2009-12-08\",163.65]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.invoice_date, SUM(l.unit_price) 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 value DESC, i.invoice_date ASC LIMIT 5","sql_parameters":"[4.77,\"2010-12-02\"]","state":"{\"question\":\"Return the sum of l.unit_price for retail lines joined to their invoices where (l.unit_price is at most 4.77 and i.invoice_date is before '2010-12-02'), 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_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}443{"category":"single_table/or/having","domain":"commerce","family_id":"0cc7ece17028e667ca151d82","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"bb0d3f111791060b181f9400d5dbf34798078d3bbf8664c0d9078bb8060e7d6f","language":"en","license":"CC-BY-4.0","query":"Return the minimum of quantity for retail invoice lines where (quantity is at most 229 or unit_price is greater than 0.55), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[229,0.55,10],\\\"sql\\\":\\\"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[229,0.55,10],\\\"sql\\\":\\\"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[229,0.55,10],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[229,0.55,10],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-01\",1],[\"2009-12-02\",1],[\"2009-12-03\",1]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3","sql_parameters":"[229,0.55,10]","state":"{\"question\":\"Return the minimum of quantity for retail invoice lines where (quantity is at most 229 or unit_price is greater than 0.55), 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\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}444{"category":"single_table/or/grouped","domain":"sensor","family_id":"16fef3c983e42bcf4c05cb23","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"78bceccaed058f5d0f9f89539e5875b32fbecd909a3cb981a3bf18aff0baeca4","language":"en","license":"CC-BY-4.0","query":"Return the maximum of fs1_mean for hydraulic cycles where (ps2_mean is at most 122.4767 or ts1_mean is at most 52.59775), grouped by valve, ordered by valve ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[122.4767,52.59775],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR ts1_mean <= ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[122.4767,52.59775],\\\"sql\\\":\\\"SELECT valve, SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR ts1_mean <= ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[122.4767,52.59775],\\\"sql\\\":\\\"SELECT valve, MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR ts1_mean <= ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[122.4767,52.59775],\\\"sql\\\":\\\"SELECT valve, AVG(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR ts1_mean <= ?) GROUP BY valve ORDER BY valve ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[73,6.6735],[80,6.69829],[90,6.70902],[100,6.72271]]","source":"hydraulic","split":"dev","sql":"SELECT valve, MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR ts1_mean <= ?) GROUP BY valve ORDER BY valve ASC","sql_parameters":"[122.4767,52.59775]","state":"{\"question\":\"Return the maximum of fs1_mean for hydraulic cycles where (ps2_mean is at most 122.4767 or ts1_mean is at most 52.59775), 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\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}445{"category":"single_table/and/aggregate","domain":"commerce","family_id":"34188cf6c9e0897bf8f75318","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"d87a9ed3abc4f0f439a741b6a805f04008957d47084d0d12933229bcc47acc29","language":"en","license":"CC-BY-4.0","query":"Return the minimum of product_related for shopping sessions where (administrative is at most 7 and product_duration is at most 167.5).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[7,167.5],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (administrative <= ? AND product_duration <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[7,167.5],\\\"sql\\\":\\\"SELECT SUM(product_related) AS value FROM shopping_sessions WHERE (administrative <= ? AND product_duration <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[7,167.5],\\\"sql\\\":\\\"SELECT AVG(product_related) AS value FROM shopping_sessions WHERE (administrative <= ? AND product_duration <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[7,167.5],\\\"sql\\\":\\\"SELECT MIN(product_related) AS value FROM shopping_sessions WHERE (administrative <= ? AND product_duration <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0]]","source":"online_shoppers","split":"dev","sql":"SELECT MIN(product_related) AS value FROM shopping_sessions WHERE (administrative <= ? AND product_duration <= ?)","sql_parameters":"[7,167.5]","state":"{\"question\":\"Return the minimum of product_related for shopping sessions where (administrative is at most 7 and product_duration is at most 167.5).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}446{"category":"single_table/aggregate","domain":"commerce","family_id":"1e17819ce4d6fc89370a7f0d","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"c47c5e9606a9173e220d56dddf8566782e31567df6625740b1986314324b7b19","language":"en","license":"CC-BY-4.0","query":"Return the maximum of administrative for shopping sessions where (product_related is greater than 340).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[340],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (product_related > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[340],\\\"sql\\\":\\\"SELECT SUM(administrative) AS value FROM shopping_sessions WHERE (product_related > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[340],\\\"sql\\\":\\\"SELECT MAX(administrative) AS value FROM shopping_sessions WHERE (product_related > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[340],\\\"sql\\\":\\\"SELECT AVG(administrative) AS value FROM shopping_sessions WHERE (product_related > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[27]]","source":"online_shoppers","split":"dev","sql":"SELECT MAX(administrative) AS value FROM shopping_sessions WHERE (product_related > ?)","sql_parameters":"[340]","state":"{\"question\":\"Return the maximum of administrative for shopping sessions where (product_related is greater than 340).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}447{"category":"single_table/and/ranked","domain":"commerce","family_id":"2334734033689bc8c7723b9b","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"3a4b07ef3746059973d455d1a5cda1cfe2d4ab87759a91e25504c1209f27e4e0","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for shopping sessions where (month equals 'Nov' and product_related is at most 226), grouped by month; return at most 5 groups ordered by aggregate value DESC, breaking ties by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Nov\\\",226],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (month = ? OR product_related <= ?) GROUP BY month ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Nov\\\",226],\\\"sql\\\":\\\"SELECT month, SUM(administrative) AS value FROM shopping_sessions WHERE (month = ? AND product_related <= ?) GROUP BY month ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Nov\\\",226],\\\"sql\\\":\\\"SELECT month, AVG(administrative) AS value FROM shopping_sessions WHERE (month = ? AND product_related <= ?) GROUP BY month ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Nov\\\",226],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (month = ? AND product_related <= ?) GROUP BY month ORDER BY value DESC, month ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Nov\",2929]]","source":"online_shoppers","split":"dev","sql":"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (month = ? AND product_related <= ?) GROUP BY month ORDER BY value DESC, month ASC LIMIT 5","sql_parameters":"[\"Nov\",226]","state":"{\"question\":\"Return the number of rows for shopping sessions where (month equals 'Nov' and product_related is at most 226), grouped by month; return at most 5 groups ordered by aggregate value DESC, breaking ties by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}448{"category":"join/null/date/or/ranked","domain":"commerce","family_id":"e7135d7929e7c4929ff82e32","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"7e80d4ae94fc3098db7226dc29ec81b71462333846f76b357b1098e12283662a","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.quantity for retail lines joined to their invoices where (i.invoice_date is before '2010-12-02' or i.customer_id is present), grouped by i.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.invoice_date < ? AND i.customer_id IS NOT NULL) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.invoice_date < ? OR i.customer_id IS NOT NULL) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.invoice_date < ? OR i.customer_id IS NOT NULL) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.invoice_date < ? OR i.customer_id IS NOT NULL) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"United Arab Emirates\",2],[\"Israel\",4],[\"Singapore\",6]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.invoice_date < ? OR i.customer_id IS NOT NULL) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3","sql_parameters":"[\"2010-12-02\"]","state":"{\"question\":\"Return the sum of l.quantity for retail lines joined to their invoices where (i.invoice_date is before '2010-12-02' or i.customer_id is present), grouped by i.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}449{"category":"single_table/or/aggregate","domain":"commerce","family_id":"8fcdbfa321a5bda148023c51","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"c62a77a9a3b1ab7abcf4aeeda8abc083d90c461ce149ba9a79ef9624fb947e4c","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for shopping sessions where (month equals 'Feb' or visitor_type equals 'Other').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Feb\\\",\\\"Other\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (month = ? AND visitor_type = ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Feb\\\",\\\"Other\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (month = ? OR visitor_type = ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Feb\\\",\\\"Other\\\"],\\\"sql\\\":\\\"SELECT SUM(administrative) AS value FROM shopping_sessions WHERE (month = ? OR visitor_type = ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Feb\\\",\\\"Other\\\"],\\\"sql\\\":\\\"SELECT AVG(administrative) AS value FROM shopping_sessions WHERE (month = ? OR visitor_type = ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[269]]","source":"online_shoppers","split":"dev","sql":"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (month = ? OR visitor_type = ?)","sql_parameters":"[\"Feb\",\"Other\"]","state":"{\"question\":\"Return the number of rows for shopping sessions where (month equals 'Feb' or visitor_type equals 'Other').\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}450{"category":"single_table/aggregate","domain":"sensor","family_id":"f2527297c6df200271eabca5","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"dfdaf620999ee7b59f88d5830516d70ec2ad2cbf0c1c4d9b98840763c66d7807","language":"en","license":"CC-BY-4.0","query":"Return the average of vs1_mean for hydraulic cycles where (eps1_mean is greater than 2598.8769).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2598.8769],\\\"sql\\\":\\\"SELECT AVG(vs1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2598.8769],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (eps1_mean > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2598.8769],\\\"sql\\\":\\\"SELECT SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2598.8769],\\\"sql\\\":\\\"SELECT MIN(vs1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0.7337312669683258]]","source":"hydraulic","split":"dev","sql":"SELECT AVG(vs1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ?)","sql_parameters":"[2598.8769]","state":"{\"question\":\"Return the average of vs1_mean for hydraulic cycles where (eps1_mean is greater than 2598.8769).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}451{"category":"single_table/and/having","domain":"commerce","family_id":"dfbaa70217cb41044f165338","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"23cdddebe44eca5b4a162735498b69795718ca6d8620b5f29503e967afdec636","language":"en","license":"CC-BY-4.0","query":"Return the minimum of administrative for shopping sessions where (month equals 'June' and weekend equals 0), grouped by visitor_type, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"June\\\",0,2],\\\"sql\\\":\\\"SELECT visitor_type, MIN(administrative) AS value FROM shopping_sessions WHERE (month = ? OR weekend = ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"June\\\",0],\\\"sql\\\":\\\"SELECT visitor_type, MIN(administrative) AS value FROM shopping_sessions WHERE (month = ? AND weekend = ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"June\\\",0,2],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (month = ? AND weekend = ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"June\\\",0,2],\\\"sql\\\":\\\"SELECT visitor_type, MIN(administrative) AS value FROM shopping_sessions WHERE (month = ? AND weekend = ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"New_Visitor\",0],[\"Returning_Visitor\",0]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, MIN(administrative) AS value FROM shopping_sessions WHERE (month = ? AND weekend = ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value DESC, visitor_type ASC LIMIT 5","sql_parameters":"[\"June\",0,2]","state":"{\"question\":\"Return the minimum of administrative for shopping sessions where (month equals 'June' and weekend equals 0), grouped by visitor_type, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by visitor_type ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}452{"category":"single_table/grouped","domain":"commerce","family_id":"7522a640a3143f1ff0404f53","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"c1843bc5d36d3a2ef9e9cb1676e50074b7b45633e540c2e9de37ee4e2a0986df","language":"en","license":"CC-BY-4.0","query":"Return the maximum of administrative for shopping sessions where (visitor_type equals 'New_Visitor'), grouped by visitor_type, ordered by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"New_Visitor\\\"],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (visitor_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"New_Visitor\\\"],\\\"sql\\\":\\\"SELECT visitor_type, MAX(administrative) AS value FROM shopping_sessions WHERE (visitor_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"New_Visitor\\\"],\\\"sql\\\":\\\"SELECT visitor_type, SUM(administrative) AS value FROM shopping_sessions WHERE (visitor_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"New_Visitor\\\"],\\\"sql\\\":\\\"SELECT visitor_type, AVG(administrative) AS value FROM shopping_sessions WHERE (visitor_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"New_Visitor\",16]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, MAX(administrative) AS value FROM shopping_sessions WHERE (visitor_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC","sql_parameters":"[\"New_Visitor\"]","state":"{\"question\":\"Return the maximum of administrative for shopping sessions where (visitor_type equals 'New_Visitor'), grouped by visitor_type, ordered by visitor_type ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}453{"category":"single_table/and/having","domain":"commerce","family_id":"ac054d7091da4188fe49f87e","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"23dfb43be8543b378e609d9e3f8a1a02ddadc7af8c4ffb1f5ddfbf0b8b6e2602","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail invoice lines where (quantity is at most 229 and unit_price is at most 49.95), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[229,49.95,2],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price <= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[229,49.95,2],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (quantity <= ? AND unit_price <= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[229,49.95,2],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (quantity <= ? AND unit_price <= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[229,49.95,2],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (quantity <= ? AND unit_price <= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-12-01\",242],[\"2010-12-02\",218],[\"2010-12-09\",188],[\"2010-12-08\",176],[\"2010-12-07\",130]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (quantity <= ? AND unit_price <= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5","sql_parameters":"[229,49.95,2]","state":"{\"question\":\"Return the number of rows for retail invoice lines where (quantity is at most 229 and unit_price is at most 49.95), 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\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}454{"category":"join/null/and/ranked","domain":"commerce","family_id":"c663f7e15634c6bdd611756e","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"cd2d57297a79599b6a2742b8dc658372c8e1ed1cdba3a161e486c481fe0a8aae","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail lines joined to their invoices where (l.quantity is greater than 648 and i.customer_id is missing), grouped by i.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[648],\\\"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 ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[648],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ? AND i.customer_id IS NULL) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[648],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ? AND i.customer_id IS NULL) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3","sql_parameters":"[648]","state":"{\"question\":\"Return the number of rows for retail lines joined to their invoices where (l.quantity is greater than 648 and i.customer_id is missing), grouped by i.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}455{"category":"join/date/grouped","domain":"commerce","family_id":"e9a844245129413076a76ea3","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"4f025c48391645f776eee23815cee37948206353b88b0757872e59932322f8d3","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.quantity for retail lines joined to their invoices where (i.invoice_date is before '2010-12-02'), grouped by i.country, ordered by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) 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 i.country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) 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 i.country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT i.country, AVG(l.quantity) 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 i.country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT i.country, MIN(l.quantity) 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 i.country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",311],[\"Austria\",21],[\"Bahrain\",77],[\"Belgium\",134],[\"Channel Islands\",1600],[\"Cyprus\",754],[\"Denmark\",164],[\"EIRE\",4613],[\"Finland\",292],[\"France\",2020],[\"Germany\",3185],[\"Italy\",254],[\"Japan\",48],[\"Netherlands\",5023],[\"Norway\",77],[\"Poland\",108],[\"Portugal\",209],[\"Spain\",1834],[\"Sweden\",9742],[\"Switzerland\",239],[\"USA\",36],[\"United Arab Emirates\",2],[\"United Kingdom\",612708]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, SUM(l.quantity) 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 i.country ASC","sql_parameters":"[\"2010-12-02\"]","state":"{\"question\":\"Return the sum of l.quantity for retail lines joined to their invoices where (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\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}456{"category":"join/or/ranked","domain":"commerce","family_id":"21b9a7c5afaf17acad5216b3","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"4f866537df001cdd9335b278adc1c221016d43f25017263ab32318a3cc7fb217","language":"en","license":"CC-BY-4.0","query":"Return the average of l.unit_price for retail lines joined to their invoices where (i.country equals 'Cyprus' or i.customer_id equals '12364'), grouped by i.invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",\\\"12364\\\"],\\\"sql\\\":\\\"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.country = ? AND i.customer_id = ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",\\\"12364\\\"],\\\"sql\\\":\\\"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.country = ? OR i.customer_id = ?) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",\\\"12364\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR i.customer_id = ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",\\\"12364\\\"],\\\"sql\\\":\\\"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.country = ? OR i.customer_id = ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-16\",0.595],[\"2010-03-16\",1.6900000000000002],[\"2010-01-26\",2.31]]","source":"online_retail_ii","split":"dev","sql":"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.country = ? OR i.customer_id = ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3","sql_parameters":"[\"Cyprus\",\"12364\"]","state":"{\"question\":\"Return the average of l.unit_price for retail lines joined to their invoices where (i.country equals 'Cyprus' or i.customer_id equals '12364'), grouped by i.invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}457{"category":"single_table/and/ranked","domain":"sensor","family_id":"afc3e05c5d2c0215c17f792a","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"d5caedbc980b2c32e5d54948831d556847ea5ad4c0ae2e456c6604e7f2f0ee9d","language":"en","license":"CC-BY-4.0","query":"Return the average of fs1_mean for hydraulic cycles where (valve equals 80 and eps1_mean is greater than 2449.13677), grouped by pump_leakage; return at most 5 groups ordered by aggregate value DESC, breaking ties by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[80,2449.13677],\\\"sql\\\":\\\"SELECT pump_leakage, AVG(fs1_mean) AS value FROM hydraulic_cycles WHERE (valve = ? AND eps1_mean > ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[80,2449.13677],\\\"sql\\\":\\\"SELECT pump_leakage, AVG(fs1_mean) AS value FROM hydraulic_cycles WHERE (valve = ? OR eps1_mean > ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[80,2449.13677],\\\"sql\\\":\\\"SELECT pump_leakage, AVG(fs1_mean) AS value FROM hydraulic_cycles WHERE (valve = ? AND eps1_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[80,2449.13677],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (valve = ? AND eps1_mean > ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,6.5175197619047625],[1,5.754236923076923],[2,5.549014403669725]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, AVG(fs1_mean) AS value FROM hydraulic_cycles WHERE (valve = ? AND eps1_mean > ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 5","sql_parameters":"[80,2449.13677]","state":"{\"question\":\"Return the average of fs1_mean for hydraulic cycles where (valve equals 80 and eps1_mean is greater than 2449.13677), 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\",\"eps1_mean\":\"REAL\",\"fs1_mean\":\"REAL\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}458{"category":"single_table/having","domain":"sensor","family_id":"f3172c2e74c6eaa04dcc1210","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"24aed541c6c1dd87cbd916e8ec3649b61a77d5bc2e82d89d2355bf520df2f5a0","language":"en","license":"CC-BY-4.0","query":"Return the maximum of ps2_mean for hydraulic cycles where (eps1_mean is at most 2480.92663), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2480.92663,2],\\\"sql\\\":\\\"SELECT valve, MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2480.92663,2],\\\"sql\\\":\\\"SELECT valve, MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2480.92663,2],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2480.92663,2],\\\"sql\\\":\\\"SELECT valve, SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[100,108.51089],[90,107.86842],[80,107.64127],[73,107.40821]]","source":"hydraulic","split":"dev","sql":"SELECT valve, MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 5","sql_parameters":"[2480.92663,2]","state":"{\"question\":\"Return the maximum of ps2_mean for hydraulic cycles where (eps1_mean is at most 2480.92663), 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\":{\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}459{"category":"single_table/having","domain":"commerce","family_id":"3c0d04522d3acd33208defd0","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"3300c9e48bdf246ea91edfbca6855cb602ebdfd3b78cd51aad1999a1544ce30b","language":"en","license":"CC-BY-4.0","query":"Return the minimum of quantity for retail invoice lines where (quantity is greater than 229), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[229,10],\\\"sql\\\":\\\"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (quantity > ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[229],\\\"sql\\\":\\\"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (quantity > ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[229,10],\\\"sql\\\":\\\"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (quantity > ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[229,10],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (quantity > ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-03\",240],[\"2011-09-02\",252],[\"2010-10-08\",288]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (quantity > ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3","sql_parameters":"[229,10]","state":"{\"question\":\"Return the minimum of quantity for retail invoice lines where (quantity is greater than 229), 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\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}460{"category":"join/and/having","domain":"commerce","family_id":"7596df412b204c3058890de2","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"3faec7ee85a5e11c8df4b5118c598a36df253c0800c81ee8ce416d45cd09cc39","language":"en","license":"CC-BY-4.0","query":"Return the average of l.unit_price for retail lines joined to their invoices where (i.customer_id equals '12346' and l.quantity is greater than 229), grouped by i.country, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12346\\\",229,2],\\\"sql\\\":\\\"SELECT i.country, 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.quantity > ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2],\\\"sql\\\":\\\"SELECT i.country, AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12346\\\",229,2],\\\"sql\\\":\\\"SELECT i.country, 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.quantity > ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12346\\\",2],\\\"sql\\\":\\\"SELECT i.country, AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, 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.quantity > ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5","sql_parameters":"[\"12346\",229,2]","state":"{\"question\":\"Return the average of l.unit_price for retail lines joined to their invoices where (i.customer_id equals '12346' and l.quantity is greater than 229), grouped by i.country, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}461{"category":"single_table/and/aggregate","domain":"commerce","family_id":"4391dd12dcee2bb07b45345c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"93f71a4b7c3bd9ab1d8014e3b72bbce6a66a7f2a8688cc56e9c2593ed490ccc4","language":"en","license":"CC-BY-4.0","query":"Return the sum of product_related for shopping sessions where (region equals 6 and traffic_type equals 11).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[6,11],\\\"sql\\\":\\\"SELECT SUM(product_related) AS value FROM shopping_sessions WHERE (region = ? OR traffic_type = ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[6,11],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (region = ? AND traffic_type = ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[6,11],\\\"sql\\\":\\\"SELECT AVG(product_related) AS value FROM shopping_sessions WHERE (region = ? AND traffic_type = ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[6,11],\\\"sql\\\":\\\"SELECT SUM(product_related) AS value FROM shopping_sessions WHERE (region = ? AND traffic_type = ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[664]]","source":"online_shoppers","split":"dev","sql":"SELECT SUM(product_related) AS value FROM shopping_sessions WHERE (region = ? AND traffic_type = ?)","sql_parameters":"[6,11]","state":"{\"question\":\"Return the sum of product_related for shopping sessions where (region equals 6 and traffic_type equals 11).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}462{"category":"single_table/or/aggregate","domain":"sensor","family_id":"230ee09b64a0c6671778bcbd","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"3b52db15a6b59b2e397694ec9168b7e8a9b7c198744971c893aa00c2b860bf99","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for hydraulic cycles where (cooler equals 100 or vs1_mean is greater than 0.71948).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[100,0.71948],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (cooler = ? AND vs1_mean > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[100,0.71948],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (cooler = ? OR vs1_mean > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[100,0.71948],\\\"sql\\\":\\\"SELECT SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? OR vs1_mean > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[100,0.71948],\\\"sql\\\":\\\"SELECT AVG(ps1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? OR vs1_mean > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[942]]","source":"hydraulic","split":"dev","sql":"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (cooler = ? OR vs1_mean > ?)","sql_parameters":"[100,0.71948]","state":"{\"question\":\"Return the number of rows for hydraulic cycles where (cooler equals 100 or vs1_mean is greater than 0.71948).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}463{"category":"join/distinct_invoice/grouped","domain":"commerce","family_id":"497112d6e327c55380ae546c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"ca850d94ec6b56e618c87c6cae0949d3121700ab3f6a1e224a7a3d24d3d43051","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.unit_price is at most 0.55), grouped by i.country, ordered by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[0.55],\\\"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 <= ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[0.55],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price <= ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[0.55],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price <= ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[0.55],\\\"sql\\\":\\\"SELECT i.country, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price <= ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Austria\",1],[\"Belgium\",2],[\"Cyprus\",1],[\"EIRE\",9],[\"Finland\",2],[\"France\",11],[\"Germany\",22],[\"Japan\",2],[\"Netherlands\",3],[\"Portugal\",2],[\"Sweden\",15],[\"United Kingdom\",1175]]","source":"online_retail_ii","split":"dev","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 <= ?) GROUP BY i.country ORDER BY i.country ASC","sql_parameters":"[0.55]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.unit_price is at most 0.55), grouped by i.country, ordered by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}464{"category":"single_table/having","domain":"commerce","family_id":"57f204cd7013f931d1dac2fd","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"e931389ef27e2aff2d58386c2b796d13d83ed48a8ee108c0ea26ccfc8524b0a3","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail invoice lines, 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[10],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[10],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[10],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Bahrain\",11],[\"Denmark\",15],[\"Italy\",15]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, COUNT(*) AS value FROM retail_lines GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3","sql_parameters":"[10]","state":"{\"question\":\"Return the number of rows for retail invoice lines, 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\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}465{"category":"single_table/or/aggregate","domain":"commerce","family_id":"f8be036087f396a60e3e02b2","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"024bb1d69bcd7aa9a6461dbd395ddfd9655a93747630e722afea730c115fe565","language":"en","license":"CC-BY-4.0","query":"Return the maximum of product_duration for shopping sessions where (month equals 'Aug' or region equals 2).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Aug\\\",2],\\\"sql\\\":\\\"SELECT MAX(product_duration) AS value FROM shopping_sessions WHERE (month = ? AND region = ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Aug\\\",2],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (month = ? OR region = ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Aug\\\",2],\\\"sql\\\":\\\"SELECT MAX(product_duration) AS value FROM shopping_sessions WHERE (month = ? OR region = ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Aug\\\",2],\\\"sql\\\":\\\"SELECT SUM(product_duration) AS value FROM shopping_sessions WHERE (month = ? OR region = ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[23342.08205]]","source":"online_shoppers","split":"dev","sql":"SELECT MAX(product_duration) AS value FROM shopping_sessions WHERE (month = ? OR region = ?)","sql_parameters":"[\"Aug\",2]","state":"{\"question\":\"Return the maximum of product_duration for shopping sessions where (month equals 'Aug' or region equals 2).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}466{"category":"single_table/grouped","domain":"sensor","family_id":"d086cb744f7a7f381a4950ce","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"68ded72e7fe8c093b19673f2468c5e4d9a4e7c295b7dbeda885317176d61a04b","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for hydraulic cycles where (accumulator equals 90), grouped by cooler, ordered by cooler ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[90],\\\"sql\\\":\\\"SELECT cooler, SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[90],\\\"sql\\\":\\\"SELECT cooler, AVG(ps1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[90],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (accumulator = ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[90],\\\"sql\\\":\\\"SELECT cooler, MIN(ps1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[3,133],[20,333],[100,342]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (accumulator = ?) GROUP BY cooler ORDER BY cooler ASC","sql_parameters":"[90]","state":"{\"question\":\"Return the number of rows for hydraulic cycles where (accumulator equals 90), grouped by cooler, ordered by cooler ascending.\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}467{"category":"join/distinct_invoice/or/ranked","domain":"commerce","family_id":"8c383719bcb783b00ff32351","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"bbcc1faebf701ebb934cd261bf4406c38f6fdf457f050bbc32b86e043678acb4","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.customer_id equals '12361' or l.unit_price is at most 4.77), grouped by i.country; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12361\\\",4.77],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? AND l.unit_price <= ?) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12361\\\",4.77],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) 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.country ORDER BY value ASC, i.country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12361\\\",4.77],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) 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.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12361\\\",4.77],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) 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.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"United Kingdom\",6157],[\"Germany\",105],[\"France\",58],[\"EIRE\",47],[\"Netherlands\",33]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, COUNT(DISTINCT i.invoice) 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.country ORDER BY value DESC, i.country ASC LIMIT 5","sql_parameters":"[\"12361\",4.77]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.customer_id equals '12361' or l.unit_price is at most 4.77), grouped by i.country; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}468{"category":"single_table/or/grouped","domain":"sensor","family_id":"679fe16cc425ecaa77108b84","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"126c959ad704a35ac290bd49751c4604805df330723cce73c6cae21642c5011c","language":"en","license":"CC-BY-4.0","query":"Return the maximum of ps2_mean for hydraulic cycles where (cooler equals 100 or pump_leakage equals 0), grouped by cooler, ordered by cooler ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[100,0],\\\"sql\\\":\\\"SELECT cooler, MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? AND pump_leakage = ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[100,0],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (cooler = ? OR pump_leakage = ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[100,0],\\\"sql\\\":\\\"SELECT cooler, MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? OR pump_leakage = ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[100,0],\\\"sql\\\":\\\"SELECT cooler, SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? OR pump_leakage = ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[3,131.58909],[20,108.02486],[100,109.8156]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? OR pump_leakage = ?) GROUP BY cooler ORDER BY cooler ASC","sql_parameters":"[100,0]","state":"{\"question\":\"Return the maximum of ps2_mean for hydraulic cycles where (cooler equals 100 or pump_leakage equals 0), grouped by cooler, ordered by cooler ascending.\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}469{"category":"join/having","domain":"commerce","family_id":"03967319de7002ef3007ecff","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"95f345536134d1c0f8224342d1e7f224007999e68d495160c1868e0e2285a726","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail lines joined to their invoices where (i.country equals 'Cyprus'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",10],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",10],\\\"sql\\\":\\\"SELECT i.country, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",10],\\\"sql\\\":\\\"SELECT i.country, MIN(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",10],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Cyprus\",16]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3","sql_parameters":"[\"Cyprus\",10]","state":"{\"question\":\"Return the number of rows for retail lines joined to their invoices where (i.country equals 'Cyprus'), 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_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}470{"category":"single_table/and/aggregate","domain":"sensor","family_id":"af67b70cd0c2f333cdaa0fc6","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"30ab747cf317d938796c7656506832b5640c040ca5e132a4028ac7e535983c00","language":"en","license":"CC-BY-4.0","query":"Return the maximum of ps2_mean for hydraulic cycles where (ps2_mean is at most 122.4767 and ts1_mean is at most 52.59775).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[122.4767,52.59775],\\\"sql\\\":\\\"SELECT MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND ts1_mean <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[122.4767,52.59775],\\\"sql\\\":\\\"SELECT MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR ts1_mean <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[122.4767,52.59775],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND ts1_mean <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[122.4767,52.59775],\\\"sql\\\":\\\"SELECT SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND ts1_mean <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[109.8156]]","source":"hydraulic","split":"dev","sql":"SELECT MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND ts1_mean <= ?)","sql_parameters":"[122.4767,52.59775]","state":"{\"question\":\"Return the maximum of ps2_mean for hydraulic cycles where (ps2_mean is at most 122.4767 and ts1_mean is at most 52.59775).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}471{"category":"single_table/or/ranked","domain":"sensor","family_id":"f9be3de41c067c3986a5826f","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"dabacf9d8c750c904e54a42efae4b4ee7ccc429e7526c036654c3c968c09a2dc","language":"en","license":"CC-BY-4.0","query":"Return the minimum of ps1_mean for hydraulic cycles where (ts1_mean is at most 36.33327 or vs1_mean is at most 0.56377), grouped by cooler; return at most 5 groups ordered by aggregate value DESC, breaking ties by cooler ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[36.33327,0.56377],\\\"sql\\\":\\\"SELECT cooler, MIN(ps1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? AND vs1_mean <= ?) GROUP BY cooler ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[36.33327,0.56377],\\\"sql\\\":\\\"SELECT cooler, MIN(ps1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? OR vs1_mean <= ?) GROUP BY cooler ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[36.33327,0.56377],\\\"sql\\\":\\\"SELECT cooler, MIN(ps1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? OR vs1_mean <= ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[36.33327,0.56377],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? OR vs1_mean <= ?) GROUP BY cooler ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[3,160.67349],[100,160.16267]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, MIN(ps1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? OR vs1_mean <= ?) GROUP BY cooler ORDER BY value DESC, cooler ASC LIMIT 5","sql_parameters":"[36.33327,0.56377]","state":"{\"question\":\"Return the minimum of ps1_mean for hydraulic cycles where (ts1_mean is at most 36.33327 or vs1_mean is at most 0.56377), 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_mean\":\"REAL\",\"fs1_mean\":\"REAL\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}472{"category":"join/distinct_invoice/null/date/and/having","domain":"commerce","family_id":"d4341ded1a43cfa4f8eac690","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"4faa1023c9988192e038a0bacb8849d17135a1e8fd2b3fb2efc04be8b23915c6","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.invoice_date is before '2010-12-02' and 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\",10],\\\"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.invoice_date < ? OR i.customer_id IS NOT NULL) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"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.invoice_date < ? AND i.customer_id IS NOT NULL) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\",10],\\\"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.invoice_date < ? AND i.customer_id IS NOT NULL) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\",10],\\\"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.invoice_date < ? AND i.customer_id IS NOT NULL) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-23\",2],[\"2010-01-17\",3],[\"2010-03-07\",3]]","source":"online_retail_ii","split":"dev","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.invoice_date < ? AND i.customer_id IS NOT NULL) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3","sql_parameters":"[\"2010-12-02\",10]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.invoice_date is before '2010-12-02' and 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.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}473{"category":"join/and/ranked","domain":"commerce","family_id":"b91641ca83ff7d53e2394b8c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"27da794794f8bf8304c00a144cd0c70617b442dcc071e95ed7471588477874b5","language":"en","license":"CC-BY-4.0","query":"Return the average of l.unit_price for retail lines joined to their invoices where (i.customer_id equals '12348' and l.unit_price is at most 0.55), grouped by i.invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12348\\\",0.55],\\\"sql\\\":\\\"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.customer_id = ? OR l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12348\\\",0.55],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? AND l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12348\\\",0.55],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(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 <= ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12348\\\",0.55],\\\"sql\\\":\\\"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.customer_id = ? AND l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-01-25\",0.29]]","source":"online_retail_ii","split":"dev","sql":"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.customer_id = ? AND l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3","sql_parameters":"[\"12348\",0.55]","state":"{\"question\":\"Return the average of l.unit_price for retail lines joined to their invoices where (i.customer_id equals '12348' and l.unit_price is at most 0.55), grouped by i.invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}474{"category":"single_table/date/and/grouped","domain":"commerce","family_id":"45ff50285492314fd1e933da","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"0dabef5025c8fb682283d6b35aba31e9ff1dd55beb33cb1a65604bd88be4fcac","language":"en","license":"CC-BY-4.0","query":"Return the minimum of quantity for retail invoice lines where (quantity is at most 25 and invoice_date is on or after '2010-12-02'), grouped by invoice_date, ordered by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[25,\\\"2010-12-02\\\"],\\\"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\\\":[25,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[25,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[25,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-12-02\",1],[\"2010-12-03\",1],[\"2010-12-05\",1],[\"2010-12-06\",1],[\"2010-12-07\",1],[\"2010-12-08\",1],[\"2010-12-09\",1],[\"2010-12-10\",1],[\"2010-12-12\",1],[\"2010-12-13\",1],[\"2010-12-14\",1],[\"2010-12-15\",1],[\"2010-12-16\",1],[\"2010-12-17\",1],[\"2010-12-19\",1],[\"2010-12-20\",1],[\"2010-12-21\",1],[\"2010-12-22\",1],[\"2010-12-23\",1],[\"2011-01-04\",4],[\"2011-01-05\",1],[\"2011-01-06\",6],[\"2011-01-07\",1],[\"2011-01-09\",2],[\"2011-01-10\",1],[\"2011-01-11\",1],[\"2011-01-12\",1],[\"2011-01-13\",2],[\"2011-01-14\",1],[\"2011-01-16\",1],[\"2011-01-17\",1],[\"2011-01-18\",3],[\"2011-01-19\",1],[\"2011-01-20\",1],[\"2011-01-21\",1],[\"2011-01-23\",1],[\"2011-01-24\",1],[\"2011-01-25\",1],[\"2011-01-26\",2],[\"2011-01-27\",1],[\"2011-01-28\",4],[\"2011-01-30\",12],[\"2011-01-31\",1],[\"2011-02-01\",1],[\"2011-02-02\",1],[\"2011-02-03\",2],[\"2011-02-04\",1],[\"2011-02-07\",1],[\"2011-02-08\",3],[\"2011-02-09\",1],[\"2011-02-10\",1],[\"2011-02-11\",1],[\"2011-02-13\",4],[\"2011-02-14\",1],[\"2011-02-15\",1],[\"2011-02-16\",2],[\"2011-02-17\",1],[\"2011-02-18\",1],[\"2011-02-20\",3],[\"2011-02-21\",1],[\"2011-02-22\",1],[\"2011-02-23\",2],[\"2011-02-24\",2],[\"2011-02-25\",1],[\"2011-02-27\",1],[\"2011-02-28\",1],[\"2011-03-01\",1],[\"2011-03-02\",3],[\"2011-03-03\",1],[\"2011-03-04\",1],[\"2011-03-06\",2],[\"2011-03-07\",1],[\"2011-03-08\",4],[\"2011-03-09\",1],[\"2011-03-10\",1],[\"2011-03-11\",1],[\"2011-03-14\",1],[\"2011-03-15\",1],[\"2011-03-16\",1],[\"2011-03-17\",1],[\"2011-03-18\",1],[\"2011-03-20\",1],[\"2011-03-21\",1],[\"2011-03-22\",4],[\"2011-03-23\",1],[\"2011-03-24\",4],[\"2011-03-25\",1],[\"2011-03-27\",2],[\"2011-03-28\",1],[\"2011-03-29\",4],[\"2011-03-30\",1],[\"2011-03-31\",1],[\"2011-04-01\",1],[\"2011-04-03\",1],[\"2011-04-04\",1],[\"2011-04-05\",1],[\"2011-04-06\",1],[\"2011-04-07\",1],[\"2011-04-08\",1],[\"2011-04-10\",24],[\"2011-04-11\",1],[\"2011-04-12\",1],[\"2011-04-13\",1],[\"2011-04-14\",1],[\"2011-04-15\",1],[\"2011-04-17\",2],[\"2011-04-18\",1],[\"2011-04-19\",1],[\"2011-04-20\",2],[\"2011-04-21\",1],[\"2011-04-26\",1],[\"2011-04-27\",1],[\"2011-04-28\",1],[\"2011-05-01\",2],[\"2011-05-03\",1],[\"2011-05-04\",1],[\"2011-05-05\",1],[\"2011-05-06\",1],[\"2011-05-08\",1],[\"2011-05-09\",1],[\"2011-05-10\",1],[\"2011-05-11\",1],[\"2011-05-12\",1],[\"2011-05-13\",1],[\"2011-05-15\",1],[\"2011-05-16\",2],[\"2011-05-17\",2],[\"2011-05-18\",1],[\"2011-05-19\",1],[\"2011-05-20\",1],[\"2011-05-22\",2],[\"2011-05-23\",1],[\"2011-05-24\",1],[\"2011-05-25\",1],[\"2011-05-26\",1],[\"2011-05-27\",1],[\"2011-05-29\",1],[\"2011-05-31\",1],[\"2011-06-01\",1],[\"2011-06-02\",1],[\"2011-06-03\",1],[\"2011-06-05\",1],[\"2011-06-06\",2],[\"2011-06-07\",1],[\"2011-06-08\",1],[\"2011-06-09\",1],[\"2011-06-10\",1],[\"2011-06-12\",1],[\"2011-06-13\",1],[\"2011-06-14\",1],[\"2011-06-15\",1],[\"2011-06-16\",1],[\"2011-06-17\",1],[\"2011-06-19\",1],[\"2011-06-20\",1],[\"2011-06-21\",1],[\"2011-06-22\",1],[\"2011-06-23\",1],[\"2011-06-24\",1],[\"2011-06-26\",1],[\"2011-06-27\",4],[\"2011-06-28\",1],[\"2011-06-29\",1],[\"2011-06-30\",1],[\"2011-07-01\",1],[\"2011-07-03\",2],[\"2011-07-04\",4],[\"2011-07-05\",1],[\"2011-07-06\",1],[\"2011-07-07\",1],[\"2011-07-08\",1],[\"2011-07-10\",1],[\"2011-07-11\",1],[\"2011-07-12\",5],[\"2011-07-13\",1],[\"2011-07-14\",1],[\"2011-07-15\",1],[\"2011-07-17\",1],[\"2011-07-18\",1],[\"2011-07-19\",1],[\"2011-07-20\",1],[\"2011-07-21\",1],[\"2011-07-22\",1],[\"2011-07-24\",1],[\"2011-07-25\",1],[\"2011-07-26\",1],[\"2011-07-27\",1],[\"2011-07-28\",1],[\"2011-07-29\",1],[\"2011-07-31\",1],[\"2011-08-01\",1],[\"2011-08-02\",1],[\"2011-08-03\",1],[\"2011-08-04\",1],[\"2011-08-05\",1],[\"2011-08-07\",1],[\"2011-08-08\",1],[\"2011-08-09\",1],[\"2011-08-10\",1],[\"2011-08-11\",1],[\"2011-08-12\",8],[\"2011-08-14\",1],[\"2011-08-15\",3],[\"2011-08-16\",1],[\"2011-08-17\",12],[\"2011-08-18\",1],[\"2011-08-19\",1],[\"2011-08-21\",1],[\"2011-08-22\",1],[\"2011-08-23\",1],[\"2011-08-24\",1],[\"2011-08-25\",1],[\"2011-08-26\",2],[\"2011-08-28\",3],[\"2011-08-30\",1],[\"2011-08-31\",1],[\"2011-09-01\",2],[\"2011-09-02\",1],[\"2011-09-04\",1],[\"2011-09-05\",3],[\"2011-09-06\",1],[\"2011-09-07\",1],[\"2011-09-08\",1],[\"2011-09-09\",1],[\"2011-09-11\",4],[\"2011-09-12\",1],[\"2011-09-13\",1],[\"2011-09-14\",2],[\"2011-09-15\",1],[\"2011-09-16\",1],[\"2011-09-18\",1],[\"2011-09-19\",1],[\"2011-09-20\",1],[\"2011-09-21\",1],[\"2011-09-22\",1],[\"2011-09-23\",1],[\"2011-09-25\",1],[\"2011-09-26\",1],[\"2011-09-27\",1],[\"2011-09-28\",1],[\"2011-09-29\",4],[\"2011-09-30\",1],[\"2011-10-02\",1],[\"2011-10-03\",1],[\"2011-10-04\",1],[\"2011-10-05\",1],[\"2011-10-06\",1],[\"2011-10-07\",1],[\"2011-10-09\",2],[\"2011-10-10\",1],[\"2011-10-11\",1],[\"2011-10-12\",1],[\"2011-10-13\",1],[\"2011-10-14\",1],[\"2011-10-17\",1],[\"2011-10-18\",1],[\"2011-10-19\",1],[\"2011-10-20\",1],[\"2011-10-21\",1],[\"2011-10-23\",1],[\"2011-10-24\",1],[\"2011-10-25\",1],[\"2011-10-26\",1],[\"2011-10-27\",1],[\"2011-10-28\",1],[\"2011-10-30\",2],[\"2011-10-31\",1],[\"2011-11-01\",1],[\"2011-11-02\",1],[\"2011-11-03\",1],[\"2011-11-04\",1],[\"2011-11-06\",1],[\"2011-11-07\",1],[\"2011-11-08\",1],[\"2011-11-09\",1],[\"2011-11-10\",1],[\"2011-11-11\",1],[\"2011-11-13\",1],[\"2011-11-14\",1],[\"2011-11-15\",1],[\"2011-11-16\",1],[\"2011-11-17\",1],[\"2011-11-18\",1],[\"2011-11-20\",1],[\"2011-11-21\",1],[\"2011-11-22\",1],[\"2011-11-23\",1],[\"2011-11-24\",1],[\"2011-11-25\",1],[\"2011-11-27\",1],[\"2011-11-28\",1],[\"2011-11-29\",1],[\"2011-11-30\",1],[\"2011-12-01\",2],[\"2011-12-02\",1],[\"2011-12-04\",1],[\"2011-12-05\",1],[\"2011-12-06\",1],[\"2011-12-07\",1],[\"2011-12-08\",1],[\"2011-12-09\",2]]","source":"online_retail_ii","split":"dev","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","sql_parameters":"[25,\"2010-12-02\"]","state":"{\"question\":\"Return the minimum of quantity for retail invoice lines where (quantity is at most 25 and invoice_date is on or after '2010-12-02'), 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\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}475{"category":"single_table/and/grouped","domain":"sensor","family_id":"b2590404028e56627e7f7a91","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"77e7b532647050fcb9cfd2300ae601eff50e853323c22314c07c18f340e72884","language":"en","license":"CC-BY-4.0","query":"Return the maximum of ps1_mean for hydraulic cycles where (fs1_mean is at most 6.63763 and ts1_mean is greater than 52.59775), grouped by valve, ordered by valve ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[6.63763,52.59775],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? AND ts1_mean > ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[6.63763,52.59775],\\\"sql\\\":\\\"SELECT valve, SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? AND ts1_mean > ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[6.63763,52.59775],\\\"sql\\\":\\\"SELECT valve, MAX(ps1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? AND ts1_mean > ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[6.63763,52.59775],\\\"sql\\\":\\\"SELECT valve, AVG(ps1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? AND ts1_mean > ?) GROUP BY valve ORDER BY valve ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[73,180.70461],[80,180.62794],[90,180.54151],[100,180.92271]]","source":"hydraulic","split":"dev","sql":"SELECT valve, MAX(ps1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? AND ts1_mean > ?) GROUP BY valve ORDER BY valve ASC","sql_parameters":"[6.63763,52.59775]","state":"{\"question\":\"Return the maximum of ps1_mean for hydraulic cycles where (fs1_mean is at most 6.63763 and ts1_mean is greater than 52.59775), 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\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}476{"category":"join/ranked","domain":"commerce","family_id":"b42d2753c60c3be6f340a5c1","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"d3807fbabecc2701397a93693afea7cc8251eecf0f787a864b730026d8f22aa8","language":"en","license":"CC-BY-4.0","query":"Return the maximum of l.quantity for retail lines joined to their invoices where (i.customer_id equals '12346'), grouped by i.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12346\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12346\\\"],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12346\\\"],\\\"sql\\\":\\\"SELECT i.country, MAX(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT i.country, MAX(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"United Kingdom\",1]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, MAX(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3","sql_parameters":"[\"12346\"]","state":"{\"question\":\"Return the maximum of l.quantity for retail lines joined to their invoices where (i.customer_id equals '12346'), grouped by i.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}477{"category":"single_table/and/having","domain":"commerce","family_id":"5cfea4e3f02e3e9563550914","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"b942553360554d00ed39a12868faac922a4af939a4964cc6a9565363bb5077c9","language":"en","license":"CC-BY-4.0","query":"Return the average of administrative for shopping sessions where (month equals 'May' and product_duration is greater than 167.5), grouped by revenue, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by revenue ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"May\\\",167.5,2],\\\"sql\\\":\\\"SELECT revenue, AVG(administrative) AS value FROM shopping_sessions WHERE (month = ? OR product_duration > ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"May\\\",167.5,2],\\\"sql\\\":\\\"SELECT revenue, AVG(administrative) AS value FROM shopping_sessions WHERE (month = ? AND product_duration > ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"May\\\",167.5,2],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (month = ? AND product_duration > ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"May\\\",167.5,2],\\\"sql\\\":\\\"SELECT revenue, AVG(administrative) AS value FROM shopping_sessions WHERE (month = ? AND product_duration > ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1,2.797222222222222],[0,2.413986013986014]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, AVG(administrative) AS value FROM shopping_sessions WHERE (month = ? AND product_duration > ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 5","sql_parameters":"[\"May\",167.5,2]","state":"{\"question\":\"Return the average of administrative for shopping sessions where (month equals 'May' and product_duration is greater than 167.5), grouped by revenue, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by revenue ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}478{"category":"single_table/aggregate","domain":"commerce","family_id":"07067afeba82875bf8ea7ce7","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"4eb84b3c2699242bd9aefc0421160657de27076228b4c4c49bfb8abcae2307fe","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail invoice lines where (country equals 'Belgium').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Belgium\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (country = ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Belgium\\\"],\\\"sql\\\":\\\"SELECT SUM(quantity) AS value FROM retail_lines WHERE (country = ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Belgium\\\"],\\\"sql\\\":\\\"SELECT AVG(quantity) AS value FROM retail_lines WHERE (country = ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Belgium\\\"],\\\"sql\\\":\\\"SELECT MIN(quantity) AS value FROM retail_lines WHERE (country = ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[76]]","source":"online_retail_ii","split":"dev","sql":"SELECT COUNT(*) AS value FROM retail_lines WHERE (country = ?)","sql_parameters":"[\"Belgium\"]","state":"{\"question\":\"Return the number of rows for retail invoice lines where (country equals 'Belgium').\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}479{"category":"single_table/date/and/ranked","domain":"commerce","family_id":"722bd3ecfefe39bf9224037d","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"414786b5bd1e3f7d0b69d04beb15fe4dad21461d202ea88f76a20531467275d7","language":"en","license":"CC-BY-4.0","query":"Return the average of unit_price for retail invoice lines where (country equals 'Cyprus' and invoice_date is on or after '2011-09-29'), grouped by invoice_date; return at most 5 groups ordered by aggregate value DESC, breaking ties by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Cyprus\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (country = ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5","sql_parameters":"[\"Cyprus\",\"2011-09-29\"]","state":"{\"question\":\"Return the average of unit_price for retail invoice lines where (country equals 'Cyprus' and invoice_date is on or after '2011-09-29'), 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\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}480{"category":"single_table/and/aggregate","domain":"commerce","family_id":"e78bcc40f56afc79dc624565","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"cce9b1d64a1aa378812297c8d4bf4e9f85ae758ddcce42a26b79f99e71d765fe","language":"en","license":"CC-BY-4.0","query":"Return the minimum of product_related for shopping sessions where (region equals 4 and product_related is greater than 93).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[4,93],\\\"sql\\\":\\\"SELECT MIN(product_related) AS value FROM shopping_sessions WHERE (region = ? OR product_related > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[4,93],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (region = ? AND product_related > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[4,93],\\\"sql\\\":\\\"SELECT MIN(product_related) AS value FROM shopping_sessions WHERE (region = ? AND product_related > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[4,93],\\\"sql\\\":\\\"SELECT SUM(product_related) AS value FROM shopping_sessions WHERE (region = ? AND product_related > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[94]]","source":"online_shoppers","split":"dev","sql":"SELECT MIN(product_related) AS value FROM shopping_sessions WHERE (region = ? AND product_related > ?)","sql_parameters":"[4,93]","state":"{\"question\":\"Return the minimum of product_related for shopping sessions where (region equals 4 and product_related is greater than 93).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}481{"category":"single_table/or/grouped","domain":"commerce","family_id":"8dc504d5ac01d6bd9900a1ce","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"47c0d9753c0670d9ce26500626ccf4c2228ca3fbfec1158f61ce07d595a70c54","language":"en","license":"CC-BY-4.0","query":"Return the sum of administrative for shopping sessions where (administrative is greater than 2 or product_related is greater than 340), grouped by month, ordered by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2,340],\\\"sql\\\":\\\"SELECT month, SUM(administrative) AS value FROM shopping_sessions WHERE (administrative > ? AND product_related > ?) GROUP BY month ORDER BY month ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2,340],\\\"sql\\\":\\\"SELECT month, SUM(administrative) AS value FROM shopping_sessions WHERE (administrative > ? OR product_related > ?) GROUP BY month ORDER BY month ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2,340],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (administrative > ? OR product_related > ?) GROUP BY month ORDER BY month ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2,340],\\\"sql\\\":\\\"SELECT month, AVG(administrative) AS value FROM shopping_sessions WHERE (administrative > ? OR product_related > ?) GROUP BY month ORDER BY month ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Aug\",1197],[\"Dec\",3286],[\"Feb\",78],[\"Jul\",921],[\"June\",586],[\"Mar\",3016],[\"May\",5695],[\"Nov\",7065],[\"Oct\",1811],[\"Sep\",1311]]","source":"online_shoppers","split":"dev","sql":"SELECT month, SUM(administrative) AS value FROM shopping_sessions WHERE (administrative > ? OR product_related > ?) GROUP BY month ORDER BY month ASC","sql_parameters":"[2,340]","state":"{\"question\":\"Return the sum of administrative for shopping sessions where (administrative is greater than 2 or product_related is greater than 340), grouped by month, ordered by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}482{"category":"join/or/ranked","domain":"commerce","family_id":"29f7c9f2dd623c6ce870a508","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"c56a3cfdcbe4f97d666fa7909a2ee19a920d3ffbf359bc2564c1e90e92330032","language":"en","license":"CC-BY-4.0","query":"Return the average of l.quantity for retail lines joined to their invoices where (i.country equals 'Austria' or l.unit_price is greater than 4.77), grouped by i.invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Austria\\\",4.77],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND l.unit_price > ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Austria\\\",4.77],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR l.unit_price > ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Austria\\\",4.77],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR l.unit_price > ?) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Austria\\\",4.77],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR l.unit_price > ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-01-06\",1.0],[\"2010-06-22\",1.0],[\"2010-07-02\",1.0]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.invoice_date, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR l.unit_price > ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3","sql_parameters":"[\"Austria\",4.77]","state":"{\"question\":\"Return the average of l.quantity for retail lines joined to their invoices where (i.country equals 'Austria' or l.unit_price is greater than 4.77), grouped by i.invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}483{"category":"single_table/or/having","domain":"sensor","family_id":"03abb4e113011f4453da3135","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"ebd5260d316b3d6df1736095be8a451b26945ed488d0054752335e2156a6be13","language":"en","license":"CC-BY-4.0","query":"Return the average of ts1_mean for hydraulic cycles where (pump_leakage equals 1 or fs1_mean is at most 6.57291), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[1,6.57291,2],\\\"sql\\\":\\\"SELECT pump_leakage, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? AND fs1_mean <= ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[1,6.57291,2],\\\"sql\\\":\\\"SELECT pump_leakage, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? OR fs1_mean <= ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[1,6.57291,2],\\\"sql\\\":\\\"SELECT pump_leakage, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? OR fs1_mean <= ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value ASC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[1,6.57291,2],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? OR fs1_mean <= ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,56.535629183673464],[1,45.743496727642274],[2,45.55466038617886]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? OR fs1_mean <= ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 5","sql_parameters":"[1,6.57291,2]","state":"{\"question\":\"Return the average of ts1_mean for hydraulic cycles where (pump_leakage equals 1 or fs1_mean is at most 6.57291), 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\":{\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}484{"category":"single_table/or/having","domain":"commerce","family_id":"7661ae15de230d4a6a34c5e5","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"5505cee9e5731eac0b40b60bd429acaf83231e1df405764a1d1b3bee4ff34b0e","language":"en","license":"CC-BY-4.0","query":"Return the average of product_duration for shopping sessions where (month equals 'Aug' or region equals 9), grouped by visitor_type, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Aug\\\",9,2],\\\"sql\\\":\\\"SELECT visitor_type, AVG(product_duration) AS value FROM shopping_sessions WHERE (month = ? AND region = ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Aug\\\",9,2],\\\"sql\\\":\\\"SELECT visitor_type, AVG(product_duration) AS value FROM shopping_sessions WHERE (month = ? OR region = ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Aug\\\",9,2],\\\"sql\\\":\\\"SELECT visitor_type, AVG(product_duration) AS value FROM shopping_sessions WHERE (month = ? OR region = ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value ASC, visitor_type ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Aug\\\",9,2],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (month = ? OR region = ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Returning_Visitor\",1338.6962090791153],[\"Other\",814.1105446879999],[\"New_Visitor\",603.5453474801227]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, AVG(product_duration) AS value FROM shopping_sessions WHERE (month = ? OR region = ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value DESC, visitor_type ASC LIMIT 5","sql_parameters":"[\"Aug\",9,2]","state":"{\"question\":\"Return the average of product_duration for shopping sessions where (month equals 'Aug' or region equals 9), grouped by visitor_type, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by visitor_type ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}485{"category":"single_table/aggregate","domain":"commerce","family_id":"b2ac36e98bbd925ddd7581b7","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"c040dca24dfbff5c95182a645e44099a1f0c45ee6ca00129dda2ccdf91c2bd1b","language":"en","license":"CC-BY-4.0","query":"Return the minimum of administrative for shopping sessions where (product_related is greater than 31).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[31],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (product_related > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[31],\\\"sql\\\":\\\"SELECT SUM(administrative) AS value FROM shopping_sessions WHERE (product_related > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[31],\\\"sql\\\":\\\"SELECT MIN(administrative) AS value FROM shopping_sessions WHERE (product_related > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[31],\\\"sql\\\":\\\"SELECT AVG(administrative) AS value FROM shopping_sessions WHERE (product_related > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0]]","source":"online_shoppers","split":"dev","sql":"SELECT MIN(administrative) AS value FROM shopping_sessions WHERE (product_related > ?)","sql_parameters":"[31]","state":"{\"question\":\"Return the minimum of administrative for shopping sessions where (product_related is greater than 31).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}486{"category":"single_table/date/and/grouped","domain":"commerce","family_id":"f2cdb5dc593eaa21d86dfa57","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"ee0b169be8291aa62930858e7502112f3216fafdd19e373e6ed89338d568ab73","language":"en","license":"CC-BY-4.0","query":"Return the average of unit_price for retail invoice lines where (quantity is at most 25 and invoice_date is on or after '2011-09-29'), grouped by invoice_date, ordered by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[25,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[25,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[25,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[25,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-09-29\",3.8085185185185186],[\"2011-09-30\",4.422820512820513],[\"2011-10-02\",4.535454545454545],[\"2011-10-03\",19.314736842105265],[\"2011-10-04\",5.791363636363636],[\"2011-10-05\",5.392545454545454],[\"2011-10-06\",3.847692307692308],[\"2011-10-07\",3.354375],[\"2011-10-09\",4.926666666666667],[\"2011-10-10\",3.5302439024390244],[\"2011-10-11\",4.321111111111112],[\"2011-10-12\",3.7350943396226417],[\"2011-10-13\",3.915],[\"2011-10-14\",3.693448275862069],[\"2011-10-17\",3.871086956521739],[\"2011-10-18\",5.296296296296297],[\"2011-10-19\",107.57254237288136],[\"2011-10-20\",3.325],[\"2011-10-21\",4.447837837837838],[\"2011-10-23\",3.3579999999999997],[\"2011-10-24\",3.643658536585366],[\"2011-10-25\",18.024117647058826],[\"2011-10-26\",5.309019607843137],[\"2011-10-27\",4.79],[\"2011-10-28\",4.325],[\"2011-10-30\",4.918636363636363],[\"2011-10-31\",3.330689655172414],[\"2011-11-01\",4.305151515151515],[\"2011-11-02\",3.605625],[\"2011-11-03\",5.076842105263157],[\"2011-11-04\",3.3087179487179483],[\"2011-11-06\",4.061509433962264],[\"2011-11-07\",5.454354838709678],[\"2011-11-08\",3.748518518518518],[\"2011-11-09\",3.6340909090909093],[\"2011-11-10\",17.037125],[\"2011-11-11\",3.2055555555555553],[\"2011-11-13\",4.173214285714286],[\"2011-11-14\",3.5775],[\"2011-11-15\",3.5359016393442624],[\"2011-11-16\",7.031323529411765],[\"2011-11-17\",5.557619047619047],[\"2011-11-18\",4.936721311475409],[\"2011-11-20\",2.426969696969697],[\"2011-11-21\",3.582826086956522],[\"2011-11-22\",3.5864406779661016],[\"2011-11-23\",3.952205882352941],[\"2011-11-24\",3.181964285714286],[\"2011-11-25\",5.665106382978723],[\"2011-11-27\",3.4442857142857144],[\"2011-11-28\",3.350277777777778],[\"2011-11-29\",5.064683544303798],[\"2011-11-30\",3.851538461538462],[\"2011-12-01\",4.167159090909091],[\"2011-12-02\",4.517058823529411],[\"2011-12-04\",3.586052631578948],[\"2011-12-05\",6.459375],[\"2011-12-06\",3.901298701298701],[\"2011-12-07\",3.6376190476190478],[\"2011-12-08\",3.7609836065573767],[\"2011-12-09\",5.891249999999999]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC","sql_parameters":"[25,\"2011-09-29\"]","state":"{\"question\":\"Return the average of unit_price for retail invoice lines where (quantity is at most 25 and invoice_date is on or after '2011-09-29'), 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\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}487{"category":"single_table/date/and/grouped","domain":"commerce","family_id":"27cb87399ff7b7d31ef1c5b6","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"7df5feef2f818430051e327d402e597c666546db39ccb8d1fae62a437812a4fa","language":"en","license":"CC-BY-4.0","query":"Return the minimum of quantity for retail invoice lines where (country equals 'EIRE' and invoice_date is on or after '2010-07-14'), grouped by invoice_date, ordered by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"EIRE\\\",\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (country = ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"EIRE\\\",\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"EIRE\\\",\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"EIRE\\\",\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-08-19\",300],[\"2010-08-23\",2],[\"2010-09-12\",30],[\"2010-09-29\",1],[\"2010-10-06\",1],[\"2010-10-22\",10],[\"2010-10-26\",8],[\"2010-11-03\",1],[\"2010-11-09\",1],[\"2010-11-19\",2],[\"2010-12-03\",36],[\"2011-02-21\",2],[\"2011-03-01\",72],[\"2011-03-10\",1],[\"2011-04-27\",1],[\"2011-05-10\",4],[\"2011-06-15\",48],[\"2011-06-20\",1],[\"2011-06-21\",1],[\"2011-06-24\",12],[\"2011-06-29\",1],[\"2011-07-01\",1],[\"2011-07-19\",128],[\"2011-07-27\",3],[\"2011-09-04\",4],[\"2011-09-05\",72],[\"2011-09-06\",8],[\"2011-09-15\",1],[\"2011-09-28\",2],[\"2011-09-30\",1],[\"2011-10-10\",120],[\"2011-10-11\",1],[\"2011-10-17\",8],[\"2011-11-07\",1],[\"2011-11-15\",4],[\"2011-11-16\",1],[\"2011-11-25\",1],[\"2011-12-05\",2]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC","sql_parameters":"[\"EIRE\",\"2010-07-14\"]","state":"{\"question\":\"Return the minimum of quantity for retail invoice lines where (country equals 'EIRE' and invoice_date is on or after '2010-07-14'), 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\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}488{"category":"single_table/or/grouped","domain":"commerce","family_id":"170f6b00b500f1af72cb59b7","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"6d7f0a11142bf84499903566ac2ad3ef2b276cc961c7c1aa75e271e5d1cae9a5","language":"en","license":"CC-BY-4.0","query":"Return the average of quantity for retail invoice lines where (country equals 'Austria' or quantity is at most 92), grouped by country, ordered by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Austria\\\",92],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Austria\\\",92],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Austria\\\",92],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Austria\\\",92],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?) GROUP BY country ORDER BY country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",13.282608695652174],[\"Austria\",12.722222222222221],[\"Bahrain\",8.818181818181818],[\"Belgium\",5.780821917808219],[\"Canada\",10.4],[\"Channel Islands\",18.2],[\"Cyprus\",6.0],[\"Denmark\",29.615384615384617],[\"EIRE\",20.03529411764706],[\"Finland\",28.96969696969697],[\"France\",17.42222222222222],[\"Germany\",11.993865030674847],[\"Israel\",4.25],[\"Italy\",12.857142857142858],[\"Japan\",24.23076923076923],[\"Netherlands\",18.025974025974026],[\"Norway\",7.125],[\"Poland\",26.166666666666668],[\"Portugal\",10.428571428571429],[\"Singapore\",1.0],[\"Spain\",16.01219512195122],[\"Sweden\",17.357142857142858],[\"Switzerland\",17.61764705882353],[\"USA\",12.0],[\"United Arab Emirates\",1.0],[\"United Kingdom\",15.75517164011667]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?) GROUP BY country ORDER BY country ASC","sql_parameters":"[\"Austria\",92]","state":"{\"question\":\"Return the average of quantity for retail invoice lines where (country equals 'Austria' or quantity is at most 92), 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\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}489{"category":"join/distinct_invoice/or/ranked","domain":"commerce","family_id":"8c383719bcb783b00ff32351","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"b1b822ea3344f8262c11844ae1df54891161c8370eaf62cfbcc3e6e474114428","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.customer_id equals '12359' or l.unit_price is at most 0.55), grouped by i.country; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12359\\\",0.55],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? AND l.unit_price <= ?) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12359\\\",0.55],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) 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.country ORDER BY value ASC, i.country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12359\\\",0.55],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) 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.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12359\\\",0.55],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) 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.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"United Kingdom\",1175],[\"Germany\",22],[\"Sweden\",15],[\"France\",11],[\"EIRE\",9]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, COUNT(DISTINCT i.invoice) 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.country ORDER BY value DESC, i.country ASC LIMIT 5","sql_parameters":"[\"12359\",0.55]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.customer_id equals '12359' or l.unit_price is at most 0.55), grouped by i.country; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}490{"category":"single_table/having","domain":"commerce","family_id":"ee7a6adbf56192b5438aedeb","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"6624bb2a3dc5e12cd44f97e27ba0487440d59a1aedb584568c9d5a6a7a1903ad","language":"en","license":"CC-BY-4.0","query":"Return the minimum of product_related for shopping sessions where (region equals 9), grouped by month, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[9,2],\\\"sql\\\":\\\"SELECT month, MIN(product_related) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value ASC, month ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[9,2],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[9,2],\\\"sql\\\":\\\"SELECT month, MIN(product_related) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[9,2],\\\"sql\\\":\\\"SELECT month, SUM(product_related) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Sep\",7],[\"Aug\",3],[\"Jul\",2],[\"Oct\",2],[\"Dec\",1]]","source":"online_shoppers","split":"dev","sql":"SELECT month, MIN(product_related) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5","sql_parameters":"[9,2]","state":"{\"question\":\"Return the minimum of product_related for shopping sessions where (region equals 9), grouped by month, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}491{"category":"join/having","domain":"commerce","family_id":"33899ab3c9e546fa5830b1ad","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"05202e03746cc5aa47deced136348dfd07a4a7456045382e05a4becd4574b770","language":"en","license":"CC-BY-4.0","query":"Return the minimum of l.unit_price for retail lines joined to their invoices where (l.quantity is at most 1800), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[1800,10],\\\"sql\\\":\\\"SELECT i.country, MIN(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[1800,10],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[1800,10],\\\"sql\\\":\\\"SELECT i.country, SUM(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[1800,10],\\\"sql\\\":\\\"SELECT i.country, MIN(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Germany\",0.04],[\"United Kingdom\",0.04],[\"Sweden\",0.09]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, MIN(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3","sql_parameters":"[1800,10]","state":"{\"question\":\"Return the minimum of l.unit_price for retail lines joined to their invoices where (l.quantity is at most 1800), 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_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}492{"category":"join/date/and/aggregate","domain":"commerce","family_id":"26f0be1282f4d9d916472fad","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"c88f721565dea0c5c24b6eb95e6748d30b57616eaccda72df9a23a6ded1a1874","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail lines joined to their invoices where (i.country equals 'Cyprus' and i.invoice_date is on or after '2011-05-10').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR i.invoice_date >= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND i.invoice_date >= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND i.invoice_date >= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND i.invoice_date >= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0]]","source":"online_retail_ii","split":"dev","sql":"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND i.invoice_date >= ?)","sql_parameters":"[\"Cyprus\",\"2011-05-10\"]","state":"{\"question\":\"Return the number of rows for retail lines joined to their invoices where (i.country equals 'Cyprus' and i.invoice_date is on or after '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_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}493{"category":"join/null/or/ranked","domain":"commerce","family_id":"e824804ac4d1f5cb1d0b5ff8","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"6b028749ae3f73422e57739191aeb7068bb5b46ad0e8c1d7d305d768f2ba819a","language":"en","license":"CC-BY-4.0","query":"Return the maximum of l.quantity for retail lines joined to their invoices where (l.unit_price is greater than 0.55 or i.customer_id is present), grouped by i.country; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[0.55],\\\"sql\\\":\\\"SELECT i.country, MAX(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ? AND i.customer_id IS NOT NULL) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[0.55],\\\"sql\\\":\\\"SELECT i.country, MAX(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ? OR i.customer_id IS NOT NULL) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[0.55],\\\"sql\\\":\\\"SELECT i.country, MAX(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ? OR i.customer_id IS NOT NULL) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[0.55],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ? OR i.customer_id IS NOT NULL) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"United Kingdom\",10000],[\"EIRE\",1440],[\"Sweden\",1440],[\"France\",576],[\"Japan\",576]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, MAX(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ? OR i.customer_id IS NOT NULL) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 5","sql_parameters":"[0.55]","state":"{\"question\":\"Return the maximum of l.quantity for retail lines joined to their invoices where (l.unit_price is greater than 0.55 or i.customer_id is present), grouped by i.country; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}494{"category":"single_table/and/ranked","domain":"commerce","family_id":"6038e8222f639ed3ad758dbd","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"6f82a2de0eba82621146cc98b39b2fb3b6a151252bfd8116aff87f0d1ec860d8","language":"en","license":"CC-BY-4.0","query":"Return the maximum of administrative for shopping sessions where (product_related is at most 226 and product_duration is at most 472.4166667), grouped by visitor_type; return at most 5 groups ordered by aggregate value DESC, breaking ties by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[226,472.4166667],\\\"sql\\\":\\\"SELECT visitor_type, MAX(administrative) AS value FROM shopping_sessions WHERE (product_related <= ? OR product_duration <= ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[226,472.4166667],\\\"sql\\\":\\\"SELECT visitor_type, MAX(administrative) AS value FROM shopping_sessions WHERE (product_related <= ? AND product_duration <= ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[226,472.4166667],\\\"sql\\\":\\\"SELECT visitor_type, MAX(administrative) AS value FROM shopping_sessions WHERE (product_related <= ? AND product_duration <= ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[226,472.4166667],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (product_related <= ? AND product_duration <= ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Returning_Visitor\",16],[\"Other\",14],[\"New_Visitor\",12]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, MAX(administrative) AS value FROM shopping_sessions WHERE (product_related <= ? AND product_duration <= ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5","sql_parameters":"[226,472.4166667]","state":"{\"question\":\"Return the maximum of administrative for shopping sessions where (product_related is at most 226 and product_duration is at most 472.4166667), 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\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}495{"category":"single_table/or/ranked","domain":"commerce","family_id":"94fd7ddc2818563ef8b39650","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"6f6ded108871f3af8503f9aa8b041ab714c2b9ff4e6dc13a86b952b07475acc1","language":"en","license":"CC-BY-4.0","query":"Return the maximum of product_related for shopping sessions where (traffic_type equals 12 or product_related is greater than 31), grouped by revenue; return at most 3 groups ordered by aggregate value ASC, breaking ties by revenue ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[12,31],\\\"sql\\\":\\\"SELECT revenue, MAX(product_related) AS value FROM shopping_sessions WHERE (traffic_type = ? OR product_related > ?) GROUP BY revenue ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[12,31],\\\"sql\\\":\\\"SELECT revenue, MAX(product_related) AS value FROM shopping_sessions WHERE (traffic_type = ? AND product_related > ?) GROUP BY revenue ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[12,31],\\\"sql\\\":\\\"SELECT revenue, MAX(product_related) AS value FROM shopping_sessions WHERE (traffic_type = ? OR product_related > ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[12,31],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (traffic_type = ? OR product_related > ?) GROUP BY revenue ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1,534],[0,705]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, MAX(product_related) AS value FROM shopping_sessions WHERE (traffic_type = ? OR product_related > ?) GROUP BY revenue ORDER BY value ASC, revenue ASC LIMIT 3","sql_parameters":"[12,31]","state":"{\"question\":\"Return the maximum of product_related for shopping sessions where (traffic_type equals 12 or product_related is greater than 31), 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\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}496{"category":"single_table/or/aggregate","domain":"sensor","family_id":"6b2d64b355982b7c932a67f3","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"a458a5c551b2f12ed1894e374e23b2b4723fbbd4ab3df541cff7064ca1518eec","language":"en","license":"CC-BY-4.0","query":"Return the average of vs1_mean for hydraulic cycles where (ps1_mean is at most 158.27043 or ts1_mean is at most 36.33327).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[158.27043,36.33327],\\\"sql\\\":\\\"SELECT AVG(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? AND ts1_mean <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[158.27043,36.33327],\\\"sql\\\":\\\"SELECT AVG(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR ts1_mean <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[158.27043,36.33327],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR ts1_mean <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[158.27043,36.33327],\\\"sql\\\":\\\"SELECT SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR ts1_mean <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0.5960059097744361]]","source":"hydraulic","split":"dev","sql":"SELECT AVG(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR ts1_mean <= ?)","sql_parameters":"[158.27043,36.33327]","state":"{\"question\":\"Return the average of vs1_mean for hydraulic cycles where (ps1_mean is at most 158.27043 or ts1_mean is at most 36.33327).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}497{"category":"single_table/date/and/grouped","domain":"commerce","family_id":"807730fc74a0306c589b8594","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"e9e94338840246ef947c4a658f6497f5e60c74931629dc642554b0d2e68a8486","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (country equals 'Australia' and invoice_date is before '2011-05-10'), grouped by invoice_date, ordered by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Australia\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Australia\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Australia\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Australia\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-18\",1.65],[\"2010-02-22\",4.95],[\"2010-03-23\",1.65],[\"2010-10-10\",2.95],[\"2011-01-06\",1.25],[\"2011-01-14\",2.95],[\"2011-01-20\",8.95],[\"2011-02-07\",5.45]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC","sql_parameters":"[\"Australia\",\"2011-05-10\"]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines where (country equals 'Australia' and invoice_date is before '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\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}498{"category":"single_table/date/ranked","domain":"commerce","family_id":"415406d0409668b4771e028f","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"72ae3b18687efc7487c64dc1a88a4e86442b3ad535e20a950b4403357401ca32","language":"en","license":"CC-BY-4.0","query":"Return the sum of quantity for retail invoice lines where (invoice_date is before '2010-12-02'), grouped by invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(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\\\":[\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"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\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-07-11\",4],[\"2010-10-17\",6],[\"2010-07-02\",13]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3","sql_parameters":"[\"2010-12-02\"]","state":"{\"question\":\"Return the sum of quantity for retail invoice lines where (invoice_date is before '2010-12-02'), grouped by invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by invoice_date ascending.\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}499{"category":"single_table/or/aggregate","domain":"commerce","family_id":"407a0e34850b7ffe6af8184b","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"531fa5bb170342d38b18f780cc5e8d195094df9978d9a1325d5eb5951f8e0ca2","language":"en","license":"CC-BY-4.0","query":"Return the maximum of product_related for shopping sessions where (revenue equals 1 or region equals 1).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[1,1],\\\"sql\\\":\\\"SELECT MAX(product_related) AS value FROM shopping_sessions WHERE (revenue = ? AND region = ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[1,1],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (revenue = ? OR region = ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[1,1],\\\"sql\\\":\\\"SELECT SUM(product_related) AS value FROM shopping_sessions WHERE (revenue = ? OR region = ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[1,1],\\\"sql\\\":\\\"SELECT MAX(product_related) AS value FROM shopping_sessions WHERE (revenue = ? OR region = ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[705]]","source":"online_shoppers","split":"dev","sql":"SELECT MAX(product_related) AS value FROM shopping_sessions WHERE (revenue = ? OR region = ?)","sql_parameters":"[1,1]","state":"{\"question\":\"Return the maximum of product_related for shopping sessions where (revenue equals 1 or 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\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}500{"category":"single_table/aggregate","domain":"commerce","family_id":"20c22ca09dd28be19fab54cb","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"1eaf3a67d51640cb1c5343e302b4952b62f17851e3122f5e09f7d040f402f7d6","language":"en","license":"CC-BY-4.0","query":"Return the maximum of product_related for shopping sessions where (product_duration is at most 876.3).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[876.3],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (product_duration <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[876.3],\\\"sql\\\":\\\"SELECT SUM(product_related) AS value FROM shopping_sessions WHERE (product_duration <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[876.3],\\\"sql\\\":\\\"SELECT AVG(product_related) AS value FROM shopping_sessions WHERE (product_duration <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[876.3],\\\"sql\\\":\\\"SELECT MAX(product_related) AS value FROM shopping_sessions WHERE (product_duration <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[90]]","source":"online_shoppers","split":"dev","sql":"SELECT MAX(product_related) AS value FROM shopping_sessions WHERE (product_duration <= ?)","sql_parameters":"[876.3]","state":"{\"question\":\"Return the maximum of product_related for shopping sessions where (product_duration is at most 876.3).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}501{"category":"join/having","domain":"commerce","family_id":"03967319de7002ef3007ecff","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"2c462d45946f90203d92310b864f6dcce05080065367d674c7adbd7784238b4f","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail lines joined to their invoices where (i.country equals 'Finland'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Finland\\\",10],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Finland\\\",10],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Finland\\\",10],\\\"sql\\\":\\\"SELECT i.country, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Finland\\\",10],\\\"sql\\\":\\\"SELECT i.country, MIN(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Finland\",73]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3","sql_parameters":"[\"Finland\",10]","state":"{\"question\":\"Return the number of rows for retail lines joined to their invoices where (i.country equals 'Finland'), 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_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}502{"category":"single_table/and/having","domain":"commerce","family_id":"a50b14137490d25aba28f75e","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"698f4dd1377d1085bb41cc5902716cef24cb9fccf3b86853b1bddfd8d33cf500","language":"en","license":"CC-BY-4.0","query":"Return the maximum of product_duration for shopping sessions where (month equals 'Oct' and revenue equals 0), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Oct\\\",0,10],\\\"sql\\\":\\\"SELECT visitor_type, MAX(product_duration) AS value FROM shopping_sessions WHERE (month = ? OR revenue = ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Oct\\\",0,10],\\\"sql\\\":\\\"SELECT visitor_type, MAX(product_duration) AS value FROM shopping_sessions WHERE (month = ? AND revenue = ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Oct\\\",0,10],\\\"sql\\\":\\\"SELECT visitor_type, MAX(product_duration) AS value FROM shopping_sessions WHERE (month = ? AND revenue = ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value DESC, visitor_type ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Oct\\\",0,10],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (month = ? AND revenue = ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"New_Visitor\",4864.147143],[\"Returning_Visitor\",11976.72135]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, MAX(product_duration) AS value FROM shopping_sessions WHERE (month = ? AND revenue = ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value ASC, visitor_type ASC LIMIT 3","sql_parameters":"[\"Oct\",0,10]","state":"{\"question\":\"Return the maximum of product_duration for shopping sessions where (month equals 'Oct' and revenue equals 0), 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_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}503{"category":"join/and/having","domain":"commerce","family_id":"7596df412b204c3058890de2","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"44972bc66d1cea2bb3efd5173f80881c2004adffe086274e63480a3dc795ddcb","language":"en","license":"CC-BY-4.0","query":"Return the average of l.unit_price for retail lines joined to their invoices where (i.customer_id equals '12348' and l.quantity is greater than 229), grouped by i.country, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12348\\\",229,2],\\\"sql\\\":\\\"SELECT i.country, 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.quantity > ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2],\\\"sql\\\":\\\"SELECT i.country, AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12348\\\",229,2],\\\"sql\\\":\\\"SELECT i.country, 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.quantity > ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12348\\\",2],\\\"sql\\\":\\\"SELECT i.country, AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, 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.quantity > ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5","sql_parameters":"[\"12348\",229,2]","state":"{\"question\":\"Return the average of l.unit_price for retail lines joined to their invoices where (i.customer_id equals '12348' and l.quantity is greater than 229), grouped by i.country, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}504{"category":"single_table/ranked","domain":"sensor","family_id":"8d736ce1ea1ea1fca7558236","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"de8bb9ff635a156cc0e4f9e718eecbd10e5df97e89195ef6f124b29c02fdf887","language":"en","license":"CC-BY-4.0","query":"Return the minimum of vs1_mean for hydraulic cycles where (valve equals 100), grouped by pump_leakage; return at most 3 groups ordered by aggregate value ASC, breaking ties by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[100],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(vs1_mean) AS value FROM hydraulic_cycles WHERE (valve = ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[100],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (valve = ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[100],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (valve = ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[100],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(vs1_mean) AS value FROM hydraulic_cycles WHERE (valve = ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,0.52437],[2,0.52967],[1,0.53515]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, MIN(vs1_mean) AS value FROM hydraulic_cycles WHERE (valve = ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3","sql_parameters":"[100]","state":"{\"question\":\"Return the minimum of vs1_mean for hydraulic cycles where (valve equals 100), 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\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}505{"category":"single_table/or/aggregate","domain":"sensor","family_id":"eb17c64f4e98742b551420d2","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"733a504af8b73178d7c04fa53e58ca94c3bb8fa7bba826f8964659eabc1552e8","language":"en","license":"CC-BY-4.0","query":"Return the minimum of fs1_mean for hydraulic cycles where (valve equals 73 or ps2_mean is at most 109.23171).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[73,109.23171],\\\"sql\\\":\\\"SELECT MIN(fs1_mean) AS value FROM hydraulic_cycles WHERE (valve = ? AND ps2_mean <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[73,109.23171],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (valve = ? OR ps2_mean <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[73,109.23171],\\\"sql\\\":\\\"SELECT MIN(fs1_mean) AS value FROM hydraulic_cycles WHERE (valve = ? OR ps2_mean <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[73,109.23171],\\\"sql\\\":\\\"SELECT SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (valve = ? OR ps2_mean <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[2.01857]]","source":"hydraulic","split":"dev","sql":"SELECT MIN(fs1_mean) AS value FROM hydraulic_cycles WHERE (valve = ? OR ps2_mean <= ?)","sql_parameters":"[73,109.23171]","state":"{\"question\":\"Return the minimum of fs1_mean for hydraulic cycles where (valve equals 73 or ps2_mean is at most 109.23171).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}506{"category":"single_table/and/ranked","domain":"sensor","family_id":"a04f9accec3f74952984aaed","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"40e9d14390b89185929dd3a32614ba5679348d14b4145b9006ffb838c4782ad0","language":"en","license":"CC-BY-4.0","query":"Return the minimum of eps1_mean for hydraulic cycles where (ps2_mean is at most 105.7255 and vs1_mean is greater than 0.64278), grouped by pump_leakage; return at most 3 groups ordered by aggregate value ASC, breaking ties by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[105.7255,0.64278],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR vs1_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[105.7255,0.64278],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND vs1_mean > ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[105.7255,0.64278],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND vs1_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[105.7255,0.64278],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND vs1_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,2361.74727],[1,2375.09853],[2,2385.32967]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, MIN(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND vs1_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3","sql_parameters":"[105.7255,0.64278]","state":"{\"question\":\"Return the minimum of eps1_mean for hydraulic cycles where (ps2_mean is at most 105.7255 and vs1_mean is greater than 0.64278), 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\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}507{"category":"single_table/and/ranked","domain":"commerce","family_id":"46869cee4f3e071857f46a45","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"8700f28dd8deef99ebaf39650b77a1064715402f68a2ec3e9a0c78fdea96c1e3","language":"en","license":"CC-BY-4.0","query":"Return the maximum of product_duration for shopping sessions where (administrative is greater than 23 and product_related is greater than 155), grouped by month; return at most 3 groups ordered by aggregate value ASC, breaking ties by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[23,155],\\\"sql\\\":\\\"SELECT month, MAX(product_duration) AS value FROM shopping_sessions WHERE (administrative > ? OR product_related > ?) GROUP BY month ORDER BY value ASC, month ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[23,155],\\\"sql\\\":\\\"SELECT month, MAX(product_duration) AS value FROM shopping_sessions WHERE (administrative > ? AND product_related > ?) GROUP BY month ORDER BY value ASC, month ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[23,155],\\\"sql\\\":\\\"SELECT month, MAX(product_duration) AS value FROM shopping_sessions WHERE (administrative > ? AND product_related > ?) GROUP BY month ORDER BY value DESC, month ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[23,155],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (administrative > ? AND product_related > ?) GROUP BY month ORDER BY value ASC, month ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"June\",3428.527381],[\"May\",4339.534423],[\"Nov\",24844.1562]]","source":"online_shoppers","split":"dev","sql":"SELECT month, MAX(product_duration) AS value FROM shopping_sessions WHERE (administrative > ? AND product_related > ?) GROUP BY month ORDER BY value ASC, month ASC LIMIT 3","sql_parameters":"[23,155]","state":"{\"question\":\"Return the maximum of product_duration for shopping sessions where (administrative is greater than 23 and product_related is greater than 155), grouped by month; return at most 3 groups ordered by aggregate value ASC, breaking ties by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}508{"category":"single_table/date/and/aggregate","domain":"commerce","family_id":"703a64886a64179d55274c94","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"06b0dc3002bd04f2de21fb60ab73777b31de488cb2f3127cfad77b318986f550","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (country equals 'Channel Islands' and invoice_date is on or after '2010-07-14').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\",\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT MAX(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\",\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT MAX(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date >= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\",\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\",\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[16.65]]","source":"online_retail_ii","split":"dev","sql":"SELECT MAX(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?)","sql_parameters":"[\"Channel Islands\",\"2010-07-14\"]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines where (country equals 'Channel Islands' and invoice_date is on or after '2010-07-14').\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}509{"category":"single_table/or/ranked","domain":"commerce","family_id":"521f613b6b7e7c1ed1a7caf4","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"e803e495df4c6105e20047b7642345c71499733fd3b7ae05d7a2c91f7d5de03b","language":"en","license":"CC-BY-4.0","query":"Return the minimum of product_duration for shopping sessions where (administrative is greater than 7 or product_related is greater than 93), grouped by visitor_type; return at most 5 groups ordered by aggregate value DESC, breaking ties by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[7,93],\\\"sql\\\":\\\"SELECT visitor_type, MIN(product_duration) AS value FROM shopping_sessions WHERE (administrative > ? AND product_related > ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[7,93],\\\"sql\\\":\\\"SELECT visitor_type, MIN(product_duration) AS value FROM shopping_sessions WHERE (administrative > ? OR product_related > ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[7,93],\\\"sql\\\":\\\"SELECT visitor_type, MIN(product_duration) AS value FROM shopping_sessions WHERE (administrative > ? OR product_related > ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[7,93],\\\"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\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Other\",72.41666667],[\"New_Visitor\",26.7],[\"Returning_Visitor\",22.05]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, MIN(product_duration) AS value FROM shopping_sessions WHERE (administrative > ? OR product_related > ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5","sql_parameters":"[7,93]","state":"{\"question\":\"Return the minimum of product_duration for shopping sessions where (administrative is greater than 7 or product_related is greater than 93), 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\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}510{"category":"single_table/having","domain":"commerce","family_id":"ac1bfe891923df3786869dd2","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"1465ae1fa30a044b12c2c95d2233d96363fd77d0792c9edc19831372749f988b","language":"en","license":"CC-BY-4.0","query":"Return the average of unit_price for retail invoice lines where (unit_price is at most 49.95), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[49.95,2],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (unit_price <= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[49.95,2],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (unit_price <= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[49.95,2],\\\"sql\\\":\\\"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (unit_price <= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[49.95,2],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (unit_price <= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-07-11\",12.4],[\"2010-02-23\",10.868947368421052],[\"2011-06-12\",8.834999999999999],[\"2011-01-23\",7.772],[\"2011-08-14\",7.559565217391304]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (unit_price <= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5","sql_parameters":"[49.95,2]","state":"{\"question\":\"Return the average of unit_price for retail invoice lines where (unit_price is at most 49.95), 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\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}511{"category":"single_table/and/grouped","domain":"sensor","family_id":"203269f0a6f8c5bc6c2aa17b","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"9226d016229bdfd97f74119a6a604904f42b2df884304c5d0d69352f0b65633f","language":"en","license":"CC-BY-4.0","query":"Return the sum of fs1_mean for hydraulic cycles where (fs1_mean is at most 3.36184 and vs1_mean is at most 0.56377), grouped by valve, ordered by valve ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[3.36184,0.56377],\\\"sql\\\":\\\"SELECT valve, SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? OR vs1_mean <= ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT valve, SUM(fs1_mean) AS value FROM hydraulic_cycles GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[3.36184,0.56377],\\\"sql\\\":\\\"SELECT valve, SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? AND vs1_mean <= ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[3.36184],\\\"sql\\\":\\\"SELECT valve, SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ?) GROUP BY valve ORDER BY valve ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"hydraulic","split":"dev","sql":"SELECT valve, SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? AND vs1_mean <= ?) GROUP BY valve ORDER BY valve ASC","sql_parameters":"[3.36184,0.56377]","state":"{\"question\":\"Return the sum of fs1_mean for hydraulic cycles where (fs1_mean is at most 3.36184 and vs1_mean is at most 0.56377), 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\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}512{"category":"single_table/and/aggregate","domain":"commerce","family_id":"1f74ab2d4fe86f641627b5b4","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"76ff0b9c91627ad3f015a857bf5065ebc717c9794673417cfd816c9d6bb0c164","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (country equals 'Denmark' and unit_price is at most 2.25).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Denmark\\\",2.25],\\\"sql\\\":\\\"SELECT MAX(unit_price) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Denmark\\\",2.25],\\\"sql\\\":\\\"SELECT MAX(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Denmark\\\",2.25],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Denmark\\\",2.25],\\\"sql\\\":\\\"SELECT SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1.04]]","source":"online_retail_ii","split":"dev","sql":"SELECT MAX(unit_price) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?)","sql_parameters":"[\"Denmark\",2.25]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines where (country equals 'Denmark' and unit_price is at most 2.25).\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}513{"category":"single_table/or/ranked","domain":"sensor","family_id":"a9d2a921c424518fc62aa18e","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"e25599fcfccc82a675cf095dd1fa7d84655ab0ab92faf767161906698c194549","language":"en","license":"CC-BY-4.0","query":"Return the sum of ps1_mean for hydraulic cycles where (ts1_mean is at most 36.33327 or vs1_mean is at most 0.71948), grouped by cooler; return at most 5 groups ordered by aggregate value DESC, breaking ties by cooler ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[36.33327,0.71948],\\\"sql\\\":\\\"SELECT cooler, SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? OR vs1_mean <= ?) GROUP BY cooler ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[36.33327,0.71948],\\\"sql\\\":\\\"SELECT cooler, SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? AND vs1_mean <= ?) GROUP BY cooler ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[36.33327,0.71948],\\\"sql\\\":\\\"SELECT cooler, SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? OR vs1_mean <= ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[36.33327,0.71948],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? OR vs1_mean <= ?) GROUP BY cooler ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[100,119167.96423],[20,116006.57695],[3,84083.82018]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? OR vs1_mean <= ?) GROUP BY cooler ORDER BY value DESC, cooler ASC LIMIT 5","sql_parameters":"[36.33327,0.71948]","state":"{\"question\":\"Return the sum of ps1_mean for hydraulic cycles where (ts1_mean is at most 36.33327 or vs1_mean is at most 0.71948), 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_mean\":\"REAL\",\"fs1_mean\":\"REAL\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}514{"category":"single_table/date/and/having","domain":"commerce","family_id":"f403f5a557ccb4a4ca99b4c2","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"03f0ad96c556b51f4ef33529f9df0ee77af387065f289990ad93e4c08eac1bf4","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail invoice lines where (country equals 'Bahrain' and invoice_date is before '2011-05-10'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Bahrain\\\",\\\"2011-05-10\\\",2],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? OR invoice_date < ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Bahrain\\\",\\\"2011-05-10\\\",2],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Bahrain\\\",\\\"2011-05-10\\\",2],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Bahrain\\\",\\\"2011-05-10\\\",2],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-05-10\",5],[\"2010-03-23\",2]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5","sql_parameters":"[\"Bahrain\",\"2011-05-10\",2]","state":"{\"question\":\"Return the number of rows for retail invoice lines where (country equals 'Bahrain' and invoice_date is before '2011-05-10'), 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\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}515{"category":"join/date/and/aggregate","domain":"commerce","family_id":"f19079e4f405ca180b76c1b4","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"4bc8a559c1cd5b9282b21c19e2d2089ee8cafdd8be06d1297b7b5cc7a6df1bc4","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail lines joined to their invoices where (i.customer_id equals '12348' and i.invoice_date is on or after '2011-05-10').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12348\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR i.invoice_date >= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12348\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? AND i.invoice_date >= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12348\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? AND i.invoice_date >= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12348\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? AND i.invoice_date >= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[3]]","source":"online_retail_ii","split":"dev","sql":"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? AND i.invoice_date >= ?)","sql_parameters":"[\"12348\",\"2011-05-10\"]","state":"{\"question\":\"Return the number of rows for retail lines joined to their invoices where (i.customer_id equals '12348' and i.invoice_date is on or after '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_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}516{"category":"single_table/having","domain":"commerce","family_id":"6200ae26ecfae5bf0843abb5","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"29a6ffc262b7cb301f8c87ff5a3ce829e5222c5281668ce62b4232c87beed20f","language":"en","license":"CC-BY-4.0","query":"Return the average of product_duration for shopping sessions where (administrative is greater than 23), grouped by revenue, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by revenue ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[23],\\\"sql\\\":\\\"SELECT revenue, AVG(product_duration) AS value FROM shopping_sessions WHERE (administrative > ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[23,2],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (administrative > ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[23,2],\\\"sql\\\":\\\"SELECT revenue, AVG(product_duration) AS value FROM shopping_sessions WHERE (administrative > ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[23,2],\\\"sql\\\":\\\"SELECT revenue, SUM(product_duration) AS value FROM shopping_sessions WHERE (administrative > ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,8580.0583472]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, AVG(product_duration) AS value FROM shopping_sessions WHERE (administrative > ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 5","sql_parameters":"[23,2]","state":"{\"question\":\"Return the average of product_duration for shopping sessions where (administrative is greater than 23), grouped by revenue, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by revenue ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}517{"category":"single_table/date/or/grouped","domain":"commerce","family_id":"0ce758f625f0a8ea74688b4f","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"e488c4d6cc0846eb4c71a49acd6e548e8e1e5d6bcb22ff0f764075358e3d0b10","language":"en","license":"CC-BY-4.0","query":"Return the minimum 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 invoice_date, ordered by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[4.77,\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (unit_price > ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[4.77,\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[4.77,\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[4.77,\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-01\",1],[\"2009-12-02\",1],[\"2009-12-03\",1],[\"2009-12-04\",1],[\"2009-12-05\",1],[\"2009-12-06\",2],[\"2009-12-07\",1],[\"2009-12-08\",1],[\"2009-12-09\",1],[\"2009-12-10\",1],[\"2009-12-11\",1],[\"2009-12-13\",1],[\"2009-12-14\",1],[\"2009-12-15\",1],[\"2009-12-16\",1],[\"2009-12-17\",1],[\"2009-12-18\",1],[\"2009-12-20\",4],[\"2009-12-21\",1],[\"2009-12-22\",1],[\"2010-01-04\",12],[\"2010-01-05\",1],[\"2010-01-06\",1],[\"2010-01-07\",1],[\"2010-01-08\",3],[\"2010-01-10\",2],[\"2010-01-11\",1],[\"2010-01-12\",1],[\"2010-01-13\",12],[\"2010-01-14\",3],[\"2010-01-15\",1],[\"2010-01-17\",6],[\"2010-01-19\",2],[\"2010-01-20\",1],[\"2010-01-21\",1],[\"2010-01-22\",1],[\"2010-01-24\",3],[\"2010-01-25\",1],[\"2010-01-26\",1],[\"2010-01-27\",1],[\"2010-01-28\",2],[\"2010-01-29\",1],[\"2010-01-31\",1],[\"2010-02-01\",1],[\"2010-02-02\",1],[\"2010-02-03\",1],[\"2010-02-04\",1],[\"2010-02-05\",1],[\"2010-02-07\",24],[\"2010-02-08\",2],[\"2010-02-09\",1],[\"2010-02-10\",1],[\"2010-02-11\",2],[\"2010-02-12\",12],[\"2010-02-14\",1],[\"2010-02-15\",2],[\"2010-02-16\",1],[\"2010-02-17\",4],[\"2010-02-18\",1],[\"2010-02-19\",1],[\"2010-02-21\",1],[\"2010-02-22\",1],[\"2010-02-23\",1],[\"2010-02-24\",1],[\"2010-02-25\",1],[\"2010-02-26\",1],[\"2010-02-28\",1],[\"2010-03-01\",2],[\"2010-03-02\",1],[\"2010-03-03\",1],[\"2010-03-04\",1],[\"2010-03-05\",1],[\"2010-03-07\",1],[\"2010-03-08\",1],[\"2010-03-09\",1],[\"2010-03-10\",1],[\"2010-03-11\",1],[\"2010-03-12\",2],[\"2010-03-14\",1],[\"2010-03-15\",1],[\"2010-03-16\",1],[\"2010-03-17\",1],[\"2010-03-18\",1],[\"2010-03-19\",1],[\"2010-03-21\",1],[\"2010-03-22\",1],[\"2010-03-23\",1],[\"2010-03-24\",1],[\"2010-03-25\",1],[\"2010-03-26\",1],[\"2010-03-28\",12],[\"2010-03-29\",1],[\"2010-03-30\",1],[\"2010-03-31\",1],[\"2010-04-01\",1],[\"2010-04-06\",1],[\"2010-04-07\",6],[\"2010-04-08\",1],[\"2010-04-09\",1],[\"2010-04-11\",2],[\"2010-04-12\",1],[\"2010-04-13\",1],[\"2010-04-14\",1],[\"2010-04-15\",1],[\"2010-04-16\",1],[\"2010-04-18\",1],[\"2010-04-19\",1],[\"2010-04-20\",1],[\"2010-04-21\",1],[\"2010-04-22\",1],[\"2010-04-23\",1],[\"2010-04-25\",2],[\"2010-04-26\",1],[\"2010-04-27\",1],[\"2010-04-28\",1],[\"2010-04-29\",1],[\"2010-04-30\",1],[\"2010-05-02\",1],[\"2010-05-04\",1],[\"2010-05-05\",1],[\"2010-05-06\",1],[\"2010-05-07\",1],[\"2010-05-09\",1],[\"2010-05-10\",1],[\"2010-05-11\",1],[\"2010-05-12\",1],[\"2010-05-13\",1],[\"2010-05-14\",1],[\"2010-05-16\",2],[\"2010-05-17\",1],[\"2010-05-18\",1],[\"2010-05-19\",1],[\"2010-05-20\",1],[\"2010-05-21\",1],[\"2010-05-23\",1],[\"2010-05-24\",1],[\"2010-05-25\",1],[\"2010-05-26\",1],[\"2010-05-27\",1],[\"2010-05-28\",1],[\"2010-05-30\",1],[\"2010-06-01\",1],[\"2010-06-02\",1],[\"2010-06-03\",1],[\"2010-06-04\",1],[\"2010-06-06\",1],[\"2010-06-07\",2],[\"2010-06-08\",1],[\"2010-06-09\",1],[\"2010-06-10\",1],[\"2010-06-11\",1],[\"2010-06-13\",1],[\"2010-06-14\",1],[\"2010-06-15\",1],[\"2010-06-16\",2],[\"2010-06-17\",1],[\"2010-06-18\",1],[\"2010-06-20\",1],[\"2010-06-21\",2],[\"2010-06-22\",1],[\"2010-06-23\",1],[\"2010-06-24\",1],[\"2010-06-25\",1],[\"2010-06-27\",1],[\"2010-06-28\",2],[\"2010-06-29\",1],[\"2010-06-30\",1],[\"2010-07-01\",1],[\"2010-07-02\",1],[\"2010-07-04\",1],[\"2010-07-05\",1],[\"2010-07-06\",2],[\"2010-07-07\",1],[\"2010-07-08\",1],[\"2010-07-09\",1],[\"2010-07-11\",1],[\"2010-07-12\",1],[\"2010-07-13\",1],[\"2010-07-14\",1],[\"2010-07-15\",1],[\"2010-07-16\",1],[\"2010-07-18\",4],[\"2010-07-19\",1],[\"2010-07-20\",1],[\"2010-07-21\",1],[\"2010-07-22\",1],[\"2010-07-23\",1],[\"2010-07-25\",1],[\"2010-07-26\",1],[\"2010-07-27\",1],[\"2010-07-28\",1],[\"2010-07-29\",1],[\"2010-07-30\",1],[\"2010-08-01\",1],[\"2010-08-02\",1],[\"2010-08-03\",1],[\"2010-08-04\",1],[\"2010-08-05\",1],[\"2010-08-06\",1],[\"2010-08-08\",2],[\"2010-08-09\",2],[\"2010-08-10\",1],[\"2010-08-11\",1],[\"2010-08-12\",1],[\"2010-08-13\",1],[\"2010-08-15\",1],[\"2010-08-16\",2],[\"2010-08-17\",1],[\"2010-08-18\",1],[\"2010-08-19\",1],[\"2010-08-20\",1],[\"2010-08-22\",1],[\"2010-08-23\",1],[\"2010-08-24\",1],[\"2010-08-25\",1],[\"2010-08-26\",1],[\"2010-08-27\",3],[\"2010-08-29\",1],[\"2010-08-31\",1],[\"2010-09-01\",1],[\"2010-09-02\",1],[\"2010-09-03\",1],[\"2010-09-05\",2],[\"2010-09-06\",2],[\"2010-09-07\",2],[\"2010-09-08\",6],[\"2010-09-09\",1],[\"2010-09-10\",4],[\"2010-09-12\",1],[\"2010-09-13\",1],[\"2010-09-14\",1],[\"2010-09-15\",1],[\"2010-09-16\",1],[\"2010-09-17\",1],[\"2010-09-19\",2],[\"2010-09-20\",1],[\"2010-09-21\",1],[\"2010-09-22\",1],[\"2010-09-23\",1],[\"2010-09-24\",1],[\"2010-09-26\",1],[\"2010-09-27\",1],[\"2010-09-28\",1],[\"2010-09-29\",1],[\"2010-09-30\",1],[\"2010-10-01\",1],[\"2010-10-03\",4],[\"2010-10-04\",1],[\"2010-10-05\",1],[\"2010-10-06\",1],[\"2010-10-07\",1],[\"2010-10-08\",1],[\"2010-10-10\",1],[\"2010-10-11\",1],[\"2010-10-12\",1],[\"2010-10-13\",1],[\"2010-10-14\",1],[\"2010-10-15\",1],[\"2010-10-17\",1],[\"2010-10-18\",1],[\"2010-10-19\",1],[\"2010-10-20\",1],[\"2010-10-21\",1],[\"2010-10-22\",2],[\"2010-10-24\",1],[\"2010-10-25\",1],[\"2010-10-26\",1],[\"2010-10-27\",1],[\"2010-10-28\",1],[\"2010-10-29\",1],[\"2010-10-31\",1],[\"2010-11-01\",3],[\"2010-11-02\",1],[\"2010-11-03\",1],[\"2010-11-04\",1],[\"2010-11-05\",1],[\"2010-11-07\",1],[\"2010-11-08\",1],[\"2010-11-09\",1],[\"2010-11-10\",1],[\"2010-11-11\",1],[\"2010-11-12\",1],[\"2010-11-14\",1],[\"2010-11-15\",1],[\"2010-11-16\",1],[\"2010-11-17\",1],[\"2010-11-18\",1],[\"2010-11-19\",1],[\"2010-11-21\",1],[\"2010-11-22\",1],[\"2010-11-23\",1],[\"2010-11-24\",1],[\"2010-11-25\",1],[\"2010-11-26\",1],[\"2010-11-28\",1],[\"2010-11-29\",1],[\"2010-11-30\",1],[\"2010-12-01\",1],[\"2010-12-02\",1],[\"2010-12-03\",1],[\"2010-12-05\",1],[\"2010-12-06\",1],[\"2010-12-07\",1],[\"2010-12-08\",1],[\"2010-12-09\",1],[\"2010-12-10\",1],[\"2010-12-12\",1],[\"2010-12-13\",1],[\"2010-12-14\",1],[\"2010-12-15\",1],[\"2010-12-16\",1],[\"2010-12-17\",1],[\"2010-12-19\",1],[\"2010-12-20\",1],[\"2010-12-21\",1],[\"2010-12-22\",1],[\"2010-12-23\",1],[\"2011-01-04\",4],[\"2011-01-05\",1],[\"2011-01-06\",6],[\"2011-01-07\",1],[\"2011-01-09\",2],[\"2011-01-10\",1],[\"2011-01-11\",1],[\"2011-01-12\",1],[\"2011-01-13\",2],[\"2011-01-14\",1],[\"2011-01-16\",1],[\"2011-01-17\",1],[\"2011-01-18\",3],[\"2011-01-19\",1],[\"2011-01-20\",1],[\"2011-01-21\",1],[\"2011-01-23\",1],[\"2011-01-24\",1],[\"2011-01-25\",1],[\"2011-01-26\",2],[\"2011-01-27\",1],[\"2011-01-28\",4],[\"2011-01-30\",12],[\"2011-01-31\",1],[\"2011-02-01\",1],[\"2011-02-02\",1],[\"2011-02-03\",2],[\"2011-02-04\",1],[\"2011-02-07\",1],[\"2011-02-08\",3],[\"2011-02-09\",1],[\"2011-02-10\",1],[\"2011-02-11\",1],[\"2011-02-13\",4],[\"2011-02-14\",1],[\"2011-02-15\",1],[\"2011-02-16\",2],[\"2011-02-17\",1],[\"2011-02-18\",1],[\"2011-02-20\",3],[\"2011-02-21\",1],[\"2011-02-22\",1],[\"2011-02-23\",2],[\"2011-02-24\",2],[\"2011-02-25\",1],[\"2011-02-27\",1],[\"2011-02-28\",1],[\"2011-03-01\",1],[\"2011-03-02\",3],[\"2011-03-03\",1],[\"2011-03-04\",1],[\"2011-03-06\",2],[\"2011-03-07\",1],[\"2011-03-08\",4],[\"2011-03-09\",1],[\"2011-03-10\",1],[\"2011-03-11\",1],[\"2011-03-14\",1],[\"2011-03-15\",1],[\"2011-03-16\",1],[\"2011-03-17\",1],[\"2011-03-18\",1],[\"2011-03-20\",1],[\"2011-03-21\",1],[\"2011-03-22\",4],[\"2011-03-23\",1],[\"2011-03-24\",4],[\"2011-03-25\",1],[\"2011-03-27\",2],[\"2011-03-28\",1],[\"2011-03-29\",4],[\"2011-03-30\",1],[\"2011-03-31\",1],[\"2011-04-01\",1],[\"2011-04-03\",1],[\"2011-04-04\",1],[\"2011-04-05\",1],[\"2011-04-06\",1],[\"2011-04-07\",1],[\"2011-04-08\",1],[\"2011-04-10\",24],[\"2011-04-11\",1],[\"2011-04-12\",1],[\"2011-04-13\",1],[\"2011-04-14\",1],[\"2011-04-15\",1],[\"2011-04-17\",2],[\"2011-04-18\",1],[\"2011-04-19\",1],[\"2011-04-20\",2],[\"2011-04-21\",1],[\"2011-04-26\",1],[\"2011-04-27\",1],[\"2011-04-28\",1],[\"2011-05-01\",2],[\"2011-05-03\",1],[\"2011-05-04\",1],[\"2011-05-05\",1],[\"2011-05-06\",1],[\"2011-05-08\",1],[\"2011-05-09\",1],[\"2011-05-10\",1],[\"2011-05-11\",1],[\"2011-05-12\",1],[\"2011-05-13\",1],[\"2011-05-15\",1],[\"2011-05-16\",2],[\"2011-05-17\",2],[\"2011-05-18\",1],[\"2011-05-19\",1],[\"2011-05-20\",1],[\"2011-05-22\",2],[\"2011-05-23\",1],[\"2011-05-24\",1],[\"2011-05-25\",1],[\"2011-05-26\",1],[\"2011-05-27\",1],[\"2011-05-29\",1],[\"2011-05-31\",1],[\"2011-06-01\",1],[\"2011-06-02\",1],[\"2011-06-03\",1],[\"2011-06-05\",1],[\"2011-06-06\",2],[\"2011-06-07\",1],[\"2011-06-08\",1],[\"2011-06-09\",1],[\"2011-06-10\",1],[\"2011-06-12\",1],[\"2011-06-13\",1],[\"2011-06-14\",1],[\"2011-06-15\",1],[\"2011-06-16\",1],[\"2011-06-17\",1],[\"2011-06-19\",1],[\"2011-06-20\",1],[\"2011-06-21\",1],[\"2011-06-22\",1],[\"2011-06-23\",1],[\"2011-06-24\",1],[\"2011-06-26\",1],[\"2011-06-27\",4],[\"2011-06-28\",1],[\"2011-06-29\",1],[\"2011-06-30\",1],[\"2011-07-01\",1],[\"2011-07-03\",2],[\"2011-07-04\",4],[\"2011-07-05\",1],[\"2011-07-06\",1],[\"2011-07-07\",1],[\"2011-07-08\",1],[\"2011-07-10\",1],[\"2011-07-11\",1],[\"2011-07-12\",5],[\"2011-07-13\",1],[\"2011-07-14\",1],[\"2011-07-15\",1],[\"2011-07-17\",1],[\"2011-07-18\",1],[\"2011-07-19\",1],[\"2011-07-20\",1],[\"2011-07-21\",1],[\"2011-07-22\",1],[\"2011-07-24\",1],[\"2011-07-25\",1],[\"2011-07-26\",1],[\"2011-07-27\",1],[\"2011-07-28\",1],[\"2011-07-29\",1],[\"2011-07-31\",1],[\"2011-08-01\",1],[\"2011-08-02\",1],[\"2011-08-03\",1],[\"2011-08-04\",1],[\"2011-08-05\",1],[\"2011-08-07\",1],[\"2011-08-08\",1],[\"2011-08-09\",1],[\"2011-08-10\",1],[\"2011-08-11\",1],[\"2011-08-12\",8],[\"2011-08-14\",1],[\"2011-08-15\",3],[\"2011-08-16\",1],[\"2011-08-17\",12],[\"2011-08-18\",1],[\"2011-08-19\",1],[\"2011-08-21\",1],[\"2011-08-22\",1],[\"2011-08-23\",1],[\"2011-08-24\",1],[\"2011-08-25\",1],[\"2011-08-26\",2],[\"2011-08-28\",3],[\"2011-08-30\",1],[\"2011-08-31\",1],[\"2011-09-01\",2],[\"2011-09-02\",1],[\"2011-09-04\",1],[\"2011-09-05\",3],[\"2011-09-06\",1],[\"2011-09-07\",1],[\"2011-09-08\",1],[\"2011-09-09\",1],[\"2011-09-11\",4],[\"2011-09-12\",1],[\"2011-09-13\",1],[\"2011-09-14\",2],[\"2011-09-15\",1],[\"2011-09-16\",1],[\"2011-09-18\",1],[\"2011-09-19\",1],[\"2011-09-20\",1],[\"2011-09-21\",1],[\"2011-09-22\",1],[\"2011-09-23\",1],[\"2011-09-25\",1],[\"2011-09-26\",1],[\"2011-09-27\",1],[\"2011-09-28\",1],[\"2011-09-29\",4],[\"2011-09-30\",1],[\"2011-10-02\",1],[\"2011-10-03\",1],[\"2011-10-04\",1],[\"2011-10-05\",1],[\"2011-10-06\",1],[\"2011-10-07\",1],[\"2011-10-09\",2],[\"2011-10-10\",1],[\"2011-10-11\",1],[\"2011-10-12\",1],[\"2011-10-13\",1],[\"2011-10-14\",1],[\"2011-10-17\",1],[\"2011-10-18\",1],[\"2011-10-19\",1],[\"2011-10-20\",1],[\"2011-10-21\",1],[\"2011-10-23\",1],[\"2011-10-24\",1],[\"2011-10-25\",1],[\"2011-10-26\",1],[\"2011-10-27\",1],[\"2011-10-28\",1],[\"2011-10-30\",2],[\"2011-10-31\",1],[\"2011-11-01\",1],[\"2011-11-02\",1],[\"2011-11-03\",1],[\"2011-11-04\",1],[\"2011-11-06\",1],[\"2011-11-07\",1],[\"2011-11-08\",1],[\"2011-11-09\",1],[\"2011-11-10\",1],[\"2011-11-11\",1],[\"2011-11-13\",1],[\"2011-11-14\",1],[\"2011-11-15\",1],[\"2011-11-16\",1],[\"2011-11-17\",1],[\"2011-11-18\",1],[\"2011-11-20\",1],[\"2011-11-21\",1],[\"2011-11-22\",1],[\"2011-11-23\",1],[\"2011-11-24\",1],[\"2011-11-25\",1],[\"2011-11-27\",1],[\"2011-11-28\",1],[\"2011-11-29\",1],[\"2011-11-30\",1],[\"2011-12-01\",2],[\"2011-12-02\",1],[\"2011-12-04\",1],[\"2011-12-05\",1],[\"2011-12-06\",1],[\"2011-12-07\",1],[\"2011-12-08\",1],[\"2011-12-09\",2]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC","sql_parameters":"[4.77,\"2010-02-18\"]","state":"{\"question\":\"Return the minimum 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 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\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}518{"category":"join/distinct_invoice/date/or/aggregate","domain":"commerce","family_id":"a687fe904f1609ed29b350c2","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"8d88706dba1632d443939c0ea83feddefad40b562ad11452093fc3a09471164b","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.customer_id equals '12356' or i.invoice_date is before '2010-02-18').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12356\\\",\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? AND i.invoice_date < ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12356\\\",\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR i.invoice_date < ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12356\\\",\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR i.invoice_date < ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12356\\\",\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR i.invoice_date < ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[616]]","source":"online_retail_ii","split":"dev","sql":"SELECT COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR i.invoice_date < ?)","sql_parameters":"[\"12356\",\"2010-02-18\"]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.customer_id equals '12356' or i.invoice_date is before '2010-02-18').\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}519{"category":"single_table/or/aggregate","domain":"commerce","family_id":"9cb44a8699ea4e44a28e6f7c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"1e8e491385495538a6da3ae1a42ac454b6025c3ca9076aea5cdac982a4abe78f","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail invoice lines where (country equals 'Channel Islands' or quantity is at most 92).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\",92],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\",92],\\\"sql\\\":\\\"SELECT SUM(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\",92],\\\"sql\\\":\\\"SELECT AVG(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\",92],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[23774]]","source":"online_retail_ii","split":"dev","sql":"SELECT COUNT(*) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?)","sql_parameters":"[\"Channel Islands\",92]","state":"{\"question\":\"Return the number of rows for retail invoice lines where (country equals 'Channel Islands' or quantity is at most 92).\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}520{"category":"join/date/or/grouped","domain":"commerce","family_id":"6a8f52dc875df889439b7b76","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"6fe8a34041bda7ece3d10b9119edbe451f6dbe39e3e4f6bfcf10a5cde455350c","language":"en","license":"CC-BY-4.0","query":"Return the average of l.unit_price for retail lines joined to their invoices where (i.customer_id equals '12353' or i.invoice_date is on or after '2010-07-14'), grouped by i.invoice_date, ordered by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12353\\\",\\\"2010-07-14\\\"],\\\"sql\\\":\\\"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.customer_id = ? OR i.invoice_date >= ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12353\\\",\\\"2010-07-14\\\"],\\\"sql\\\":\\\"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.customer_id = ? AND i.invoice_date >= ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12353\\\",\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR i.invoice_date >= ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12353\\\",\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR i.invoice_date >= ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-07-14\",3.5142105263157895],[\"2010-07-15\",4.49],[\"2010-07-16\",4.0424137931034485],[\"2010-07-18\",2.0726923076923076],[\"2010-07-19\",3.8677419354838714],[\"2010-07-20\",3.7961538461538464],[\"2010-07-21\",3.4830357142857147],[\"2010-07-22\",3.1914285714285717],[\"2010-07-23\",2.9966666666666666],[\"2010-07-25\",2.6053333333333333],[\"2010-07-26\",2.7267441860465116],[\"2010-07-27\",3.760833333333333],[\"2010-07-28\",3.7550000000000003],[\"2010-07-29\",3.174074074074074],[\"2010-07-30\",4.145961538461538],[\"2010-08-01\",3.983333333333333],[\"2010-08-02\",9.800357142857143],[\"2010-08-03\",20.43057142857143],[\"2010-08-04\",5.51625],[\"2010-08-05\",2.9073770491803277],[\"2010-08-06\",2.9637499999999997],[\"2010-08-08\",3.8137037037037036],[\"2010-08-09\",2.073541666666667],[\"2010-08-10\",2.5725000000000002],[\"2010-08-11\",4.457916666666667],[\"2010-08-12\",4.4828205128205125],[\"2010-08-13\",3.2395833333333335],[\"2010-08-15\",2.9],[\"2010-08-16\",3.9309523809523808],[\"2010-08-17\",3.0025000000000004],[\"2010-08-18\",4.181666666666667],[\"2010-08-19\",4.0675],[\"2010-08-20\",3.8009090909090912],[\"2010-08-22\",2.2596153846153846],[\"2010-08-23\",3.936071428571428],[\"2010-08-24\",16.257272727272728],[\"2010-08-25\",2.888478260869565],[\"2010-08-26\",2.638717948717949],[\"2010-08-27\",4.576842105263158],[\"2010-08-29\",3.73],[\"2010-08-31\",2.276923076923077],[\"2010-09-01\",5.7072972972972975],[\"2010-09-02\",4.920869565217392],[\"2010-09-03\",3.3309375],[\"2010-09-05\",3.1916666666666664],[\"2010-09-06\",3.3480000000000003],[\"2010-09-07\",2.842162162162162],[\"2010-09-08\",1.5644444444444445],[\"2010-09-09\",10.43875],[\"2010-09-10\",2.3905882352941177],[\"2010-09-12\",4.418125],[\"2010-09-13\",3.0474647887323942],[\"2010-09-14\",3.6096551724137926],[\"2010-09-15\",3.2325000000000004],[\"2010-09-16\",4.188444444444444],[\"2010-09-17\",5.109166666666667],[\"2010-09-19\",3.0396296296296295],[\"2010-09-20\",6.176984126984126],[\"2010-09-21\",2.352967032967033],[\"2010-09-22\",2.201627906976744],[\"2010-09-23\",5.716129032258064],[\"2010-09-24\",3.806857142857143],[\"2010-09-26\",2.95078125],[\"2010-09-27\",3.557962962962963],[\"2010-09-28\",4.03675],[\"2010-09-29\",5.016481481481481],[\"2010-09-30\",3.856346153846154],[\"2010-10-01\",5.132564102564103],[\"2010-10-03\",2.0460869565217394],[\"2010-10-04\",3.552888888888889],[\"2010-10-05\",2.7676923076923075],[\"2010-10-06\",3.587307692307692],[\"2010-10-07\",3.369830508474576],[\"2010-10-08\",3.1551063829787234],[\"2010-10-10\",3.355625],[\"2010-10-11\",4.855961538461539],[\"2010-10-12\",2.8693243243243245],[\"2010-10-13\",2.9],[\"2010-10-14\",4.756326530612245],[\"2010-10-15\",3.27566265060241],[\"2010-10-17\",5.2316666666666665],[\"2010-10-18\",4.7876666666666665],[\"2010-10-19\",4.288571428571428],[\"2010-10-20\",3.46],[\"2010-10-21\",8.773333333333333],[\"2010-10-22\",6.355409836065574],[\"2010-10-24\",6.017142857142857],[\"2010-10-25\",3.209142857142857],[\"2010-10-26\",4.045205479452055],[\"2010-10-27\",5.1686046511627906],[\"2010-10-28\",4.043947368421052],[\"2010-10-29\",3.553066666666667],[\"2010-10-31\",4.470000000000001],[\"2010-11-01\",3.3085714285714287],[\"2010-11-02\",3.797457627118644],[\"2010-11-03\",6.6152],[\"2010-11-04\",3.3376724137931038],[\"2010-11-05\",4.566666666666666],[\"2010-11-07\",3.552962962962963],[\"2010-11-08\",5.766666666666667],[\"2010-11-09\",4.662727272727273],[\"2010-11-10\",4.109611650485437],[\"2010-11-11\",3.4426315789473687],[\"2010-11-12\",3.196923076923077],[\"2010-11-14\",4.97],[\"2010-11-15\",4.072727272727273],[\"2010-11-16\",4.0222549019607845],[\"2010-11-17\",8.095625],[\"2010-11-18\",3.854943820224719],[\"2010-11-19\",8.050144927536232],[\"2010-11-21\",3.9802631578947367],[\"2010-11-22\",3.817230769230769],[\"2010-11-23\",3.261369863013699],[\"2010-11-24\",4.933854166666666],[\"2010-11-25\",3.7142307692307694],[\"2010-11-26\",2.8076595744680852],[\"2010-11-28\",7.747115384615385],[\"2010-11-29\",3.521641791044776],[\"2010-11-30\",2.5597894736842104],[\"2010-12-01\",3.3451612903225807],[\"2010-12-02\",2.6269026548672563],[\"2010-12-03\",4.589166666666667],[\"2010-12-05\",4.727435897435898],[\"2010-12-06\",3.323793103448276],[\"2010-12-07\",4.073055555555555],[\"2010-12-08\",4.102247191011236],[\"2010-12-09\",3.65041237113402],[\"2010-12-10\",3.8],[\"2010-12-12\",5.776842105263158],[\"2010-12-13\",2.992],[\"2010-12-14\",3.670375],[\"2010-12-15\",4.219285714285714],[\"2010-12-16\",4.598376068376068],[\"2010-12-17\",4.071228070175438],[\"2010-12-19\",3.225],[\"2010-12-20\",3.128974358974359],[\"2010-12-21\",4.002285714285715],[\"2010-12-22\",2.378823529411765],[\"2010-12-23\",2.6723076923076925],[\"2011-01-04\",3.4763636363636365],[\"2011-01-05\",3.6233333333333335],[\"2011-01-06\",2.231666666666667],[\"2011-01-07\",4.9075],[\"2011-01-09\",4.013461538461538],[\"2011-01-10\",4.251111111111111],[\"2011-01-11\",3.7800000000000002],[\"2011-01-12\",11.445172413793104],[\"2011-01-13\",2.698],[\"2011-01-14\",4.263513513513513],[\"2011-01-16\",3.67],[\"2011-01-17\",2.96725],[\"2011-01-18\",3.492857142857143],[\"2011-01-19\",3.5944444444444446],[\"2011-01-20\",3.0284444444444443],[\"2011-01-21\",4.725714285714285],[\"2011-01-23\",7.772],[\"2011-01-24\",3.737027027027027],[\"2011-01-25\",3.2453846153846153],[\"2011-01-26\",3.8625000000000003],[\"2011-01-27\",4.348648648648648],[\"2011-01-28\",5.367],[\"2011-01-30\",2.21],[\"2011-01-31\",4.283714285714286],[\"2011-02-01\",4.221904761904762],[\"2011-02-02\",2.3649999999999998],[\"2011-02-03\",4.607777777777778],[\"2011-02-04\",10.738095238095237],[\"2011-02-07\",4.417419354838709],[\"2011-02-08\",2.881875],[\"2011-02-09\",5.153076923076923],[\"2011-02-10\",8.178823529411764],[\"2011-02-11\",9.467586206896552],[\"2011-02-13\",3.446],[\"2011-02-14\",4.4559999999999995],[\"2011-02-15\",3.191470588235294],[\"2011-02-16\",2.688727272727273],[\"2011-02-17\",3.1310526315789473],[\"2011-02-18\",2.8596875],[\"2011-02-20\",4.406666666666666],[\"2011-02-21\",3.8955555555555557],[\"2011-02-22\",2.707241379310345],[\"2011-02-23\",4.465185185185185],[\"2011-02-24\",3.9556],[\"2011-02-25\",3.5707500000000003],[\"2011-02-27\",3.0338461538461536],[\"2011-02-28\",13.613333333333335],[\"2011-03-01\",18.93618181818182],[\"2011-03-02\",3.099411764705882],[\"2011-03-03\",5.574871794871795],[\"2011-03-04\",4.125581395348838],[\"2011-03-06\",4.07125],[\"2011-03-07\",9.83235294117647],[\"2011-03-08\",4.547575757575757],[\"2011-03-09\",4.570888888888889],[\"2011-03-10\",4.258372093023255],[\"2011-03-11\",4.782653061224489],[\"2011-03-14\",3.3762857142857143],[\"2011-03-15\",4.416842105263158],[\"2011-03-16\",3.377608695652174],[\"2011-03-17\",2.7523529411764707],[\"2011-03-18\",3.907758620689655],[\"2011-03-20\",4.387076923076924],[\"2011-03-21\",2.468936170212766],[\"2011-03-22\",2.539375],[\"2011-03-23\",4.136818181818182],[\"2011-03-24\",2.6779166666666665],[\"2011-03-25\",2.6782051282051285],[\"2011-03-27\",5.429047619047619],[\"2011-03-28\",8.715116279069768],[\"2011-03-29\",3.678421052631579],[\"2011-03-30\",3.1910000000000003],[\"2011-03-31\",5.062413793103448],[\"2011-04-01\",3.7162162162162162],[\"2011-04-03\",2.9942105263157894],[\"2011-04-04\",193.91809523809525],[\"2011-04-05\",6.400434782608696],[\"2011-04-06\",3.335],[\"2011-04-07\",3.9801886792452827],[\"2011-04-08\",4.110746268656716],[\"2011-04-10\",6.1],[\"2011-04-11\",3.061086956521739],[\"2011-04-12\",3.4103125],[\"2011-04-13\",3.957441860465116],[\"2011-04-14\",3.1911688311688313],[\"2011-04-15\",5.851666666666667],[\"2011-04-17\",3.1614285714285715],[\"2011-04-18\",3.151875],[\"2011-04-19\",2.2485],[\"2011-04-20\",3.354807692307692],[\"2011-04-21\",3.618360655737705],[\"2011-04-26\",4.076724137931034],[\"2011-04-27\",3.9739285714285715],[\"2011-04-28\",11.274912280701754],[\"2011-05-01\",4.1899999999999995],[\"2011-05-03\",5.665636363636364],[\"2011-05-04\",3.4808474576271187],[\"2011-05-05\",4.682061855670104],[\"2011-05-06\",4.879830508474576],[\"2011-05-08\",2.656875],[\"2011-05-09\",3.6853846153846157],[\"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-22\",3.953095238095238],[\"2011-05-23\",4.1470769230769235],[\"2011-05-24\",5.244647887323944],[\"2011-05-25\",2.7404761904761905],[\"2011-05-26\",6.34875],[\"2011-05-27\",3.2464814814814815],[\"2011-05-29\",2.6258333333333335],[\"2011-05-31\",4.00578947368421],[\"2011-06-01\",3.951935483870968],[\"2011-06-02\",3.872666666666667],[\"2011-06-03\",4.091875],[\"2011-06-05\",4.384444444444444],[\"2011-06-06\",3.3066666666666666],[\"2011-06-07\",3.1623636363636365],[\"2011-06-08\",3.4485074626865675],[\"2011-06-09\",4.249818181818182],[\"2011-06-10\",4.9411538461538465],[\"2011-06-12\",8.834999999999999],[\"2011-06-13\",3.351666666666667],[\"2011-06-14\",3.204],[\"2011-06-15\",4.550869565217392],[\"2011-06-16\",2.857894736842105],[\"2011-06-17\",3.221388888888889],[\"2011-06-19\",2.338214285714286],[\"2011-06-20\",68.40395833333334],[\"2011-06-21\",4.466969696969697],[\"2011-06-22\",2.8235],[\"2011-06-23\",2.592608695652174],[\"2011-06-24\",3.056190476190476],[\"2011-06-26\",7.047142857142857],[\"2011-06-27\",1.997391304347826],[\"2011-06-28\",3.094791666666667],[\"2011-06-29\",4.336129032258064],[\"2011-06-30\",11.425142857142857],[\"2011-07-01\",6.5818518518518525],[\"2011-07-03\",4.398888888888889],[\"2011-07-04\",3.787352941176471],[\"2011-07-05\",3.169655172413793],[\"2011-07-06\",2.4479661016949152],[\"2011-07-07\",3.8013793103448275],[\"2011-07-08\",9.609473684210528],[\"2011-07-10\",1.158],[\"2011-07-11\",2.9802631578947367],[\"2011-07-12\",2.1441666666666666],[\"2011-07-13\",4.7070454545454545],[\"2011-07-14\",4.534042553191489],[\"2011-07-15\",3.6704761904761902],[\"2011-07-17\",4.009318181818181],[\"2011-07-18\",6.26],[\"2011-07-19\",2.4946153846153845],[\"2011-07-20\",3.513157894736842],[\"2011-07-21\",3.5733333333333333],[\"2011-07-22\",2.7065],[\"2011-07-24\",3.548],[\"2011-07-25\",4.229846153846154],[\"2011-07-26\",3.9724242424242426],[\"2011-07-27\",3.635714285714286],[\"2011-07-28\",3.4259770114942527],[\"2011-07-29\",3.1955263157894733],[\"2011-07-31\",3.5477272727272724],[\"2011-08-01\",1.7383333333333333],[\"2011-08-02\",2.110625],[\"2011-08-03\",3.338],[\"2011-08-04\",4.298450704225352],[\"2011-08-05\",3.5256],[\"2011-08-07\",2.40425],[\"2011-08-08\",5.336666666666667],[\"2011-08-09\",4.949642857142857],[\"2011-08-10\",3.603548387096774],[\"2011-08-11\",4.168913043478261],[\"2011-08-12\",3.010625],[\"2011-08-14\",7.559565217391304],[\"2011-08-15\",1.7810344827586206],[\"2011-08-16\",3.183170731707317],[\"2011-08-17\",1.4523529411764706],[\"2011-08-18\",3.2051282051282053],[\"2011-08-19\",3.1640476190476186],[\"2011-08-21\",2.590909090909091],[\"2011-08-22\",3.0494736842105263],[\"2011-08-23\",2.520487804878049],[\"2011-08-24\",2.576911764705882],[\"2011-08-25\",5.572105263157895],[\"2011-08-26\",7.153333333333332],[\"2011-08-28\",2.4464705882352944],[\"2011-08-30\",5.129130434782609],[\"2011-08-31\",6.927],[\"2011-09-01\",2.5911940298507465],[\"2011-09-02\",2.1298305084745763],[\"2011-09-04\",3.2022857142857144],[\"2011-09-05\",2.4376666666666664],[\"2011-09-06\",3.9920338983050847],[\"2011-09-07\",3.5068421052631575],[\"2011-09-08\",4.061525423728813],[\"2011-09-09\",5.030487804878049],[\"2011-09-11\",2.3823529411764706],[\"2011-09-12\",2.321632653061225],[\"2011-09-13\",5.619047619047619],[\"2011-09-14\",2.93472972972973],[\"2011-09-15\",5.052307692307692],[\"2011-09-16\",3.0852173913043477],[\"2011-09-18\",2.9166666666666665],[\"2011-09-19\",2.638723404255319],[\"2011-09-20\",3.5164],[\"2011-09-21\",2.999166666666667],[\"2011-09-22\",3.7895774647887324],[\"2011-09-23\",4.655714285714286],[\"2011-09-25\",4.3684375],[\"2011-09-26\",2.5783870967741938],[\"2011-09-27\",3.0764285714285715],[\"2011-09-28\",3.3638636363636363],[\"2011-09-29\",3.0076315789473687],[\"2011-09-30\",4.004222222222222],[\"2011-10-02\",4.260769230769231],[\"2011-10-03\",11.823823529411765],[\"2011-10-04\",3.790731707317073],[\"2011-10-05\",4.818153846153846],[\"2011-10-06\",3.0617441860465116],[\"2011-10-07\",2.755084745762712],[\"2011-10-09\",4.926666666666667],[\"2011-10-10\",3.521698113207547],[\"2011-10-11\",4.1001666666666665],[\"2011-10-12\",3.6183050847457627],[\"2011-10-13\",3.356346153846154],[\"2011-10-14\",3.273823529411765],[\"2011-10-17\",3.346923076923077],[\"2011-10-18\",4.432894736842106],[\"2011-10-19\",83.71802631578947],[\"2011-10-20\",3.0166666666666666],[\"2011-10-21\",4.407619047619048],[\"2011-10-23\",3.3579999999999997],[\"2011-10-24\",3.1915625],[\"2011-10-25\",10.853333333333333],[\"2011-10-26\",4.0545],[\"2011-10-27\",4.249705882352941],[\"2011-10-28\",3.419166666666667],[\"2011-10-30\",4.3769230769230765],[\"2011-10-31\",2.597872340425532],[\"2011-11-01\",3.6906818181818184],[\"2011-11-02\",2.503448275862069],[\"2011-11-03\",4.130909090909091],[\"2011-11-04\",3.040392156862745],[\"2011-11-06\",3.7903278688524593],[\"2011-11-07\",5.018450704225352],[\"2011-11-08\",3.167042253521127],[\"2011-11-09\",3.15],[\"2011-11-10\",15.689545454545454],[\"2011-11-11\",2.4724444444444447],[\"2011-11-13\",3.878064516129032],[\"2011-11-14\",3.2497674418604654],[\"2011-11-15\",3.0860256410256413],[\"2011-11-16\",5.15578431372549],[\"2011-11-17\",4.661818181818181],[\"2011-11-18\",4.1925],[\"2011-11-20\",2.1726190476190474],[\"2011-11-21\",3.352909090909091],[\"2011-11-22\",2.8920454545454546],[\"2011-11-23\",3.3629347826086957],[\"2011-11-24\",2.4713333333333334],[\"2011-11-25\",4.415],[\"2011-11-27\",3.4442857142857144],[\"2011-11-28\",2.5276315789473682],[\"2011-11-29\",4.47375],[\"2011-11-30\",3.5234000000000005],[\"2011-12-01\",3.40796875],[\"2011-12-02\",4.078823529411765],[\"2011-12-04\",3.1936170212765957],[\"2011-12-05\",5.610824742268041],[\"2011-12-06\",3.2925454545454547],[\"2011-12-07\",2.9996610169491524],[\"2011-12-08\",3.3912],[\"2011-12-09\",4.8088235294117645]]","source":"online_retail_ii","split":"dev","sql":"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.customer_id = ? OR i.invoice_date >= ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC","sql_parameters":"[\"12353\",\"2010-07-14\"]","state":"{\"question\":\"Return the average of l.unit_price for retail lines joined to their invoices where (i.customer_id equals '12353' or i.invoice_date is on or after '2010-07-14'), grouped by i.invoice_date, ordered by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}521{"category":"join/distinct_invoice/or/ranked","domain":"commerce","family_id":"cd57663e272533143103ee61","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"13fe952d1a22b65e991ece073dc147cd9f1d73be81e778e905805713ed1465d5","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.country equals 'Austria' or l.quantity is greater than 648), grouped by i.country; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Austria\\\",648],\\\"sql\\\":\\\"SELECT i.country, 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.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Austria\\\",648],\\\"sql\\\":\\\"SELECT i.country, 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.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Austria\\\",648],\\\"sql\\\":\\\"SELECT i.country, 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.country ORDER BY value ASC, i.country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Austria\\\",648],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR l.quantity > ?) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"United Kingdom\",117],[\"Austria\",4],[\"Sweden\",4],[\"EIRE\",3]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, 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.country ORDER BY value DESC, i.country ASC LIMIT 5","sql_parameters":"[\"Austria\",648]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.country equals 'Austria' or l.quantity is greater than 648), grouped by i.country; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}522{"category":"single_table/or/ranked","domain":"sensor","family_id":"5625863816a99ecc9eb5ea68","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"cf96b84d26f5b0311702f82d23d5778be02806fafd7cfddf1ec450e0a76f2a19","language":"en","license":"CC-BY-4.0","query":"Return the maximum of eps1_mean for hydraulic cycles where (ps1_mean is at most 160.79926 or eps1_mean is greater than 2598.8769), grouped by pump_leakage; return at most 3 groups ordered by aggregate value ASC, breaking ties by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[160.79926,2598.8769],\\\"sql\\\":\\\"SELECT pump_leakage, MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? AND eps1_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[160.79926,2598.8769],\\\"sql\\\":\\\"SELECT pump_leakage, MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR eps1_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[160.79926,2598.8769],\\\"sql\\\":\\\"SELECT pump_leakage, MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR eps1_mean > ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[160.79926,2598.8769],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR eps1_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,2716.9452],[1,2722.5409],[2,2740.641]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR eps1_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3","sql_parameters":"[160.79926,2598.8769]","state":"{\"question\":\"Return the maximum of eps1_mean for hydraulic cycles where (ps1_mean is at most 160.79926 or eps1_mean is greater than 2598.8769), 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\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}523{"category":"single_table/and/grouped","domain":"commerce","family_id":"3437f122497953d23ed184d9","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"227b7cf6c0838f1068ee594a03eabdc5e33c2f114800ca7ebfd1fc830068efa3","language":"en","license":"CC-BY-4.0","query":"Return the minimum of product_duration for shopping sessions where (month equals 'Feb' and product_related is greater than 31), grouped by month, ordered by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Feb\\\",31],\\\"sql\\\":\\\"SELECT month, MIN(product_duration) AS value FROM shopping_sessions WHERE (month = ? OR product_related > ?) GROUP BY month ORDER BY month ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Feb\\\",31],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (month = ? AND product_related > ?) GROUP BY month ORDER BY month ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Feb\\\",31],\\\"sql\\\":\\\"SELECT month, MIN(product_duration) AS value FROM shopping_sessions WHERE (month = ? AND product_related > ?) GROUP BY month ORDER BY month ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Feb\\\",31],\\\"sql\\\":\\\"SELECT month, SUM(product_duration) AS value FROM shopping_sessions WHERE (month = ? AND product_related > ?) GROUP BY month ORDER BY month ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Feb\",998.7416667]]","source":"online_shoppers","split":"dev","sql":"SELECT month, MIN(product_duration) AS value FROM shopping_sessions WHERE (month = ? AND product_related > ?) GROUP BY month ORDER BY month ASC","sql_parameters":"[\"Feb\",31]","state":"{\"question\":\"Return the minimum of product_duration for shopping sessions where (month equals 'Feb' and product_related is greater than 31), grouped by month, ordered by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}524{"category":"join/having","domain":"commerce","family_id":"03967319de7002ef3007ecff","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"37abff13906849128481086c79a377ff32ed59e54c98874fbe96b1039fe7d700","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail lines joined to their invoices where (i.country equals 'Bahrain'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Bahrain\\\",10],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Bahrain\\\",10],\\\"sql\\\":\\\"SELECT i.country, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Bahrain\\\",10],\\\"sql\\\":\\\"SELECT i.country, MIN(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Bahrain\\\",10],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Bahrain\",11]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3","sql_parameters":"[\"Bahrain\",10]","state":"{\"question\":\"Return the number of rows for retail lines joined to their invoices where (i.country equals 'Bahrain'), 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_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}525{"category":"single_table/having","domain":"commerce","family_id":"ea8d1ae863349391165bf5a5","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"1b835ac174f81ad50ca4b2fd8e9274c4ca380f8c4ae3f6f8ca1c6b402e223b6c","language":"en","license":"CC-BY-4.0","query":"Return the sum of unit_price for retail invoice lines where (quantity is greater than 25), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[25,2],\\\"sql\\\":\\\"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (quantity > ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[25,2],\\\"sql\\\":\\\"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (quantity > ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[25,2],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (quantity > ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[25,2],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (quantity > ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-12-01\",160.6],[\"2010-12-07\",127.72],[\"2010-10-14\",115.52],[\"2010-12-02\",101.1],[\"2010-03-18\",100.76]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (quantity > ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5","sql_parameters":"[25,2]","state":"{\"question\":\"Return the sum of unit_price for retail invoice lines where (quantity is greater than 25), 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\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}526{"category":"join/date/or/grouped","domain":"commerce","family_id":"e6666ef4bd7bbeab6e0cffe9","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"52471e8e17786be59005a50b7a3e47ed2d2f046aba71df85928809541d2423df","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.quantity for retail lines joined to their invoices where (l.quantity is greater than 648 or i.invoice_date is on or after '2011-05-10'), grouped by i.country, ordered by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[648,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) 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 ORDER BY i.country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[648,\\\"2011-05-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.invoice_date >= ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[648,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) 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 ORDER BY i.country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[648,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT i.country, 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 >= ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",100],[\"Bahrain\",20],[\"Belgium\",775],[\"Canada\",52],[\"Channel Islands\",882],[\"Denmark\",733],[\"EIRE\",7458],[\"Finland\",1321],[\"France\",1750],[\"Germany\",4475],[\"Israel\",4],[\"Italy\",22],[\"Japan\",2520],[\"Netherlands\",1805],[\"Norway\",8],[\"Poland\",49],[\"Portugal\",10],[\"Singapore\",2],[\"Spain\",1286],[\"Sweden\",5574],[\"Switzerland\",3],[\"United Kingdom\",587761]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, SUM(l.quantity) 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 ORDER BY i.country ASC","sql_parameters":"[648,\"2011-05-10\"]","state":"{\"question\":\"Return the sum of l.quantity for retail lines joined to their invoices where (l.quantity is greater than 648 or i.invoice_date is on or after '2011-05-10'), grouped by i.country, ordered by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}527{"category":"single_table/date/ranked","domain":"commerce","family_id":"d2ce3cd8a05ff9efbd32a52d","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"3c08a16ff2b5ced5bbec5dc03cf49a61c21bd5ab251ad5c0d835af4d3a912fc0","language":"en","license":"CC-BY-4.0","query":"Return the average of unit_price for retail invoice lines where (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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-04-04\",193.91809523809525],[\"2011-10-19\",83.71802631578947],[\"2011-06-20\",68.40395833333334],[\"2011-03-01\",18.93618181818182],[\"2011-11-10\",15.689545454545454]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5","sql_parameters":"[\"2010-12-02\"]","state":"{\"question\":\"Return the average of unit_price for retail invoice lines where (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\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}528{"category":"single_table/or/having","domain":"commerce","family_id":"09413b5d8f225d33cb0b7398","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"6d0ecc86e41c2582bf2f968c068a6b610fd094757077f2a6347914c858154a05","language":"en","license":"CC-BY-4.0","query":"Return the sum of quantity for retail invoice lines where (country equals 'Channel Islands' or unit_price is at most 0.55), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\",0.55,10],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\",0.55],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\",0.55,10],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\",0.55,10],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-11-20\",238],[\"2010-03-12\",360],[\"2011-11-16\",408]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3","sql_parameters":"[\"Channel Islands\",0.55,10]","state":"{\"question\":\"Return the sum of quantity for retail invoice lines where (country equals 'Channel Islands' or unit_price is at most 0.55), 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\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}529{"category":"single_table/and/aggregate","domain":"commerce","family_id":"4c41e6922d4d5642cf3a1ee2","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"3e87e9baed91c5e5e3b3e7d9d18334ac3c90e76215e0d75d9a81fa3672c160df","language":"en","license":"CC-BY-4.0","query":"Return the maximum of product_duration for shopping sessions where (traffic_type equals 1 and product_duration is greater than 3395.729484).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[1,3395.729484],\\\"sql\\\":\\\"SELECT MAX(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ? OR product_duration > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[1,3395.729484],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (traffic_type = ? AND product_duration > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[1,3395.729484],\\\"sql\\\":\\\"SELECT MAX(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ? AND product_duration > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[1,3395.729484],\\\"sql\\\":\\\"SELECT SUM(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ? AND product_duration > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[23342.08205]]","source":"online_shoppers","split":"dev","sql":"SELECT MAX(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ? AND product_duration > ?)","sql_parameters":"[1,3395.729484]","state":"{\"question\":\"Return the maximum of product_duration for shopping sessions where (traffic_type equals 1 and product_duration is greater than 3395.729484).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}530{"category":"single_table/and/grouped","domain":"commerce","family_id":"da3c690b99d431966c18903c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"a5f8341aef23209724faf69520ef22b02a0f9c0a4f44af813f5caeb8bf0327ed","language":"en","license":"CC-BY-4.0","query":"Return the sum of product_duration for shopping sessions where (traffic_type equals 15 and product_duration is greater than 472.4166667), grouped by revenue, ordered by revenue ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[15,472.4166667],\\\"sql\\\":\\\"SELECT revenue, SUM(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ? OR product_duration > ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[15,472.4166667],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (traffic_type = ? AND product_duration > ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[15,472.4166667],\\\"sql\\\":\\\"SELECT revenue, SUM(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ? AND product_duration > ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[15,472.4166667],\\\"sql\\\":\\\"SELECT revenue, AVG(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ? AND product_duration > ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,18508.781015]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, SUM(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ? AND product_duration > ?) GROUP BY revenue ORDER BY revenue ASC","sql_parameters":"[15,472.4166667]","state":"{\"question\":\"Return the sum of product_duration for shopping sessions where (traffic_type equals 15 and product_duration is greater than 472.4166667), grouped by revenue, ordered by revenue ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}531{"category":"join/date/or/grouped","domain":"commerce","family_id":"0ce925b0878aa0bbe66d831a","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"acbeacdfed97048317187b21aab355a516178caf959a05bdc3a0b551d7d43889","language":"en","license":"CC-BY-4.0","query":"Return the average of l.quantity for retail lines joined to their invoices where (l.quantity is at most 648 or i.invoice_date is before '2010-07-14'), grouped by i.country, ordered by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[648,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT i.country, AVG(l.quantity) 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 ORDER BY i.country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[648,\\\"2010-07-14\\\"],\\\"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.invoice_date < ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[648,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) 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 ORDER BY i.country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[648,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT i.country, 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 < ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",15.127659574468085],[\"Austria\",12.722222222222221],[\"Bahrain\",8.818181818181818],[\"Belgium\",12.921052631578947],[\"Canada\",10.4],[\"Channel Islands\",103.41666666666667],[\"Cyprus\",47.125],[\"Denmark\",59.8],[\"EIRE\",48.03482587064676],[\"Finland\",38.35616438356164],[\"France\",25.04201680672269],[\"Germany\",19.208092485549134],[\"Israel\",4.25],[\"Italy\",18.4],[\"Japan\",135.31578947368422],[\"Netherlands\",66.23728813559322],[\"Norway\",7.125],[\"Poland\",26.166666666666668],[\"Portugal\",10.428571428571429],[\"Singapore\",1.0],[\"Spain\",54.77450980392157],[\"Sweden\",111.69565217391305],[\"Switzerland\",25.7027027027027],[\"USA\",12.0],[\"United Arab Emirates\",1.0],[\"United Kingdom\",38.61352541969282]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, 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 < ?) GROUP BY i.country ORDER BY i.country ASC","sql_parameters":"[648,\"2010-07-14\"]","state":"{\"question\":\"Return the average of l.quantity for retail lines joined to their invoices where (l.quantity is at most 648 or i.invoice_date is before '2010-07-14'), grouped by i.country, ordered by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}532{"category":"join/date/or/aggregate","domain":"commerce","family_id":"6f359a659c84405e684c5de8","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"e2f87a23843bbe1d8fbe7cf368d6319f4c53b52117a52e5255d1daa887745864","language":"en","license":"CC-BY-4.0","query":"Return the maximum 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 before '2011-09-29').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[4.77,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT MAX(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ? AND i.invoice_date < ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[4.77,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ? OR i.invoice_date < ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[4.77,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT SUM(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_4\":\"{\\\"parameters\\\":[4.77,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT 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 < ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[3949.32]]","source":"online_retail_ii","split":"dev","sql":"SELECT 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 < ?)","sql_parameters":"[4.77,\"2011-09-29\"]","state":"{\"question\":\"Return the maximum 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 before '2011-09-29').\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}533{"category":"single_table/and/aggregate","domain":"sensor","family_id":"dceacd295a154f2cc22e0850","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"50bf63b1695bfc940e8146d6489fba835968d8c8b5f933212f481c258fe860d0","language":"en","license":"CC-BY-4.0","query":"Return the minimum of vs1_mean for hydraulic cycles where (ps2_mean is at most 122.4767 and fs1_mean is greater than 6.63763).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[122.4767,6.63763],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND fs1_mean > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[122.4767,6.63763],\\\"sql\\\":\\\"SELECT MIN(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND fs1_mean > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[122.4767,6.63763],\\\"sql\\\":\\\"SELECT SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND fs1_mean > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[122.4767,6.63763],\\\"sql\\\":\\\"SELECT AVG(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND fs1_mean > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0.52437]]","source":"hydraulic","split":"dev","sql":"SELECT MIN(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND fs1_mean > ?)","sql_parameters":"[122.4767,6.63763]","state":"{\"question\":\"Return the minimum of vs1_mean for hydraulic cycles where (ps2_mean is at most 122.4767 and fs1_mean is greater than 6.63763).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}534{"category":"single_table/and/aggregate","domain":"sensor","family_id":"469bd6df725bc547e8d45d8e","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"d404cd27fa22e60ce174255f588556700649cbee185a29920af6b7203ba73b04","language":"en","license":"CC-BY-4.0","query":"Return the average of vs1_mean for hydraulic cycles where (fs1_mean is greater than 6.41875 and ts1_mean is greater than 35.56605).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[6.41875,35.56605],\\\"sql\\\":\\\"SELECT AVG(vs1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ? OR ts1_mean > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[6.41875,35.56605],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (fs1_mean > ? AND ts1_mean > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[6.41875,35.56605],\\\"sql\\\":\\\"SELECT SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ? AND ts1_mean > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[6.41875,35.56605],\\\"sql\\\":\\\"SELECT AVG(vs1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ? AND ts1_mean > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0.6039120195195194]]","source":"hydraulic","split":"dev","sql":"SELECT AVG(vs1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ? AND ts1_mean > ?)","sql_parameters":"[6.41875,35.56605]","state":"{\"question\":\"Return the average of vs1_mean for hydraulic cycles where (fs1_mean is greater than 6.41875 and ts1_mean is greater than 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_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}535{"category":"single_table/date/and/having","domain":"commerce","family_id":"07beedff902c8aef417e30ac","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"9bddbf3065e2e23f62632e32bf994aaf77045230a6301299e4c3efb5c77f2096","language":"en","license":"CC-BY-4.0","query":"Return the sum of quantity for retail invoice lines where (quantity is at most 229 and invoice_date is on or after '2010-07-14'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[229,\\\"2010-07-14\\\",2],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[229,\\\"2010-07-14\\\",2],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[229,\\\"2010-07-14\\\",2],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[229,\\\"2010-07-14\\\",2],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"United Kingdom\",476113],[\"Germany\",7826],[\"EIRE\",4951],[\"Netherlands\",4400],[\"France\",4067]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5","sql_parameters":"[229,\"2010-07-14\",2]","state":"{\"question\":\"Return the sum of quantity for retail invoice lines where (quantity is at most 229 and invoice_date is on or after '2010-07-14'), 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_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}536{"category":"single_table/and/aggregate","domain":"commerce","family_id":"1a2c01722b00d02044db1194","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"c9b9c5f4ff0e111553b6cc6a14840eeee9c09918db6bfd730ce6e6aa301ccc57","language":"en","license":"CC-BY-4.0","query":"Return the average of administrative for shopping sessions where (visitor_type equals 'Other' and product_duration is greater than 3395.729484).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Other\\\",3395.729484],\\\"sql\\\":\\\"SELECT AVG(administrative) AS value FROM shopping_sessions WHERE (visitor_type = ? AND product_duration > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Other\\\",3395.729484],\\\"sql\\\":\\\"SELECT AVG(administrative) AS value FROM shopping_sessions WHERE (visitor_type = ? OR product_duration > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Other\\\",3395.729484],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (visitor_type = ? AND product_duration > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Other\\\",3395.729484],\\\"sql\\\":\\\"SELECT SUM(administrative) AS value FROM shopping_sessions WHERE (visitor_type = ? AND product_duration > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[2.3333333333333335]]","source":"online_shoppers","split":"dev","sql":"SELECT AVG(administrative) AS value FROM shopping_sessions WHERE (visitor_type = ? AND product_duration > ?)","sql_parameters":"[\"Other\",3395.729484]","state":"{\"question\":\"Return the average of administrative for shopping sessions where (visitor_type equals 'Other' and product_duration is greater than 3395.729484).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}537{"category":"single_table/or/grouped","domain":"commerce","family_id":"ebbf14bdecd6b4e18eb1bdd9","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"998d8883df3d79d30acee6cee3ecc2a07f5b6d46500777a40593e6c8046001bb","language":"en","license":"CC-BY-4.0","query":"Return the sum of quantity for retail invoice lines where (country equals 'EIRE' or unit_price is at most 8.5), grouped by country, ordered by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"EIRE\\\",8.5],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"EIRE\\\",8.5],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"EIRE\\\",8.5],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"EIRE\\\",8.5],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY country ORDER BY country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",708],[\"Austria\",225],[\"Bahrain\",91],[\"Belgium\",900],[\"Canada\",52],[\"Channel Islands\",2480],[\"Cyprus\",754],[\"Denmark\",884],[\"EIRE\",13495],[\"Finland\",2772],[\"France\",5880],[\"Germany\",9689],[\"Israel\",34],[\"Italy\",269],[\"Japan\",2570],[\"Netherlands\",7752],[\"Norway\",108],[\"Poland\",156],[\"Portugal\",208],[\"Spain\",5553],[\"Sweden\",10984],[\"Switzerland\",940],[\"USA\",36],[\"United Kingdom\",1159519]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY country ORDER BY country ASC","sql_parameters":"[\"EIRE\",8.5]","state":"{\"question\":\"Return the sum of quantity for retail invoice lines where (country equals 'EIRE' 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\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}538{"category":"join/and/aggregate","domain":"commerce","family_id":"259f2b024fdad97be81e059c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"b0c3dd584fad2e90ed54c9f3c5a7d47edad34cacf32529ba0d563443dbce5bd0","language":"en","license":"CC-BY-4.0","query":"Return the minimum of l.quantity for retail lines joined to their invoices where (i.country equals 'EIRE' and l.unit_price is at most 0.55).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"EIRE\\\",0.55],\\\"sql\\\":\\\"SELECT MIN(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND l.unit_price <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"EIRE\\\",0.55],\\\"sql\\\":\\\"SELECT MIN(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR l.unit_price <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"EIRE\\\",0.55],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND l.unit_price <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"EIRE\\\",0.55],\\\"sql\\\":\\\"SELECT SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND l.unit_price <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[24]]","source":"online_retail_ii","split":"dev","sql":"SELECT MIN(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND l.unit_price <= ?)","sql_parameters":"[\"EIRE\",0.55]","state":"{\"question\":\"Return the minimum of l.quantity for retail lines joined to their invoices where (i.country equals 'EIRE' and l.unit_price is at most 0.55).\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}539{"category":"single_table/grouped","domain":"sensor","family_id":"fa6e3fa21dc94254c8af6263","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"be81b96aec6e211c84cec64e3eee8a4f6bde870065de2569cdfef2e2bcf9e5c1","language":"en","license":"CC-BY-4.0","query":"Return the sum of ts1_mean for hydraulic cycles where (fs1_mean is greater than 6.57291), grouped by valve, ordered by valve ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[6.57291],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (fs1_mean > ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[6.57291],\\\"sql\\\":\\\"SELECT valve, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[6.57291],\\\"sql\\\":\\\"SELECT valve, SUM(ts1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[6.57291],\\\"sql\\\":\\\"SELECT valve, MIN(ts1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ?) GROUP BY valve ORDER BY valve ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[73,3230.58132],[80,4070.03695],[90,5079.29148],[100,37322.07503]]","source":"hydraulic","split":"dev","sql":"SELECT valve, SUM(ts1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ?) GROUP BY valve ORDER BY valve ASC","sql_parameters":"[6.57291]","state":"{\"question\":\"Return the sum of ts1_mean for hydraulic cycles where (fs1_mean is greater than 6.57291), 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\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}540{"category":"join/null/or/having","domain":"commerce","family_id":"65b8bbca9777336968d4504e","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"f5cee0d08f219abf709fbce56b815dba16e36dd0d9cd25044d309e27108589d6","language":"en","license":"CC-BY-4.0","query":"Return the minimum of l.unit_price for retail lines joined to their invoices where (l.unit_price is greater than 0.55 or i.customer_id is present), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[0.55,10],\\\"sql\\\":\\\"SELECT i.country, MIN(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ? OR i.customer_id IS NOT NULL) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[0.55,10],\\\"sql\\\":\\\"SELECT i.country, MIN(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ? AND i.customer_id IS NOT NULL) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[0.55,10],\\\"sql\\\":\\\"SELECT i.country, MIN(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ? OR i.customer_id IS NOT NULL) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[0.55,10],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ? OR i.customer_id IS NOT NULL) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Germany\",0.04],[\"United Kingdom\",0.04],[\"Sweden\",0.09]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, MIN(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ? OR i.customer_id IS NOT NULL) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3","sql_parameters":"[0.55,10]","state":"{\"question\":\"Return the minimum of l.unit_price for retail lines joined to their invoices where (l.unit_price is greater than 0.55 or i.customer_id is present), 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_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}541{"category":"single_table/and/having","domain":"sensor","family_id":"bce27e275fd8d02eebe8fda3","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"cc68ff31535807dd5cb5f11eb8e35d2fd9094d4a4103d6ca40bb62d952b5c3f2","language":"en","license":"CC-BY-4.0","query":"Return the sum of ps2_mean for hydraulic cycles where (accumulator equals 100 and ps1_mean is at most 156.56746), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[100,156.56746,2],\\\"sql\\\":\\\"SELECT valve, SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ? OR ps1_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[100,156.56746,2],\\\"sql\\\":\\\"SELECT valve, SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ? AND ps1_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[100,156.56746,2],\\\"sql\\\":\\\"SELECT valve, SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ? AND ps1_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[100,156.56746,2],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (accumulator = ? AND ps1_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[100,1689.74547],[80,944.7302999999999],[73,943.1709],[90,737.41461]]","source":"hydraulic","split":"dev","sql":"SELECT valve, SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ? AND ps1_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 5","sql_parameters":"[100,156.56746,2]","state":"{\"question\":\"Return the sum of ps2_mean for hydraulic cycles where (accumulator equals 100 and ps1_mean is at most 156.56746), 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\":{\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}542{"category":"single_table/date/or/ranked","domain":"commerce","family_id":"3d236f27e2a751d2a9415172","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"3fff3b2f60e5cb62aa05bedca63ce81f846dcef674e33eb9d07f694bce6fcf05","language":"en","license":"CC-BY-4.0","query":"Return the maximum of quantity for retail invoice lines where (country equals 'Cyprus' or invoice_date is on or after '2011-09-29'), grouped by invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MAX(quantity) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MAX(quantity) AS value FROM retail_lines WHERE (country = ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MAX(quantity) AS value FROM retail_lines WHERE (country = ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-02-22\",2],[\"2011-10-23\",2],[\"2010-01-26\",12]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MAX(quantity) AS value FROM retail_lines WHERE (country = ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3","sql_parameters":"[\"Cyprus\",\"2011-09-29\"]","state":"{\"question\":\"Return the maximum of quantity for retail invoice lines where (country equals 'Cyprus' or invoice_date is on or after '2011-09-29'), grouped by invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by invoice_date ascending.\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}543{"category":"join/distinct_invoice/and/having","domain":"commerce","family_id":"32a65d5e3556026030efd042","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"abb4ea445c898af907949a19e48ec6de97c28d0f20cd6cf589c9308b63bb2e90","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.customer_id equals '12353' and l.quantity is at most 1800), grouped by i.country, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12353\\\",1800,2],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? AND l.quantity <= ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12353\\\",1800,2],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR l.quantity <= ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12353\\\",1800,2],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? AND l.quantity <= ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12353\\\",1800,2],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? AND l.quantity <= ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Bahrain\",1]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? AND l.quantity <= ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5","sql_parameters":"[\"12353\",1800,2]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.customer_id equals '12353' and l.quantity is at most 1800), grouped by i.country, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}544{"category":"join/distinct_invoice/grouped","domain":"commerce","family_id":"d810d6f3bf8b64646104452c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"2552b803493c3f5e74337038828e8a5fb3fd72c5ff4c0088884196310e2e8039","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.quantity is greater than 1800), grouped by i.country, ordered by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[1800],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[1800],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[1800],\\\"sql\\\":\\\"SELECT i.country, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[1800],\\\"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.quantity > ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"United Kingdom\",18]]","source":"online_retail_ii","split":"dev","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.quantity > ?) GROUP BY i.country ORDER BY i.country ASC","sql_parameters":"[1800]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.quantity is greater than 1800), grouped by i.country, ordered by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}545{"category":"join/date/and/aggregate","domain":"commerce","family_id":"fce4596635cbe86e1cfbe7ae","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"dc5a5afbcf8cdb64671a28660adbd386870f55d1ae98683d7d44e7729de27bb3","language":"en","license":"CC-BY-4.0","query":"Return the minimum of l.unit_price for retail lines joined to their invoices where (l.unit_price is greater than 0.55 and i.invoice_date is on or after '2011-09-29').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[0.55,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT MIN(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\\\":[0.55,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ? AND i.invoice_date >= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[0.55,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT SUM(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ? AND i.invoice_date >= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[0.55,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT MIN(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ? AND i.invoice_date >= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0.58]]","source":"online_retail_ii","split":"dev","sql":"SELECT MIN(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ? AND i.invoice_date >= ?)","sql_parameters":"[0.55,\"2011-09-29\"]","state":"{\"question\":\"Return the minimum of l.unit_price for retail lines joined to their invoices where (l.unit_price is greater than 0.55 and i.invoice_date is on or after '2011-09-29').\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}546{"category":"single_table/and/having","domain":"commerce","family_id":"065c922a31f24c9481b5e528","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"de3b5ef9c4d97643d7900ae96124e459a627b676a88a94e0de5a83141e1880db","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail invoice lines where (country equals 'Finland' and quantity is at most 648), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Finland\\\",648,10],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Finland\\\",648,10],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Finland\\\",648],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[10],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3","sql_parameters":"[\"Finland\",648,10]","state":"{\"question\":\"Return the number of rows for retail invoice lines where (country equals 'Finland' and quantity is at most 648), 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\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}547{"category":"single_table/and/grouped","domain":"sensor","family_id":"4475b58fafa8ab9535af54c7","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"a13a9378cbc3fbdc655357ae2f4df168d3dfdc88163b3ed5629cadaeab6a4316","language":"en","license":"CC-BY-4.0","query":"Return the sum of eps1_mean for hydraulic cycles where (ps2_mean is greater than 105.7255 and ts1_mean is at most 35.56605), grouped by cooler, ordered by cooler ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[105.7255,35.56605],\\\"sql\\\":\\\"SELECT cooler, SUM(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? AND ts1_mean <= ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[105.7255,35.56605],\\\"sql\\\":\\\"SELECT cooler, SUM(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? OR ts1_mean <= ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[105.7255,35.56605],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? AND ts1_mean <= ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[105.7255,35.56605],\\\"sql\\\":\\\"SELECT cooler, AVG(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? AND ts1_mean <= ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[100,567443.10582]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, SUM(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? AND ts1_mean <= ?) GROUP BY cooler ORDER BY cooler ASC","sql_parameters":"[105.7255,35.56605]","state":"{\"question\":\"Return the sum of eps1_mean for hydraulic cycles where (ps2_mean is greater than 105.7255 and ts1_mean is at most 35.56605), grouped by cooler, ordered by cooler ascending.\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}548{"category":"single_table/and/aggregate","domain":"sensor","family_id":"54f3bbe26470354f7bbd7f1f","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"5cf6ea50ee6bb9ce88cf88412e29edaf23c88c3cb1f7c4fb953d6b50f96ddf7e","language":"en","license":"CC-BY-4.0","query":"Return the sum of ps1_mean for hydraulic cycles where (ps2_mean is greater than 122.4767 and fs1_mean is greater than 6.57291).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[122.4767,6.57291],\\\"sql\\\":\\\"SELECT SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? AND fs1_mean > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[122.4767,6.57291],\\\"sql\\\":\\\"SELECT SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? OR fs1_mean > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[122.4767,6.57291],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? AND fs1_mean > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT SUM(ps1_mean) AS value FROM hydraulic_cycles\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[null]]","source":"hydraulic","split":"dev","sql":"SELECT SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? AND fs1_mean > ?)","sql_parameters":"[122.4767,6.57291]","state":"{\"question\":\"Return the sum of ps1_mean for hydraulic cycles where (ps2_mean is greater than 122.4767 and 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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}549{"category":"single_table/and/ranked","domain":"commerce","family_id":"47f3d4d2e0e2635557b42983","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"9cac46076b2838c4c488f9a2babb6f58a3c411fec1ca75b607692ca893238aad","language":"en","license":"CC-BY-4.0","query":"Return the maximum of administrative for shopping sessions where (visitor_type equals 'Other' and traffic_type equals 10), grouped by revenue; return at most 3 groups ordered by aggregate value ASC, breaking ties by revenue ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Other\\\",10],\\\"sql\\\":\\\"SELECT revenue, MAX(administrative) AS value FROM shopping_sessions WHERE (visitor_type = ? OR traffic_type = ?) GROUP BY revenue ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Other\\\",10],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (visitor_type = ? AND traffic_type = ?) GROUP BY revenue ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT revenue, MAX(administrative) AS value FROM shopping_sessions GROUP BY revenue ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Other\\\",10],\\\"sql\\\":\\\"SELECT revenue, MAX(administrative) AS value FROM shopping_sessions WHERE (visitor_type = ? AND traffic_type = ?) GROUP BY revenue ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,0]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, MAX(administrative) AS value FROM shopping_sessions WHERE (visitor_type = ? AND traffic_type = ?) GROUP BY revenue ORDER BY value ASC, revenue ASC LIMIT 3","sql_parameters":"[\"Other\",10]","state":"{\"question\":\"Return the maximum of administrative for shopping sessions where (visitor_type equals 'Other' and traffic_type equals 10), 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\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}550{"category":"join/null/or/ranked","domain":"commerce","family_id":"e05936fe6e1ec6f419db1cf0","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"1d0cd6ae21ddaf2a8cb4cb5651f618eb755404a0acaf544324acce73f2e007fa","language":"en","license":"CC-BY-4.0","query":"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.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Australia\\\"],\\\"sql\\\":\\\"SELECT i.country, 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.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Australia\\\"],\\\"sql\\\":\\\"SELECT i.country, 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.country ORDER BY value DESC, i.country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Australia\\\"],\\\"sql\\\":\\\"SELECT i.country, 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.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Australia\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) 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.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Canada\",1.25],[\"USA\",2.55],[\"Israel\",5.95]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, 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.country ORDER BY value ASC, i.country ASC LIMIT 3","sql_parameters":"[\"Australia\"]","state":"{\"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.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}551{"category":"single_table/date/having","domain":"commerce","family_id":"e6a1e078d18b23cb2bd723ec","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"5ab0b837c86b2c09b46a01cf03c94e878d304e58ac86f1fe471269f13129d84b","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (invoice_date is before '2010-07-14'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\",10],\\\"sql\\\":\\\"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\",10],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\",10],\\\"sql\\\":\\\"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-23\",3.75],[\"2010-01-17\",4.95],[\"2010-02-07\",4.95]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3","sql_parameters":"[\"2010-07-14\",10]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines where (invoice_date is before '2010-07-14'), 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\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}552{"category":"single_table/or/having","domain":"commerce","family_id":"0d826552be91531f2212fd7a","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"7ec23af96dbdb85593e17bd99d0a5e65cd40443fdc0373682838e52b8e3d18bc","language":"en","license":"CC-BY-4.0","query":"Return the average of product_duration for shopping sessions where (administrative is at most 7 or product_duration is at most 167.5), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[7,167.5,10],\\\"sql\\\":\\\"SELECT visitor_type, AVG(product_duration) AS value FROM shopping_sessions WHERE (administrative <= ? AND product_duration <= ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[7,167.5,10],\\\"sql\\\":\\\"SELECT visitor_type, AVG(product_duration) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_duration <= ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[7,167.5,10],\\\"sql\\\":\\\"SELECT visitor_type, AVG(product_duration) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_duration <= ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value DESC, visitor_type ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[7,167.5,10],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_duration <= ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Other\",570.4048622487059],[\"New_Visitor\",597.4872464811283],[\"Returning_Visitor\",1102.5087307778344]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, AVG(product_duration) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_duration <= ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value ASC, visitor_type ASC LIMIT 3","sql_parameters":"[7,167.5,10]","state":"{\"question\":\"Return the average of product_duration for shopping sessions where (administrative is at most 7 or product_duration is at most 167.5), 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_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}553{"category":"single_table/or/ranked","domain":"sensor","family_id":"92dd7a8f4f21d6f2fdc6e558","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"03d17314c9f7cd7d81073a6e1e6bda3ec038e3d72b14bce30fdfded981f962b8","language":"en","license":"CC-BY-4.0","query":"Return the sum of fs1_mean for hydraulic cycles where (ps2_mean is at most 107.72581 or ts1_mean is greater than 35.56605), grouped by pump_leakage; return at most 3 groups ordered by aggregate value ASC, breaking ties by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[107.72581,35.56605],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR ts1_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[107.72581,35.56605],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND ts1_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[107.72581,35.56605],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR ts1_mean > ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[107.72581,35.56605],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR ts1_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[2,2752.20055],[1,2801.79304],[0,6623.83463]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR ts1_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3","sql_parameters":"[107.72581,35.56605]","state":"{\"question\":\"Return the sum of fs1_mean for hydraulic cycles where (ps2_mean is at most 107.72581 or ts1_mean is greater than 35.56605), 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\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}554{"category":"single_table/date/or/aggregate","domain":"commerce","family_id":"4fac18bc9b93c9cfe73adf65","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"e066492d5662654f29ac04504038fb67f901a2c6a9a7411905edf73def8e1baa","language":"en","license":"CC-BY-4.0","query":"Return the sum of unit_price for retail invoice lines where (country equals 'Austria' or invoice_date is before '2011-09-29').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Austria\\\",\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Austria\\\",\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT SUM(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date < ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Austria\\\",\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (country = ? OR invoice_date < ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Austria\\\",\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT AVG(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date < ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[104043.48]]","source":"online_retail_ii","split":"dev","sql":"SELECT SUM(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date < ?)","sql_parameters":"[\"Austria\",\"2011-09-29\"]","state":"{\"question\":\"Return the sum of unit_price for retail invoice lines where (country equals 'Austria' or invoice_date is before '2011-09-29').\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}555{"category":"single_table/or/grouped","domain":"commerce","family_id":"e92fcf4e137c0131ba6bdbd5","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"06cae9a6575f4b88cb4b337dfafea93bc129ccf10be762088075f3b6f7897573","language":"en","license":"CC-BY-4.0","query":"Return the average of unit_price for retail invoice lines where (country equals 'Cyprus' or unit_price is greater than 49.95), grouped by country, ordered by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",49.95],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? AND unit_price > ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",49.95],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? OR unit_price > ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",49.95],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price > ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",49.95],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price > ?) GROUP BY country ORDER BY country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Cyprus\",3.615625],[\"EIRE\",252.208],[\"Germany\",486.70000000000005],[\"Norway\",280.09999999999997],[\"Singapore\",1684.305],[\"Spain\",230.0],[\"United Arab Emirates\",253.0],[\"United Kingdom\",142.81357142857144]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price > ?) GROUP BY country ORDER BY country ASC","sql_parameters":"[\"Cyprus\",49.95]","state":"{\"question\":\"Return the average of unit_price for retail invoice lines where (country equals 'Cyprus' or unit_price is greater than 49.95), 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\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}556{"category":"single_table/date/and/having","domain":"commerce","family_id":"1c8819e9f85f20e6c009f9bc","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"23a219dafdc17bab12f1da2c8d0206fba4c3403942119a288de02c0425a96b76","language":"en","license":"CC-BY-4.0","query":"Return the average of unit_price for retail invoice lines where (quantity is at most 25 and invoice_date is on or after '2010-12-02'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[25,\\\"2010-12-02\\\",10],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[25,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[25,\\\"2010-12-02\\\",10],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[25,\\\"2010-12-02\\\",10],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",3.8444],[\"United Kingdom\",4.359122655744772],[\"Spain\",6.281499999999999]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3","sql_parameters":"[25,\"2010-12-02\",10]","state":"{\"question\":\"Return the average of unit_price for retail invoice lines where (quantity is at most 25 and invoice_date is on or after '2010-12-02'), 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\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}557{"category":"single_table/ranked","domain":"commerce","family_id":"9c35b00834083d9f5da46c41","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"7e2c37f8b9a3f8a426b5ad477ae0e485fffb2a327e4c8a63ce0203ba1ccdd05b","language":"en","license":"CC-BY-4.0","query":"Return the minimum of product_related for shopping sessions where (administrative is greater than 7), grouped by month; return at most 3 groups ordered by aggregate value ASC, breaking ties by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[7],\\\"sql\\\":\\\"SELECT month, MIN(product_related) AS value FROM shopping_sessions WHERE (administrative > ?) GROUP BY month ORDER BY value ASC, month ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[7],\\\"sql\\\":\\\"SELECT month, MIN(product_related) AS value FROM shopping_sessions WHERE (administrative > ?) GROUP BY month ORDER BY value DESC, month ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[7],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (administrative > ?) GROUP BY month ORDER BY value ASC, month ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[7],\\\"sql\\\":\\\"SELECT month, SUM(product_related) AS value FROM shopping_sessions WHERE (administrative > ?) GROUP BY month ORDER BY value ASC, month ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Dec\",3],[\"Nov\",3],[\"Oct\",3]]","source":"online_shoppers","split":"dev","sql":"SELECT month, MIN(product_related) AS value FROM shopping_sessions WHERE (administrative > ?) GROUP BY month ORDER BY value ASC, month ASC LIMIT 3","sql_parameters":"[7]","state":"{\"question\":\"Return the minimum of product_related for shopping sessions where (administrative is greater than 7), grouped by month; return at most 3 groups ordered by aggregate value ASC, breaking ties by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}558{"category":"join/distinct_invoice/null/and/grouped","domain":"commerce","family_id":"4c1d86b1b6ac8f1321b9ddfd","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"e69ec14565036bb674626e37b6e54fe45ad39dbacc431dde9bf73b1f14c9c8de","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.country equals 'Austria' and i.customer_id is present), grouped by i.country, ordered by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Austria\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) 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.country ORDER BY i.country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Austria\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) 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.country ORDER BY i.country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Austria\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) 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.country ORDER BY i.country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Austria\\\"],\\\"sql\\\":\\\"SELECT i.country, SUM(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.country ORDER BY i.country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Austria\",4]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, COUNT(DISTINCT i.invoice) 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.country ORDER BY i.country ASC","sql_parameters":"[\"Austria\"]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.country equals 'Austria' and i.customer_id is present), grouped by i.country, ordered by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}559{"category":"single_table/and/aggregate","domain":"sensor","family_id":"2f2ad2d9a066d3b29545768f","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"d0df67445bf84b7a47bdc48e1d5664bef5812b0f3d8dc74a26ffb4bdecfc6bfb","language":"en","license":"CC-BY-4.0","query":"Return the average of ps1_mean for hydraulic cycles where (eps1_mean is at most 2398.143 and vs1_mean is greater than 0.61133).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2398.143,0.61133],\\\"sql\\\":\\\"SELECT AVG(ps1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ? AND vs1_mean > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2398.143,0.61133],\\\"sql\\\":\\\"SELECT AVG(ps1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ? OR vs1_mean > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2398.143,0.61133],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ? AND vs1_mean > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2398.143,0.61133],\\\"sql\\\":\\\"SELECT SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ? AND vs1_mean > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[156.472459543379]]","source":"hydraulic","split":"dev","sql":"SELECT AVG(ps1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ? AND vs1_mean > ?)","sql_parameters":"[2398.143,0.61133]","state":"{\"question\":\"Return the average of ps1_mean for hydraulic cycles where (eps1_mean is at most 2398.143 and vs1_mean is greater than 0.61133).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}560{"category":"single_table/date/and/grouped","domain":"commerce","family_id":"b44a774a2f92c4e695971b28","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"b18b673c0e68c44d821c671c708af03b56f296b8f81ad9628bc28af7045da900","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[25,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT country, MAX(unit_price) 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, MAX(unit_price) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date >= ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_3\":\"{\\\"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_4\":\"{\\\"parameters\\\":[25,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY country ORDER BY country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",8.95],[\"Austria\",40.0],[\"Bahrain\",9.95],[\"Belgium\",16.95],[\"Canada\",1.25],[\"Channel Islands\",16.65],[\"Denmark\",18.0],[\"EIRE\",1917.0],[\"Finland\",40.0],[\"France\",20.0],[\"Germany\",549.34],[\"Israel\",8.5],[\"Italy\",16.95],[\"Japan\",9.95],[\"Netherlands\",39.95],[\"Norway\",376.5],[\"Poland\",40.0],[\"Portugal\",29.95],[\"Singapore\",3949.32],[\"Spain\",28.0],[\"Sweden\",40.0],[\"Switzerland\",40.0],[\"United Kingdom\",295.0]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY country ORDER BY country ASC","sql_parameters":"[25,\"2010-12-02\"]","state":"{\"question\":\"Return the maximum of unit_price 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\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}561{"category":"single_table/having","domain":"sensor","family_id":"a43a44d09106c108577572a5","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"fd784644eb84366e8330cdbbe2901f09a1a012ff4ff618920d55d982a28945e8","language":"en","license":"CC-BY-4.0","query":"Return the maximum of eps1_mean for hydraulic cycles where (vs1_mean is at most 0.61133), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[0.61133,10],\\\"sql\\\":\\\"SELECT valve, MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (vs1_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[0.61133,10],\\\"sql\\\":\\\"SELECT valve, MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (vs1_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[0.61133,10],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (vs1_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[0.61133,10],\\\"sql\\\":\\\"SELECT valve, SUM(eps1_mean) AS value FROM hydraulic_cycles WHERE (vs1_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[80,2579.90837],[90,2580.2821],[100,2581.36807]]","source":"hydraulic","split":"dev","sql":"SELECT valve, MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (vs1_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 3","sql_parameters":"[0.61133,10]","state":"{\"question\":\"Return the maximum of eps1_mean for hydraulic cycles where (vs1_mean is at most 0.61133), 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\",\"cooler\":\"INTEGER\",\"cycle_id\":\"INTEGER\",\"eps1_mean\":\"REAL\",\"fs1_mean\":\"REAL\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}562{"category":"single_table/and/ranked","domain":"commerce","family_id":"7df2ae5cef36a76cbb74aa12","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"15065b9fa06096e71d37f7242b82ee6434f7e7ed9e0315079d845b9b6e094a69","language":"en","license":"CC-BY-4.0","query":"Return the average of product_duration for shopping sessions where (region equals 5 and traffic_type equals 11), grouped by revenue; return at most 5 groups ordered by aggregate value DESC, breaking ties by revenue ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[5,11],\\\"sql\\\":\\\"SELECT revenue, AVG(product_duration) AS value FROM shopping_sessions WHERE (region = ? OR traffic_type = ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[5,11],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (region = ? AND traffic_type = ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[5,11],\\\"sql\\\":\\\"SELECT revenue, SUM(product_duration) AS value FROM shopping_sessions WHERE (region = ? AND traffic_type = ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[5,11],\\\"sql\\\":\\\"SELECT revenue, AVG(product_duration) AS value FROM shopping_sessions WHERE (region = ? AND traffic_type = ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,773.6246031666666]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, AVG(product_duration) AS value FROM shopping_sessions WHERE (region = ? AND traffic_type = ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5","sql_parameters":"[5,11]","state":"{\"question\":\"Return the average of product_duration for shopping sessions where (region equals 5 and traffic_type equals 11), 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_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}563{"category":"single_table/having","domain":"sensor","family_id":"45c5e01d5b330e461726dd04","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"d895bb4d4b567df445f4177c6b65ffcb10a152922f1dcfecdafe612709b6a438","language":"en","license":"CC-BY-4.0","query":"Return the minimum of fs1_mean for hydraulic cycles where (vs1_mean is at most 0.54422), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[0.54422,2],\\\"sql\\\":\\\"SELECT valve, MIN(fs1_mean) AS value FROM hydraulic_cycles WHERE (vs1_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[0.54422,2],\\\"sql\\\":\\\"SELECT valve, MIN(fs1_mean) AS value FROM hydraulic_cycles WHERE (vs1_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[0.54422,2],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (vs1_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[0.54422,2],\\\"sql\\\":\\\"SELECT valve, SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (vs1_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[100,6.40085],[90,6.39093],[80,6.3895],[73,6.36582]]","source":"hydraulic","split":"dev","sql":"SELECT valve, MIN(fs1_mean) AS value FROM hydraulic_cycles WHERE (vs1_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 5","sql_parameters":"[0.54422,2]","state":"{\"question\":\"Return the minimum of fs1_mean for hydraulic cycles where (vs1_mean is at most 0.54422), 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\":{\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}564{"category":"join/or/grouped","domain":"commerce","family_id":"f03ede83596a3afe1df815a2","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"199355ee8732ac566b057a4cc14528a2bfa6028ad0d18a46f8fe90d83bc29410","language":"en","license":"CC-BY-4.0","query":"Return the maximum of l.quantity 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.country, ordered by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12364\\\",0.55],\\\"sql\\\":\\\"SELECT i.country, MAX(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? AND l.unit_price <= ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12364\\\",0.55],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) 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.country ORDER BY i.country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12364\\\",0.55],\\\"sql\\\":\\\"SELECT i.country, MAX(l.quantity) 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.country ORDER BY i.country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12364\\\",0.55],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) 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.country ORDER BY i.country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Austria\",24],[\"Belgium\",272],[\"Cyprus\",200],[\"EIRE\",1440],[\"Finland\",144],[\"France\",192],[\"Germany\",288],[\"Japan\",576],[\"Netherlands\",576],[\"Portugal\",25],[\"Sweden\",1440],[\"United Kingdom\",10000]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, MAX(l.quantity) 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.country ORDER BY i.country ASC","sql_parameters":"[\"12364\",0.55]","state":"{\"question\":\"Return the maximum of l.quantity 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.country, ordered by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}565{"category":"single_table/or/grouped","domain":"sensor","family_id":"beea0830e5cebb23288bfd48","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"52e5aa7316df00c74931740b845eaf9ee1e27813fbcdedfb560e827d2fa8bc5b","language":"en","license":"CC-BY-4.0","query":"Return the sum of ps1_mean for hydraulic cycles where (pump_leakage equals 0 or ts1_mean is greater than 36.33327), grouped by cooler, ordered by cooler ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[0,36.33327],\\\"sql\\\":\\\"SELECT cooler, SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? AND ts1_mean > ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[0,36.33327],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? OR ts1_mean > ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[0,36.33327],\\\"sql\\\":\\\"SELECT cooler, AVG(ps1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? OR ts1_mean > ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[0,36.33327],\\\"sql\\\":\\\"SELECT cooler, SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? OR ts1_mean > ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[3,118695.57757],[20,116006.57695],[100,75650.80923]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? OR ts1_mean > ?) GROUP BY cooler ORDER BY cooler ASC","sql_parameters":"[0,36.33327]","state":"{\"question\":\"Return the sum of ps1_mean for hydraulic cycles where (pump_leakage equals 0 or ts1_mean is greater than 36.33327), grouped by cooler, ordered by cooler ascending.\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}566{"category":"join/distinct_invoice/date/or/ranked","domain":"commerce","family_id":"dbc76ad806b1f9af0f9fa19e","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"1d3681082ec53ca81f50a4f18c205ca3c098b47b1ff7e5049985067c0b85f787","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.unit_price is at most 2.25 or i.invoice_date is on or after '2010-12-02'), grouped by i.country; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2.25,\\\"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 value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2.25,\\\"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 <= ? AND i.invoice_date >= ?) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2.25,\\\"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 value ASC, i.country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2.25,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) 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 DESC, i.country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"United Kingdom\",5785],[\"Germany\",115],[\"France\",58],[\"EIRE\",47],[\"Netherlands\",33]]","source":"online_retail_ii","split":"dev","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 value DESC, i.country ASC LIMIT 5","sql_parameters":"[2.25,\"2010-12-02\"]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.unit_price is at most 2.25 or i.invoice_date is on or after '2010-12-02'), grouped by i.country; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}567{"category":"single_table/ranked","domain":"sensor","family_id":"8e54d4c3e2c0ab66b75344d7","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"15b69d7a71d0cbffc185a6cd751ad67e67a7e5f96b39a85a5e109693d6cc08da","language":"en","license":"CC-BY-4.0","query":"Return the maximum of fs1_mean for hydraulic cycles where (ps2_mean is greater than 109.23171), grouped by cooler; return at most 3 groups ordered by aggregate value ASC, breaking ties by cooler ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[109.23171],\\\"sql\\\":\\\"SELECT cooler, MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ?) GROUP BY cooler ORDER BY value DESC, cooler ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[109.23171],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps2_mean > ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[109.23171],\\\"sql\\\":\\\"SELECT cooler, MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[109.23171],\\\"sql\\\":\\\"SELECT cooler, SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[3,6.71531],[100,6.72271]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 3","sql_parameters":"[109.23171]","state":"{\"question\":\"Return the maximum of fs1_mean for hydraulic cycles where (ps2_mean is greater than 109.23171), 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\",\"cycle_id\":\"INTEGER\",\"eps1_mean\":\"REAL\",\"fs1_mean\":\"REAL\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}568{"category":"join/distinct_invoice/or/ranked","domain":"commerce","family_id":"8c383719bcb783b00ff32351","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"f1c7600aaed3691b593edd33549ffce21781b81bba17e2810a99d29933dc9c5f","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice 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.country; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12364\\\",0.55],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? AND l.unit_price <= ?) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12364\\\",0.55],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) 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.country ORDER BY value ASC, i.country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12364\\\",0.55],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) 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.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12364\\\",0.55],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) 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.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"United Kingdom\",1175],[\"Germany\",22],[\"Sweden\",15],[\"France\",11],[\"EIRE\",9]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, COUNT(DISTINCT i.invoice) 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.country ORDER BY value DESC, i.country ASC LIMIT 5","sql_parameters":"[\"12364\",0.55]","state":"{\"question\":\"Return the number of distinct i.invoice 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.country; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}569{"category":"single_table/or/ranked","domain":"commerce","family_id":"f38603ae8426ac22681f4ff3","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"10be978021a352c01485f9600a34668ebb11decff1835558b0a496906c2b406b","language":"en","license":"CC-BY-4.0","query":"Return the minimum of product_related for shopping sessions where (month equals 'May' or product_related is greater than 93), grouped by visitor_type; return at most 5 groups ordered by aggregate value DESC, breaking ties by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"May\\\",93],\\\"sql\\\":\\\"SELECT visitor_type, MIN(product_related) AS value FROM shopping_sessions WHERE (month = ? OR product_related > ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"May\\\",93],\\\"sql\\\":\\\"SELECT visitor_type, MIN(product_related) AS value FROM shopping_sessions WHERE (month = ? AND product_related > ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"May\\\",93],\\\"sql\\\":\\\"SELECT visitor_type, MIN(product_related) AS value FROM shopping_sessions WHERE (month = ? OR product_related > ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"May\\\",93],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (month = ? OR product_related > ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Other\",222],[\"New_Visitor\",0],[\"Returning_Visitor\",0]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, MIN(product_related) AS value FROM shopping_sessions WHERE (month = ? OR product_related > ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5","sql_parameters":"[\"May\",93]","state":"{\"question\":\"Return the minimum of product_related for shopping sessions where (month equals 'May' or product_related is greater than 93), 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\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}570{"category":"single_table/date/grouped","domain":"commerce","family_id":"7a8953dc0e378f70b93cffab","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"413c4f4adadcd0f7f49ba00b0cd435b57172de72b7fb3455cbcc1ab1e2dc71dc","language":"en","license":"CC-BY-4.0","query":"Return the average of quantity for retail invoice lines where (invoice_date is before '2011-05-10'), grouped by invoice_date, ordered by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-01\",23.5],[\"2009-12-02\",41.78125],[\"2009-12-03\",230.81720430107526],[\"2009-12-04\",38.064516129032256],[\"2009-12-05\",21.892857142857142],[\"2009-12-06\",10.290322580645162],[\"2009-12-07\",33.78787878787879],[\"2009-12-08\",56.566265060240966],[\"2009-12-09\",18.666666666666668],[\"2009-12-10\",32.88732394366197],[\"2009-12-11\",9.321428571428571],[\"2009-12-13\",22.2],[\"2009-12-14\",9.470588235294118],[\"2009-12-15\",50.06666666666667],[\"2009-12-16\",25.62962962962963],[\"2009-12-17\",18.010309278350515],[\"2009-12-18\",23.462962962962962],[\"2009-12-20\",30.6],[\"2009-12-21\",19.0],[\"2009-12-22\",32.75555555555555],[\"2009-12-23\",29.40740740740741],[\"2010-01-04\",58.64705882352941],[\"2010-01-05\",53.111111111111114],[\"2010-01-06\",6.333333333333333],[\"2010-01-07\",68.41935483870968],[\"2010-01-08\",121.17391304347827],[\"2010-01-10\",96.05263157894737],[\"2010-01-11\",51.36363636363637],[\"2010-01-12\",36.40909090909091],[\"2010-01-13\",55.0],[\"2010-01-14\",21.0],[\"2010-01-15\",17.944444444444443],[\"2010-01-17\",48.53846153846154],[\"2010-01-18\",14.0],[\"2010-01-19\",18.914285714285715],[\"2010-01-20\",47.54545454545455],[\"2010-01-21\",26.975],[\"2010-01-22\",7.76],[\"2010-01-24\",12.333333333333334],[\"2010-01-25\",7.088235294117647],[\"2010-01-26\",7.217391304347826],[\"2010-01-27\",63.06896551724138],[\"2010-01-28\",23.736842105263158],[\"2010-01-29\",45.733333333333334],[\"2010-01-31\",16.26829268292683],[\"2010-02-01\",22.10810810810811],[\"2010-02-02\",16.653846153846153],[\"2010-02-03\",16.428571428571427],[\"2010-02-04\",38.191489361702125],[\"2010-02-05\",44.02439024390244],[\"2010-02-07\",109.72727272727273],[\"2010-02-08\",9.862745098039216],[\"2010-02-09\",19.86111111111111],[\"2010-02-10\",16.142857142857142],[\"2010-02-11\",42.275862068965516],[\"2010-02-12\",94.34482758620689],[\"2010-02-14\",44.88235294117647],[\"2010-02-15\",49.411764705882355],[\"2010-02-16\",33.98039215686274],[\"2010-02-17\",68.60975609756098],[\"2010-02-18\",28.0],[\"2010-02-19\",118.47058823529412],[\"2010-02-21\",37.55555555555556],[\"2010-02-22\",21.12],[\"2010-02-23\",16.68421052631579],[\"2010-02-24\",47.48979591836735],[\"2010-02-25\",84.03636363636363],[\"2010-02-26\",38.27777777777778],[\"2010-02-28\",29.43243243243243],[\"2010-03-01\",37.0],[\"2010-03-02\",19.533333333333335],[\"2010-03-03\",12.717391304347826],[\"2010-03-04\",37.29032258064516],[\"2010-03-05\",32.94202898550725],[\"2010-03-07\",9.75],[\"2010-03-08\",39.876543209876544],[\"2010-03-09\",30.5],[\"2010-03-10\",67.16216216216216],[\"2010-03-11\",20.62857142857143],[\"2010-03-12\",16.82857142857143],[\"2010-03-14\",20.772727272727273],[\"2010-03-15\",67.93939393939394],[\"2010-03-16\",22.91304347826087],[\"2010-03-17\",141.93333333333334],[\"2010-03-18\",75.73846153846154],[\"2010-03-19\",93.17647058823529],[\"2010-03-21\",32.458333333333336],[\"2010-03-22\",53.46666666666667],[\"2010-03-23\",876.0384615384615],[\"2010-03-24\",23.21951219512195],[\"2010-03-25\",16.764705882352942],[\"2010-03-26\",13.114285714285714],[\"2010-03-28\",25.076923076923077],[\"2010-03-29\",134.7058823529412],[\"2010-03-30\",24.564102564102566],[\"2010-03-31\",22.46153846153846],[\"2010-04-01\",72.88235294117646],[\"2010-04-06\",80.7],[\"2010-04-07\",32.51428571428571],[\"2010-04-08\",40.041666666666664],[\"2010-04-09\",25.8],[\"2010-04-11\",69.21739130434783],[\"2010-04-12\",37.513513513513516],[\"2010-04-13\",22.444444444444443],[\"2010-04-14\",39.51111111111111],[\"2010-04-15\",14.703703703703704],[\"2010-04-16\",50.604651162790695],[\"2010-04-18\",46.421052631578945],[\"2010-04-19\",43.30357142857143],[\"2010-04-20\",36.723404255319146],[\"2010-04-21\",21.272727272727273],[\"2010-04-22\",80.17910447761194],[\"2010-04-23\",10.64864864864865],[\"2010-04-25\",37.214285714285715],[\"2010-04-26\",46.113207547169814],[\"2010-04-27\",24.89090909090909],[\"2010-04-28\",31.76086956521739],[\"2010-04-29\",30.956521739130434],[\"2010-04-30\",13.447368421052632],[\"2010-05-02\",32.0],[\"2010-05-04\",38.88235294117647],[\"2010-05-05\",31.825],[\"2010-05-06\",33.765957446808514],[\"2010-05-07\",57.903225806451616],[\"2010-05-09\",8.511111111111111],[\"2010-05-10\",56.76119402985075],[\"2010-05-11\",15.105263157894736],[\"2010-05-12\",103.97619047619048],[\"2010-05-13\",29.214285714285715],[\"2010-05-14\",65.35897435897436],[\"2010-05-16\",30.894736842105264],[\"2010-05-17\",35.76190476190476],[\"2010-05-18\",327.5952380952381],[\"2010-05-19\",37.5],[\"2010-05-20\",16.1875],[\"2010-05-21\",11.642857142857142],[\"2010-05-23\",24.107142857142858],[\"2010-05-24\",11.681818181818182],[\"2010-05-25\",97.6470588235294],[\"2010-05-26\",38.19642857142857],[\"2010-05-27\",22.2],[\"2010-05-28\",30.045454545454547],[\"2010-05-30\",24.166666666666668],[\"2010-06-01\",18.575757575757574],[\"2010-06-02\",9.266666666666667],[\"2010-06-03\",39.666666666666664],[\"2010-06-04\",26.8],[\"2010-06-06\",13.666666666666666],[\"2010-06-07\",179.77586206896552],[\"2010-06-08\",119.46666666666667],[\"2010-06-09\",60.411764705882355],[\"2010-06-10\",10.0],[\"2010-06-11\",38.977777777777774],[\"2010-06-13\",18.633333333333333],[\"2010-06-14\",21.94736842105263],[\"2010-06-15\",54.69230769230769],[\"2010-06-16\",35.08620689655172],[\"2010-06-17\",11.85],[\"2010-06-18\",11.935483870967742],[\"2010-06-20\",53.95238095238095],[\"2010-06-21\",7.3125],[\"2010-06-22\",14.705882352941176],[\"2010-06-23\",53.25757575757576],[\"2010-06-24\",27.25],[\"2010-06-25\",12.421052631578947],[\"2010-06-27\",35.125],[\"2010-06-28\",70.4090909090909],[\"2010-06-29\",56.45454545454545],[\"2010-06-30\",44.125],[\"2010-07-01\",24.146341463414632],[\"2010-07-02\",1.8571428571428572],[\"2010-07-04\",25.0],[\"2010-07-05\",26.033898305084747],[\"2010-07-06\",58.28],[\"2010-07-07\",29.363636363636363],[\"2010-07-08\",17.017241379310345],[\"2010-07-09\",8.285714285714286],[\"2010-07-11\",1.3333333333333333],[\"2010-07-12\",31.35135135135135],[\"2010-07-13\",24.77358490566038],[\"2010-07-14\",19.105263157894736],[\"2010-07-15\",67.51923076923077],[\"2010-07-16\",27.810344827586206],[\"2010-07-18\",58.42307692307692],[\"2010-07-19\",22.129032258064516],[\"2010-07-20\",13.057692307692308],[\"2010-07-21\",19.0],[\"2010-07-22\",19.4],[\"2010-07-23\",56.0],[\"2010-07-25\",64.2],[\"2010-07-26\",49.97674418604651],[\"2010-07-27\",75.29166666666667],[\"2010-07-28\",30.266666666666666],[\"2010-07-29\",27.25925925925926],[\"2010-07-30\",33.88461538461539],[\"2010-08-01\",4.583333333333333],[\"2010-08-02\",23.357142857142858],[\"2010-08-03\",140.65714285714284],[\"2010-08-04\",10.25],[\"2010-08-05\",55.14754098360656],[\"2010-08-06\",19.041666666666668],[\"2010-08-08\",38.25925925925926],[\"2010-08-09\",69.8125],[\"2010-08-10\",40.9375],[\"2010-08-11\",52.333333333333336],[\"2010-08-12\",11.58974358974359],[\"2010-08-13\",21.666666666666668],[\"2010-08-15\",121.80392156862744],[\"2010-08-16\",94.61904761904762],[\"2010-08-17\",46.27272727272727],[\"2010-08-18\",9.625],[\"2010-08-19\",56.75],[\"2010-08-20\",31.068181818181817],[\"2010-08-22\",25.153846153846153],[\"2010-08-23\",22.535714285714285],[\"2010-08-24\",116.4090909090909],[\"2010-08-25\",50.73913043478261],[\"2010-08-26\",77.8974358974359],[\"2010-08-27\",9.68421052631579],[\"2010-08-29\",9.727272727272727],[\"2010-08-31\",51.794871794871796],[\"2010-09-01\",13.08108108108108],[\"2010-09-02\",26.231884057971016],[\"2010-09-03\",285.71875],[\"2010-09-05\",29.785714285714285],[\"2010-09-06\",24.96],[\"2010-09-07\",55.054054054054056],[\"2010-09-08\",34.44444444444444],[\"2010-09-09\",15.28125],[\"2010-09-10\",31.41176470588235],[\"2010-09-12\",53.5625],[\"2010-09-13\",89.87323943661971],[\"2010-09-14\",17.67241379310345],[\"2010-09-15\",20.6],[\"2010-09-16\",20.977777777777778],[\"2010-09-17\",38.47222222222222],[\"2010-09-19\",35.22222222222222],[\"2010-09-20\",65.22222222222223],[\"2010-09-21\",51.285714285714285],[\"2010-09-22\",19.209302325581394],[\"2010-09-23\",9.32258064516129],[\"2010-09-24\",19.428571428571427],[\"2010-09-26\",40.125],[\"2010-09-27\",75.42592592592592],[\"2010-09-28\",17.425],[\"2010-09-29\",21.98148148148148],[\"2010-09-30\",22.826923076923077],[\"2010-10-01\",15.205128205128204],[\"2010-10-03\",19.73913043478261],[\"2010-10-04\",41.333333333333336],[\"2010-10-05\",39.0],[\"2010-10-06\",126.25],[\"2010-10-07\",31.71186440677966],[\"2010-10-08\",354.6808510638298],[\"2010-10-10\",14.09375],[\"2010-10-11\",18.384615384615383],[\"2010-10-12\",39.83783783783784],[\"2010-10-13\",50.523809523809526],[\"2010-10-14\",81.75510204081633],[\"2010-10-15\",21.433734939759034],[\"2010-10-17\",1.0],[\"2010-10-18\",32.08888888888889],[\"2010-10-19\",9.69047619047619],[\"2010-10-20\",45.06172839506173],[\"2010-10-21\",19.09090909090909],[\"2010-10-22\",53.78688524590164],[\"2010-10-24\",21.071428571428573],[\"2010-10-25\",15.228571428571428],[\"2010-10-26\",56.136986301369866],[\"2010-10-27\",13.0],[\"2010-10-28\",20.05263157894737],[\"2010-10-29\",16.30666666666667],[\"2010-10-31\",17.3],[\"2010-11-01\",53.80952380952381],[\"2010-11-02\",20.576271186440678],[\"2010-11-03\",30.0],[\"2010-11-04\",245.67241379310346],[\"2010-11-05\",128.66666666666666],[\"2010-11-07\",11.296296296296296],[\"2010-11-08\",33.51851851851852],[\"2010-11-09\",36.333333333333336],[\"2010-11-10\",54.74757281553398],[\"2010-11-11\",57.48421052631579],[\"2010-11-12\",57.8974358974359],[\"2010-11-14\",14.533333333333333],[\"2010-11-15\",39.31818181818182],[\"2010-11-16\",45.84313725490196],[\"2010-11-17\",26.28125],[\"2010-11-18\",26.876404494382022],[\"2010-11-19\",36.53623188405797],[\"2010-11-21\",12.605263157894736],[\"2010-11-22\",17.06153846153846],[\"2010-11-23\",28.506849315068493],[\"2010-11-24\",26.385416666666668],[\"2010-11-25\",31.70769230769231],[\"2010-11-26\",26.914893617021278],[\"2010-11-28\",15.923076923076923],[\"2010-11-29\",43.701492537313435],[\"2010-11-30\",20.74736842105263],[\"2010-12-01\",40.435483870967744],[\"2010-12-02\",72.83185840707965],[\"2010-12-03\",77.05555555555556],[\"2010-12-05\",20.564102564102566],[\"2010-12-06\",39.53448275862069],[\"2010-12-07\",72.70833333333333],[\"2010-12-08\",25.280898876404493],[\"2010-12-09\",35.88659793814433],[\"2010-12-10\",20.977777777777778],[\"2010-12-12\",11.631578947368421],[\"2010-12-13\",45.472727272727276],[\"2010-12-14\",31.325],[\"2010-12-15\",11.196428571428571],[\"2010-12-16\",34.64957264957265],[\"2010-12-17\",19.473684210526315],[\"2010-12-19\",1.6666666666666667],[\"2010-12-20\",113.7948717948718],[\"2010-12-21\",12.571428571428571],[\"2010-12-22\",21.235294117647058],[\"2010-12-23\",8.615384615384615],[\"2011-01-04\",44.18181818181818],[\"2011-01-05\",59.38461538461539],[\"2011-01-06\",57.43333333333333],[\"2011-01-07\",62.25],[\"2011-01-09\",29.03846153846154],[\"2011-01-10\",27.555555555555557],[\"2011-01-11\",309.84615384615387],[\"2011-01-12\",19.620689655172413],[\"2011-01-13\",59.06666666666667],[\"2011-01-14\",15.108108108108109],[\"2011-01-16\",8.5],[\"2011-01-17\",36.225],[\"2011-01-18\",19.357142857142858],[\"2011-01-19\",40.0],[\"2011-01-20\",22.0],[\"2011-01-21\",29.285714285714285],[\"2011-01-23\",9.9],[\"2011-01-24\",13.297297297297296],[\"2011-01-25\",40.59615384615385],[\"2011-01-26\",53.638888888888886],[\"2011-01-27\",10.08108108108108],[\"2011-01-28\",13.8],[\"2011-01-30\",15.2],[\"2011-01-31\",31.0],[\"2011-02-01\",26.642857142857142],[\"2011-02-02\",25.708333333333332],[\"2011-02-03\",139.88888888888889],[\"2011-02-04\",64.33333333333333],[\"2011-02-07\",92.3225806451613],[\"2011-02-08\",78.8125],[\"2011-02-09\",5.923076923076923],[\"2011-02-10\",186.1764705882353],[\"2011-02-11\",32.03448275862069],[\"2011-02-13\",8.0],[\"2011-02-14\",48.24],[\"2011-02-15\",102.23529411764706],[\"2011-02-16\",40.163636363636364],[\"2011-02-17\",23.912280701754387],[\"2011-02-18\",27.3125],[\"2011-02-20\",54.666666666666664],[\"2011-02-21\",27.61111111111111],[\"2011-02-22\",28.17241379310345],[\"2011-02-23\",25.85185185185185],[\"2011-02-24\",17.56],[\"2011-02-25\",30.425],[\"2011-02-27\",16.307692307692307],[\"2011-02-28\",11.791666666666666],[\"2011-03-01\",28.181818181818183],[\"2011-03-02\",61.588235294117645],[\"2011-03-03\",26.615384615384617],[\"2011-03-04\",88.55813953488372],[\"2011-03-06\",25.4375],[\"2011-03-07\",40.470588235294116],[\"2011-03-08\",66.84848484848484],[\"2011-03-09\",50.86666666666667],[\"2011-03-10\",30.46511627906977],[\"2011-03-11\",31.346938775510203],[\"2011-03-14\",24.6],[\"2011-03-15\",22.36842105263158],[\"2011-03-16\",49.71739130434783],[\"2011-03-17\",52.549019607843135],[\"2011-03-18\",28.06896551724138],[\"2011-03-20\",75.06153846153846],[\"2011-03-21\",22.404255319148938],[\"2011-03-22\",36.875],[\"2011-03-23\",50.43181818181818],[\"2011-03-24\",59.125],[\"2011-03-25\",79.6923076923077],[\"2011-03-27\",17.904761904761905],[\"2011-03-28\",25.86046511627907],[\"2011-03-29\",18.842105263157894],[\"2011-03-30\",46.96],[\"2011-03-31\",26.689655172413794],[\"2011-04-01\",88.14864864864865],[\"2011-04-03\",39.26315789473684],[\"2011-04-04\",26.523809523809526],[\"2011-04-05\",99.82608695652173],[\"2011-04-06\",15.25],[\"2011-04-07\",16.849056603773583],[\"2011-04-08\",31.432835820895523],[\"2011-04-10\",24.0],[\"2011-04-11\",25.195652173913043],[\"2011-04-12\",29.0],[\"2011-04-13\",74.25581395348837],[\"2011-04-14\",54.35064935064935],[\"2011-04-15\",12.722222222222221],[\"2011-04-17\",12.428571428571429],[\"2011-04-18\",298.0625],[\"2011-04-19\",26.15],[\"2011-04-20\",123.88461538461539],[\"2011-04-21\",46.704918032786885],[\"2011-04-26\",58.775862068965516],[\"2011-04-27\",82.01785714285714],[\"2011-04-28\",15.68421052631579],[\"2011-05-01\",13.8],[\"2011-05-03\",30.636363636363637],[\"2011-05-04\",35.32203389830509],[\"2011-05-05\",46.649484536082475],[\"2011-05-06\",13.88135593220339],[\"2011-05-08\",14.21875],[\"2011-05-09\",18.46153846153846]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC","sql_parameters":"[\"2011-05-10\"]","state":"{\"question\":\"Return the average of quantity for retail invoice lines where (invoice_date is before '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\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}571{"category":"join/null/or/aggregate","domain":"commerce","family_id":"5bb4078642706934e5564c4a","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"e544a09ed22b7cf9a21dad45d5842e80b0e92fe337a85025d43384d98d75bb39","language":"en","license":"CC-BY-4.0","query":"Return the minimum of l.unit_price for retail lines joined to their invoices where (l.quantity is greater than 229 or i.customer_id is missing).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[229],\\\"sql\\\":\\\"SELECT MIN(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ? AND i.customer_id IS NULL)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[229],\\\"sql\\\":\\\"SELECT 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)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[229],\\\"sql\\\":\\\"SELECT MIN(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ? OR i.customer_id IS NULL)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[229],\\\"sql\\\":\\\"SELECT SUM(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ? OR i.customer_id IS NULL)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0.04]]","source":"online_retail_ii","split":"dev","sql":"SELECT MIN(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ? OR i.customer_id IS NULL)","sql_parameters":"[229]","state":"{\"question\":\"Return the minimum of l.unit_price for retail lines joined to their invoices where (l.quantity is greater than 229 or i.customer_id is missing).\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}572{"category":"single_table/having","domain":"commerce","family_id":"3c0d04522d3acd33208defd0","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"646024133ac97b6632ed6507e241643cc55066ebd55484ef74abcf1683d9caf9","language":"en","license":"CC-BY-4.0","query":"Return the minimum of quantity for retail invoice lines where (quantity is greater than 1800), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[1800],\\\"sql\\\":\\\"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (quantity > ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[10],\\\"sql\\\":\\\"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[1800,10],\\\"sql\\\":\\\"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (quantity <= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[1800,10],\\\"sql\\\":\\\"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (quantity > ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (quantity > ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3","sql_parameters":"[1800,10]","state":"{\"question\":\"Return the minimum of quantity for retail invoice lines where (quantity is greater than 1800), 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\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}573{"category":"single_table/date/and/grouped","domain":"commerce","family_id":"45ff50285492314fd1e933da","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"71e51adf57ab10925ff2080b3e9066dfaa32867a661c87d7358e9c08a380c3d5","language":"en","license":"CC-BY-4.0","query":"Return the minimum of quantity for retail invoice lines where (quantity is at most 25 and invoice_date is on or after '2011-09-29'), grouped by invoice_date, ordered by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[25,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[25,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[25,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[25,\\\"2011-09-29\\\"],\\\"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\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-09-29\",4],[\"2011-09-30\",1],[\"2011-10-02\",1],[\"2011-10-03\",1],[\"2011-10-04\",1],[\"2011-10-05\",1],[\"2011-10-06\",1],[\"2011-10-07\",1],[\"2011-10-09\",2],[\"2011-10-10\",1],[\"2011-10-11\",1],[\"2011-10-12\",1],[\"2011-10-13\",1],[\"2011-10-14\",1],[\"2011-10-17\",1],[\"2011-10-18\",1],[\"2011-10-19\",1],[\"2011-10-20\",1],[\"2011-10-21\",1],[\"2011-10-23\",1],[\"2011-10-24\",1],[\"2011-10-25\",1],[\"2011-10-26\",1],[\"2011-10-27\",1],[\"2011-10-28\",1],[\"2011-10-30\",2],[\"2011-10-31\",1],[\"2011-11-01\",1],[\"2011-11-02\",1],[\"2011-11-03\",1],[\"2011-11-04\",1],[\"2011-11-06\",1],[\"2011-11-07\",1],[\"2011-11-08\",1],[\"2011-11-09\",1],[\"2011-11-10\",1],[\"2011-11-11\",1],[\"2011-11-13\",1],[\"2011-11-14\",1],[\"2011-11-15\",1],[\"2011-11-16\",1],[\"2011-11-17\",1],[\"2011-11-18\",1],[\"2011-11-20\",1],[\"2011-11-21\",1],[\"2011-11-22\",1],[\"2011-11-23\",1],[\"2011-11-24\",1],[\"2011-11-25\",1],[\"2011-11-27\",1],[\"2011-11-28\",1],[\"2011-11-29\",1],[\"2011-11-30\",1],[\"2011-12-01\",2],[\"2011-12-02\",1],[\"2011-12-04\",1],[\"2011-12-05\",1],[\"2011-12-06\",1],[\"2011-12-07\",1],[\"2011-12-08\",1],[\"2011-12-09\",2]]","source":"online_retail_ii","split":"dev","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","sql_parameters":"[25,\"2011-09-29\"]","state":"{\"question\":\"Return the minimum of quantity for retail invoice lines where (quantity is at most 25 and invoice_date is on or after '2011-09-29'), 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\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}574{"category":"single_table/date/and/grouped","domain":"commerce","family_id":"27cb87399ff7b7d31ef1c5b6","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"afeb2291fa9c1c940734490ee809d6b755c080415d57067c2bbb8697a70a6b9b","language":"en","license":"CC-BY-4.0","query":"Return the minimum of quantity for retail invoice lines where (country equals 'EIRE' and invoice_date is on or after '2011-05-10'), grouped by invoice_date, ordered by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"EIRE\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (country = ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"EIRE\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"EIRE\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"EIRE\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-05-10\",4],[\"2011-06-15\",48],[\"2011-06-20\",1],[\"2011-06-21\",1],[\"2011-06-24\",12],[\"2011-06-29\",1],[\"2011-07-01\",1],[\"2011-07-19\",128],[\"2011-07-27\",3],[\"2011-09-04\",4],[\"2011-09-05\",72],[\"2011-09-06\",8],[\"2011-09-15\",1],[\"2011-09-28\",2],[\"2011-09-30\",1],[\"2011-10-10\",120],[\"2011-10-11\",1],[\"2011-10-17\",8],[\"2011-11-07\",1],[\"2011-11-15\",4],[\"2011-11-16\",1],[\"2011-11-25\",1],[\"2011-12-05\",2]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC","sql_parameters":"[\"EIRE\",\"2011-05-10\"]","state":"{\"question\":\"Return the minimum of quantity for retail invoice lines where (country equals 'EIRE' and 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\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}575{"category":"single_table/or/having","domain":"commerce","family_id":"09413b5d8f225d33cb0b7398","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"7404451c500f3c8fc14f964b7aa22f8538a281d7d948b2fb2b9f25896bd8bca4","language":"en","license":"CC-BY-4.0","query":"Return the sum of quantity for retail invoice lines where (country equals 'Austria' or unit_price is at most 8.5), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Austria\\\",8.5,10],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Austria\\\",8.5,10],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Austria\\\",8.5],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Austria\\\",8.5,10],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-12-19\",20],[\"2010-08-01\",50],[\"2011-02-09\",73]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3","sql_parameters":"[\"Austria\",8.5,10]","state":"{\"question\":\"Return the sum of quantity for retail invoice lines where (country equals 'Austria' or unit_price is at most 8.5), 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\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}576{"category":"join/null/or/grouped","domain":"commerce","family_id":"e03bfb9629072a8f42c449f3","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"fdcd0acd19e0fa380f68db047269bd9dd44856c485d6fb0115f480d9320759f7","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.unit_price for retail lines joined to their invoices where (l.quantity is greater than 229 or i.customer_id is missing), grouped by i.invoice_date, ordered by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[229],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ? AND i.customer_id IS NULL) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[229],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.unit_price) 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.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[229],\\\"sql\\\":\\\"SELECT i.invoice_date, 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.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[229],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(l.unit_price) 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.invoice_date ORDER BY i.invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-01\",24.0],[\"2009-12-02\",23.259999999999998],[\"2009-12-03\",19.73],[\"2009-12-04\",48.45],[\"2009-12-06\",15.790000000000001],[\"2009-12-07\",60.42],[\"2009-12-08\",33.89],[\"2009-12-09\",28.04],[\"2009-12-10\",31.65],[\"2009-12-11\",77.04],[\"2009-12-14\",40.99],[\"2009-12-15\",10.67],[\"2009-12-17\",87.19],[\"2009-12-18\",24.89],[\"2009-12-20\",10.1],[\"2009-12-21\",84.35],[\"2009-12-22\",76.71],[\"2009-12-23\",27.2],[\"2010-01-04\",10.07],[\"2010-01-05\",60.2],[\"2010-01-07\",21.55],[\"2010-01-08\",18.61],[\"2010-01-10\",18.4],[\"2010-01-11\",0.89],[\"2010-01-12\",16.96],[\"2010-01-13\",17.81],[\"2010-01-15\",7.1],[\"2010-01-20\",2.0],[\"2010-01-22\",13.05],[\"2010-01-25\",121.33],[\"2010-01-26\",52.949999999999996],[\"2010-01-27\",22.17],[\"2010-01-28\",12.15],[\"2010-01-29\",29.81],[\"2010-01-31\",33.89],[\"2010-02-01\",64.84],[\"2010-02-02\",208.8],[\"2010-02-03\",5.5],[\"2010-02-04\",8.9],[\"2010-02-07\",2.04],[\"2010-02-08\",35.1],[\"2010-02-10\",2.5],[\"2010-02-11\",13.75],[\"2010-02-12\",6.0],[\"2010-02-14\",13.39],[\"2010-02-16\",20.11],[\"2010-02-17\",14.46],[\"2010-02-18\",13.32],[\"2010-02-19\",69.41],[\"2010-02-22\",8.9],[\"2010-02-23\",10.100000000000001],[\"2010-02-24\",1.14],[\"2010-02-25\",5.1],[\"2010-02-26\",2.92],[\"2010-02-28\",0.36],[\"2010-03-01\",1.6],[\"2010-03-03\",2.25],[\"2010-03-04\",0.85],[\"2010-03-05\",60.1],[\"2010-03-07\",24.4],[\"2010-03-08\",7.79],[\"2010-03-09\",29.0],[\"2010-03-10\",10.03],[\"2010-03-15\",44.71],[\"2010-03-17\",22.5],[\"2010-03-18\",0.33999999999999997],[\"2010-03-19\",3.7399999999999998],[\"2010-03-21\",8.15],[\"2010-03-22\",5.449999999999999],[\"2010-03-23\",11.86],[\"2010-03-24\",879.9499999999999],[\"2010-03-26\",7.25],[\"2010-03-29\",9.33],[\"2010-03-30\",0.6],[\"2010-03-31\",28.35],[\"2010-04-01\",25.26],[\"2010-04-06\",2.52],[\"2010-04-08\",9.98],[\"2010-04-09\",41.68],[\"2010-04-11\",3.0999999999999996],[\"2010-04-12\",26.2],[\"2010-04-14\",10.1],[\"2010-04-15\",11.8],[\"2010-04-16\",23.330000000000002],[\"2010-04-19\",19.14],[\"2010-04-20\",7.85],[\"2010-04-21\",5.47],[\"2010-04-22\",5.18],[\"2010-04-23\",45.15],[\"2010-04-26\",64.95],[\"2010-04-27\",39.83],[\"2010-04-28\",4.2],[\"2010-04-29\",45.15],[\"2010-04-30\",3.9],[\"2010-05-02\",1.45],[\"2010-05-04\",1.6],[\"2010-05-05\",25.189999999999998],[\"2010-05-06\",21.9],[\"2010-05-07\",22.22],[\"2010-05-10\",40.2],[\"2010-05-12\",3.73],[\"2010-05-13\",12.25],[\"2010-05-14\",43.07],[\"2010-05-17\",18.4],[\"2010-05-18\",4.82],[\"2010-05-19\",1.06],[\"2010-05-21\",61.2],[\"2010-05-23\",0.42],[\"2010-05-24\",19.5],[\"2010-05-25\",18.45],[\"2010-05-26\",85.3],[\"2010-05-28\",53.15],[\"2010-06-01\",31.17],[\"2010-06-02\",42.95],[\"2010-06-03\",32.16],[\"2010-06-04\",180.29],[\"2010-06-07\",16.31],[\"2010-06-08\",5.1],[\"2010-06-09\",6.66],[\"2010-06-10\",2.32],[\"2010-06-11\",5.4],[\"2010-06-14\",3.0],[\"2010-06-15\",3.55],[\"2010-06-16\",3.57],[\"2010-06-17\",30.32],[\"2010-06-18\",5.84],[\"2010-06-20\",0.72],[\"2010-06-23\",4.8999999999999995],[\"2010-06-24\",80.55],[\"2010-06-25\",4.9],[\"2010-06-27\",0.65],[\"2010-06-28\",5.96],[\"2010-06-29\",12.92],[\"2010-06-30\",13.98],[\"2010-07-01\",7.5],[\"2010-07-02\",11.7],[\"2010-07-05\",11.7],[\"2010-07-06\",2.96],[\"2010-07-07\",8.27],[\"2010-07-08\",37.9],[\"2010-07-09\",27.8],[\"2010-07-14\",6.8999999999999995],[\"2010-07-15\",8.15],[\"2010-07-16\",23.53],[\"2010-07-18\",1.08],[\"2010-07-19\",1.7],[\"2010-07-20\",25.95],[\"2010-07-21\",36.5],[\"2010-07-22\",5.3],[\"2010-07-23\",31.97],[\"2010-07-25\",0.32],[\"2010-07-26\",13.76],[\"2010-07-27\",23.150000000000002],[\"2010-07-28\",18.38],[\"2010-07-29\",11.15],[\"2010-07-30\",44.3],[\"2010-08-02\",7.55],[\"2010-08-03\",19.69],[\"2010-08-05\",5.6],[\"2010-08-06\",41.9],[\"2010-08-08\",0.29],[\"2010-08-10\",5.45],[\"2010-08-11\",14.46],[\"2010-08-12\",13.8],[\"2010-08-13\",77.78],[\"2010-08-15\",3.83],[\"2010-08-16\",19.439999999999998],[\"2010-08-17\",2.31],[\"2010-08-18\",7.07],[\"2010-08-19\",13.69],[\"2010-08-20\",5.0],[\"2010-08-24\",2.86],[\"2010-08-25\",18.490000000000002],[\"2010-08-26\",20.87],[\"2010-08-31\",25.01],[\"2010-09-02\",19.2],[\"2010-09-03\",32.269999999999996],[\"2010-09-06\",3.3],[\"2010-09-07\",3.2199999999999998],[\"2010-09-09\",42.45],[\"2010-09-12\",0.42],[\"2010-09-13\",65.96],[\"2010-09-16\",20.2],[\"2010-09-17\",90.27],[\"2010-09-20\",8.07],[\"2010-09-21\",3.47],[\"2010-09-22\",12.55],[\"2010-09-24\",14.9],[\"2010-09-26\",11.21],[\"2010-09-27\",21.82],[\"2010-09-28\",28.8],[\"2010-09-30\",96.62],[\"2010-10-01\",39.83],[\"2010-10-04\",8.66],[\"2010-10-05\",14.100000000000001],[\"2010-10-06\",24.099999999999998],[\"2010-10-07\",10.75],[\"2010-10-08\",18.33],[\"2010-10-10\",7.2],[\"2010-10-11\",7.29],[\"2010-10-12\",13.8],[\"2010-10-13\",0.42],[\"2010-10-14\",2.12],[\"2010-10-15\",105.6],[\"2010-10-18\",23.19],[\"2010-10-19\",15.799999999999999],[\"2010-10-21\",20.05],[\"2010-10-22\",2.17],[\"2010-10-24\",0.36],[\"2010-10-25\",20.32],[\"2010-10-26\",24.27],[\"2010-10-29\",57.81],[\"2010-10-31\",13.05],[\"2010-11-01\",1.06],[\"2010-11-02\",11.9],[\"2010-11-03\",2.51],[\"2010-11-04\",32.36],[\"2010-11-05\",18.779999999999998],[\"2010-11-09\",9.7],[\"2010-11-10\",8.51],[\"2010-11-11\",24.62],[\"2010-11-12\",13.91],[\"2010-11-15\",7.140000000000001],[\"2010-11-16\",3.0],[\"2010-11-17\",9.709999999999999],[\"2010-11-18\",22.21],[\"2010-11-19\",21.78],[\"2010-11-22\",20.55],[\"2010-11-23\",10.55],[\"2010-11-24\",28.64],[\"2010-11-25\",24.48],[\"2010-11-29\",50.38],[\"2010-11-30\",12.17],[\"2010-12-01\",93.9],[\"2010-12-02\",31.560000000000002],[\"2010-12-03\",0.32],[\"2010-12-06\",32.68],[\"2010-12-07\",141.94],[\"2010-12-08\",15.98],[\"2010-12-09\",34.48],[\"2010-12-10\",21.7],[\"2010-12-12\",22.05],[\"2010-12-13\",26.99],[\"2010-12-14\",0.85],[\"2010-12-15\",5.55],[\"2010-12-16\",12.4],[\"2010-12-17\",10.1],[\"2010-12-19\",38.7],[\"2010-12-20\",32.22],[\"2010-12-22\",15.05],[\"2010-12-23\",24.35],[\"2011-01-05\",15.33],[\"2011-01-06\",0.25],[\"2011-01-07\",10.5],[\"2011-01-10\",7.95],[\"2011-01-11\",35.65],[\"2011-01-12\",14.899999999999999],[\"2011-01-13\",0.65],[\"2011-01-17\",0.34],[\"2011-01-20\",5.5],[\"2011-01-21\",0.64],[\"2011-01-24\",14.149999999999999],[\"2011-01-25\",16.95],[\"2011-01-26\",0.58],[\"2011-01-27\",7.75],[\"2011-02-01\",26.44],[\"2011-02-03\",4.66],[\"2011-02-04\",13.66],[\"2011-02-07\",17.38],[\"2011-02-10\",1.74],[\"2011-02-11\",17.75],[\"2011-02-14\",0.72],[\"2011-02-15\",20.86],[\"2011-02-16\",0.25],[\"2011-02-17\",37.71],[\"2011-02-18\",7.52],[\"2011-02-20\",0.42],[\"2011-02-21\",30.25],[\"2011-02-25\",15.9],[\"2011-03-01\",25.599999999999998],[\"2011-03-02\",0.68],[\"2011-03-03\",1.06],[\"2011-03-04\",3.75],[\"2011-03-07\",19.169999999999998],[\"2011-03-08\",0.6699999999999999],[\"2011-03-09\",36.08],[\"2011-03-10\",7.9],[\"2011-03-11\",2.37],[\"2011-03-14\",2.5999999999999996],[\"2011-03-15\",7.12],[\"2011-03-16\",11.1],[\"2011-03-17\",1.74],[\"2011-03-18\",10.15],[\"2011-03-20\",28.15],[\"2011-03-21\",8.4],[\"2011-03-22\",5.4],[\"2011-03-23\",33.9],[\"2011-03-24\",3.9699999999999998],[\"2011-03-25\",26.21],[\"2011-03-30\",64.23],[\"2011-04-01\",76.23],[\"2011-04-03\",17.36],[\"2011-04-04\",7.61],[\"2011-04-05\",30.66],[\"2011-04-06\",20.2],[\"2011-04-07\",9.9],[\"2011-04-08\",7.57],[\"2011-04-12\",6.7],[\"2011-04-13\",0.9299999999999999],[\"2011-04-14\",15.31],[\"2011-04-15\",4.15],[\"2011-04-18\",14.64],[\"2011-04-19\",4.2],[\"2011-04-20\",2.4000000000000004],[\"2011-04-21\",20.88],[\"2011-04-26\",27.04],[\"2011-04-27\",7.43],[\"2011-05-03\",7.59],[\"2011-05-04\",0.21],[\"2011-05-05\",42.97],[\"2011-05-06\",3.3499999999999996],[\"2011-05-09\",12.55],[\"2011-05-10\",21.15],[\"2011-05-11\",41.59],[\"2011-05-12\",4.18],[\"2011-05-13\",5.47],[\"2011-05-17\",1.06],[\"2011-05-18\",12.45],[\"2011-05-19\",0.61],[\"2011-05-20\",3.94],[\"2011-05-23\",6.41],[\"2011-05-24\",69.61],[\"2011-05-25\",8.68],[\"2011-05-26\",4.16],[\"2011-05-31\",2.33],[\"2011-06-01\",8.34],[\"2011-06-02\",2.55],[\"2011-06-03\",11.19],[\"2011-06-05\",1.06],[\"2011-06-07\",3.0],[\"2011-06-08\",0.9],[\"2011-06-10\",15.67],[\"2011-06-12\",24.9],[\"2011-06-13\",37.01],[\"2011-06-14\",2.75],[\"2011-06-15\",10.4],[\"2011-06-16\",3.95],[\"2011-06-17\",27.24],[\"2011-06-20\",3155.7799999999997],[\"2011-06-22\",14.379999999999999],[\"2011-06-24\",7.52],[\"2011-06-27\",0.71],[\"2011-06-28\",13.16],[\"2011-06-30\",20.43],[\"2011-07-04\",22.9],[\"2011-07-05\",5.05],[\"2011-07-06\",7.62],[\"2011-07-07\",13.94],[\"2011-07-08\",25.650000000000002],[\"2011-07-11\",11.51],[\"2011-07-12\",1.45],[\"2011-07-15\",6.7],[\"2011-07-17\",0.25],[\"2011-07-19\",5.39],[\"2011-07-20\",3.3000000000000003],[\"2011-07-21\",5.24],[\"2011-07-22\",23.02],[\"2011-07-24\",1.84],[\"2011-07-26\",17.33],[\"2011-07-27\",13.65],[\"2011-07-28\",6.800000000000001],[\"2011-08-01\",1.84],[\"2011-08-02\",2.7],[\"2011-08-03\",5.0],[\"2011-08-04\",1.76],[\"2011-08-05\",16.71],[\"2011-08-07\",0.12],[\"2011-08-08\",2.31],[\"2011-08-10\",15.99],[\"2011-08-11\",27.74],[\"2011-08-16\",10.97],[\"2011-08-17\",3.18],[\"2011-08-18\",18.66],[\"2011-08-21\",10.02],[\"2011-08-22\",22.67],[\"2011-08-23\",11.92],[\"2011-08-24\",13.120000000000001],[\"2011-08-26\",1.45],[\"2011-08-30\",15.0],[\"2011-09-01\",0.96],[\"2011-09-02\",28.06],[\"2011-09-04\",0.42],[\"2011-09-05\",0.36],[\"2011-09-06\",23.25],[\"2011-09-08\",30.509999999999998],[\"2011-09-09\",14.83],[\"2011-09-13\",1.79],[\"2011-09-14\",0.25],[\"2011-09-15\",25.85],[\"2011-09-16\",0.65],[\"2011-09-19\",7.0600000000000005],[\"2011-09-20\",15.89],[\"2011-09-23\",21.89],[\"2011-09-26\",2.28],[\"2011-09-27\",0.58],[\"2011-09-28\",4.97],[\"2011-09-29\",0.74],[\"2011-09-30\",8.3],[\"2011-10-02\",33.79],[\"2011-10-03\",0.9],[\"2011-10-04\",13.25],[\"2011-10-06\",12.540000000000001],[\"2011-10-07\",7.109999999999999],[\"2011-10-10\",39.27],[\"2011-10-11\",3.33],[\"2011-10-12\",13.78],[\"2011-10-13\",3.4299999999999997],[\"2011-10-14\",10.100000000000001],[\"2011-10-17\",6.85],[\"2011-10-18\",0.29],[\"2011-10-19\",39.81],[\"2011-10-20\",3.8],[\"2011-10-21\",7.46],[\"2011-10-24\",10.4],[\"2011-10-25\",32.56],[\"2011-10-26\",9.950000000000001],[\"2011-10-27\",7.7700000000000005],[\"2011-10-28\",53.92],[\"2011-10-31\",10.5],[\"2011-11-02\",4.24],[\"2011-11-03\",16.25],[\"2011-11-04\",28.52],[\"2011-11-06\",3.55],[\"2011-11-07\",1.4500000000000002],[\"2011-11-08\",27.91],[\"2011-11-09\",11.44],[\"2011-11-10\",17.7],[\"2011-11-11\",25.29],[\"2011-11-13\",2.5],[\"2011-11-15\",4.05],[\"2011-11-16\",60.78],[\"2011-11-17\",5.9],[\"2011-11-18\",8.43],[\"2011-11-20\",0.72],[\"2011-11-21\",8.73],[\"2011-11-22\",2.62],[\"2011-11-23\",7.5],[\"2011-11-24\",0.63],[\"2011-11-25\",17.77],[\"2011-11-28\",13.610000000000001],[\"2011-11-29\",42.64],[\"2011-11-30\",18.15],[\"2011-12-01\",2.39],[\"2011-12-02\",13.66],[\"2011-12-05\",52.44],[\"2011-12-06\",12.88],[\"2011-12-08\",3.35]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.invoice_date, SUM(l.unit_price) 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.invoice_date ORDER BY i.invoice_date ASC","sql_parameters":"[229]","state":"{\"question\":\"Return the sum of l.unit_price for retail lines joined to their invoices where (l.quantity is greater than 229 or i.customer_id is missing), grouped by i.invoice_date, ordered by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}577{"category":"join/date/or/grouped","domain":"commerce","family_id":"cea8258b967a741b1f29a69b","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"10bd6647dafcde031915b0327c71bede85d8779163618d739b59437c2fc1a9b0","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail lines joined to their invoices where (i.customer_id equals '12359' or i.invoice_date is before '2010-02-18'), grouped by i.invoice_date, ordered by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12359\\\",\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? AND i.invoice_date < ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12359\\\",\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR i.invoice_date < ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12359\\\",\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR i.invoice_date < ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12359\\\",\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR i.invoice_date < ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-01\",52],[\"2009-12-02\",96],[\"2009-12-03\",93],[\"2009-12-04\",62],[\"2009-12-05\",28],[\"2009-12-06\",31],[\"2009-12-07\",66],[\"2009-12-08\",83],[\"2009-12-09\",87],[\"2009-12-10\",71],[\"2009-12-11\",28],[\"2009-12-13\",25],[\"2009-12-14\",68],[\"2009-12-15\",90],[\"2009-12-16\",54],[\"2009-12-17\",97],[\"2009-12-18\",54],[\"2009-12-20\",20],[\"2009-12-21\",43],[\"2009-12-22\",45],[\"2009-12-23\",27],[\"2010-01-04\",17],[\"2010-01-05\",18],[\"2010-01-06\",3],[\"2010-01-07\",31],[\"2010-01-08\",46],[\"2010-01-10\",19],[\"2010-01-11\",33],[\"2010-01-12\",44],[\"2010-01-13\",21],[\"2010-01-14\",20],[\"2010-01-15\",36],[\"2010-01-17\",13],[\"2010-01-18\",6],[\"2010-01-19\",35],[\"2010-01-20\",33],[\"2010-01-21\",40],[\"2010-01-22\",25],[\"2010-01-24\",30],[\"2010-01-25\",34],[\"2010-01-26\",23],[\"2010-01-27\",58],[\"2010-01-28\",19],[\"2010-01-29\",30],[\"2010-01-31\",41],[\"2010-02-01\",37],[\"2010-02-02\",26],[\"2010-02-03\",28],[\"2010-02-04\",47],[\"2010-02-05\",41],[\"2010-02-07\",11],[\"2010-02-08\",51],[\"2010-02-09\",36],[\"2010-02-10\",28],[\"2010-02-11\",29],[\"2010-02-12\",29],[\"2010-02-14\",17],[\"2010-02-15\",34],[\"2010-02-16\",51],[\"2010-02-17\",41]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.invoice_date, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR i.invoice_date < ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC","sql_parameters":"[\"12359\",\"2010-02-18\"]","state":"{\"question\":\"Return the number of rows for retail lines joined to their invoices where (i.customer_id equals '12359' or i.invoice_date is before '2010-02-18'), grouped by i.invoice_date, ordered by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}578{"category":"single_table/or/aggregate","domain":"commerce","family_id":"0c4b6cd164d7067a0d939c1b","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"b891bb253472ac26236f71f44ff13bfd456f003a050e3cf1157478a556656229","language":"en","license":"CC-BY-4.0","query":"Return the minimum of unit_price for retail invoice lines where (quantity is at most 229 or unit_price is greater than 0.55).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[229,0.55],\\\"sql\\\":\\\"SELECT MIN(unit_price) AS value FROM retail_lines WHERE (quantity <= ? AND unit_price > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[229,0.55],\\\"sql\\\":\\\"SELECT MIN(unit_price) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[229,0.55],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[229,0.55],\\\"sql\\\":\\\"SELECT SUM(unit_price) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0.04]]","source":"online_retail_ii","split":"dev","sql":"SELECT MIN(unit_price) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?)","sql_parameters":"[229,0.55]","state":"{\"question\":\"Return the minimum of unit_price for retail invoice lines where (quantity is at most 229 or unit_price is greater than 0.55).\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}579{"category":"single_table/date/and/grouped","domain":"commerce","family_id":"ae5463d6ceb737a452c6e469","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"6a4c02eb21c63d4cf9e99381aabfc6c4d27635a6c7881aff14c3dab576f35216","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail invoice lines where (unit_price is greater than 4.77 and invoice_date is before '2010-07-14'), grouped by country, ordered by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[4.77,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date < ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[4.77,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (unit_price > ? AND invoice_date < ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[4.77,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (unit_price > ? AND invoice_date < ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[4.77,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (unit_price > ? AND invoice_date < ?) GROUP BY country ORDER BY country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",1],[\"Austria\",1],[\"Bahrain\",1],[\"Belgium\",1],[\"Cyprus\",3],[\"Denmark\",1],[\"EIRE\",10],[\"Finland\",2],[\"France\",5],[\"Germany\",29],[\"Netherlands\",10],[\"Portugal\",2],[\"Spain\",6],[\"Sweden\",3],[\"United Kingdom\",1917]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (unit_price > ? AND invoice_date < ?) GROUP BY country ORDER BY country ASC","sql_parameters":"[4.77,\"2010-07-14\"]","state":"{\"question\":\"Return the number of rows for retail invoice lines where (unit_price is greater than 4.77 and invoice_date is before '2010-07-14'), 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\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}580{"category":"single_table/and/grouped","domain":"commerce","family_id":"894d0012856514e097c0a9ed","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"f730c2c3f073af085bcc1728a1adfc468404e1bd5ea2a5af4f4c0c8a73ffd82e","language":"en","license":"CC-BY-4.0","query":"Return the sum of unit_price for retail invoice lines where (quantity is at most 229 and unit_price is greater than 0.55), grouped by invoice_date, ordered by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[229,0.55],\\\"sql\\\":\\\"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[229,0.55],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (quantity <= ? AND unit_price > ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[229,0.55],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (quantity <= ? AND unit_price > ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[229,0.55],\\\"sql\\\":\\\"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (quantity <= ? AND unit_price > ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-01\",140.11],[\"2009-12-02\",318.68],[\"2009-12-03\",431.71],[\"2009-12-04\",185.75],[\"2009-12-05\",125.5],[\"2009-12-06\",137.25],[\"2009-12-07\",257.93],[\"2009-12-08\",253.71],[\"2009-12-09\",475.69],[\"2009-12-10\",284.39],[\"2009-12-11\",139.64000000000001],[\"2009-12-13\",153.39000000000001],[\"2009-12-14\",257.73],[\"2009-12-15\",323.25],[\"2009-12-16\",244.85],[\"2009-12-17\",325.69],[\"2009-12-18\",183.53],[\"2009-12-20\",76.27],[\"2009-12-21\",134.88],[\"2009-12-22\",178.13],[\"2009-12-23\",40.5],[\"2010-01-04\",42.7],[\"2010-01-05\",120.75],[\"2010-01-06\",10.45],[\"2010-01-07\",181.54],[\"2010-01-08\",154.26],[\"2010-01-10\",43.83],[\"2010-01-11\",128.85],[\"2010-01-12\",187.04],[\"2010-01-13\",56.83],[\"2010-01-14\",57.68],[\"2010-01-15\",153.02],[\"2010-01-17\",38.97],[\"2010-01-18\",5.75],[\"2010-01-19\",108.78],[\"2010-01-20\",129.05],[\"2010-01-21\",144.65],[\"2010-01-22\",179.35],[\"2010-01-24\",138.59],[\"2010-01-25\",187.83],[\"2010-01-26\",145.73],[\"2010-01-27\",176.17],[\"2010-01-28\",70.3],[\"2010-01-29\",161.4],[\"2010-01-31\",121.55],[\"2010-02-01\",154.52],[\"2010-02-02\",266.95],[\"2010-02-03\",210.14000000000001],[\"2010-02-04\",150.83],[\"2010-02-05\",160.83],[\"2010-02-07\",10.56],[\"2010-02-08\",181.43],[\"2010-02-09\",111.3],[\"2010-02-10\",146.49],[\"2010-02-11\",83.51],[\"2010-02-12\",52.53],[\"2010-02-14\",75.02],[\"2010-02-15\",80.46],[\"2010-02-16\",317.17],[\"2010-02-17\",95.38],[\"2010-02-18\",114.77],[\"2010-02-19\",116.74],[\"2010-02-21\",48.04],[\"2010-02-22\",584.55],[\"2010-02-23\",206.51],[\"2010-02-24\",172.06],[\"2010-02-25\",187.23],[\"2010-02-26\",100.01],[\"2010-02-28\",194.09],[\"2010-03-01\",163.51],[\"2010-03-02\",98.65],[\"2010-03-03\",215.98],[\"2010-03-04\",127.83],[\"2010-03-05\",255.7],[\"2010-03-07\",65.5],[\"2010-03-08\",263.48],[\"2010-03-09\",158.23],[\"2010-03-10\",83.48],[\"2010-03-11\",105.09],[\"2010-03-12\",110.02],[\"2010-03-14\",79.31],[\"2010-03-15\",98.22],[\"2010-03-16\",89.98],[\"2010-03-17\",76.32],[\"2010-03-18\",272.23],[\"2010-03-19\",117.04],[\"2010-03-21\",104.42999999999999],[\"2010-03-22\",137.38],[\"2010-03-23\",155.44],[\"2010-03-24\",1032.1599999999999],[\"2010-03-25\",149.39],[\"2010-03-26\",141.59],[\"2010-03-28\",21.95],[\"2010-03-29\",118.17],[\"2010-03-30\",170.38],[\"2010-03-31\",184.73000000000002],[\"2010-04-01\",89.19],[\"2010-04-06\",179.53],[\"2010-04-07\",110.23],[\"2010-04-08\",221.79],[\"2010-04-09\",74.52],[\"2010-04-11\",64.78],[\"2010-04-12\",178.2],[\"2010-04-13\",78.09],[\"2010-04-14\",128.71],[\"2010-04-15\",105.2],[\"2010-04-16\",111.46],[\"2010-04-18\",65.05],[\"2010-04-19\",275.12],[\"2010-04-20\",143.88],[\"2010-04-21\",309.17],[\"2010-04-22\",201.12],[\"2010-04-23\",229.1],[\"2010-04-25\",131.3],[\"2010-04-26\",201.94],[\"2010-04-27\",224.4],[\"2010-04-28\",108.23],[\"2010-04-29\",229.71],[\"2010-04-30\",187.32999999999998],[\"2010-05-02\",75.27],[\"2010-05-04\",336.89],[\"2010-05-05\",308.53],[\"2010-05-06\",240.16],[\"2010-05-07\",197.38],[\"2010-05-09\",198.47],[\"2010-05-10\",269.53],[\"2010-05-11\",117.86],[\"2010-05-12\",188.7],[\"2010-05-13\",95.96],[\"2010-05-14\",200.58],[\"2010-05-16\",44.15],[\"2010-05-17\",74.0],[\"2010-05-18\",164.25],[\"2010-05-19\",465.24],[\"2010-05-20\",156.3],[\"2010-05-21\",211.6],[\"2010-05-23\",66.39],[\"2010-05-24\",220.58],[\"2010-05-25\",144.82999999999998],[\"2010-05-26\",245.63],[\"2010-05-27\",188.23],[\"2010-05-28\",114.62],[\"2010-05-30\",60.75],[\"2010-06-01\",98.83],[\"2010-06-02\",156.2],[\"2010-06-03\",217.16],[\"2010-06-04\",209.6],[\"2010-06-06\",48.98],[\"2010-06-07\",214.95],[\"2010-06-08\",156.54],[\"2010-06-09\",182.14000000000001],[\"2010-06-10\",167.45],[\"2010-06-11\",194.21],[\"2010-06-13\",179.76],[\"2010-06-14\",172.13],[\"2010-06-15\",93.37],[\"2010-06-16\",246.01],[\"2010-06-17\",193.02],[\"2010-06-18\",81.1],[\"2010-06-20\",113.69],[\"2010-06-21\",74.0],[\"2010-06-22\",67.35],[\"2010-06-23\",221.15],[\"2010-06-24\",204.94],[\"2010-06-25\",62.98],[\"2010-06-27\",149.07],[\"2010-06-28\",180.57],[\"2010-06-29\",260.0],[\"2010-06-30\",136.60999999999999],[\"2010-07-01\",126.64],[\"2010-07-02\",16.599999999999998],[\"2010-07-04\",89.77],[\"2010-07-05\",256.71],[\"2010-07-06\",168.21],[\"2010-07-07\",173.49],[\"2010-07-08\",372.65],[\"2010-07-09\",39.23],[\"2010-07-11\",37.2],[\"2010-07-12\",747.53],[\"2010-07-13\",240.24],[\"2010-07-14\",66.35],[\"2010-07-15\",224.49],[\"2010-07-16\",232.76],[\"2010-07-18\",52.81],[\"2010-07-19\",119.69],[\"2010-07-20\",197.4],[\"2010-07-21\",194.63],[\"2010-07-22\",111.56],[\"2010-07-23\",70.23],[\"2010-07-25\",38.34],[\"2010-07-26\",113.07],[\"2010-07-27\",264.03],[\"2010-07-28\",111.37],[\"2010-07-29\",85.07],[\"2010-07-30\",211.12],[\"2010-08-01\",47.8],[\"2010-08-02\",546.1],[\"2010-08-03\",711.46],[\"2010-08-04\",87.64999999999999],[\"2010-08-05\",174.60999999999999],[\"2010-08-06\",71.13],[\"2010-08-08\",102.47],[\"2010-08-09\",98.31],[\"2010-08-10\",41.160000000000004],[\"2010-08-11\",99.99],[\"2010-08-12\",174.82999999999998],[\"2010-08-13\",149.73],[\"2010-08-15\",141.29],[\"2010-08-16\",71.64999999999999],[\"2010-08-17\",126.34],[\"2010-08-18\",99.99],[\"2010-08-19\",208.53],[\"2010-08-20\",167.24],[\"2010-08-22\",58.75],[\"2010-08-23\",109.78999999999999],[\"2010-08-24\",354.38],[\"2010-08-25\",130.99],[\"2010-08-26\",98.79],[\"2010-08-27\",86.12],[\"2010-08-29\",81.64],[\"2010-08-31\",80.58],[\"2010-09-01\",210.62],[\"2010-09-02\",338.02],[\"2010-09-03\",202.07999999999998],[\"2010-09-05\",133.07999999999998],[\"2010-09-06\",83.7],[\"2010-09-07\",101.1],[\"2010-09-08\",13.66],[\"2010-09-09\",333.62],[\"2010-09-10\",39.8],[\"2010-09-12\",70.27],[\"2010-09-13\",209.04999999999998],[\"2010-09-14\",209.07],[\"2010-09-15\",64.1],[\"2010-09-16\",186.38],[\"2010-09-17\",181.0],[\"2010-09-19\",81.23],[\"2010-09-20\",385.09],[\"2010-09-21\",208.58],[\"2010-09-22\",94.67],[\"2010-09-23\",177.2],[\"2010-09-24\",132.95],[\"2010-09-26\",186.54],[\"2010-09-27\",186.24],[\"2010-09-28\",321.87],[\"2010-09-29\",269.79],[\"2010-09-30\",197.33],[\"2010-10-01\",200.17000000000002],[\"2010-10-03\",46.64],[\"2010-10-04\",158.88],[\"2010-10-05\",137.52],[\"2010-10-06\",183.51],[\"2010-10-07\",198.82],[\"2010-10-08\",135.21],[\"2010-10-10\",105.7],[\"2010-10-11\",250.67000000000002],[\"2010-10-12\",208.2],[\"2010-10-13\",119.12],[\"2010-10-14\",230.23],[\"2010-10-15\",270.19],[\"2010-10-17\",31.39],[\"2010-10-18\",427.56],[\"2010-10-19\",179.64],[\"2010-10-20\",275.82],[\"2010-10-21\",577.65],[\"2010-10-22\",385.51],[\"2010-10-24\",251.64000000000001],[\"2010-10-25\",112.03],[\"2010-10-26\",291.26],[\"2010-10-27\",222.25],[\"2010-10-28\",152.7],[\"2010-10-29\",264.86],[\"2010-10-31\",178.8],[\"2010-11-01\",67.29],[\"2010-11-02\",223.63],[\"2010-11-03\",492.54],[\"2010-11-04\",377.09],[\"2010-11-05\",130.75],[\"2010-11-07\",95.51],[\"2010-11-08\",154.92],[\"2010-11-09\",301.44],[\"2010-11-10\",414.23],[\"2010-11-11\",314.15999999999997],[\"2010-11-12\",234.19],[\"2010-11-14\",149.1],[\"2010-11-15\",261.24],[\"2010-11-16\",405.93],[\"2010-11-17\",775.55],[\"2010-11-18\",342.53000000000003],[\"2010-11-19\",552.84],[\"2010-11-21\",151.25],[\"2010-11-22\",247.15],[\"2010-11-23\",236.9],[\"2010-11-24\",469.71],[\"2010-11-25\",478.0],[\"2010-11-26\",131.84],[\"2010-11-28\",402.56],[\"2010-11-29\",231.8],[\"2010-11-30\",239.52],[\"2010-12-01\",821.2],[\"2010-12-02\",579.58],[\"2010-12-03\",330.1],[\"2010-12-05\",368.74],[\"2010-12-06\",377.48],[\"2010-12-07\",539.7],[\"2010-12-08\",726.82],[\"2010-12-09\",703.4],[\"2010-12-10\",170.16],[\"2010-12-12\",109.34],[\"2010-12-13\",161.22],[\"2010-12-14\",289.53],[\"2010-12-15\",236.09],[\"2010-12-16\",528.55],[\"2010-12-17\",230.74],[\"2010-12-19\",38.7],[\"2010-12-20\",119.21],[\"2010-12-21\",140.08],[\"2010-12-22\",39.6],[\"2010-12-23\",69.48],[\"2011-01-04\",37.82],[\"2011-01-05\",138.26],[\"2011-01-06\",64.05],[\"2011-01-07\",136.34],[\"2011-01-09\",104.35],[\"2011-01-10\",38.26],[\"2011-01-11\",159.23],[\"2011-01-12\",331.13],[\"2011-01-13\",39.4],[\"2011-01-14\",157.75],[\"2011-01-16\",7.34],[\"2011-01-17\",117.51],[\"2011-01-18\",97.8],[\"2011-01-19\",32.35],[\"2011-01-20\",136.28],[\"2011-01-21\",197.84],[\"2011-01-23\",77.3],[\"2011-01-24\",137.85],[\"2011-01-25\",166.5],[\"2011-01-26\",136.82],[\"2011-01-27\",160.9],[\"2011-01-28\",53.25],[\"2011-01-30\",11.05],[\"2011-01-31\",149.09],[\"2011-02-01\",175.77],[\"2011-02-02\",109.93],[\"2011-02-03\",119.75],[\"2011-02-04\",450.04],[\"2011-02-07\",119.14],[\"2011-02-08\",46.11],[\"2011-02-09\",66.99],[\"2011-02-10\",275.24],[\"2011-02-11\",274.24],[\"2011-02-13\",17.23],[\"2011-02-14\",110.67999999999999],[\"2011-02-15\",102.6],[\"2011-02-16\",146.01],[\"2011-02-17\",176.84],[\"2011-02-18\",89.99],[\"2011-02-20\",39.24],[\"2011-02-21\",70.12],[\"2011-02-22\",76.45],[\"2011-02-23\",118.88000000000001],[\"2011-02-24\",98.47],[\"2011-02-25\",141.57],[\"2011-02-27\",39.44],[\"2011-02-28\",326.3],[\"2011-03-01\",1039.99],[\"2011-03-02\",51.67],[\"2011-03-03\",215.23],[\"2011-03-04\",173.65],[\"2011-03-06\",64.3],[\"2011-03-07\",498.56],[\"2011-03-08\",149.4],[\"2011-03-09\",197.76],[\"2011-03-10\",182.17],[\"2011-03-11\",231.56],[\"2011-03-14\",118.17],[\"2011-03-15\",83.5],[\"2011-03-16\",153.75],[\"2011-03-17\",137.71],[\"2011-03-18\",225.87],[\"2011-03-20\",284.66],[\"2011-03-21\",112.84],[\"2011-03-22\",40.63],[\"2011-03-23\",179.21],[\"2011-03-24\",59.59],[\"2011-03-25\",86.85],[\"2011-03-27\",113.45],[\"2011-03-28\",374.15],[\"2011-03-29\",69.18],[\"2011-03-30\",155.83],[\"2011-03-31\",291.81],[\"2011-04-01\",268.77],[\"2011-04-03\",56.68],[\"2011-04-04\",4072.07],[\"2011-04-05\",280.26],[\"2011-04-06\",66.7],[\"2011-04-07\",209.79],[\"2011-04-08\",274.19],[\"2011-04-10\",12.2],[\"2011-04-11\",140.81],[\"2011-04-12\",108.58],[\"2011-04-13\",168.82],[\"2011-04-14\",237.95],[\"2011-04-15\",105.33],[\"2011-04-17\",66.39],[\"2011-04-18\",85.38],[\"2011-04-19\",44.03],[\"2011-04-20\",171.27],[\"2011-04-21\",219.12],[\"2011-04-26\",233.83],[\"2011-04-27\",220.91],[\"2011-04-28\",641.41],[\"2011-05-01\",20.95],[\"2011-05-03\",307.38],[\"2011-05-04\",204.32],[\"2011-05-05\",448.26],[\"2011-05-06\",287.49],[\"2011-05-08\",84.47],[\"2011-05-09\",191.64000000000001],[\"2011-05-10\",202.88],[\"2011-05-11\",212.29],[\"2011-05-12\",252.79],[\"2011-05-13\",256.39],[\"2011-05-15\",64.77],[\"2011-05-16\",194.55],[\"2011-05-17\",263.5],[\"2011-05-18\",218.02],[\"2011-05-19\",307.61],[\"2011-05-20\",293.39],[\"2011-05-22\",165.0],[\"2011-05-23\",262.24],[\"2011-05-24\",351.15],[\"2011-05-25\",114.26],[\"2011-05-26\",455.43],[\"2011-05-27\",173.82],[\"2011-05-29\",31.3],[\"2011-05-31\",149.6],[\"2011-06-01\",122.32],[\"2011-06-02\",170.88],[\"2011-06-03\",129.61],[\"2011-06-05\",155.39000000000001],[\"2011-06-06\",108.7],[\"2011-06-07\",172.38],[\"2011-06-08\",225.31],[\"2011-06-09\",232.09],[\"2011-06-10\",128.47],[\"2011-06-12\",88.35],[\"2011-06-13\",134.18],[\"2011-06-14\",91.43],[\"2011-06-15\",104.67],[\"2011-06-16\",262.73],[\"2011-06-17\",113.23],[\"2011-06-19\",63.92],[\"2011-06-20\",3275.02],[\"2011-06-21\",146.28],[\"2011-06-22\",107.21],[\"2011-06-23\",57.98],[\"2011-06-24\",126.35],[\"2011-06-26\",147.99],[\"2011-06-27\",45.230000000000004],[\"2011-06-28\",144.39000000000001],[\"2011-06-29\",133.31],[\"2011-06-30\",394.16],[\"2011-07-01\",177.16],[\"2011-07-03\",39.59],[\"2011-07-04\",105.03],[\"2011-07-05\",176.81],[\"2011-07-06\",143.03],[\"2011-07-07\",217.72],[\"2011-07-08\",182.58],[\"2011-07-10\",4.949999999999999],[\"2011-07-11\",109.58],[\"2011-07-12\",74.48],[\"2011-07-13\",206.14],[\"2011-07-14\",213.1],[\"2011-07-15\",152.81],[\"2011-07-17\",175.74],[\"2011-07-18\",124.78],[\"2011-07-19\",123.2],[\"2011-07-20\",132.1],[\"2011-07-21\",104.33],[\"2011-07-22\",104.7],[\"2011-07-24\",228.1],[\"2011-07-25\",273.34],[\"2011-07-26\",130.67],[\"2011-07-27\",71.05],[\"2011-07-28\",288.78],[\"2011-07-29\",121.03999999999999],[\"2011-07-31\",78.05],[\"2011-08-01\",39.46],[\"2011-08-02\",63.55],[\"2011-08-03\",132.52],[\"2011-08-04\",302.09000000000003],[\"2011-08-05\",173.75],[\"2011-08-07\",94.24],[\"2011-08-08\",92.78],[\"2011-08-09\",138.59],[\"2011-08-10\",111.0],[\"2011-08-11\",190.02],[\"2011-08-12\",48.17],[\"2011-08-14\",173.87],[\"2011-08-15\",49.65],[\"2011-08-16\",129.8],[\"2011-08-17\",20.96],[\"2011-08-18\",119.92],[\"2011-08-19\",132.47],[\"2011-08-21\",81.87],[\"2011-08-22\",166.49],[\"2011-08-23\",101.15],[\"2011-08-24\",159.85],[\"2011-08-25\",317.61],[\"2011-08-26\",127.31],[\"2011-08-28\",41.17],[\"2011-08-30\",117.55],[\"2011-08-31\",69.27],[\"2011-09-01\",170.73],[\"2011-09-02\",100.46],[\"2011-09-04\",110.17],[\"2011-09-05\",72.77],[\"2011-09-06\",234.82],[\"2011-09-07\",65.01],[\"2011-09-08\",234.49],[\"2011-09-09\",205.89000000000001],[\"2011-09-11\",81.0],[\"2011-09-12\",111.11],[\"2011-09-13\",115.79],[\"2011-09-14\",215.72],[\"2011-09-15\",174.14000000000001],[\"2011-09-16\",69.92],[\"2011-09-18\",17.11],[\"2011-09-19\",121.11],[\"2011-09-20\",169.13],[\"2011-09-21\",142.57],[\"2011-09-22\",267.57],[\"2011-09-23\",95.84],[\"2011-09-25\",138.99],[\"2011-09-26\",78.96000000000001],[\"2011-09-27\",169.5],[\"2011-09-28\",142.12],[\"2011-09-29\",112.71],[\"2011-09-30\",175.92],[\"2011-10-02\",54.84],[\"2011-10-03\",398.88],[\"2011-10-04\",148.84],[\"2011-10-05\",311.79],[\"2011-10-06\",255.32],[\"2011-10-07\",155.02],[\"2011-10-09\",29.56],[\"2011-10-10\",180.06],[\"2011-10-11\",245.4],[\"2011-10-12\",211.51],[\"2011-10-13\",171.41],[\"2011-10-14\",108.66],[\"2011-10-17\",210.15],[\"2011-10-18\",167.39000000000001],[\"2011-10-19\",6359.12],[\"2011-10-20\",152.46],[\"2011-10-21\",185.12],[\"2011-10-23\",16.4],[\"2011-10-24\",197.03],[\"2011-10-25\",316.06],[\"2011-10-26\",318.54],[\"2011-10-27\",288.66],[\"2011-10-28\",203.72],[\"2011-10-30\",225.21],[\"2011-10-31\",120.09],[\"2011-11-01\",161.64000000000001],[\"2011-11-02\",66.88],[\"2011-11-03\",216.56],[\"2011-11-04\",153.09],[\"2011-11-06\",231.21],[\"2011-11-07\",354.05],[\"2011-11-08\",224.15],[\"2011-11-09\",371.31],[\"2011-11-10\",1378.0900000000001],[\"2011-11-11\",107.02],[\"2011-11-13\",120.22],[\"2011-11-14\",139.09],[\"2011-11-15\",239.22],[\"2011-11-16\",522.0],[\"2011-11-17\",502.79],[\"2011-11-18\",349.98],[\"2011-11-20\",86.23],[\"2011-11-21\",183.25],[\"2011-11-22\",250.29],[\"2011-11-23\",296.8],[\"2011-11-24\",218.81],[\"2011-11-25\",317.37],[\"2011-11-27\",24.11],[\"2011-11-28\",176.94],[\"2011-11-29\",426.86],[\"2011-11-30\",174.78],[\"2011-12-01\",430.35],[\"2011-12-02\",412.84000000000003],[\"2011-12-04\",149.29],[\"2011-12-05\",535.25],[\"2011-12-06\",360.33],[\"2011-12-07\",175.46],[\"2011-12-08\",253.56],[\"2011-12-09\",163.5]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (quantity <= ? AND unit_price > ?) GROUP BY invoice_date ORDER BY invoice_date ASC","sql_parameters":"[229,0.55]","state":"{\"question\":\"Return the sum of unit_price for retail invoice lines where (quantity is at most 229 and 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\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}581{"category":"single_table/ranked","domain":"sensor","family_id":"a4a6102b28984233c512f171","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"13d3899b0eef3e9cf310c90193f2ad450b6e6ef9cf643acc1b7d14399b680d90","language":"en","license":"CC-BY-4.0","query":"Return the maximum of ts1_mean for hydraulic cycles where (ts1_mean is greater than 35.56605), grouped by pump_leakage; return at most 3 groups ordered by aggregate value ASC, breaking ties by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[35.56605],\\\"sql\\\":\\\"SELECT pump_leakage, MAX(ts1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean > ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[35.56605],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (ts1_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[35.56605],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(ts1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[35.56605],\\\"sql\\\":\\\"SELECT pump_leakage, MAX(ts1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[2,57.5733],[1,57.83973],[0,57.89928]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, MAX(ts1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3","sql_parameters":"[35.56605]","state":"{\"question\":\"Return the maximum of ts1_mean for hydraulic cycles where (ts1_mean is greater than 35.56605), 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\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}582{"category":"join/null/or/having","domain":"commerce","family_id":"c1f45e2e3d65a8f9eae6b9f7","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"6de395a19f9e6c140540b4506ad019bedde11dd7944759b3c0a77e7e1eb6ac2c","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail lines joined to their invoices where (i.country equals 'Bahrain' or i.customer_id is missing), grouped by i.country, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Bahrain\\\",2],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND i.customer_id IS NULL) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Bahrain\\\",2],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR i.customer_id IS NULL) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Bahrain\\\",2],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR i.customer_id IS NULL) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Bahrain\\\",2],\\\"sql\\\":\\\"SELECT i.country, SUM(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 NULL) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"United Kingdom\",2007],[\"EIRE\",14],[\"Bahrain\",11],[\"Israel\",6],[\"Switzerland\",3]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR i.customer_id IS NULL) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5","sql_parameters":"[\"Bahrain\",2]","state":"{\"question\":\"Return the number of rows for retail lines joined to their invoices where (i.country equals 'Bahrain' or i.customer_id is missing), grouped by i.country, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}583{"category":"join/having","domain":"commerce","family_id":"d3f42ebb283ebb593d1995a9","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"d09a7141f09f9d1ad54f1a780f257956c284cf518eba3f826e239570cd707507","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.quantity for retail lines joined to their invoices where (l.unit_price is greater than 0.55), grouped by i.invoice_date, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[0.55,2],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[0.55,2],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[0.55,2],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[0.55,2],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-11-04\",17253],[\"2011-01-11\",15824],[\"2010-12-07\",10326],[\"2011-04-18\",9528],[\"2010-10-08\",9037]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.invoice_date, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5","sql_parameters":"[0.55,2]","state":"{\"question\":\"Return the sum of l.quantity for retail lines joined to their invoices where (l.unit_price is greater than 0.55), grouped by i.invoice_date, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}584{"category":"single_table/having","domain":"commerce","family_id":"adc803ae68a388241dfd777e","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"d4738227616f0504506355b89441671cf0b66d2f30d8d1df5f800a4126c43204","language":"en","license":"CC-BY-4.0","query":"Return the minimum of product_duration for shopping sessions where (weekend equals 0), grouped by month, keeping only groups with at least 10 matching rows; return at most 3 groups ordered by aggregate value ASC, breaking ties by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[0,10],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (weekend = ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value ASC, month ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[0,10],\\\"sql\\\":\\\"SELECT month, SUM(product_duration) AS value FROM shopping_sessions WHERE (weekend = ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value ASC, month ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[0,10],\\\"sql\\\":\\\"SELECT month, AVG(product_duration) AS value FROM shopping_sessions WHERE (weekend = ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value ASC, month ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[0,10],\\\"sql\\\":\\\"SELECT month, MIN(product_duration) AS value FROM shopping_sessions WHERE (weekend = ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value ASC, month ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Aug\",0.0],[\"Dec\",0.0],[\"Feb\",0.0]]","source":"online_shoppers","split":"dev","sql":"SELECT month, MIN(product_duration) AS value FROM shopping_sessions WHERE (weekend = ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value ASC, month ASC LIMIT 3","sql_parameters":"[0,10]","state":"{\"question\":\"Return the minimum of product_duration for shopping sessions where (weekend equals 0), grouped by month, keeping only groups with at least 10 matching rows; return at most 3 groups ordered by aggregate value ASC, breaking ties by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}585{"category":"join/and/ranked","domain":"commerce","family_id":"6b68d5b120b132078a038851","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"737e2e7120e217619578e9f60cde3484059732e9700c3a9b69c471e91d258a8a","language":"en","license":"CC-BY-4.0","query":"Return the maximum of l.quantity for retail lines joined to their invoices where (i.country equals 'Austria' and l.unit_price is greater than 4.77), grouped by i.country; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Austria\\\",4.77],\\\"sql\\\":\\\"SELECT i.country, MAX(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR l.unit_price > ?) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Austria\\\",4.77],\\\"sql\\\":\\\"SELECT i.country, MAX(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND l.unit_price > ?) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Austria\\\",4.77],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND l.unit_price > ?) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Austria\\\",4.77],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND l.unit_price > ?) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Austria\",16]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, MAX(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND l.unit_price > ?) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 5","sql_parameters":"[\"Austria\",4.77]","state":"{\"question\":\"Return the maximum of l.quantity for retail lines joined to their invoices where (i.country equals 'Austria' and l.unit_price is greater than 4.77), grouped by i.country; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}586{"category":"single_table/and/ranked","domain":"commerce","family_id":"0976af3b0571cb64820c60a6","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"430812ae63bfd1d404edf9b56059efd67bf1e9e9c6c2b577a94047bd625b5e03","language":"en","license":"CC-BY-4.0","query":"Return the sum of product_related for shopping sessions where (traffic_type equals 12 and product_related is greater than 31), grouped by revenue; return at most 5 groups ordered by aggregate value DESC, breaking ties by revenue ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[12,31],\\\"sql\\\":\\\"SELECT revenue, SUM(product_related) AS value FROM shopping_sessions WHERE (traffic_type = ? OR product_related > ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT revenue, SUM(product_related) AS value FROM shopping_sessions GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[12,31],\\\"sql\\\":\\\"SELECT revenue, SUM(product_related) AS value FROM shopping_sessions WHERE (traffic_type = ? AND product_related > ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[12],\\\"sql\\\":\\\"SELECT revenue, SUM(product_related) AS value FROM shopping_sessions WHERE (traffic_type = ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, SUM(product_related) AS value FROM shopping_sessions WHERE (traffic_type = ? AND product_related > ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5","sql_parameters":"[12,31]","state":"{\"question\":\"Return the sum of product_related for shopping sessions where (traffic_type equals 12 and product_related is greater than 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_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}587{"category":"single_table/date/and/grouped","domain":"commerce","family_id":"cd9d17f3f82c88669927e289","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"4c10b689712f869dfc57be4805688ab016c8ae88eab6324a4763008ce4ff4279","language":"en","license":"CC-BY-4.0","query":"Return the average of unit_price for retail invoice lines where (country equals 'Austria' and invoice_date is before '2011-09-29'), grouped by invoice_date, ordered by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Austria\\\",\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Austria\\\",\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Austria\\\",\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Austria\\\",\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-03-25\",14.4],[\"2011-03-03\",12.0725],[\"2011-04-26\",9.77],[\"2011-05-06\",9.825000000000001]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC","sql_parameters":"[\"Austria\",\"2011-09-29\"]","state":"{\"question\":\"Return the average of unit_price for retail invoice lines where (country equals 'Austria' and invoice_date is before '2011-09-29'), 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\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}588{"category":"single_table/and/aggregate","domain":"commerce","family_id":"34188cf6c9e0897bf8f75318","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"ebfdb400b09a0b13606486db53069fa111c1da332b302be4e65dcf9dcda56855","language":"en","license":"CC-BY-4.0","query":"Return the minimum of product_related for shopping sessions where (administrative is at most 2 and product_duration is at most 1564.0).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2,1564.0],\\\"sql\\\":\\\"SELECT MIN(product_related) AS value FROM shopping_sessions WHERE (administrative <= ? AND product_duration <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2,1564.0],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (administrative <= ? AND product_duration <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2,1564.0],\\\"sql\\\":\\\"SELECT SUM(product_related) AS value FROM shopping_sessions WHERE (administrative <= ? AND product_duration <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2,1564.0],\\\"sql\\\":\\\"SELECT AVG(product_related) AS value FROM shopping_sessions WHERE (administrative <= ? AND product_duration <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0]]","source":"online_shoppers","split":"dev","sql":"SELECT MIN(product_related) AS value FROM shopping_sessions WHERE (administrative <= ? AND product_duration <= ?)","sql_parameters":"[2,1564.0]","state":"{\"question\":\"Return the minimum of product_related for shopping sessions where (administrative is at most 2 and product_duration is at most 1564.0).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}589{"category":"join/date/grouped","domain":"commerce","family_id":"f4ddeee35f69f5ffdeb32989","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"223e0d02bdc131de213d6c4eabc9ce9b5db7832814eaa6369ae62b531ab41fd3","language":"en","license":"CC-BY-4.0","query":"Return the maximum of l.unit_price for retail lines joined to their invoices where (i.invoice_date is before '2010-12-02'), grouped by i.invoice_date, ordered by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"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\\\":[\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, 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.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"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.invoice_date < ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"sql\\\":\\\"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\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-01\",7.95],[\"2009-12-02\",34.95],[\"2009-12-03\",79.95],[\"2009-12-04\",12.75],[\"2009-12-05\",12.75],[\"2009-12-06\",49.95],[\"2009-12-07\",50.0],[\"2009-12-08\",15.95],[\"2009-12-09\",79.95],[\"2009-12-10\",49.95],[\"2009-12-11\",39.95],[\"2009-12-13\",40.0],[\"2009-12-14\",14.95],[\"2009-12-15\",35.95],[\"2009-12-16\",39.95],[\"2009-12-17\",12.75],[\"2009-12-18\",10.95],[\"2009-12-20\",9.95],[\"2009-12-21\",10.95],[\"2009-12-22\",16.48],[\"2009-12-23\",3.75],[\"2010-01-04\",6.95],[\"2010-01-05\",45.95],[\"2010-01-06\",7.95],[\"2010-01-07\",18.0],[\"2010-01-08\",16.95],[\"2010-01-10\",7.95],[\"2010-01-11\",34.95],[\"2010-01-12\",21.95],[\"2010-01-13\",8.5],[\"2010-01-14\",9.95],[\"2010-01-15\",39.95],[\"2010-01-17\",4.95],[\"2010-01-18\",2.25],[\"2010-01-19\",14.95],[\"2010-01-20\",12.75],[\"2010-01-21\",12.75],[\"2010-01-22\",35.95],[\"2010-01-24\",12.75],[\"2010-01-25\",14.26],[\"2010-01-26\",39.95],[\"2010-01-27\",9.95],[\"2010-01-28\",12.75],[\"2010-01-29\",28.0],[\"2010-01-31\",9.95],[\"2010-02-01\",45.95],[\"2010-02-02\",79.95],[\"2010-02-03\",79.95],[\"2010-02-04\",16.95],[\"2010-02-05\",21.95],[\"2010-02-07\",4.95],[\"2010-02-08\",14.95],[\"2010-02-09\",10.95],[\"2010-02-10\",40.0],[\"2010-02-11\",6.95],[\"2010-02-12\",8.49],[\"2010-02-14\",26.95],[\"2010-02-15\",12.75],[\"2010-02-16\",45.95],[\"2010-02-17\",8.5],[\"2010-02-18\",12.75],[\"2010-02-19\",13.57],[\"2010-02-21\",12.75],[\"2010-02-22\",79.95],[\"2010-02-23\",45.95],[\"2010-02-24\",10.95],[\"2010-02-25\",18.0],[\"2010-02-26\",45.95],[\"2010-02-28\",12.75],[\"2010-03-01\",12.75],[\"2010-03-02\",12.75],[\"2010-03-03\",45.95],[\"2010-03-04\",26.95],[\"2010-03-05\",18.0],[\"2010-03-07\",7.95],[\"2010-03-08\",39.95],[\"2010-03-09\",12.75],[\"2010-03-10\",10.95],[\"2010-03-11\",12.75],[\"2010-03-12\",9.95],[\"2010-03-14\",16.95],[\"2010-03-15\",25.52],[\"2010-03-16\",18.0],[\"2010-03-17\",9.95],[\"2010-03-18\",29.95],[\"2010-03-19\",14.95],[\"2010-03-21\",12.75],[\"2010-03-22\",12.75],[\"2010-03-23\",12.75],[\"2010-03-24\",867.79],[\"2010-03-25\",40.0],[\"2010-03-26\",16.95],[\"2010-03-28\",4.95],[\"2010-03-29\",8.5],[\"2010-03-30\",18.95],[\"2010-03-31\",34.95],[\"2010-04-01\",10.95],[\"2010-04-06\",15.95],[\"2010-04-07\",10.95],[\"2010-04-08\",12.75],[\"2010-04-09\",12.75],[\"2010-04-11\",7.95],[\"2010-04-12\",12.75],[\"2010-04-13\",9.95],[\"2010-04-14\",12.75],[\"2010-04-15\",12.75],[\"2010-04-16\",12.75],[\"2010-04-18\",14.95],[\"2010-04-19\",26.95],[\"2010-04-20\",10.75],[\"2010-04-21\",125.0],[\"2010-04-22\",18.0],[\"2010-04-23\",45.95],[\"2010-04-25\",12.75],[\"2010-04-26\",39.95],[\"2010-04-27\",25.49],[\"2010-04-28\",7.65],[\"2010-04-29\",12.75],[\"2010-04-30\",14.95],[\"2010-05-02\",15.0],[\"2010-05-04\",230.0],[\"2010-05-05\",12.75],[\"2010-05-06\",19.95],[\"2010-05-07\",15.95],[\"2010-05-09\",16.95],[\"2010-05-10\",29.95],[\"2010-05-11\",16.95],[\"2010-05-12\",12.75],[\"2010-05-13\",12.75],[\"2010-05-14\",16.98],[\"2010-05-16\",8.5],[\"2010-05-17\",12.75],[\"2010-05-18\",18.95],[\"2010-05-19\",79.95],[\"2010-05-20\",12.75],[\"2010-05-21\",12.75],[\"2010-05-23\",12.75],[\"2010-05-24\",14.95],[\"2010-05-25\",19.95],[\"2010-05-26\",25.49],[\"2010-05-27\",12.75],[\"2010-05-28\",15.95],[\"2010-05-30\",12.75],[\"2010-06-01\",15.95],[\"2010-06-02\",12.75],[\"2010-06-03\",12.75],[\"2010-06-04\",25.49],[\"2010-06-06\",9.95],[\"2010-06-07\",18.0],[\"2010-06-08\",12.75],[\"2010-06-09\",40.0],[\"2010-06-10\",12.75],[\"2010-06-11\",39.95],[\"2010-06-13\",16.95],[\"2010-06-14\",16.95],[\"2010-06-15\",12.75],[\"2010-06-16\",19.95],[\"2010-06-17\",12.75],[\"2010-06-18\",10.95],[\"2010-06-20\",12.75],[\"2010-06-21\",12.75],[\"2010-06-22\",19.95],[\"2010-06-23\",19.95],[\"2010-06-24\",25.49],[\"2010-06-25\",12.75],[\"2010-06-27\",12.75],[\"2010-06-28\",14.95],[\"2010-06-29\",125.0],[\"2010-06-30\",19.95],[\"2010-07-01\",18.95],[\"2010-07-02\",8.95],[\"2010-07-04\",24.95],[\"2010-07-05\",18.0],[\"2010-07-06\",19.95],[\"2010-07-07\",12.75],[\"2010-07-08\",125.0],[\"2010-07-09\",15.95],[\"2010-07-11\",15.95],[\"2010-07-12\",295.0],[\"2010-07-13\",40.0],[\"2010-07-14\",12.75],[\"2010-07-15\",18.0],[\"2010-07-16\",34.95],[\"2010-07-18\",4.95],[\"2010-07-19\",10.95],[\"2010-07-20\",12.75],[\"2010-07-21\",15.95],[\"2010-07-22\",28.0],[\"2010-07-23\",10.95],[\"2010-07-25\",15.0],[\"2010-07-26\",18.0],[\"2010-07-27\",19.95],[\"2010-07-28\",10.95],[\"2010-07-29\",10.95],[\"2010-07-30\",12.75],[\"2010-08-01\",12.75],[\"2010-08-02\",295.0],[\"2010-08-03\",295.0],[\"2010-08-04\",12.75],[\"2010-08-05\",12.95],[\"2010-08-06\",8.5],[\"2010-08-08\",34.95],[\"2010-08-09\",6.68],[\"2010-08-10\",5.95],[\"2010-08-11\",18.0],[\"2010-08-12\",16.95],[\"2010-08-13\",10.65],[\"2010-08-15\",12.75],[\"2010-08-16\",12.75],[\"2010-08-17\",9.95],[\"2010-08-18\",12.75],[\"2010-08-19\",12.75],[\"2010-08-20\",15.0],[\"2010-08-22\",8.5],[\"2010-08-23\",14.95],[\"2010-08-24\",295.0],[\"2010-08-25\",12.75],[\"2010-08-26\",8.5],[\"2010-08-27\",7.49],[\"2010-08-29\",8.5],[\"2010-08-31\",9.95],[\"2010-09-01\",79.95],[\"2010-09-02\",39.95],[\"2010-09-03\",15.0],[\"2010-09-05\",10.95],[\"2010-09-06\",18.0],[\"2010-09-07\",10.95],[\"2010-09-08\",2.55],[\"2010-09-09\",110.0],[\"2010-09-10\",6.75],[\"2010-09-12\",16.95],[\"2010-09-13\",12.75],[\"2010-09-14\",12.75],[\"2010-09-15\",16.95],[\"2010-09-16\",18.0],[\"2010-09-17\",79.95],[\"2010-09-19\",14.95],[\"2010-09-20\",129.95],[\"2010-09-21\",9.95],[\"2010-09-22\",7.95],[\"2010-09-23\",18.95],[\"2010-09-24\",14.95],[\"2010-09-26\",12.75],[\"2010-09-27\",16.95],[\"2010-09-28\",16.95],[\"2010-09-29\",50.0],[\"2010-09-30\",16.98],[\"2010-10-01\",18.95],[\"2010-10-03\",5.45],[\"2010-10-04\",29.95],[\"2010-10-05\",12.75],[\"2010-10-06\",50.0],[\"2010-10-07\",12.75],[\"2010-10-08\",16.95],[\"2010-10-10\",14.95],[\"2010-10-11\",79.95],[\"2010-10-12\",10.95],[\"2010-10-13\",16.95],[\"2010-10-14\",52.78],[\"2010-10-15\",16.98],[\"2010-10-17\",14.95],[\"2010-10-18\",18.0],[\"2010-10-19\",21.95],[\"2010-10-20\",34.95],[\"2010-10-21\",145.0],[\"2010-10-22\",145.0],[\"2010-10-24\",39.95],[\"2010-10-25\",14.95],[\"2010-10-26\",9.95],[\"2010-10-27\",14.95],[\"2010-10-28\",12.75],[\"2010-10-29\",39.95],[\"2010-10-31\",18.0],[\"2010-11-01\",9.95],[\"2010-11-02\",40.0],[\"2010-11-03\",165.0],[\"2010-11-04\",14.95],[\"2010-11-05\",14.95],[\"2010-11-07\",8.95],[\"2010-11-08\",32.69],[\"2010-11-09\",50.0],[\"2010-11-10\",16.95],[\"2010-11-11\",14.95],[\"2010-11-12\",15.0],[\"2010-11-14\",28.0],[\"2010-11-15\",40.0],[\"2010-11-16\",24.95],[\"2010-11-17\",295.0],[\"2010-11-18\",34.95],[\"2010-11-19\",253.0],[\"2010-11-21\",14.95],[\"2010-11-22\",12.75],[\"2010-11-23\",12.75],[\"2010-11-24\",79.95],[\"2010-11-25\",65.0],[\"2010-11-26\",8.5],[\"2010-11-28\",110.0],[\"2010-11-29\",18.0],[\"2010-11-30\",24.95],[\"2010-12-01\",19.95]]","source":"online_retail_ii","split":"dev","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.invoice_date < ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC","sql_parameters":"[\"2010-12-02\"]","state":"{\"question\":\"Return the maximum of l.unit_price for retail lines joined to their invoices where (i.invoice_date is before '2010-12-02'), grouped by i.invoice_date, ordered by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}590{"category":"join/date/having","domain":"commerce","family_id":"04835d026f6ab5e2cfe4ffd9","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"b49238cc84f277b924a30464734162dd053610c87edec2f673f2b07d62f77aa4","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.quantity for retail lines joined to their invoices where (i.invoice_date is before '2010-02-18'), grouped by i.invoice_date, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\",2],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.invoice_date < ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\",2],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.invoice_date < ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\",2],\\\"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 HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\",2],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.invoice_date < ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-03\",21466],[\"2010-01-08\",5574],[\"2009-12-08\",4695],[\"2009-12-15\",4506],[\"2009-12-02\",4011]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.invoice_date, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.invoice_date < ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5","sql_parameters":"[\"2010-02-18\",2]","state":"{\"question\":\"Return the sum of l.quantity for retail lines joined to their invoices where (i.invoice_date is before '2010-02-18'), grouped by i.invoice_date, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}591{"category":"join/distinct_invoice/and/ranked","domain":"commerce","family_id":"b8d51090092f7b2a87973ffd","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"0749189994b3022782e9e051e776dcd8a821cb99841bef77fe2076093f961b40","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.quantity is at most 229 and l.unit_price is at most 2.25), grouped by i.invoice_date; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[229,2.25],\\\"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 <= ? OR l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[229,2.25],\\\"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 <= ? AND l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[229,2.25],\\\"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 <= ? AND l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[229,2.25],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) 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 value DESC, i.invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-12-02\",60],[\"2010-12-01\",54],[\"2010-12-08\",32],[\"2010-12-09\",32],[\"2010-12-06\",28]]","source":"online_retail_ii","split":"dev","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 <= ? AND l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5","sql_parameters":"[229,2.25]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.quantity is at most 229 and l.unit_price is at most 2.25), 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_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}592{"category":"join/null/or/grouped","domain":"commerce","family_id":"160e892cb7ed1ab556a06da4","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"d0294544c7566d8fbebf6592eb2d5d894041e091c3fb58012889318046b852a5","language":"en","license":"CC-BY-4.0","query":"Return the minimum 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, ordered by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Australia\\\"],\\\"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.country = ? OR i.customer_id IS NOT NULL) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Australia\\\"],\\\"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.country = ? AND i.customer_id IS NOT NULL) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Australia\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) 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 ORDER BY i.invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Australia\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(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 ORDER BY i.invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"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.42],[\"2009-12-18\",0.38],[\"2009-12-20\",0.38],[\"2009-12-21\",0.38],[\"2009-12-22\",0.42],[\"2009-12-23\",0.38],[\"2010-01-04\",1.25],[\"2010-01-05\",0.85],[\"2010-01-06\",1.25],[\"2010-01-07\",0.85],[\"2010-01-08\",0.25],[\"2010-01-10\",0.85],[\"2010-01-11\",0.17],[\"2010-01-12\",0.21],[\"2010-01-13\",0.36],[\"2010-01-14\",0.42],[\"2010-01-15\",0.55],[\"2010-01-17\",1.25],[\"2010-01-18\",0.29],[\"2010-01-19\",0.42],[\"2010-01-20\",0.4],[\"2010-01-21\",0.55],[\"2010-01-22\",0.95],[\"2010-01-24\",0.42],[\"2010-01-25\",0.85],[\"2010-01-26\",0.85],[\"2010-01-27\",0.42],[\"2010-01-28\",0.85],[\"2010-01-29\",0.36],[\"2010-01-31\",0.42],[\"2010-02-01\",0.42],[\"2010-02-02\",1.06],[\"2010-02-03\",0.85],[\"2010-02-04\",0.34],[\"2010-02-05\",0.42],[\"2010-02-07\",0.16],[\"2010-02-08\",0.42],[\"2010-02-09\",0.21],[\"2010-02-10\",0.42],[\"2010-02-11\",0.55],[\"2010-02-12\",0.25],[\"2010-02-14\",0.42],[\"2010-02-15\",0.55],[\"2010-02-16\",0.64],[\"2010-02-17\",0.16],[\"2010-02-18\",0.29],[\"2010-02-19\",0.09],[\"2010-02-21\",0.38],[\"2010-02-22\",0.42],[\"2010-02-23\",1.69],[\"2010-02-24\",0.42],[\"2010-02-25\",0.38],[\"2010-02-26\",1.06],[\"2010-02-28\",0.21],[\"2010-03-01\",0.14],[\"2010-03-02\",0.21],[\"2010-03-03\",0.42],[\"2010-03-04\",0.85],[\"2010-03-05\",0.29],[\"2010-03-07\",1.45],[\"2010-03-08\",0.2],[\"2010-03-09\",0.42],[\"2010-03-10\",0.21],[\"2010-03-11\",0.42],[\"2010-03-12\",0.4],[\"2010-03-14\",1.06],[\"2010-03-15\",0.25],[\"2010-03-16\",0.85],[\"2010-03-17\",0.25],[\"2010-03-18\",0.16],[\"2010-03-19\",0.21],[\"2010-03-21\",0.35],[\"2010-03-22\",1.25],[\"2010-03-23\",0.25],[\"2010-03-24\",0.72],[\"2010-03-25\",0.42],[\"2010-03-26\",0.29],[\"2010-03-28\",0.29],[\"2010-03-29\",0.29],[\"2010-03-30\",0.6],[\"2010-03-31\",0.42],[\"2010-04-01\",0.21],[\"2010-04-06\",0.42],[\"2010-04-07\",0.1],[\"2010-04-08\",0.38],[\"2010-04-09\",0.72],[\"2010-04-11\",0.55],[\"2010-04-12\",0.42],[\"2010-04-13\",0.29],[\"2010-04-14\",0.42],[\"2010-04-15\",0.29],[\"2010-04-16\",0.17],[\"2010-04-18\",0.55],[\"2010-04-19\",0.09],[\"2010-04-20\",0.64],[\"2010-04-21\",0.85],[\"2010-04-22\",0.21],[\"2010-04-23\",0.42],[\"2010-04-25\",1.05],[\"2010-04-26\",0.21],[\"2010-04-27\",0.42],[\"2010-04-28\",0.42],[\"2010-04-29\",0.16],[\"2010-04-30\",0.85],[\"2010-05-02\",0.21],[\"2010-05-04\",1.25],[\"2010-05-05\",0.42],[\"2010-05-06\",0.42],[\"2010-05-07\",0.42],[\"2010-05-09\",0.42],[\"2010-05-10\",0.36],[\"2010-05-11\",0.42],[\"2010-05-12\",0.09],[\"2010-05-13\",0.21],[\"2010-05-14\",0.16],[\"2010-05-16\",0.21],[\"2010-05-17\",0.85],[\"2010-05-18\",0.42],[\"2010-05-19\",0.21],[\"2010-05-20\",0.42],[\"2010-05-21\",1.25],[\"2010-05-23\",0.42],[\"2010-05-24\",0.19],[\"2010-05-25\",0.4],[\"2010-05-26\",0.16],[\"2010-05-27\",0.19],[\"2010-05-28\",0.38],[\"2010-05-30\",0.55],[\"2010-06-01\",1.25],[\"2010-06-02\",0.75],[\"2010-06-03\",0.38],[\"2010-06-04\",0.42],[\"2010-06-06\",0.55],[\"2010-06-07\",0.16],[\"2010-06-08\",0.85],[\"2010-06-09\",0.42],[\"2010-06-10\",0.65],[\"2010-06-11\",0.21],[\"2010-06-13\",0.29],[\"2010-06-14\",0.55],[\"2010-06-15\",0.42],[\"2010-06-16\",0.34],[\"2010-06-17\",0.42],[\"2010-06-18\",0.55],[\"2010-06-20\",0.72],[\"2010-06-21\",1.25],[\"2010-06-22\",0.21],[\"2010-06-23\",0.16],[\"2010-06-24\",0.42],[\"2010-06-25\",0.42],[\"2010-06-27\",0.21],[\"2010-06-28\",0.14],[\"2010-06-29\",0.42],[\"2010-06-30\",0.14],[\"2010-07-01\",0.85],[\"2010-07-02\",0.55],[\"2010-07-04\",0.42],[\"2010-07-05\",0.42],[\"2010-07-06\",0.21],[\"2010-07-07\",0.64],[\"2010-07-08\",0.42],[\"2010-07-09\",3.81],[\"2010-07-11\",8.5],[\"2010-07-12\",0.55],[\"2010-07-13\",0.38],[\"2010-07-14\",0.42],[\"2010-07-15\",0.27],[\"2010-07-16\",0.29],[\"2010-07-18\",0.36],[\"2010-07-19\",0.21],[\"2010-07-20\",0.65],[\"2010-07-21\",0.42],[\"2010-07-22\",0.14],[\"2010-07-23\",0.72],[\"2010-07-25\",0.32],[\"2010-07-26\",0.21],[\"2010-07-27\",0.19],[\"2010-07-28\",0.19],[\"2010-07-29\",0.21],[\"2010-07-30\",0.42],[\"2010-08-01\",0.85],[\"2010-08-02\",0.42],[\"2010-08-03\",0.18],[\"2010-08-04\",0.19],[\"2010-08-05\",0.12],[\"2010-08-06\",0.72],[\"2010-08-08\",0.21],[\"2010-08-09\",0.38],[\"2010-08-10\",1.06],[\"2010-08-11\",0.14],[\"2010-08-12\",0.65],[\"2010-08-13\",0.42],[\"2010-08-15\",0.18],[\"2010-08-16\",0.2],[\"2010-08-17\",0.21],[\"2010-08-18\",0.85],[\"2010-08-19\",0.16],[\"2010-08-20\",0.85],[\"2010-08-22\",0.85],[\"2010-08-23\",0.42],[\"2010-08-24\",0.16],[\"2010-08-25\",0.17],[\"2010-08-26\",0.64],[\"2010-08-27\",0.42],[\"2010-08-29\",0.42],[\"2010-08-31\",0.38],[\"2010-09-01\",0.55],[\"2010-09-02\",0.42],[\"2010-09-03\",0.18],[\"2010-09-05\",0.42],[\"2010-09-06\",0.85],[\"2010-09-07\",0.42],[\"2010-09-08\",0.42],[\"2010-09-09\",0.42],[\"2010-09-10\",0.42],[\"2010-09-12\",0.42],[\"2010-09-13\",0.34],[\"2010-09-14\",0.29],[\"2010-09-15\",0.55],[\"2010-09-16\",0.42],[\"2010-09-17\",0.38],[\"2010-09-19\",0.42],[\"2010-09-20\",0.36],[\"2010-09-21\",0.29],[\"2010-09-22\",0.85],[\"2010-09-23\",1.25],[\"2010-09-24\",0.29],[\"2010-09-26\",0.21],[\"2010-09-27\",0.12],[\"2010-09-28\",0.42],[\"2010-09-29\",0.55],[\"2010-09-30\",0.29],[\"2010-10-01\",0.85],[\"2010-10-03\",0.42],[\"2010-10-04\",0.16],[\"2010-10-05\",0.19],[\"2010-10-06\",0.21],[\"2010-10-07\",0.85],[\"2010-10-08\",0.18],[\"2010-10-10\",0.42],[\"2010-10-11\",0.29],[\"2010-10-12\",0.16],[\"2010-10-13\",0.21],[\"2010-10-14\",0.29],[\"2010-10-15\",0.16],[\"2010-10-17\",1.69],[\"2010-10-18\",0.42],[\"2010-10-19\",0.19],[\"2010-10-20\",0.32],[\"2010-10-21\",0.42],[\"2010-10-22\",0.72],[\"2010-10-24\",0.3],[\"2010-10-25\",0.65],[\"2010-10-26\",0.21],[\"2010-10-27\",0.85],[\"2010-10-28\",0.42],[\"2010-10-29\",0.36],[\"2010-10-31\",0.85],[\"2010-11-01\",0.29],[\"2010-11-02\",0.42],[\"2010-11-03\",0.29],[\"2010-11-04\",0.18],[\"2010-11-05\",0.42],[\"2010-11-07\",0.42],[\"2010-11-08\",0.36],[\"2010-11-09\",0.21],[\"2010-11-10\",0.55],[\"2010-11-11\",0.42],[\"2010-11-12\",0.25],[\"2010-11-14\",0.85],[\"2010-11-15\",0.36],[\"2010-11-16\",0.21],[\"2010-11-17\",0.16],[\"2010-11-18\",0.14],[\"2010-11-19\",0.18],[\"2010-11-21\",0.85],[\"2010-11-22\",0.42],[\"2010-11-23\",0.21],[\"2010-11-24\",0.55],[\"2010-11-25\",0.34],[\"2010-11-26\",0.12],[\"2010-11-28\",0.29],[\"2010-11-29\",0.36],[\"2010-11-30\",0.29],[\"2010-12-01\",0.24],[\"2010-12-02\",0.18],[\"2010-12-03\",0.16],[\"2010-12-05\",0.65],[\"2010-12-06\",0.36],[\"2010-12-07\",0.42],[\"2010-12-08\",0.65],[\"2010-12-09\",0.36],[\"2010-12-10\",0.42],[\"2010-12-12\",0.42],[\"2010-12-13\",0.42],[\"2010-12-14\",0.19],[\"2010-12-15\",0.19],[\"2010-12-16\",0.42],[\"2010-12-17\",0.19],[\"2010-12-20\",0.4],[\"2010-12-21\",0.85],[\"2010-12-22\",0.42],[\"2010-12-23\",1.05],[\"2011-01-04\",0.42],[\"2011-01-05\",0.36],[\"2011-01-06\",0.25],[\"2011-01-07\",0.19],[\"2011-01-09\",0.65],[\"2011-01-10\",1.06],[\"2011-01-11\",0.42],[\"2011-01-12\",0.36],[\"2011-01-13\",0.42],[\"2011-01-14\",0.85],[\"2011-01-16\",3.39],[\"2011-01-17\",0.34],[\"2011-01-18\",0.65],[\"2011-01-19\",1.06],[\"2011-01-20\",0.85],[\"2011-01-21\",0.64],[\"2011-01-23\",0.42],[\"2011-01-24\",0.42],[\"2011-01-25\",0.29],[\"2011-01-26\",0.16],[\"2011-01-27\",0.85],[\"2011-01-28\",0.42],[\"2011-01-30\",0.95],[\"2011-01-31\",0.42],[\"2011-02-01\",0.29],[\"2011-02-02\",0.42],[\"2011-02-03\",0.21],[\"2011-02-04\",0.18],[\"2011-02-07\",0.42],[\"2011-02-08\",0.85],[\"2011-02-09\",0.85],[\"2011-02-10\",0.22],[\"2011-02-11\",0.32],[\"2011-02-13\",1.69],[\"2011-02-14\",0.72],[\"2011-02-15\",0.32],[\"2011-02-16\",0.25],[\"2011-02-17\",0.18],[\"2011-02-18\",0.55],[\"2011-02-20\",0.42],[\"2011-02-21\",1.25],[\"2011-02-22\",0.38],[\"2011-02-23\",0.42],[\"2011-02-24\",0.42],[\"2011-02-25\",0.42],[\"2011-02-27\",0.65],[\"2011-02-28\",0.42],[\"2011-03-01\",0.42],[\"2011-03-02\",0.34],[\"2011-03-03\",0.29],[\"2011-03-04\",0.21],[\"2011-03-06\",0.42],[\"2011-03-07\",0.21],[\"2011-03-08\",0.21],[\"2011-03-09\",0.25],[\"2011-03-10\",0.39],[\"2011-03-11\",0.42],[\"2011-03-14\",0.72],[\"2011-03-15\",0.85],[\"2011-03-16\",0.4],[\"2011-03-17\",0.25],[\"2011-03-18\",0.36],[\"2011-03-20\",0.25],[\"2011-03-21\",0.42],[\"2011-03-22\",0.72],[\"2011-03-23\",0.29],[\"2011-03-24\",0.29],[\"2011-03-25\",0.29],[\"2011-03-27\",0.14],[\"2011-03-28\",0.21],[\"2011-03-29\",0.29],[\"2011-03-30\",0.25],[\"2011-03-31\",0.42],[\"2011-04-01\",0.21],[\"2011-04-03\",0.21],[\"2011-04-04\",0.64],[\"2011-04-05\",0.2],[\"2011-04-06\",0.65],[\"2011-04-07\",0.38],[\"2011-04-08\",0.39],[\"2011-04-10\",1.25],[\"2011-04-11\",0.72],[\"2011-04-12\",0.55],[\"2011-04-13\",0.21],[\"2011-04-14\",0.19],[\"2011-04-15\",1.45],[\"2011-04-17\",0.85],[\"2011-04-18\",0.42],[\"2011-04-19\",0.39],[\"2011-04-20\",0.36],[\"2011-04-21\",0.19],[\"2011-04-26\",0.21],[\"2011-04-27\",0.21],[\"2011-04-28\",0.42],[\"2011-05-01\",1.25],[\"2011-05-03\",0.42],[\"2011-05-04\",0.21],[\"2011-05-05\",0.14],[\"2011-05-06\",0.42],[\"2011-05-08\",0.55],[\"2011-05-09\",0.65],[\"2011-05-10\",0.14],[\"2011-05-11\",0.29],[\"2011-05-12\",0.65],[\"2011-05-13\",0.29],[\"2011-05-15\",1.06],[\"2011-05-16\",0.29],[\"2011-05-17\",0.39],[\"2011-05-18\",0.29],[\"2011-05-19\",0.25],[\"2011-05-20\",0.55],[\"2011-05-22\",0.14],[\"2011-05-23\",0.36],[\"2011-05-24\",0.39],[\"2011-05-25\",0.42],[\"2011-05-26\",0.42],[\"2011-05-27\",0.39],[\"2011-05-29\",0.21],[\"2011-05-31\",0.21],[\"2011-06-01\",0.19],[\"2011-06-02\",0.42],[\"2011-06-03\",0.39],[\"2011-06-05\",0.42],[\"2011-06-06\",0.42],[\"2011-06-07\",0.64],[\"2011-06-08\",0.06],[\"2011-06-09\",0.55],[\"2011-06-10\",0.83],[\"2011-06-12\",1.65],[\"2011-06-13\",0.14],[\"2011-06-14\",0.42],[\"2011-06-15\",0.75],[\"2011-06-16\",0.28],[\"2011-06-17\",0.25],[\"2011-06-19\",0.29],[\"2011-06-20\",0.38],[\"2011-06-21\",0.29],[\"2011-06-22\",0.36],[\"2011-06-23\",0.39],[\"2011-06-24\",0.36],[\"2011-06-26\",1.25],[\"2011-06-27\",0.65],[\"2011-06-28\",0.55],[\"2011-06-29\",0.19],[\"2011-06-30\",0.42],[\"2011-07-01\",0.55],[\"2011-07-03\",1.25],[\"2011-07-04\",0.42],[\"2011-07-05\",0.36],[\"2011-07-06\",0.27],[\"2011-07-07\",0.12],[\"2011-07-08\",1.25],[\"2011-07-10\",0.29],[\"2011-07-11\",0.21],[\"2011-07-12\",0.19],[\"2011-07-13\",0.19],[\"2011-07-14\",0.85],[\"2011-07-15\",0.19],[\"2011-07-17\",0.25],[\"2011-07-18\",0.42],[\"2011-07-19\",0.29],[\"2011-07-20\",0.25],[\"2011-07-21\",0.19],[\"2011-07-22\",0.39],[\"2011-07-24\",0.29],[\"2011-07-25\",0.21],[\"2011-07-26\",0.42],[\"2011-07-27\",0.65],[\"2011-07-28\",0.08],[\"2011-07-29\",0.39],[\"2011-07-31\",1.06],[\"2011-08-01\",0.36],[\"2011-08-02\",0.19],[\"2011-08-03\",0.25],[\"2011-08-04\",0.21],[\"2011-08-05\",0.29],[\"2011-08-07\",0.12],[\"2011-08-08\",0.42],[\"2011-08-09\",0.65],[\"2011-08-10\",0.29],[\"2011-08-11\",0.39],[\"2011-08-12\",0.72],[\"2011-08-14\",1.25],[\"2011-08-15\",0.19],[\"2011-08-16\",0.29],[\"2011-08-17\",0.55],[\"2011-08-18\",0.4],[\"2011-08-19\",0.42],[\"2011-08-21\",0.29],[\"2011-08-22\",0.19],[\"2011-08-23\",0.29],[\"2011-08-24\",0.25],[\"2011-08-25\",0.63],[\"2011-08-26\",0.79],[\"2011-08-28\",0.42],[\"2011-08-30\",0.83],[\"2011-08-31\",1.79],[\"2011-09-01\",0.25],[\"2011-09-02\",0.14],[\"2011-09-04\",0.39],[\"2011-09-05\",0.36],[\"2011-09-06\",0.29],[\"2011-09-07\",0.29],[\"2011-09-08\",0.36],[\"2011-09-09\",0.36],[\"2011-09-11\",0.65],[\"2011-09-12\",0.29],[\"2011-09-13\",0.42],[\"2011-09-14\",0.25],[\"2011-09-15\",0.65],[\"2011-09-16\",0.04],[\"2011-09-18\",0.39],[\"2011-09-19\",0.55],[\"2011-09-20\",0.29],[\"2011-09-21\",0.42],[\"2011-09-22\",0.29],[\"2011-09-23\",0.29],[\"2011-09-25\",0.38],[\"2011-09-26\",0.39],[\"2011-09-27\",0.19],[\"2011-09-28\",0.39],[\"2011-09-29\",0.32],[\"2011-09-30\",0.04],[\"2011-10-02\",0.55],[\"2011-10-03\",0.36],[\"2011-10-04\",0.39],[\"2011-10-05\",0.42],[\"2011-10-06\",0.16],[\"2011-10-07\",0.42],[\"2011-10-09\",1.45],[\"2011-10-10\",0.21],[\"2011-10-11\",0.19],[\"2011-10-12\",0.42],[\"2011-10-13\",0.14],[\"2011-10-14\",0.19],[\"2011-10-17\",0.55],[\"2011-10-18\",0.29],[\"2011-10-19\",0.04],[\"2011-10-20\",0.06],[\"2011-10-21\",0.65],[\"2011-10-23\",0.39],[\"2011-10-24\",0.12],[\"2011-10-25\",0.39],[\"2011-10-26\",0.19],[\"2011-10-27\",0.32],[\"2011-10-28\",0.29],[\"2011-10-30\",0.12],[\"2011-10-31\",0.39],[\"2011-11-01\",0.36],[\"2011-11-02\",0.19],[\"2011-11-03\",0.42],[\"2011-11-04\",0.29],[\"2011-11-06\",0.83],[\"2011-11-07\",0.39],[\"2011-11-08\",0.29],[\"2011-11-09\",0.25],[\"2011-11-10\",0.39],[\"2011-11-11\",0.2],[\"2011-11-13\",0.85],[\"2011-11-14\",0.29],[\"2011-11-15\",0.32],[\"2011-11-16\",0.29],[\"2011-11-17\",0.29],[\"2011-11-18\",0.21],[\"2011-11-20\",0.19],[\"2011-11-21\",0.29],[\"2011-11-22\",0.25],[\"2011-11-23\",0.04],[\"2011-11-24\",0.21],[\"2011-11-25\",0.12],[\"2011-11-27\",1.45],[\"2011-11-28\",0.29],[\"2011-11-29\",0.36],[\"2011-11-30\",0.29],[\"2011-12-01\",0.19],[\"2011-12-02\",0.19],[\"2011-12-04\",0.39],[\"2011-12-05\",0.25],[\"2011-12-06\",0.21],[\"2011-12-07\",0.42],[\"2011-12-08\",0.39],[\"2011-12-09\",0.72]]","source":"online_retail_ii","split":"dev","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.country = ? OR i.customer_id IS NOT NULL) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC","sql_parameters":"[\"Australia\"]","state":"{\"question\":\"Return the minimum 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, ordered by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}593{"category":"join/null/or/having","domain":"commerce","family_id":"a816f7f93d2b63edfb264900","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"ce9e9df09878c2edeab1947cd980763ba4851a98aab96e0482f757cc69b06bca","language":"en","license":"CC-BY-4.0","query":"Return the minimum of l.quantity for retail lines joined to their invoices where (l.quantity is at most 25 or i.customer_id is present), grouped by i.invoice_date, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[25,2],\\\"sql\\\":\\\"SELECT i.invoice_date, MIN(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? OR i.customer_id IS NOT NULL) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[25,2],\\\"sql\\\":\\\"SELECT i.invoice_date, MIN(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? AND i.customer_id IS NOT NULL) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[25,2],\\\"sql\\\":\\\"SELECT i.invoice_date, MIN(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? OR i.customer_id IS NOT NULL) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[25,2],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? OR i.customer_id IS NOT NULL) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-04-10\",24],[\"2010-03-28\",12],[\"2011-01-30\",12],[\"2011-08-17\",12],[\"2011-08-12\",8]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.invoice_date, MIN(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? OR i.customer_id IS NOT NULL) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5","sql_parameters":"[25,2]","state":"{\"question\":\"Return the minimum of l.quantity for retail lines joined to their invoices where (l.quantity is at most 25 or i.customer_id is present), grouped by i.invoice_date, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}594{"category":"single_table/aggregate","domain":"commerce","family_id":"5f9ea01a40e4303010d77124","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"49bfadafadccbefb6b5bed8d27a77cc4a6cb2b9f87994008f63f950f2fd4c67b","language":"en","license":"CC-BY-4.0","query":"Return the sum of quantity for retail invoice lines where (unit_price is at most 2.25).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2.25],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (unit_price <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2.25],\\\"sql\\\":\\\"SELECT AVG(quantity) AS value FROM retail_lines WHERE (unit_price <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2.25],\\\"sql\\\":\\\"SELECT MIN(quantity) AS value FROM retail_lines WHERE (unit_price <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2.25],\\\"sql\\\":\\\"SELECT SUM(quantity) AS value FROM retail_lines WHERE (unit_price <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[974322]]","source":"online_retail_ii","split":"dev","sql":"SELECT SUM(quantity) AS value FROM retail_lines WHERE (unit_price <= ?)","sql_parameters":"[2.25]","state":"{\"question\":\"Return the sum of quantity for retail invoice lines where (unit_price is at most 2.25).\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}595{"category":"single_table/and/ranked","domain":"commerce","family_id":"df672bedc7eaead1b4b88072","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"e46e979ece56fa0399aa661d11ab912f03f975a494eba2cee805c95956d2552a","language":"en","license":"CC-BY-4.0","query":"Return the sum of unit_price for retail invoice lines where (country equals 'Belgium' and quantity is at most 648), grouped by invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Belgium\\\",648],\\\"sql\\\":\\\"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Belgium\\\",648],\\\"sql\\\":\\\"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Belgium\\\",648],\\\"sql\\\":\\\"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Belgium\\\",648],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-03-24\",12.8],[\"2011-09-22\",15.36],[\"2011-07-13\",17.55]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3","sql_parameters":"[\"Belgium\",648]","state":"{\"question\":\"Return the sum of unit_price for retail invoice lines where (country equals 'Belgium' and quantity is at most 648), grouped by invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by invoice_date ascending.\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}596{"category":"join/date/grouped","domain":"commerce","family_id":"c69622386c901f59caa32650","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"78fb83edcb0abc373d87f6a9c68dc3d5dafc35cb852a648b76f35bf7ae030754","language":"en","license":"CC-BY-4.0","query":"Return the minimum 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.country, ordered by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) 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 i.country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT i.country, MIN(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 i.country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\"],\\\"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 i.country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2011-05-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 (i.invoice_date >= ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",1.65],[\"Bahrain\",1.45],[\"Belgium\",0.32],[\"Canada\",0.83],[\"Channel Islands\",1.25],[\"Denmark\",0.72],[\"EIRE\",0.39],[\"Finland\",0.29],[\"France\",0.39],[\"Germany\",0.04],[\"Israel\",3.25],[\"Italy\",4.95],[\"Japan\",0.36],[\"Netherlands\",0.55],[\"Norway\",7.45],[\"Poland\",1.79],[\"Portugal\",10.95],[\"Singapore\",2118.74],[\"Spain\",0.83],[\"Sweden\",0.39],[\"Switzerland\",3.75],[\"United Kingdom\",0.04]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, MIN(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 i.country ASC","sql_parameters":"[\"2011-05-10\"]","state":"{\"question\":\"Return the minimum 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.country, ordered by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}597{"category":"single_table/and/aggregate","domain":"sensor","family_id":"ef6ef8f495971fc4b0c9e2f2","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"4850e9f62ddbdeabde5bdf40560c0129ce718992fee7ffd9bee81f611b6804f9","language":"en","license":"CC-BY-4.0","query":"Return the sum of ps1_mean for hydraulic cycles where (ps2_mean is at most 122.4767 and ts1_mean is greater than 52.59775).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[122.4767,52.59775],\\\"sql\\\":\\\"SELECT SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR ts1_mean > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[122.4767,52.59775],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND ts1_mean > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[122.4767,52.59775],\\\"sql\\\":\\\"SELECT SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND ts1_mean > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[122.4767,52.59775],\\\"sql\\\":\\\"SELECT AVG(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND ts1_mean > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[69017.43095]]","source":"hydraulic","split":"dev","sql":"SELECT SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND ts1_mean > ?)","sql_parameters":"[122.4767,52.59775]","state":"{\"question\":\"Return the sum of ps1_mean for hydraulic cycles where (ps2_mean is at most 122.4767 and ts1_mean is greater than 52.59775).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}598{"category":"single_table/and/ranked","domain":"commerce","family_id":"a61bbf20c3f0608f5b95403e","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"51805cff1d4607ef957ecca84d3cbb64c8094b442322ac321959bc279b620831","language":"en","license":"CC-BY-4.0","query":"Return the average of product_duration for shopping sessions where (administrative is greater than 23 and product_related is greater than 155), grouped by revenue; return at most 3 groups ordered by aggregate value ASC, breaking ties by revenue ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[23,155],\\\"sql\\\":\\\"SELECT revenue, AVG(product_duration) AS value FROM shopping_sessions WHERE (administrative > ? OR product_related > ?) GROUP BY revenue ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[23,155],\\\"sql\\\":\\\"SELECT revenue, AVG(product_duration) AS value FROM shopping_sessions WHERE (administrative > ? AND product_related > ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[23,155],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (administrative > ? AND product_related > ?) GROUP BY revenue ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[23,155],\\\"sql\\\":\\\"SELECT revenue, AVG(product_duration) AS value FROM shopping_sessions WHERE (administrative > ? AND product_related > ?) GROUP BY revenue ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1,9676.09318],[0,10870.739334666667]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, AVG(product_duration) AS value FROM shopping_sessions WHERE (administrative > ? AND product_related > ?) GROUP BY revenue ORDER BY value ASC, revenue ASC LIMIT 3","sql_parameters":"[23,155]","state":"{\"question\":\"Return the average of product_duration for shopping sessions where (administrative is greater than 23 and product_related is greater than 155), 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\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}599{"category":"join/date/or/grouped","domain":"commerce","family_id":"d694b03c0389290d54ccbc38","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"c48e56fd5404ce6304e98152fd1a4a65a28212ce2890a53534fc76f0fb6abf80","language":"en","license":"CC-BY-4.0","query":"Return the maximum of l.quantity for retail lines joined to their invoices where (l.quantity is at most 229 or i.invoice_date is on or after '2011-05-10'), grouped by i.country, ordered by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[229,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT i.country, MAX(l.quantity) 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 ORDER BY i.country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[229,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT i.country, MAX(l.quantity) 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 ORDER BY i.country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[229,\\\"2011-05-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.invoice_date >= ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[229,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) 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 ORDER BY i.country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",100],[\"Austria\",48],[\"Bahrain\",24],[\"Belgium\",272],[\"Canada\",16],[\"Channel Islands\",200],[\"Cyprus\",200],[\"Denmark\",256],[\"EIRE\",960],[\"Finland\",144],[\"France\",192],[\"Germany\",288],[\"Israel\",12],[\"Italy\",96],[\"Japan\",576],[\"Netherlands\",200],[\"Norway\",24],[\"Poland\",48],[\"Portugal\",60],[\"Singapore\",1],[\"Spain\",360],[\"Sweden\",720],[\"Switzerland\",144],[\"USA\",12],[\"United Arab Emirates\",1],[\"United Kingdom\",2700]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, MAX(l.quantity) 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 ORDER BY i.country ASC","sql_parameters":"[229,\"2011-05-10\"]","state":"{\"question\":\"Return the maximum of l.quantity for retail lines joined to their invoices where (l.quantity is at most 229 or i.invoice_date is on or after '2011-05-10'), grouped by i.country, ordered by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}600{"category":"single_table/aggregate","domain":"commerce","family_id":"4fc5594464c0f9751e09a199","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"1cb6adc66c9a20658ab33dcca63ac143f8c3398623780001c8a4207b6e209c26","language":"en","license":"CC-BY-4.0","query":"Return the sum of product_related for shopping sessions where (product_related is at most 340).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[340],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (product_related <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[340],\\\"sql\\\":\\\"SELECT AVG(product_related) AS value FROM shopping_sessions WHERE (product_related <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[340],\\\"sql\\\":\\\"SELECT SUM(product_related) AS value FROM shopping_sessions WHERE (product_related <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[340],\\\"sql\\\":\\\"SELECT MIN(product_related) AS value FROM shopping_sessions WHERE (product_related <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[376877]]","source":"online_shoppers","split":"dev","sql":"SELECT SUM(product_related) AS value FROM shopping_sessions WHERE (product_related <= ?)","sql_parameters":"[340]","state":"{\"question\":\"Return the sum of product_related for shopping sessions where (product_related is at most 340).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}601{"category":"single_table/and/aggregate","domain":"sensor","family_id":"2c92464c1f63d12453aa9a42","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"87826c46a62f84d1943f740e00207f0c9bfa2a76bc556bacdb3181b4f78213a3","language":"en","license":"CC-BY-4.0","query":"Return the average of eps1_mean for hydraulic cycles where (valve equals 80 and eps1_mean is greater than 2598.8769).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[80,2598.8769],\\\"sql\\\":\\\"SELECT AVG(eps1_mean) AS value FROM hydraulic_cycles WHERE (valve = ? OR eps1_mean > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[80,2598.8769],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (valve = ? AND eps1_mean > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[80,2598.8769],\\\"sql\\\":\\\"SELECT AVG(eps1_mean) AS value FROM hydraulic_cycles WHERE (valve = ? AND eps1_mean > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[80,2598.8769],\\\"sql\\\":\\\"SELECT SUM(eps1_mean) AS value FROM hydraulic_cycles WHERE (valve = ? AND eps1_mean > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[2629.5327518]]","source":"hydraulic","split":"dev","sql":"SELECT AVG(eps1_mean) AS value FROM hydraulic_cycles WHERE (valve = ? AND eps1_mean > ?)","sql_parameters":"[80,2598.8769]","state":"{\"question\":\"Return the average of eps1_mean for hydraulic cycles where (valve equals 80 and eps1_mean is greater than 2598.8769).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}602{"category":"single_table/and/aggregate","domain":"commerce","family_id":"63c0a301e82ec12d83ee0613","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"ea62703aef02ed4ba5bc47111c1ac006299108d625693e4cbb2953c364bc90b4","language":"en","license":"CC-BY-4.0","query":"Return the minimum of quantity for retail invoice lines where (country equals 'Bahrain' and quantity is greater than 648).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Bahrain\\\",648],\\\"sql\\\":\\\"SELECT MIN(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Bahrain\\\",648],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (country = ? AND quantity > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Bahrain\\\",648],\\\"sql\\\":\\\"SELECT MIN(quantity) AS value FROM retail_lines WHERE (country = ? AND quantity > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT MIN(quantity) AS value FROM retail_lines\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[null]]","source":"online_retail_ii","split":"dev","sql":"SELECT MIN(quantity) AS value FROM retail_lines WHERE (country = ? AND quantity > ?)","sql_parameters":"[\"Bahrain\",648]","state":"{\"question\":\"Return the minimum of quantity for retail invoice lines where (country equals 'Bahrain' and quantity is greater than 648).\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}603{"category":"single_table/and/having","domain":"sensor","family_id":"de14761a13cfbab27691af5d","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"94e84401b1bb093de0de1eb146852f6494fd99a57862f6c91461661b1f017766","language":"en","license":"CC-BY-4.0","query":"Return the maximum of fs1_mean for hydraulic cycles where (valve equals 100 and vs1_mean is greater than 0.56377), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[100,0.56377,10],\\\"sql\\\":\\\"SELECT cooler, MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (valve = ? OR vs1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[100,0.56377,10],\\\"sql\\\":\\\"SELECT cooler, MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (valve = ? AND vs1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[100,0.56377,10],\\\"sql\\\":\\\"SELECT cooler, MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (valve = ? AND vs1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[100,0.56377,10],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (valve = ? AND vs1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[20,6.68509],[100,6.70286],[3,6.72056]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (valve = ? AND vs1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value ASC, cooler ASC LIMIT 3","sql_parameters":"[100,0.56377,10]","state":"{\"question\":\"Return the maximum of fs1_mean for hydraulic cycles where (valve equals 100 and vs1_mean is greater than 0.56377), 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\":\"INTEGER\",\"cooler\":\"INTEGER\",\"cycle_id\":\"INTEGER\",\"eps1_mean\":\"REAL\",\"fs1_mean\":\"REAL\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}604{"category":"single_table/date/and/ranked","domain":"commerce","family_id":"722bd3ecfefe39bf9224037d","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"b07ef846a26f14bb7e6c943a279512ab5d76b14feefa550bf834d60c1978c753","language":"en","license":"CC-BY-4.0","query":"Return the average of unit_price for retail invoice lines where (country equals 'Bahrain' and invoice_date is on or after '2011-09-29'), grouped by invoice_date; return at most 5 groups ordered by aggregate value DESC, breaking ties by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Bahrain\\\",\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Bahrain\\\",\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Bahrain\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (country = ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5","sql_parameters":"[\"Bahrain\",\"2011-09-29\"]","state":"{\"question\":\"Return the average of unit_price for retail invoice lines where (country equals 'Bahrain' and invoice_date is on or after '2011-09-29'), 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\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}605{"category":"join/null/and/ranked","domain":"commerce","family_id":"08ba900de1014247977d639a","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"84549d972a9ccdf2b9b39759df766eab2d95c9ce3e1ffa326c5852c3666eb820","language":"en","license":"CC-BY-4.0","query":"Return the average of l.quantity for retail lines joined to their invoices where (l.quantity is greater than 648 and i.customer_id is missing), grouped by i.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[648],\\\"sql\\\":\\\"SELECT i.country, AVG(l.quantity) 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 ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT i.country, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[648],\\\"sql\\\":\\\"SELECT i.country, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[648],\\\"sql\\\":\\\"SELECT i.country, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ? AND i.customer_id IS NULL) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ? AND i.customer_id IS NULL) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3","sql_parameters":"[648]","state":"{\"question\":\"Return the average of l.quantity for retail lines joined to their invoices where (l.quantity is greater than 648 and i.customer_id is missing), grouped by i.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}606{"category":"single_table/and/aggregate","domain":"commerce","family_id":"5b59445dfde61c2b36df8853","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"7496a8eb10fa45a08801eca41608602495f1794fe021bb368b053832195f5cb1","language":"en","license":"CC-BY-4.0","query":"Return the maximum of product_related for shopping sessions where (month equals 'Sep' and product_duration is greater than 876.3).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Sep\\\",876.3],\\\"sql\\\":\\\"SELECT MAX(product_related) AS value FROM shopping_sessions WHERE (month = ? OR product_duration > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Sep\\\",876.3],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (month = ? AND product_duration > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Sep\\\",876.3],\\\"sql\\\":\\\"SELECT SUM(product_related) AS value FROM shopping_sessions WHERE (month = ? AND product_duration > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Sep\\\",876.3],\\\"sql\\\":\\\"SELECT MAX(product_related) AS value FROM shopping_sessions WHERE (month = ? AND product_duration > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[439]]","source":"online_shoppers","split":"dev","sql":"SELECT MAX(product_related) AS value FROM shopping_sessions WHERE (month = ? AND product_duration > ?)","sql_parameters":"[\"Sep\",876.3]","state":"{\"question\":\"Return the maximum of product_related for shopping sessions where (month equals 'Sep' and product_duration is greater than 876.3).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}607{"category":"join/date/and/grouped","domain":"commerce","family_id":"820c0884f05f903756530d60","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"3827519551f7ebb7c82326f78dc3160c913cacd1d313ceff3ad20a0b205dfc02","language":"en","license":"CC-BY-4.0","query":"Return the minimum of l.quantity 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.invoice_date, ordered by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[25,\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, MIN(l.quantity) 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.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[25,\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, MIN(l.quantity) 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.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[25,\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) 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.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[25,\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.quantity) 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.invoice_date ORDER BY i.invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-02-18\",32],[\"2010-02-19\",30],[\"2010-02-21\",120],[\"2010-02-22\",36],[\"2010-02-23\",50],[\"2010-02-24\",40],[\"2010-02-25\",32],[\"2010-02-26\",36],[\"2010-02-28\",27],[\"2010-03-01\",32],[\"2010-03-02\",27],[\"2010-03-03\",30],[\"2010-03-04\",30],[\"2010-03-05\",48],[\"2010-03-07\",48],[\"2010-03-08\",26],[\"2010-03-09\",36],[\"2010-03-10\",36],[\"2010-03-11\",26],[\"2010-03-12\",50],[\"2010-03-14\",40],[\"2010-03-15\",48],[\"2010-03-16\",36],[\"2010-03-17\",36],[\"2010-03-18\",26],[\"2010-03-19\",40],[\"2010-03-21\",64],[\"2010-03-22\",36],[\"2010-03-23\",30],[\"2010-03-24\",34],[\"2010-03-25\",48],[\"2010-03-26\",36],[\"2010-03-28\",30],[\"2010-03-29\",36],[\"2010-03-30\",30],[\"2010-03-31\",36],[\"2010-04-01\",32],[\"2010-04-06\",32],[\"2010-04-07\",30],[\"2010-04-08\",28],[\"2010-04-09\",100],[\"2010-04-11\",32],[\"2010-04-12\",28],[\"2010-04-13\",28],[\"2010-04-14\",30],[\"2010-04-15\",30],[\"2010-04-16\",36],[\"2010-04-18\",32],[\"2010-04-19\",30],[\"2010-04-20\",48],[\"2010-04-21\",48],[\"2010-04-22\",32],[\"2010-04-23\",32],[\"2010-04-25\",32],[\"2010-04-26\",48],[\"2010-04-27\",26],[\"2010-04-28\",40],[\"2010-04-29\",30],[\"2010-04-30\",32],[\"2010-05-02\",48],[\"2010-05-04\",560],[\"2010-05-05\",30],[\"2010-05-06\",48],[\"2010-05-07\",32],[\"2010-05-09\",36],[\"2010-05-10\",30],[\"2010-05-11\",36],[\"2010-05-12\",40],[\"2010-05-13\",32],[\"2010-05-14\",30],[\"2010-05-16\",36],[\"2010-05-17\",28],[\"2010-05-18\",27],[\"2010-05-19\",32],[\"2010-05-20\",48],[\"2010-05-21\",32],[\"2010-05-23\",36],[\"2010-05-24\",32],[\"2010-05-25\",36],[\"2010-05-26\",30],[\"2010-05-27\",30],[\"2010-05-28\",36],[\"2010-05-30\",48],[\"2010-06-01\",36],[\"2010-06-02\",32],[\"2010-06-03\",30],[\"2010-06-04\",72],[\"2010-06-06\",48],[\"2010-06-07\",32],[\"2010-06-08\",30],[\"2010-06-09\",36],[\"2010-06-10\",32],[\"2010-06-11\",36],[\"2010-06-13\",30],[\"2010-06-14\",40],[\"2010-06-15\",36],[\"2010-06-16\",30],[\"2010-06-17\",32],[\"2010-06-18\",30],[\"2010-06-20\",48],[\"2010-06-22\",30],[\"2010-06-23\",36],[\"2010-06-24\",30],[\"2010-06-25\",96],[\"2010-06-27\",32],[\"2010-06-28\",32],[\"2010-06-29\",32],[\"2010-06-30\",27],[\"2010-07-01\",36],[\"2010-07-04\",48],[\"2010-07-05\",48],[\"2010-07-06\",30],[\"2010-07-07\",30],[\"2010-07-08\",32],[\"2010-07-12\",36],[\"2010-07-13\",36],[\"2010-07-14\",30],[\"2010-07-15\",30],[\"2010-07-16\",48],[\"2010-07-18\",32],[\"2010-07-19\",36],[\"2010-07-20\",32],[\"2010-07-21\",32],[\"2010-07-22\",30],[\"2010-07-23\",72],[\"2010-07-25\",36],[\"2010-07-26\",30],[\"2010-07-27\",36],[\"2010-07-28\",48],[\"2010-07-29\",32],[\"2010-07-30\",30],[\"2010-08-02\",32],[\"2010-08-03\",30],[\"2010-08-05\",30],[\"2010-08-06\",40],[\"2010-08-08\",36],[\"2010-08-09\",32],[\"2010-08-10\",48],[\"2010-08-11\",108],[\"2010-08-12\",48],[\"2010-08-13\",30],[\"2010-08-15\",48],[\"2010-08-16\",32],[\"2010-08-17\",32],[\"2010-08-18\",30],[\"2010-08-19\",30],[\"2010-08-20\",32],[\"2010-08-22\",36],[\"2010-08-23\",96],[\"2010-08-24\",36],[\"2010-08-25\",30],[\"2010-08-26\",36],[\"2010-08-29\",48],[\"2010-08-31\",48],[\"2010-09-01\",32],[\"2010-09-02\",30],[\"2010-09-03\",48],[\"2010-09-05\",32],[\"2010-09-06\",36],[\"2010-09-07\",32],[\"2010-09-08\",72],[\"2010-09-09\",32],[\"2010-09-10\",48],[\"2010-09-12\",30],[\"2010-09-13\",50],[\"2010-09-14\",32],[\"2010-09-15\",30],[\"2010-09-16\",48],[\"2010-09-17\",30],[\"2010-09-19\",30],[\"2010-09-20\",32],[\"2010-09-21\",40],[\"2010-09-22\",36],[\"2010-09-23\",36],[\"2010-09-24\",32],[\"2010-09-26\",30],[\"2010-09-27\",40],[\"2010-09-28\",32],[\"2010-09-29\",32],[\"2010-09-30\",48],[\"2010-10-01\",48],[\"2010-10-03\",40],[\"2010-10-04\",30],[\"2010-10-05\",36],[\"2010-10-06\",30],[\"2010-10-07\",36],[\"2010-10-08\",36],[\"2010-10-10\",30],[\"2010-10-11\",32],[\"2010-10-12\",32],[\"2010-10-13\",40],[\"2010-10-14\",30],[\"2010-10-15\",30],[\"2010-10-18\",32],[\"2010-10-19\",36],[\"2010-10-20\",30],[\"2010-10-21\",48],[\"2010-10-22\",36],[\"2010-10-24\",32],[\"2010-10-25\",32],[\"2010-10-26\",30],[\"2010-10-27\",36],[\"2010-10-28\",32],[\"2010-10-29\",27],[\"2010-10-31\",48],[\"2010-11-01\",48],[\"2010-11-02\",32],[\"2010-11-03\",32],[\"2010-11-04\",30],[\"2010-11-05\",40],[\"2010-11-07\",36],[\"2010-11-08\",32],[\"2010-11-09\",32],[\"2010-11-10\",36],[\"2010-11-11\",32],[\"2010-11-12\",32],[\"2010-11-14\",36],[\"2010-11-15\",36],[\"2010-11-16\",30],[\"2010-11-17\",27],[\"2010-11-18\",32],[\"2010-11-19\",30],[\"2010-11-21\",60],[\"2010-11-22\",36],[\"2010-11-23\",40],[\"2010-11-24\",26],[\"2010-11-25\",32],[\"2010-11-26\",30],[\"2010-11-28\",36],[\"2010-11-29\",27],[\"2010-11-30\",30],[\"2010-12-01\",36],[\"2010-12-02\",32],[\"2010-12-03\",30],[\"2010-12-05\",32],[\"2010-12-06\",40],[\"2010-12-07\",30],[\"2010-12-08\",26],[\"2010-12-09\",32],[\"2010-12-10\",30],[\"2010-12-12\",30],[\"2010-12-13\",32],[\"2010-12-14\",36],[\"2010-12-15\",48],[\"2010-12-16\",30],[\"2010-12-17\",36],[\"2010-12-20\",36],[\"2010-12-21\",100],[\"2010-12-22\",30],[\"2010-12-23\",30],[\"2011-01-04\",36],[\"2011-01-05\",48],[\"2011-01-06\",32],[\"2011-01-07\",48],[\"2011-01-09\",40],[\"2011-01-10\",48],[\"2011-01-11\",32],[\"2011-01-12\",36],[\"2011-01-13\",48],[\"2011-01-14\",48],[\"2011-01-17\",36],[\"2011-01-18\",30],[\"2011-01-19\",64],[\"2011-01-20\",36],[\"2011-01-21\",36],[\"2011-01-23\",32],[\"2011-01-24\",48],[\"2011-01-25\",32],[\"2011-01-26\",32],[\"2011-01-27\",72],[\"2011-01-28\",48],[\"2011-01-31\",30],[\"2011-02-01\",30],[\"2011-02-02\",30],[\"2011-02-03\",96],[\"2011-02-04\",32],[\"2011-02-07\",40],[\"2011-02-08\",32],[\"2011-02-10\",36],[\"2011-02-11\",30],[\"2011-02-14\",40],[\"2011-02-15\",36],[\"2011-02-16\",36],[\"2011-02-17\",30],[\"2011-02-18\",30],[\"2011-02-20\",48],[\"2011-02-21\",48],[\"2011-02-22\",36],[\"2011-02-23\",48],[\"2011-02-24\",30],[\"2011-02-25\",44],[\"2011-02-27\",40],[\"2011-02-28\",30],[\"2011-03-01\",36],[\"2011-03-02\",36],[\"2011-03-03\",32],[\"2011-03-04\",280],[\"2011-03-06\",32],[\"2011-03-07\",36],[\"2011-03-08\",60],[\"2011-03-09\",48],[\"2011-03-10\",36],[\"2011-03-11\",48],[\"2011-03-14\",30],[\"2011-03-15\",32],[\"2011-03-16\",32],[\"2011-03-17\",36],[\"2011-03-18\",32],[\"2011-03-20\",30],[\"2011-03-21\",30],[\"2011-03-22\",48],[\"2011-03-23\",32],[\"2011-03-24\",40],[\"2011-03-25\",36],[\"2011-03-27\",32],[\"2011-03-28\",36],[\"2011-03-29\",27],[\"2011-03-30\",40],[\"2011-03-31\",36],[\"2011-04-01\",26],[\"2011-04-03\",36],[\"2011-04-04\",32],[\"2011-04-05\",36],[\"2011-04-06\",120],[\"2011-04-07\",32],[\"2011-04-08\",30],[\"2011-04-11\",30],[\"2011-04-12\",32],[\"2011-04-13\",30],[\"2011-04-14\",32],[\"2011-04-15\",100],[\"2011-04-17\",40],[\"2011-04-18\",48],[\"2011-04-19\",36],[\"2011-04-20\",36],[\"2011-04-21\",32],[\"2011-04-26\",27],[\"2011-04-27\",32],[\"2011-04-28\",40],[\"2011-05-01\",48],[\"2011-05-03\",33],[\"2011-05-04\",36],[\"2011-05-05\",30],[\"2011-05-06\",40],[\"2011-05-08\",32],[\"2011-05-09\",50],[\"2011-05-10\",200],[\"2011-05-11\",36],[\"2011-05-12\",32],[\"2011-05-13\",36],[\"2011-05-15\",72],[\"2011-05-16\",30],[\"2011-05-17\",30],[\"2011-05-18\",32],[\"2011-05-19\",30],[\"2011-05-20\",30],[\"2011-05-22\",48],[\"2011-05-23\",30],[\"2011-05-24\",32],[\"2011-05-25\",36],[\"2011-05-26\",30],[\"2011-05-27\",32],[\"2011-05-29\",30],[\"2011-05-31\",36],[\"2011-06-01\",30],[\"2011-06-02\",30],[\"2011-06-03\",36],[\"2011-06-05\",36],[\"2011-06-06\",32],[\"2011-06-07\",36],[\"2011-06-08\",30],[\"2011-06-09\",48],[\"2011-06-10\",32],[\"2011-06-13\",36],[\"2011-06-14\",48],[\"2011-06-15\",48],[\"2011-06-16\",36],[\"2011-06-17\",36],[\"2011-06-19\",40],[\"2011-06-20\",32],[\"2011-06-21\",36],[\"2011-06-22\",30],[\"2011-06-23\",32],[\"2011-06-24\",32],[\"2011-06-27\",36],[\"2011-06-28\",36],[\"2011-06-29\",48],[\"2011-06-30\",48],[\"2011-07-01\",36],[\"2011-07-03\",90],[\"2011-07-04\",48],[\"2011-07-05\",30],[\"2011-07-06\",30],[\"2011-07-07\",40],[\"2011-07-08\",48],[\"2011-07-11\",32],[\"2011-07-12\",32],[\"2011-07-13\",40],[\"2011-07-14\",30],[\"2011-07-15\",36],[\"2011-07-17\",36],[\"2011-07-18\",48],[\"2011-07-19\",30],[\"2011-07-20\",36],[\"2011-07-21\",32],[\"2011-07-22\",26],[\"2011-07-24\",36],[\"2011-07-25\",36],[\"2011-07-26\",100],[\"2011-07-27\",30],[\"2011-07-28\",36],[\"2011-07-29\",30],[\"2011-07-31\",32],[\"2011-08-01\",36],[\"2011-08-02\",48],[\"2011-08-03\",32],[\"2011-08-04\",28],[\"2011-08-05\",36],[\"2011-08-07\",33],[\"2011-08-08\",432],[\"2011-08-09\",32],[\"2011-08-10\",48],[\"2011-08-11\",32],[\"2011-08-12\",40],[\"2011-08-14\",30],[\"2011-08-15\",36],[\"2011-08-16\",36],[\"2011-08-17\",36],[\"2011-08-18\",36],[\"2011-08-19\",36],[\"2011-08-21\",40],[\"2011-08-22\",30],[\"2011-08-23\",40],[\"2011-08-24\",32],[\"2011-08-25\",32],[\"2011-08-26\",30],[\"2011-08-28\",48],[\"2011-08-30\",48],[\"2011-08-31\",48],[\"2011-09-01\",32],[\"2011-09-02\",36],[\"2011-09-04\",72],[\"2011-09-05\",35],[\"2011-09-06\",32],[\"2011-09-07\",36],[\"2011-09-08\",40],[\"2011-09-09\",36],[\"2011-09-11\",32],[\"2011-09-12\",30],[\"2011-09-13\",32],[\"2011-09-14\",36],[\"2011-09-15\",36],[\"2011-09-16\",72],[\"2011-09-18\",100],[\"2011-09-19\",36],[\"2011-09-20\",40],[\"2011-09-21\",44],[\"2011-09-22\",32],[\"2011-09-23\",48],[\"2011-09-25\",48],[\"2011-09-26\",30],[\"2011-09-27\",36],[\"2011-09-28\",30],[\"2011-09-29\",32],[\"2011-09-30\",36],[\"2011-10-02\",48],[\"2011-10-03\",30],[\"2011-10-04\",30],[\"2011-10-05\",32],[\"2011-10-06\",36],[\"2011-10-07\",32],[\"2011-10-10\",48],[\"2011-10-11\",36],[\"2011-10-12\",32],[\"2011-10-13\",36],[\"2011-10-14\",36],[\"2011-10-17\",30],[\"2011-10-18\",30],[\"2011-10-19\",32],[\"2011-10-20\",48],[\"2011-10-21\",27],[\"2011-10-24\",32],[\"2011-10-25\",48],[\"2011-10-26\",36],[\"2011-10-27\",36],[\"2011-10-28\",30],[\"2011-10-30\",36],[\"2011-10-31\",32],[\"2011-11-01\",30],[\"2011-11-02\",36],[\"2011-11-03\",48],[\"2011-11-04\",32],[\"2011-11-06\",30],[\"2011-11-07\",40],[\"2011-11-08\",32],[\"2011-11-09\",30],[\"2011-11-10\",30],[\"2011-11-11\",32],[\"2011-11-13\",72],[\"2011-11-14\",48],[\"2011-11-15\",30],[\"2011-11-16\",30],[\"2011-11-17\",30],[\"2011-11-18\",30],[\"2011-11-20\",32],[\"2011-11-21\",32],[\"2011-11-22\",32],[\"2011-11-23\",32],[\"2011-11-24\",32],[\"2011-11-25\",30],[\"2011-11-28\",32],[\"2011-11-29\",27],[\"2011-11-30\",30],[\"2011-12-01\",30],[\"2011-12-02\",32],[\"2011-12-04\",36],[\"2011-12-05\",32],[\"2011-12-06\",30],[\"2011-12-07\",31],[\"2011-12-08\",30],[\"2011-12-09\",36]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.invoice_date, MIN(l.quantity) 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.invoice_date ORDER BY i.invoice_date ASC","sql_parameters":"[25,\"2010-02-18\"]","state":"{\"question\":\"Return the minimum of l.quantity 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.invoice_date, ordered by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}608{"category":"single_table/and/grouped","domain":"commerce","family_id":"32d006910c88c3a8c89236f3","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"cd7139ac88ce1cd576da5c2a3c37d42119a6dc9d80044182d5af4e3bb34d2bcd","language":"en","license":"CC-BY-4.0","query":"Return the minimum of product_related for shopping sessions where (month equals 'Dec' and product_duration is at most 3395.729484), grouped by revenue, ordered by revenue ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Dec\\\",3395.729484],\\\"sql\\\":\\\"SELECT revenue, MIN(product_related) AS value FROM shopping_sessions WHERE (month = ? AND product_duration <= ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Dec\\\",3395.729484],\\\"sql\\\":\\\"SELECT revenue, MIN(product_related) AS value FROM shopping_sessions WHERE (month = ? OR product_duration <= ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Dec\\\",3395.729484],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (month = ? AND product_duration <= ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Dec\\\",3395.729484],\\\"sql\\\":\\\"SELECT revenue, SUM(product_related) AS value FROM shopping_sessions WHERE (month = ? AND product_duration <= ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,0],[1,1]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, MIN(product_related) AS value FROM shopping_sessions WHERE (month = ? AND product_duration <= ?) GROUP BY revenue ORDER BY revenue ASC","sql_parameters":"[\"Dec\",3395.729484]","state":"{\"question\":\"Return the minimum of product_related for shopping sessions where (month equals 'Dec' and product_duration is at most 3395.729484), grouped by revenue, ordered by revenue ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}609{"category":"single_table/or/having","domain":"sensor","family_id":"01b91fd35ad7387422c38d69","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"187d2215505af383b0ee8574474e78c0ecabf0acbffaabe32d310a5472e55031","language":"en","license":"CC-BY-4.0","query":"Return the maximum of ps2_mean for hydraulic cycles where (ps2_mean is at most 107.72581 or fs1_mean is at most 6.63763), grouped by pump_leakage, keeping only groups with at least 10 matching rows; return at most 3 groups ordered by aggregate value ASC, breaking ties by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[107.72581,6.63763,10],\\\"sql\\\":\\\"SELECT pump_leakage, MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND fs1_mean <= ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[107.72581,6.63763,10],\\\"sql\\\":\\\"SELECT pump_leakage, MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR fs1_mean <= ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[107.72581,6.63763,10],\\\"sql\\\":\\\"SELECT pump_leakage, MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR fs1_mean <= ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[107.72581,6.63763,10],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR fs1_mean <= ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1,131.0069],[2,131.05237],[0,131.58909]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR fs1_mean <= ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value ASC, pump_leakage ASC LIMIT 3","sql_parameters":"[107.72581,6.63763,10]","state":"{\"question\":\"Return the maximum of ps2_mean for hydraulic cycles where (ps2_mean is at most 107.72581 or fs1_mean is at most 6.63763), grouped by pump_leakage, keeping only groups with at least 10 matching rows; 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\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}610{"category":"single_table/date/or/having","domain":"commerce","family_id":"187509a83cfd999b7abacd2a","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"ca9e48c48c11023120d932b401ef587c2b0863e04b1565088b4fa8e6de0f0d78","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (quantity is at most 25 or invoice_date is on or after '2010-12-02'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[25,\\\"2010-12-02\\\",2],\\\"sql\\\":\\\"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date >= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[25,\\\"2010-12-02\\\",2],\\\"sql\\\":\\\"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[25,\\\"2010-12-02\\\",2],\\\"sql\\\":\\\"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date >= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[25,\\\"2010-12-02\\\",2],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date >= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-10-19\",3949.32],[\"2011-04-04\",2382.92],[\"2011-06-20\",1917.0],[\"2010-03-24\",867.79],[\"2011-11-10\",549.34]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date >= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5","sql_parameters":"[25,\"2010-12-02\",2]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines where (quantity is at most 25 or invoice_date is on or after '2010-12-02'), 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\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}611{"category":"single_table/having","domain":"sensor","family_id":"d99551e0ed4b0b71765440ba","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"6de0d5e236927ac014c2373621eb85ffbdbdca0d9cb55eee139473a832a2a428","language":"en","license":"CC-BY-4.0","query":"Return the minimum of fs1_mean for hydraulic cycles where (ps1_mean is greater than 158.27043), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[158.27043,2],\\\"sql\\\":\\\"SELECT cooler, MIN(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value ASC, cooler ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[158.27043,2],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[158.27043,2],\\\"sql\\\":\\\"SELECT cooler, MIN(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[158.27043,2],\\\"sql\\\":\\\"SELECT cooler, SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[100,6.36245],[20,6.32088],[3,2.01857]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, MIN(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5","sql_parameters":"[158.27043,2]","state":"{\"question\":\"Return the minimum of fs1_mean for hydraulic cycles where (ps1_mean is greater than 158.27043), 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_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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}612{"category":"single_table/having","domain":"commerce","family_id":"d286586dc554e86979469ccd","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"a8c42345f85cac99fd23f68b90a2d4191cef3e6ea936fce8cd92c7207983e3e5","language":"en","license":"CC-BY-4.0","query":"Return the sum of quantity for retail invoice lines where (unit_price is at most 0.55), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[0.55],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (unit_price <= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[0.55,10],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (unit_price <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[0.55,10],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (unit_price <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[0.55,10],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (unit_price <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"France\",1208],[\"Germany\",1518],[\"EIRE\",5132]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (unit_price <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3","sql_parameters":"[0.55,10]","state":"{\"question\":\"Return the sum of quantity for retail invoice lines where (unit_price is at most 0.55), 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\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}613{"category":"single_table/ranked","domain":"commerce","family_id":"a0bd757e2e9199986766db33","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"6ce112be3597ea503e802a4d37903644bba6d3dad9ffbde6af16ae2fc1941b4c","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for shopping sessions where (traffic_type equals 16), grouped by revenue; return at most 3 groups ordered by aggregate value ASC, breaking ties by revenue ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[16],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (traffic_type = ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[16],\\\"sql\\\":\\\"SELECT revenue, SUM(administrative) AS value FROM shopping_sessions WHERE (traffic_type = ?) GROUP BY revenue ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[16],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (traffic_type = ?) GROUP BY revenue ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[16],\\\"sql\\\":\\\"SELECT revenue, AVG(administrative) AS value FROM shopping_sessions WHERE (traffic_type = ?) GROUP BY revenue ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1,1],[0,2]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (traffic_type = ?) GROUP BY revenue ORDER BY value ASC, revenue ASC LIMIT 3","sql_parameters":"[16]","state":"{\"question\":\"Return the number of rows for shopping sessions where (traffic_type equals 16), 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\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}614{"category":"single_table/or/aggregate","domain":"commerce","family_id":"3df486766b4e2dbdc3d3867c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"31561cc55620ba1646f46f80633c14277c88e0a2f893b5840c6d769b2b031eda","language":"en","license":"CC-BY-4.0","query":"Return the minimum of product_related for shopping sessions where (weekend equals 1 or administrative is greater than 7).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[1,7],\\\"sql\\\":\\\"SELECT MIN(product_related) AS value FROM shopping_sessions WHERE (weekend = ? AND administrative > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[1,7],\\\"sql\\\":\\\"SELECT MIN(product_related) AS value FROM shopping_sessions WHERE (weekend = ? OR administrative > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[1,7],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (weekend = ? OR administrative > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[1,7],\\\"sql\\\":\\\"SELECT SUM(product_related) AS value FROM shopping_sessions WHERE (weekend = ? OR administrative > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0]]","source":"online_shoppers","split":"dev","sql":"SELECT MIN(product_related) AS value FROM shopping_sessions WHERE (weekend = ? OR administrative > ?)","sql_parameters":"[1,7]","state":"{\"question\":\"Return the minimum of product_related for shopping sessions where (weekend equals 1 or administrative is greater than 7).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}615{"category":"single_table/and/grouped","domain":"commerce","family_id":"2257d6968d2716540b666648","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"8378971aeb46f6d347a5c493ff8f66c3761401235060ea3a50f8f34c0f9541e2","language":"en","license":"CC-BY-4.0","query":"Return the minimum of product_related for shopping sessions where (product_related is at most 226 and product_duration is at most 472.4166667), grouped by month, ordered by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[226,472.4166667],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (product_related <= ? AND product_duration <= ?) GROUP BY month ORDER BY month ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[226,472.4166667],\\\"sql\\\":\\\"SELECT month, SUM(product_related) AS value FROM shopping_sessions WHERE (product_related <= ? AND product_duration <= ?) GROUP BY month ORDER BY month ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[226,472.4166667],\\\"sql\\\":\\\"SELECT month, MIN(product_related) AS value FROM shopping_sessions WHERE (product_related <= ? AND product_duration <= ?) GROUP BY month ORDER BY month ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[226,472.4166667],\\\"sql\\\":\\\"SELECT month, AVG(product_related) AS value FROM shopping_sessions WHERE (product_related <= ? AND product_duration <= ?) GROUP BY month ORDER BY month ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Aug\",0],[\"Dec\",0],[\"Feb\",0],[\"Jul\",1],[\"June\",0],[\"Mar\",0],[\"May\",0],[\"Nov\",0],[\"Oct\",0],[\"Sep\",0]]","source":"online_shoppers","split":"dev","sql":"SELECT month, MIN(product_related) AS value FROM shopping_sessions WHERE (product_related <= ? AND product_duration <= ?) GROUP BY month ORDER BY month ASC","sql_parameters":"[226,472.4166667]","state":"{\"question\":\"Return the minimum of product_related for shopping sessions where (product_related is at most 226 and product_duration is at most 472.4166667), grouped by month, ordered by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}616{"category":"join/aggregate","domain":"commerce","family_id":"76dc60f99f4d73729f9b90f8","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"8140ab96f51b3e1347c60d5b21b6efbfacd849559e8a69e2db6abd8223ec31c2","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.quantity for retail lines joined to their invoices where (i.country equals 'Bahrain').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Bahrain\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Bahrain\\\"],\\\"sql\\\":\\\"SELECT AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Bahrain\\\"],\\\"sql\\\":\\\"SELECT SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Bahrain\\\"],\\\"sql\\\":\\\"SELECT MIN(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[97]]","source":"online_retail_ii","split":"dev","sql":"SELECT SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?)","sql_parameters":"[\"Bahrain\"]","state":"{\"question\":\"Return the sum of l.quantity for retail lines joined to their invoices where (i.country equals 'Bahrain').\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}617{"category":"single_table/and/aggregate","domain":"commerce","family_id":"4ab806628f064d268d9b7b3a","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"993c2f26944f60bd0aa1a9d3939ca98fe615365026154adff5033e6008db5709","language":"en","license":"CC-BY-4.0","query":"Return the sum of administrative for shopping sessions where (month equals 'Feb' and product_duration is greater than 472.4166667).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Feb\\\",472.4166667],\\\"sql\\\":\\\"SELECT SUM(administrative) AS value FROM shopping_sessions WHERE (month = ? OR product_duration > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Feb\\\",472.4166667],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (month = ? AND product_duration > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Feb\\\",472.4166667],\\\"sql\\\":\\\"SELECT SUM(administrative) AS value FROM shopping_sessions WHERE (month = ? AND product_duration > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Feb\\\",472.4166667],\\\"sql\\\":\\\"SELECT AVG(administrative) AS value FROM shopping_sessions WHERE (month = ? AND product_duration > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[68]]","source":"online_shoppers","split":"dev","sql":"SELECT SUM(administrative) AS value FROM shopping_sessions WHERE (month = ? AND product_duration > ?)","sql_parameters":"[\"Feb\",472.4166667]","state":"{\"question\":\"Return the sum of administrative for shopping sessions where (month equals 'Feb' and product_duration is greater than 472.4166667).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}618{"category":"join/date/having","domain":"commerce","family_id":"e5a66eee8e9f131df847f0d6","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"320c31789ebb85aaa92d7c205f77952658b67576910b4ffb17f1a72239ee29c7","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.unit_price for retail lines joined to their invoices where (i.invoice_date is on or after '2010-02-18'), grouped by i.invoice_date, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\",2],\\\"sql\\\":\\\"SELECT i.invoice_date, 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.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\",2],\\\"sql\\\":\\\"SELECT i.invoice_date, 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.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\",2],\\\"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 HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\",2],\\\"sql\\\":\\\"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 HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-10-19\",6362.57],[\"2011-04-04\",4072.28],[\"2011-06-20\",3283.39],[\"2011-11-10\",1380.68],[\"2011-03-01\",1041.49]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.invoice_date, 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.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5","sql_parameters":"[\"2010-02-18\",2]","state":"{\"question\":\"Return the sum of l.unit_price for retail lines joined to their invoices where (i.invoice_date is on or after '2010-02-18'), grouped by i.invoice_date, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}619{"category":"join/date/having","domain":"commerce","family_id":"e43db31adff63de9fa920281","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"7d26f341e4af445f93efb10b2e31d83274b1d9537fa6ca895eef3d1318ae6b7b","language":"en","license":"CC-BY-4.0","query":"Return the maximum 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, 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2011-05-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.invoice_date >= ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\",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.invoice_date >= ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\",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.invoice_date >= ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\",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 HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-08-17\",3.39],[\"2011-06-27\",4.95],[\"2011-08-01\",4.95]]","source":"online_retail_ii","split":"dev","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.invoice_date >= ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3","sql_parameters":"[\"2011-05-10\",10]","state":"{\"question\":\"Return the maximum 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, 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_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}620{"category":"single_table/and/grouped","domain":"sensor","family_id":"3cdc35a39ff6cb4651416754","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"13a3ccd90bccc8abb5abe7980ce893db40ce99cee9e8ec9fa4d9622bcd6ee931","language":"en","license":"CC-BY-4.0","query":"Return the minimum of ts1_mean for hydraulic cycles where (cooler equals 3 and ps2_mean is greater than 107.17314), grouped by cooler, ordered by cooler ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[3,107.17314],\\\"sql\\\":\\\"SELECT cooler, MIN(ts1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? OR ps2_mean > ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[3,107.17314],\\\"sql\\\":\\\"SELECT cooler, MIN(ts1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? AND ps2_mean > ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[3,107.17314],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (cooler = ? AND ps2_mean > ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[3,107.17314],\\\"sql\\\":\\\"SELECT cooler, SUM(ts1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? AND ps2_mean > ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[3,35.62198]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, MIN(ts1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? AND ps2_mean > ?) GROUP BY cooler ORDER BY cooler ASC","sql_parameters":"[3,107.17314]","state":"{\"question\":\"Return the minimum of ts1_mean for hydraulic cycles where (cooler equals 3 and ps2_mean is greater than 107.17314), grouped by cooler, ordered by cooler ascending.\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}621{"category":"single_table/aggregate","domain":"commerce","family_id":"07067afeba82875bf8ea7ce7","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"ed869ccc6aee88dd85f1305f41944c79a32779b1a07b80978ae933e6257a8713","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail invoice lines where (country equals 'Australia').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Australia\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (country = ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Australia\\\"],\\\"sql\\\":\\\"SELECT SUM(quantity) AS value FROM retail_lines WHERE (country = ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Australia\\\"],\\\"sql\\\":\\\"SELECT AVG(quantity) AS value FROM retail_lines WHERE (country = ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Australia\\\"],\\\"sql\\\":\\\"SELECT MIN(quantity) AS value FROM retail_lines WHERE (country = ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[47]]","source":"online_retail_ii","split":"dev","sql":"SELECT COUNT(*) AS value FROM retail_lines WHERE (country = ?)","sql_parameters":"[\"Australia\"]","state":"{\"question\":\"Return the number of rows for retail invoice lines where (country equals 'Australia').\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}622{"category":"join/distinct_invoice/grouped","domain":"commerce","family_id":"39761875eb14e38d21180f12","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"9d870b2a3ce0ad8aa35c2cd4266df7c048d42082012f27a1e0158992da4506dd","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.quantity is at most 1800), grouped by i.invoice_date, ordered by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[1800],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) 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 i.invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[1800],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.quantity) 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 i.invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[1800],\\\"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 i.invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[1800],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(l.quantity) 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 i.invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-01\",14],[\"2009-12-02\",26],[\"2009-12-03\",24],[\"2009-12-04\",17],[\"2009-12-05\",7],[\"2009-12-06\",7],[\"2009-12-07\",19],[\"2009-12-08\",24],[\"2009-12-09\",22],[\"2009-12-10\",18],[\"2009-12-11\",8],[\"2009-12-13\",7],[\"2009-12-14\",16],[\"2009-12-15\",21],[\"2009-12-16\",13],[\"2009-12-17\",24],[\"2009-12-18\",12],[\"2009-12-20\",5],[\"2009-12-21\",12],[\"2009-12-22\",12],[\"2009-12-23\",5],[\"2010-01-04\",6],[\"2010-01-05\",7],[\"2010-01-06\",1],[\"2010-01-07\",8],[\"2010-01-08\",12],[\"2010-01-10\",4],[\"2010-01-11\",10],[\"2010-01-12\",13],[\"2010-01-13\",5],[\"2010-01-14\",5],[\"2010-01-15\",10],[\"2010-01-17\",3],[\"2010-01-18\",1],[\"2010-01-19\",8],[\"2010-01-20\",8],[\"2010-01-21\",10],[\"2010-01-22\",5],[\"2010-01-24\",7],[\"2010-01-25\",7],[\"2010-01-26\",6],[\"2010-01-27\",14],[\"2010-01-28\",5],[\"2010-01-29\",8],[\"2010-01-31\",9],[\"2010-02-01\",10],[\"2010-02-02\",7],[\"2010-02-03\",7],[\"2010-02-04\",11],[\"2010-02-05\",9],[\"2010-02-07\",3],[\"2010-02-08\",13],[\"2010-02-09\",9],[\"2010-02-10\",7],[\"2010-02-11\",9],[\"2010-02-12\",7],[\"2010-02-14\",5],[\"2010-02-15\",9],[\"2010-02-16\",12],[\"2010-02-17\",11],[\"2010-02-18\",8],[\"2010-02-19\",9],[\"2010-02-21\",5],[\"2010-02-22\",12],[\"2010-02-23\",6],[\"2010-02-24\",12],[\"2010-02-25\",14],[\"2010-02-26\",6],[\"2010-02-28\",9],[\"2010-03-01\",13],[\"2010-03-02\",8],[\"2010-03-03\",11],[\"2010-03-04\",8],[\"2010-03-05\",19],[\"2010-03-07\",6],[\"2010-03-08\",22],[\"2010-03-09\",11],[\"2010-03-10\",9],[\"2010-03-11\",9],[\"2010-03-12\",7],[\"2010-03-14\",4],[\"2010-03-15\",9],[\"2010-03-16\",6],[\"2010-03-17\",7],[\"2010-03-18\",16],[\"2010-03-19\",9],[\"2010-03-21\",7],[\"2010-03-22\",7],[\"2010-03-23\",13],[\"2010-03-24\",12],[\"2010-03-25\",11],[\"2010-03-26\",8],[\"2010-03-28\",3],[\"2010-03-29\",9],[\"2010-03-30\",13],[\"2010-03-31\",12],[\"2010-04-01\",9],[\"2010-04-06\",8],[\"2010-04-07\",9],[\"2010-04-08\",19],[\"2010-04-09\",5],[\"2010-04-11\",5],[\"2010-04-12\",9],[\"2010-04-13\",8],[\"2010-04-14\",12],[\"2010-04-15\",8],[\"2010-04-16\",10],[\"2010-04-18\",5],[\"2010-04-19\",15],[\"2010-04-20\",12],[\"2010-04-21\",9],[\"2010-04-22\",19],[\"2010-04-23\",8],[\"2010-04-25\",10],[\"2010-04-26\",13],[\"2010-04-27\",16],[\"2010-04-28\",12],[\"2010-04-29\",18],[\"2010-04-30\",10],[\"2010-05-02\",6],[\"2010-05-04\",5],[\"2010-05-05\",20],[\"2010-05-06\",13],[\"2010-05-07\",15],[\"2010-05-09\",11],[\"2010-05-10\",17],[\"2010-05-11\",9],[\"2010-05-12\",22],[\"2010-05-13\",9],[\"2010-05-14\",12],[\"2010-05-16\",5],[\"2010-05-17\",6],[\"2010-05-18\",10],[\"2010-05-19\",14],[\"2010-05-20\",7],[\"2010-05-21\",9],[\"2010-05-23\",6],[\"2010-05-24\",13],[\"2010-05-25\",8],[\"2010-05-26\",14],[\"2010-05-27\",14],[\"2010-05-28\",12],[\"2010-05-30\",3],[\"2010-06-01\",10],[\"2010-06-02\",11],[\"2010-06-03\",15],[\"2010-06-04\",8],[\"2010-06-06\",5],[\"2010-06-07\",16],[\"2010-06-08\",14],[\"2010-06-09\",9],[\"2010-06-10\",9],[\"2010-06-11\",13],[\"2010-06-13\",13],[\"2010-06-14\",10],[\"2010-06-15\",8],[\"2010-06-16\",15],[\"2010-06-17\",10],[\"2010-06-18\",8],[\"2010-06-20\",5],[\"2010-06-21\",4],[\"2010-06-22\",4],[\"2010-06-23\",17],[\"2010-06-24\",12],[\"2010-06-25\",5],[\"2010-06-27\",12],[\"2010-06-28\",13],[\"2010-06-29\",12],[\"2010-06-30\",12],[\"2010-07-01\",11],[\"2010-07-02\",2],[\"2010-07-04\",4],[\"2010-07-05\",13],[\"2010-07-06\",12],[\"2010-07-07\",10],[\"2010-07-08\",15],[\"2010-07-09\",3],[\"2010-07-11\",1],[\"2010-07-12\",11],[\"2010-07-13\",14],[\"2010-07-14\",6],[\"2010-07-15\",15],[\"2010-07-16\",18],[\"2010-07-18\",6],[\"2010-07-19\",11],[\"2010-07-20\",14],[\"2010-07-21\",14],[\"2010-07-22\",9],[\"2010-07-23\",7],[\"2010-07-25\",5],[\"2010-07-26\",11],[\"2010-07-27\",23],[\"2010-07-28\",11],[\"2010-07-29\",7],[\"2010-07-30\",14],[\"2010-08-01\",3],[\"2010-08-02\",14],[\"2010-08-03\",8],[\"2010-08-04\",4],[\"2010-08-05\",17],[\"2010-08-06\",7],[\"2010-08-08\",8],[\"2010-08-09\",12],[\"2010-08-10\",6],[\"2010-08-11\",7],[\"2010-08-12\",11],[\"2010-08-13\",12],[\"2010-08-15\",12],[\"2010-08-16\",5],[\"2010-08-17\",10],[\"2010-08-18\",9],[\"2010-08-19\",16],[\"2010-08-20\",12],[\"2010-08-22\",7],[\"2010-08-23\",8],[\"2010-08-24\",7],[\"2010-08-25\",12],[\"2010-08-26\",9],[\"2010-08-27\",5],[\"2010-08-29\",5],[\"2010-08-31\",13],[\"2010-09-01\",11],[\"2010-09-02\",20],[\"2010-09-03\",16],[\"2010-09-05\",9],[\"2010-09-06\",7],[\"2010-09-07\",8],[\"2010-09-08\",3],[\"2010-09-09\",9],[\"2010-09-10\",4],[\"2010-09-12\",4],[\"2010-09-13\",18],[\"2010-09-14\",13],[\"2010-09-15\",5],[\"2010-09-16\",10],[\"2010-09-17\",11],[\"2010-09-19\",6],[\"2010-09-20\",16],[\"2010-09-21\",26],[\"2010-09-22\",15],[\"2010-09-23\",8],[\"2010-09-24\",11],[\"2010-09-26\",15],[\"2010-09-27\",15],[\"2010-09-28\",23],[\"2010-09-29\",12],[\"2010-09-30\",12],[\"2010-10-01\",13],[\"2010-10-03\",6],[\"2010-10-04\",11],[\"2010-10-05\",13],[\"2010-10-06\",14],[\"2010-10-07\",15],[\"2010-10-08\",13],[\"2010-10-10\",9],[\"2010-10-11\",14],[\"2010-10-12\",18],[\"2010-10-13\",10],[\"2010-10-14\",11],[\"2010-10-15\",20],[\"2010-10-17\",1],[\"2010-10-18\",23],[\"2010-10-19\",11],[\"2010-10-20\",20],[\"2010-10-21\",17],[\"2010-10-22\",15],[\"2010-10-24\",9],[\"2010-10-25\",9],[\"2010-10-26\",22],[\"2010-10-27\",9],[\"2010-10-28\",10],[\"2010-10-29\",21],[\"2010-10-31\",9],[\"2010-11-01\",5],[\"2010-11-02\",14],[\"2010-11-03\",17],[\"2010-11-04\",28],[\"2010-11-05\",10],[\"2010-11-07\",6],[\"2010-11-08\",8],[\"2010-11-09\",20],[\"2010-11-10\",29],[\"2010-11-11\",25],[\"2010-11-12\",20],[\"2010-11-14\",9],[\"2010-11-15\",17],[\"2010-11-16\",26],[\"2010-11-17\",23],[\"2010-11-18\",22],[\"2010-11-19\",17],[\"2010-11-21\",9],[\"2010-11-22\",18],[\"2010-11-23\",23],[\"2010-11-24\",25],[\"2010-11-25\",32],[\"2010-11-26\",12],[\"2010-11-28\",12],[\"2010-11-29\",16],[\"2010-11-30\",24],[\"2010-12-01\",68],[\"2010-12-02\",68],[\"2010-12-03\",20],[\"2010-12-05\",22],[\"2010-12-06\",30],[\"2010-12-07\",34],[\"2010-12-08\",46],[\"2010-12-09\",52],[\"2010-12-10\",11],[\"2010-12-12\",5],[\"2010-12-13\",14],[\"2010-12-14\",17],[\"2010-12-15\",12],[\"2010-12-16\",30],[\"2010-12-17\",13],[\"2010-12-19\",3],[\"2010-12-20\",11],[\"2010-12-21\",9],[\"2010-12-22\",5],[\"2010-12-23\",8],[\"2011-01-04\",3],[\"2011-01-05\",11],[\"2011-01-06\",7],[\"2011-01-07\",8],[\"2011-01-09\",6],[\"2011-01-10\",2],[\"2011-01-11\",14],[\"2011-01-12\",9],[\"2011-01-13\",4],[\"2011-01-14\",10],[\"2011-01-16\",1],[\"2011-01-17\",9],[\"2011-01-18\",6],[\"2011-01-19\",2],[\"2011-01-20\",13],[\"2011-01-21\",10],[\"2011-01-23\",2],[\"2011-01-24\",8],[\"2011-01-25\",12],[\"2011-01-26\",9],[\"2011-01-27\",8],[\"2011-01-28\",3],[\"2011-01-30\",1],[\"2011-01-31\",10],[\"2011-02-01\",11],[\"2011-02-02\",13],[\"2011-02-03\",7],[\"2011-02-04\",13],[\"2011-02-07\",8],[\"2011-02-08\",5],[\"2011-02-09\",3],[\"2011-02-10\",9],[\"2011-02-11\",12],[\"2011-02-13\",1],[\"2011-02-14\",6],[\"2011-02-15\",11],[\"2011-02-16\",13],[\"2011-02-17\",15],[\"2011-02-18\",8],[\"2011-02-20\",3],[\"2011-02-21\",4],[\"2011-02-22\",8],[\"2011-02-23\",6],[\"2011-02-24\",6],[\"2011-02-25\",9],[\"2011-02-27\",3],[\"2011-02-28\",6],[\"2011-03-01\",13],[\"2011-03-02\",4],[\"2011-03-03\",11],[\"2011-03-04\",10],[\"2011-03-06\",3],[\"2011-03-07\",13],[\"2011-03-08\",9],[\"2011-03-09\",11],[\"2011-03-10\",11],[\"2011-03-11\",12],[\"2011-03-14\",10],[\"2011-03-15\",6],[\"2011-03-16\",13],[\"2011-03-17\",14],[\"2011-03-18\",14],[\"2011-03-20\",16],[\"2011-03-21\",10],[\"2011-03-22\",4],[\"2011-03-23\",12],[\"2011-03-24\",8],[\"2011-03-25\",10],[\"2011-03-27\",5],[\"2011-03-28\",11],[\"2011-03-29\",6],[\"2011-03-30\",15],[\"2011-03-31\",16],[\"2011-04-01\",20],[\"2011-04-03\",4],[\"2011-04-04\",6],[\"2011-04-05\",13],[\"2011-04-06\",5],[\"2011-04-07\",13],[\"2011-04-08\",14],[\"2011-04-10\",1],[\"2011-04-11\",10],[\"2011-04-12\",9],[\"2011-04-13\",11],[\"2011-04-14\",21],[\"2011-04-15\",6],[\"2011-04-17\",5],[\"2011-04-18\",9],[\"2011-04-19\",5],[\"2011-04-20\",15],[\"2011-04-21\",16],[\"2011-04-26\",12],[\"2011-04-27\",15],[\"2011-04-28\",12],[\"2011-05-01\",1],[\"2011-05-03\",14],[\"2011-05-04\",14],[\"2011-05-05\",28],[\"2011-05-06\",15],[\"2011-05-08\",7],[\"2011-05-09\",12],[\"2011-05-10\",13],[\"2011-05-11\",18],[\"2011-05-12\",15],[\"2011-05-13\",17],[\"2011-05-15\",4],[\"2011-05-16\",14],[\"2011-05-17\",16],[\"2011-05-18\",17],[\"2011-05-19\",16],[\"2011-05-20\",18],[\"2011-05-22\",10],[\"2011-05-23\",15],[\"2011-05-24\",19],[\"2011-05-25\",10],[\"2011-05-26\",19],[\"2011-05-27\",16],[\"2011-05-29\",3],[\"2011-05-31\",11],[\"2011-06-01\",9],[\"2011-06-02\",12],[\"2011-06-03\",8],[\"2011-06-05\",10],[\"2011-06-06\",8],[\"2011-06-07\",15],[\"2011-06-08\",18],[\"2011-06-09\",13],[\"2011-06-10\",7],[\"2011-06-12\",3],[\"2011-06-13\",12],[\"2011-06-14\",8],[\"2011-06-15\",7],[\"2011-06-16\",25],[\"2011-06-17\",11],[\"2011-06-19\",7],[\"2011-06-20\",15],[\"2011-06-21\",9],[\"2011-06-22\",10],[\"2011-06-23\",6],[\"2011-06-24\",11],[\"2011-06-26\",4],[\"2011-06-27\",7],[\"2011-06-28\",13],[\"2011-06-29\",9],[\"2011-06-30\",10],[\"2011-07-01\",7],[\"2011-07-03\",2],[\"2011-07-04\",9],[\"2011-07-05\",15],[\"2011-07-06\",15],[\"2011-07-07\",16],[\"2011-07-08\",8],[\"2011-07-10\",1],[\"2011-07-11\",10],[\"2011-07-12\",9],[\"2011-07-13\",13],[\"2011-07-14\",11],[\"2011-07-15\",11],[\"2011-07-17\",10],[\"2011-07-18\",4],[\"2011-07-19\",14],[\"2011-07-20\",10],[\"2011-07-21\",9],[\"2011-07-22\",9],[\"2011-07-24\",15],[\"2011-07-25\",14],[\"2011-07-26\",7],[\"2011-07-27\",7],[\"2011-07-28\",20],[\"2011-07-29\",9],[\"2011-07-31\",7],[\"2011-08-01\",7],[\"2011-08-02\",9],[\"2011-08-03\",10],[\"2011-08-04\",17],[\"2011-08-05\",12],[\"2011-08-07\",9],[\"2011-08-08\",4],[\"2011-08-09\",5],[\"2011-08-10\",7],[\"2011-08-11\",12],[\"2011-08-12\",5],[\"2011-08-14\",6],[\"2011-08-15\",8],[\"2011-08-16\",10],[\"2011-08-17\",4],[\"2011-08-18\",11],[\"2011-08-19\",9],[\"2011-08-21\",9],[\"2011-08-22\",15],[\"2011-08-23\",11],[\"2011-08-24\",18],[\"2011-08-25\",13],[\"2011-08-26\",6],[\"2011-08-28\",4],[\"2011-08-30\",6],[\"2011-08-31\",4],[\"2011-09-01\",18],[\"2011-09-02\",16],[\"2011-09-04\",8],[\"2011-09-05\",10],[\"2011-09-06\",15],[\"2011-09-07\",6],[\"2011-09-08\",16],[\"2011-09-09\",11],[\"2011-09-11\",8],[\"2011-09-12\",13],[\"2011-09-13\",6],[\"2011-09-14\",19],[\"2011-09-15\",11],[\"2011-09-16\",5],[\"2011-09-18\",2],[\"2011-09-19\",12],[\"2011-09-20\",11],[\"2011-09-21\",12],[\"2011-09-22\",19],[\"2011-09-23\",6],[\"2011-09-25\",8],[\"2011-09-26\",8],[\"2011-09-27\",15],[\"2011-09-28\",13],[\"2011-09-29\",11],[\"2011-09-30\",12],[\"2011-10-02\",4],[\"2011-10-03\",8],[\"2011-10-04\",13],[\"2011-10-05\",16],[\"2011-10-06\",19],[\"2011-10-07\",13],[\"2011-10-09\",2],[\"2011-10-10\",15],[\"2011-10-11\",14],[\"2011-10-12\",15],[\"2011-10-13\",12],[\"2011-10-14\",10],[\"2011-10-17\",16],[\"2011-10-18\",11],[\"2011-10-19\",21],[\"2011-10-20\",14],[\"2011-10-21\",11],[\"2011-10-23\",1],[\"2011-10-24\",14],[\"2011-10-25\",8],[\"2011-10-26\",20],[\"2011-10-27\",17],[\"2011-10-28\",16],[\"2011-10-30\",14],[\"2011-10-31\",11],[\"2011-11-01\",11],[\"2011-11-02\",8],[\"2011-11-03\",16],[\"2011-11-04\",15],[\"2011-11-06\",16],[\"2011-11-07\",16],[\"2011-11-08\",18],[\"2011-11-09\",31],[\"2011-11-10\",20],[\"2011-11-11\",12],[\"2011-11-13\",8],[\"2011-11-14\",11],[\"2011-11-15\",20],[\"2011-11-16\",29],[\"2011-11-17\",29],[\"2011-11-18\",25],[\"2011-11-20\",10],[\"2011-11-21\",15],[\"2011-11-22\",20],[\"2011-11-23\",23],[\"2011-11-24\",23],[\"2011-11-25\",20],[\"2011-11-27\",3],[\"2011-11-28\",23],[\"2011-11-29\",27],[\"2011-11-30\",13],[\"2011-12-01\",28],[\"2011-12-02\",25],[\"2011-12-04\",10],[\"2011-12-05\",27],[\"2011-12-06\",27],[\"2011-12-07\",15],[\"2011-12-08\",18],[\"2011-12-09\",11]]","source":"online_retail_ii","split":"dev","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 i.invoice_date ASC","sql_parameters":"[1800]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.quantity is at most 1800), grouped by i.invoice_date, ordered by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}623{"category":"single_table/or/grouped","domain":"commerce","family_id":"a3b691573677b04bdb25bda8","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"a2d21188fb86522735a1c07bf0dc1b6efa1073d3b230b39dbd1ca68d0ee1b34b","language":"en","license":"CC-BY-4.0","query":"Return the minimum of product_duration for shopping sessions where (traffic_type equals 13 or product_related is at most 226), grouped by month, ordered by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[13,226],\\\"sql\\\":\\\"SELECT month, MIN(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ? OR product_related <= ?) GROUP BY month ORDER BY month ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[13,226],\\\"sql\\\":\\\"SELECT month, MIN(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ? AND product_related <= ?) GROUP BY month ORDER BY month ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[13,226],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (traffic_type = ? OR product_related <= ?) GROUP BY month ORDER BY month ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[13,226],\\\"sql\\\":\\\"SELECT month, SUM(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ? OR product_related <= ?) GROUP BY month ORDER BY month ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Aug\",0.0],[\"Dec\",0.0],[\"Feb\",0.0],[\"Jul\",0.0],[\"June\",0.0],[\"Mar\",0.0],[\"May\",0.0],[\"Nov\",0.0],[\"Oct\",0.0],[\"Sep\",0.0]]","source":"online_shoppers","split":"dev","sql":"SELECT month, MIN(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ? OR product_related <= ?) GROUP BY month ORDER BY month ASC","sql_parameters":"[13,226]","state":"{\"question\":\"Return the minimum of product_duration for shopping sessions where (traffic_type equals 13 or product_related is at most 226), grouped by month, ordered by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}624{"category":"single_table/and/aggregate","domain":"sensor","family_id":"e48d991ffa7e8f46832b6f17","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"c81fcee248c18a17a003cd6f88ba80f68a9ba5ce5527573e3d446e07ce91fec2","language":"en","license":"CC-BY-4.0","query":"Return the average of ps1_mean for hydraulic cycles where (fs1_mean is greater than 6.68926 and vs1_mean is at most 0.61133).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[6.68926,0.61133],\\\"sql\\\":\\\"SELECT AVG(ps1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ? OR vs1_mean <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[6.68926,0.61133],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (fs1_mean > ? AND vs1_mean <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[6.68926,0.61133],\\\"sql\\\":\\\"SELECT AVG(ps1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ? AND vs1_mean <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[6.68926,0.61133],\\\"sql\\\":\\\"SELECT SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ? AND vs1_mean <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[161.0006894323144]]","source":"hydraulic","split":"dev","sql":"SELECT AVG(ps1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ? AND vs1_mean <= ?)","sql_parameters":"[6.68926,0.61133]","state":"{\"question\":\"Return the average of ps1_mean for hydraulic cycles where (fs1_mean is greater than 6.68926 and vs1_mean is at most 0.61133).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}625{"category":"single_table/or/ranked","domain":"sensor","family_id":"795d8003967999af134a73cf","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"199aa838ab9e677efe9d45b5f4fe07eb210c5b8f6697e85cade620b00c5a202e","language":"en","license":"CC-BY-4.0","query":"Return the minimum of vs1_mean for hydraulic cycles where (ts1_mean is at most 35.56605 or vs1_mean is at most 0.61133), grouped by cooler; return at most 3 groups ordered by aggregate value ASC, breaking ties by cooler ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[35.56605,0.61133],\\\"sql\\\":\\\"SELECT cooler, MIN(vs1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? OR vs1_mean <= ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[35.56605,0.61133],\\\"sql\\\":\\\"SELECT cooler, MIN(vs1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? AND vs1_mean <= ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[35.56605,0.61133],\\\"sql\\\":\\\"SELECT cooler, MIN(vs1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? OR vs1_mean <= ?) GROUP BY cooler ORDER BY value DESC, cooler ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[35.56605,0.61133],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? OR vs1_mean <= ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[100,0.52437],[3,0.56585],[20,0.57873]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, MIN(vs1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? OR vs1_mean <= ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 3","sql_parameters":"[35.56605,0.61133]","state":"{\"question\":\"Return the minimum of vs1_mean for hydraulic cycles where (ts1_mean is at most 35.56605 or vs1_mean is at most 0.61133), 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\",\"cycle_id\":\"INTEGER\",\"eps1_mean\":\"REAL\",\"fs1_mean\":\"REAL\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}626{"category":"single_table/or/aggregate","domain":"commerce","family_id":"ceb8ac1120c58bf87d9209fc","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"efd807b713f709e439960b8ce9cc30a38d83769c27c10138ced09ac31a1f2760","language":"en","license":"CC-BY-4.0","query":"Return the average of administrative for shopping sessions where (traffic_type equals 15 or product_duration is greater than 472.4166667).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[15,472.4166667],\\\"sql\\\":\\\"SELECT AVG(administrative) AS value FROM shopping_sessions WHERE (traffic_type = ? AND product_duration > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[15,472.4166667],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (traffic_type = ? OR product_duration > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[15,472.4166667],\\\"sql\\\":\\\"SELECT SUM(administrative) AS value FROM shopping_sessions WHERE (traffic_type = ? OR product_duration > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[15,472.4166667],\\\"sql\\\":\\\"SELECT AVG(administrative) AS value FROM shopping_sessions WHERE (traffic_type = ? OR product_duration > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[3.2230226192191327]]","source":"online_shoppers","split":"dev","sql":"SELECT AVG(administrative) AS value FROM shopping_sessions WHERE (traffic_type = ? OR product_duration > ?)","sql_parameters":"[15,472.4166667]","state":"{\"question\":\"Return the average of administrative for shopping sessions where (traffic_type equals 15 or product_duration is greater than 472.4166667).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}627{"category":"single_table/grouped","domain":"commerce","family_id":"0b0000a86782a68924d13c55","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"0fe051252fa184c9344d4f913c113b7e425ea6e12d14436746ef5094b1386e3a","language":"en","license":"CC-BY-4.0","query":"Return the maximum of quantity for retail invoice lines where (unit_price is greater than 2.25), grouped by country, ordered by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2.25],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (unit_price > ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2.25],\\\"sql\\\":\\\"SELECT country, MAX(quantity) AS value FROM retail_lines WHERE (unit_price > ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2.25],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (unit_price > ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2.25],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (unit_price > ?) GROUP BY country ORDER BY country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",48],[\"Austria\",16],[\"Bahrain\",16],[\"Belgium\",12],[\"Channel Islands\",20],[\"Cyprus\",12],[\"Denmark\",72],[\"EIRE\",240],[\"Finland\",72],[\"France\",80],[\"Germany\",96],[\"Israel\",6],[\"Italy\",12],[\"Japan\",12],[\"Netherlands\",256],[\"Norway\",6],[\"Poland\",1],[\"Portugal\",4],[\"Singapore\",1],[\"Spain\",360],[\"Sweden\",100],[\"Switzerland\",48],[\"USA\",12],[\"United Arab Emirates\",1],[\"United Kingdom\",3500]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, MAX(quantity) AS value FROM retail_lines WHERE (unit_price > ?) GROUP BY country ORDER BY country ASC","sql_parameters":"[2.25]","state":"{\"question\":\"Return the maximum of quantity for retail invoice lines where (unit_price is greater than 2.25), 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\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}628{"category":"single_table/and/aggregate","domain":"commerce","family_id":"98e596ab68d9ba226a72aab3","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"13c78ee961ed6082d4c6bca17ae5ddf442298139ad28d7a633b5eff01cc1c986","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (quantity is greater than 92 and unit_price is at most 0.55).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[92,0.55],\\\"sql\\\":\\\"SELECT MAX(unit_price) AS value FROM retail_lines WHERE (quantity > ? OR unit_price <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[92,0.55],\\\"sql\\\":\\\"SELECT MAX(unit_price) AS value FROM retail_lines WHERE (quantity > ? AND unit_price <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[92,0.55],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (quantity > ? AND unit_price <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[92,0.55],\\\"sql\\\":\\\"SELECT SUM(unit_price) AS value FROM retail_lines WHERE (quantity > ? AND unit_price <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0.55]]","source":"online_retail_ii","split":"dev","sql":"SELECT MAX(unit_price) AS value FROM retail_lines WHERE (quantity > ? AND unit_price <= ?)","sql_parameters":"[92,0.55]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines where (quantity is greater than 92 and unit_price is at most 0.55).\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}629{"category":"single_table/grouped","domain":"commerce","family_id":"82692395bb492b9fb7a95c2f","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"48f6117ffa5c735a4a559bce2a17bd495cab1861977cf8f1986ff7e8a9cfabe1","language":"en","license":"CC-BY-4.0","query":"Return the minimum of product_related for shopping sessions where (traffic_type equals 13), grouped by visitor_type, ordered by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[13],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (traffic_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[13],\\\"sql\\\":\\\"SELECT visitor_type, SUM(product_related) AS value FROM shopping_sessions WHERE (traffic_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[13],\\\"sql\\\":\\\"SELECT visitor_type, AVG(product_related) AS value FROM shopping_sessions WHERE (traffic_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[13],\\\"sql\\\":\\\"SELECT visitor_type, MIN(product_related) AS value FROM shopping_sessions WHERE (traffic_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"New_Visitor\",1],[\"Other\",9],[\"Returning_Visitor\",1]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, MIN(product_related) AS value FROM shopping_sessions WHERE (traffic_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC","sql_parameters":"[13]","state":"{\"question\":\"Return the minimum of product_related for shopping sessions where (traffic_type equals 13), grouped by visitor_type, ordered by visitor_type ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}630{"category":"join/aggregate","domain":"commerce","family_id":"a6218a885938b909a9399413","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"9990eb8d61a78423b9f53be6f5b11789643df5842eb46cef2a36f6ff340e468f","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail lines joined to their invoices where (i.country equals 'Cyprus').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Cyprus\\\"],\\\"sql\\\":\\\"SELECT SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Cyprus\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Cyprus\\\"],\\\"sql\\\":\\\"SELECT AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Cyprus\\\"],\\\"sql\\\":\\\"SELECT MIN(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[16]]","source":"online_retail_ii","split":"dev","sql":"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?)","sql_parameters":"[\"Cyprus\"]","state":"{\"question\":\"Return the number of rows for retail lines joined to their invoices where (i.country equals 'Cyprus').\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}631{"category":"single_table/and/aggregate","domain":"commerce","family_id":"1f74ab2d4fe86f641627b5b4","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"8c965d5753b732eb532ffad0470b3eced9835f06583ebe84d5e3c2ab955e1cb2","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (country equals 'Austria' and unit_price is at most 8.5).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Austria\\\",8.5],\\\"sql\\\":\\\"SELECT MAX(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Austria\\\",8.5],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Austria\\\",8.5],\\\"sql\\\":\\\"SELECT SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Austria\\\",8.5],\\\"sql\\\":\\\"SELECT MAX(unit_price) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[5.45]]","source":"online_retail_ii","split":"dev","sql":"SELECT MAX(unit_price) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?)","sql_parameters":"[\"Austria\",8.5]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines where (country equals 'Austria' and unit_price is at most 8.5).\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}632{"category":"join/null/and/grouped","domain":"commerce","family_id":"32ec6898eed4a092f400e393","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"44e6bbac4994ad9f026c118a56092c81f3ae7d3a004edc6cabd83cf6f4f16437","language":"en","license":"CC-BY-4.0","query":"Return the minimum of l.unit_price for retail lines joined to their invoices where (l.quantity is greater than 648 and i.customer_id is missing), grouped by i.country, ordered by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[648],\\\"sql\\\":\\\"SELECT i.country, MIN(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ? AND i.customer_id IS NULL) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[648],\\\"sql\\\":\\\"SELECT i.country, MIN(l.unit_price) 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 ORDER BY i.country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT i.country, MIN(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[648],\\\"sql\\\":\\\"SELECT i.country, MIN(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, MIN(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ? AND i.customer_id IS NULL) GROUP BY i.country ORDER BY i.country ASC","sql_parameters":"[648]","state":"{\"question\":\"Return the minimum of l.unit_price for retail lines joined to their invoices where (l.quantity is greater than 648 and i.customer_id is missing), grouped by i.country, ordered by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}633{"category":"join/null/or/having","domain":"commerce","family_id":"086517f1db92a9c3ea8ea964","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"3b83a5bfbe7dfe592427f5e28536985cad0081d94f2d34dd05f973e1881e6aba","language":"en","license":"CC-BY-4.0","query":"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.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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Austria\\\",10],\\\"sql\\\":\\\"SELECT i.country, 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.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Austria\\\"],\\\"sql\\\":\\\"SELECT i.country, 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.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Austria\\\",10],\\\"sql\\\":\\\"SELECT i.country, 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.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Austria\\\",10],\\\"sql\\\":\\\"SELECT i.country, 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.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Norway\",24],[\"Austria\",48],[\"Portugal\",60]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, 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.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3","sql_parameters":"[\"Austria\",10]","state":"{\"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.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_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}634{"category":"join/date/and/having","domain":"commerce","family_id":"edaa4e82cb86d1388fd3abbc","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"1375e64f0f6fe1fe2297a0f9e1ac8760f20c8db478337429b478a31152c1d9d9","language":"en","license":"CC-BY-4.0","query":"Return the average of l.unit_price for retail lines joined to their invoices where (l.unit_price is greater than 4.77 and i.invoice_date is on or after '2010-12-02'), grouped by i.country, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[4.77,\\\"2010-12-02\\\",2],\\\"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.unit_price > ? OR i.invoice_date >= ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[4.77,\\\"2010-12-02\\\"],\\\"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.unit_price > ? AND i.invoice_date >= ?) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[4.77,\\\"2010-12-02\\\",2],\\\"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.unit_price > ? AND i.invoice_date >= ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[4.77,\\\"2010-12-02\\\",2],\\\"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.unit_price > ? AND i.invoice_date >= ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Singapore\",1684.305],[\"Norway\",101.9],[\"EIRE\",96.79925],[\"Finland\",33.425],[\"Sweden\",32.989999999999995]]","source":"online_retail_ii","split":"dev","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.unit_price > ? AND i.invoice_date >= ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5","sql_parameters":"[4.77,\"2010-12-02\",2]","state":"{\"question\":\"Return the average of l.unit_price for retail lines joined to their invoices where (l.unit_price is greater than 4.77 and i.invoice_date is on or after '2010-12-02'), grouped by i.country, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}635{"category":"single_table/aggregate","domain":"commerce","family_id":"1e17819ce4d6fc89370a7f0d","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"2d78b490173d593f09c950373cd84c5d787f69a5113dbd96a25f7956c66fd9f3","language":"en","license":"CC-BY-4.0","query":"Return the maximum of administrative for shopping sessions where (product_related is greater than 226).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[226],\\\"sql\\\":\\\"SELECT MAX(administrative) AS value FROM shopping_sessions WHERE (product_related > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[226],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (product_related > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[226],\\\"sql\\\":\\\"SELECT SUM(administrative) AS value FROM shopping_sessions WHERE (product_related > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[226],\\\"sql\\\":\\\"SELECT AVG(administrative) AS value FROM shopping_sessions WHERE (product_related > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[27]]","source":"online_shoppers","split":"dev","sql":"SELECT MAX(administrative) AS value FROM shopping_sessions WHERE (product_related > ?)","sql_parameters":"[226]","state":"{\"question\":\"Return the maximum 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\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}636{"category":"single_table/and/ranked","domain":"commerce","family_id":"685efb384ca5f8b1be19435e","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"8bc6ed9199e94d81244fb0691e3d84186dd389f218b5ae5602ca2c231b22247f","language":"en","license":"CC-BY-4.0","query":"Return the average of unit_price for retail invoice lines where (country equals 'Belgium' and quantity is greater than 1800), grouped by invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Belgium\\\",1800],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? OR quantity > ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Belgium\\\",1800],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? AND quantity > ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Belgium\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (country = ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? AND quantity > ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3","sql_parameters":"[\"Belgium\",1800]","state":"{\"question\":\"Return the average of unit_price for retail invoice lines where (country equals 'Belgium' and quantity is greater than 1800), grouped by invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by invoice_date ascending.\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}637{"category":"single_table/date/aggregate","domain":"commerce","family_id":"b506553d0da00d7bc0ce3f66","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"cd0c9f5bb95b898f22d17d224c562abec6c1859a4eda429e481f4845a87c871c","language":"en","license":"CC-BY-4.0","query":"Return the minimum of quantity for retail invoice lines where (invoice_date is before '2010-02-18').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (invoice_date < ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT SUM(quantity) AS value FROM retail_lines WHERE (invoice_date < ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT AVG(quantity) AS value FROM retail_lines WHERE (invoice_date < ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT MIN(quantity) AS value FROM retail_lines WHERE (invoice_date < ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1]]","source":"online_retail_ii","split":"dev","sql":"SELECT MIN(quantity) AS value FROM retail_lines WHERE (invoice_date < ?)","sql_parameters":"[\"2010-02-18\"]","state":"{\"question\":\"Return the minimum of quantity for retail invoice lines where (invoice_date is before '2010-02-18').\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}638{"category":"single_table/and/ranked","domain":"sensor","family_id":"bfdcff710fa2f42514966459","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"94193fd09537b785a9c45d46d5dc6fe5c7876e2da368ff74a8bc2307b22dfad8","language":"en","license":"CC-BY-4.0","query":"Return the maximum of ps2_mean for hydraulic cycles where (valve equals 90 and ps2_mean is greater than 105.7255), grouped by pump_leakage; return at most 3 groups ordered by aggregate value ASC, breaking ties by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[90,105.7255],\\\"sql\\\":\\\"SELECT pump_leakage, MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (valve = ? AND ps2_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[90,105.7255],\\\"sql\\\":\\\"SELECT pump_leakage, MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (valve = ? OR ps2_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[90,105.7255],\\\"sql\\\":\\\"SELECT pump_leakage, MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (valve = ? AND ps2_mean > ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[90,105.7255],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (valve = ? AND ps2_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,123.33372],[1,131.0069],[2,131.05237]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (valve = ? AND ps2_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3","sql_parameters":"[90,105.7255]","state":"{\"question\":\"Return the maximum of ps2_mean for hydraulic cycles where (valve equals 90 and ps2_mean is greater than 105.7255), 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\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}639{"category":"single_table/or/having","domain":"commerce","family_id":"4a8540c2a3c003d1b56a0e50","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"8df31864c46d903b943a3cf4439d04ef390ab39c7da89c213d6a9e9452c8c1b1","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (quantity is at most 648 or unit_price is greater than 4.77), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[648,4.77,10],\\\"sql\\\":\\\"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[648,4.77,10],\\\"sql\\\":\\\"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (quantity <= ? AND unit_price > ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[648,4.77],\\\"sql\\\":\\\"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[648,4.77,10],\\\"sql\\\":\\\"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-08-17\",3.39],[\"2009-12-23\",3.75],[\"2010-01-17\",4.95]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3","sql_parameters":"[648,4.77,10]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines where (quantity is at most 648 or unit_price is greater than 4.77), 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\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}640{"category":"single_table/and/aggregate","domain":"sensor","family_id":"2f2ad2d9a066d3b29545768f","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"f0c3e667463a901077020e7d5a0b9a82a843eb56cdd6a1f1db6c32474435a2af","language":"en","license":"CC-BY-4.0","query":"Return the average of ps1_mean for hydraulic cycles where (eps1_mean is at most 2480.92663 and vs1_mean is greater than 0.56377).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2480.92663,0.56377],\\\"sql\\\":\\\"SELECT AVG(ps1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ? OR vs1_mean > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2480.92663,0.56377],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ? AND vs1_mean > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2480.92663,0.56377],\\\"sql\\\":\\\"SELECT SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ? AND vs1_mean > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2480.92663,0.56377],\\\"sql\\\":\\\"SELECT AVG(ps1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ? AND vs1_mean > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[157.75490932910245]]","source":"hydraulic","split":"dev","sql":"SELECT AVG(ps1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ? AND vs1_mean > ?)","sql_parameters":"[2480.92663,0.56377]","state":"{\"question\":\"Return the average of ps1_mean for hydraulic cycles where (eps1_mean is at most 2480.92663 and vs1_mean is greater than 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_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}641{"category":"single_table/date/and/grouped","domain":"commerce","family_id":"af2f61b41a73122d4b0bd5f9","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"c1288289c1c6ee972f415d3b9d80dca8d6c7a862e0e3d9ad215738a9894bd62c","language":"en","license":"CC-BY-4.0","query":"Return the average of quantity for retail invoice lines where (unit_price is at most 0.55 and invoice_date is before '2011-09-29'), grouped by country, ordered by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[0.55,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (unit_price <= ? OR invoice_date < ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[0.55,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (unit_price <= ? AND invoice_date < ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[0.55,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (unit_price <= ? AND invoice_date < ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[0.55,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (unit_price <= ? AND invoice_date < ?) GROUP BY country ORDER BY country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Austria\",24.0],[\"Belgium\",226.0],[\"Cyprus\",200.0],[\"EIRE\",513.2],[\"Finland\",144.0],[\"France\",63.111111111111114],[\"Germany\",35.52173913043478],[\"Japan\",344.0],[\"Netherlands\",212.0],[\"Portugal\",17.0],[\"Sweden\",387.46666666666664],[\"United Kingdom\",215.64084507042253]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (unit_price <= ? AND invoice_date < ?) GROUP BY country ORDER BY country ASC","sql_parameters":"[0.55,\"2011-09-29\"]","state":"{\"question\":\"Return the average of quantity for retail invoice lines where (unit_price is at most 0.55 and invoice_date is before '2011-09-29'), 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\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}642{"category":"single_table/or/having","domain":"commerce","family_id":"672d11e9a01466842a808241","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"1bf9f0c1e11329115cd9bfa054b6d4ed7b89c5a4252752bb22483dfccec3329f","language":"en","license":"CC-BY-4.0","query":"Return the minimum of product_related for shopping sessions where (region equals 8 or product_related is at most 226), grouped by visitor_type, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[8,226,2],\\\"sql\\\":\\\"SELECT visitor_type, MIN(product_related) AS value FROM shopping_sessions WHERE (region = ? AND product_related <= ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[8,226,2],\\\"sql\\\":\\\"SELECT visitor_type, MIN(product_related) AS value FROM shopping_sessions WHERE (region = ? OR product_related <= ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[8,226,2],\\\"sql\\\":\\\"SELECT visitor_type, MIN(product_related) AS value FROM shopping_sessions WHERE (region = ? OR product_related <= ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value ASC, visitor_type ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[8,226,2],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (region = ? OR product_related <= ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Other\",1],[\"New_Visitor\",0],[\"Returning_Visitor\",0]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, MIN(product_related) AS value FROM shopping_sessions WHERE (region = ? OR product_related <= ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value DESC, visitor_type ASC LIMIT 5","sql_parameters":"[8,226,2]","state":"{\"question\":\"Return the minimum of product_related for shopping sessions where (region equals 8 or product_related is at most 226), grouped by visitor_type, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by visitor_type ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}643{"category":"single_table/or/ranked","domain":"sensor","family_id":"bdef344e3a7b7a9cd28fb176","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"3de6e348a05e83483297ec38b9a46e45aa8e92eb6bb1d13e64a04a5323dab167","language":"en","license":"CC-BY-4.0","query":"Return the minimum of fs1_mean for hydraulic cycles where (pump_leakage equals 1 or fs1_mean is at most 6.41875), grouped by pump_leakage; return at most 3 groups ordered by aggregate value ASC, breaking ties by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[1,6.41875],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(fs1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? OR fs1_mean <= ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[1,6.41875],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(fs1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? AND fs1_mean <= ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[1,6.41875],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(fs1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? OR fs1_mean <= ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[1,6.41875],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? OR fs1_mean <= ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[2,2.01857],[1,2.07884],[0,2.12356]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, MIN(fs1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? OR fs1_mean <= ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3","sql_parameters":"[1,6.41875]","state":"{\"question\":\"Return the minimum of fs1_mean for hydraulic cycles where (pump_leakage equals 1 or fs1_mean is at most 6.41875), 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\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}644{"category":"single_table/and/grouped","domain":"commerce","family_id":"ca8b020908e23e628a5f0d98","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"12aca0c6a30d9b3ed255c73cafe7dbd20eb0408187d1f9dc7faa7f9f1bd700aa","language":"en","license":"CC-BY-4.0","query":"Return the average of product_duration for shopping sessions where (administrative is greater than 2 and product_duration is greater than 167.5), grouped by month, ordered by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2,167.5],\\\"sql\\\":\\\"SELECT month, AVG(product_duration) AS value FROM shopping_sessions WHERE (administrative > ? OR product_duration > ?) GROUP BY month ORDER BY month ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2,167.5],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (administrative > ? AND product_duration > ?) GROUP BY month ORDER BY month ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2,167.5],\\\"sql\\\":\\\"SELECT month, AVG(product_duration) AS value FROM shopping_sessions WHERE (administrative > ? AND product_duration > ?) GROUP BY month ORDER BY month ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2,167.5],\\\"sql\\\":\\\"SELECT month, SUM(product_duration) AS value FROM shopping_sessions WHERE (administrative > ? AND product_duration > ?) GROUP BY month ORDER BY month ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Aug\",2055.032699324118],[\"Dec\",2002.431922245625],[\"Feb\",1660.78523458125],[\"Jul\",2170.4511929669065],[\"June\",2581.456861259756],[\"Mar\",1489.0338576594756],[\"May\",1790.334767895889],[\"Nov\",2977.36908759752],[\"Oct\",1644.9983892576272],[\"Sep\",1696.8226426265194]]","source":"online_shoppers","split":"dev","sql":"SELECT month, AVG(product_duration) AS value FROM shopping_sessions WHERE (administrative > ? AND product_duration > ?) GROUP BY month ORDER BY month ASC","sql_parameters":"[2,167.5]","state":"{\"question\":\"Return the average of product_duration for shopping sessions where (administrative is greater than 2 and product_duration is greater than 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\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}645{"category":"join/date/grouped","domain":"commerce","family_id":"f4ddeee35f69f5ffdeb32989","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"b16cd85dcd3398d2daba6351a0f80ce3f79051c9416e1cf12de38d67d5679984","language":"en","license":"CC-BY-4.0","query":"Return the maximum of l.unit_price for retail lines joined to their invoices where (i.invoice_date is before '2011-05-10'), grouped by i.invoice_date, ordered by i.invoice_date ascending.","questions":"{\"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\\\":\\\"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.invoice_date < ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, 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.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\"],\\\"sql\\\":\\\"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\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-01\",7.95],[\"2009-12-02\",34.95],[\"2009-12-03\",79.95],[\"2009-12-04\",12.75],[\"2009-12-05\",12.75],[\"2009-12-06\",49.95],[\"2009-12-07\",50.0],[\"2009-12-08\",15.95],[\"2009-12-09\",79.95],[\"2009-12-10\",49.95],[\"2009-12-11\",39.95],[\"2009-12-13\",40.0],[\"2009-12-14\",14.95],[\"2009-12-15\",35.95],[\"2009-12-16\",39.95],[\"2009-12-17\",12.75],[\"2009-12-18\",10.95],[\"2009-12-20\",9.95],[\"2009-12-21\",10.95],[\"2009-12-22\",16.48],[\"2009-12-23\",3.75],[\"2010-01-04\",6.95],[\"2010-01-05\",45.95],[\"2010-01-06\",7.95],[\"2010-01-07\",18.0],[\"2010-01-08\",16.95],[\"2010-01-10\",7.95],[\"2010-01-11\",34.95],[\"2010-01-12\",21.95],[\"2010-01-13\",8.5],[\"2010-01-14\",9.95],[\"2010-01-15\",39.95],[\"2010-01-17\",4.95],[\"2010-01-18\",2.25],[\"2010-01-19\",14.95],[\"2010-01-20\",12.75],[\"2010-01-21\",12.75],[\"2010-01-22\",35.95],[\"2010-01-24\",12.75],[\"2010-01-25\",14.26],[\"2010-01-26\",39.95],[\"2010-01-27\",9.95],[\"2010-01-28\",12.75],[\"2010-01-29\",28.0],[\"2010-01-31\",9.95],[\"2010-02-01\",45.95],[\"2010-02-02\",79.95],[\"2010-02-03\",79.95],[\"2010-02-04\",16.95],[\"2010-02-05\",21.95],[\"2010-02-07\",4.95],[\"2010-02-08\",14.95],[\"2010-02-09\",10.95],[\"2010-02-10\",40.0],[\"2010-02-11\",6.95],[\"2010-02-12\",8.49],[\"2010-02-14\",26.95],[\"2010-02-15\",12.75],[\"2010-02-16\",45.95],[\"2010-02-17\",8.5],[\"2010-02-18\",12.75],[\"2010-02-19\",13.57],[\"2010-02-21\",12.75],[\"2010-02-22\",79.95],[\"2010-02-23\",45.95],[\"2010-02-24\",10.95],[\"2010-02-25\",18.0],[\"2010-02-26\",45.95],[\"2010-02-28\",12.75],[\"2010-03-01\",12.75],[\"2010-03-02\",12.75],[\"2010-03-03\",45.95],[\"2010-03-04\",26.95],[\"2010-03-05\",18.0],[\"2010-03-07\",7.95],[\"2010-03-08\",39.95],[\"2010-03-09\",12.75],[\"2010-03-10\",10.95],[\"2010-03-11\",12.75],[\"2010-03-12\",9.95],[\"2010-03-14\",16.95],[\"2010-03-15\",25.52],[\"2010-03-16\",18.0],[\"2010-03-17\",9.95],[\"2010-03-18\",29.95],[\"2010-03-19\",14.95],[\"2010-03-21\",12.75],[\"2010-03-22\",12.75],[\"2010-03-23\",12.75],[\"2010-03-24\",867.79],[\"2010-03-25\",40.0],[\"2010-03-26\",16.95],[\"2010-03-28\",4.95],[\"2010-03-29\",8.5],[\"2010-03-30\",18.95],[\"2010-03-31\",34.95],[\"2010-04-01\",10.95],[\"2010-04-06\",15.95],[\"2010-04-07\",10.95],[\"2010-04-08\",12.75],[\"2010-04-09\",12.75],[\"2010-04-11\",7.95],[\"2010-04-12\",12.75],[\"2010-04-13\",9.95],[\"2010-04-14\",12.75],[\"2010-04-15\",12.75],[\"2010-04-16\",12.75],[\"2010-04-18\",14.95],[\"2010-04-19\",26.95],[\"2010-04-20\",10.75],[\"2010-04-21\",125.0],[\"2010-04-22\",18.0],[\"2010-04-23\",45.95],[\"2010-04-25\",12.75],[\"2010-04-26\",39.95],[\"2010-04-27\",25.49],[\"2010-04-28\",7.65],[\"2010-04-29\",12.75],[\"2010-04-30\",14.95],[\"2010-05-02\",15.0],[\"2010-05-04\",230.0],[\"2010-05-05\",12.75],[\"2010-05-06\",19.95],[\"2010-05-07\",15.95],[\"2010-05-09\",16.95],[\"2010-05-10\",29.95],[\"2010-05-11\",16.95],[\"2010-05-12\",12.75],[\"2010-05-13\",12.75],[\"2010-05-14\",16.98],[\"2010-05-16\",8.5],[\"2010-05-17\",12.75],[\"2010-05-18\",18.95],[\"2010-05-19\",79.95],[\"2010-05-20\",12.75],[\"2010-05-21\",12.75],[\"2010-05-23\",12.75],[\"2010-05-24\",14.95],[\"2010-05-25\",19.95],[\"2010-05-26\",25.49],[\"2010-05-27\",12.75],[\"2010-05-28\",15.95],[\"2010-05-30\",12.75],[\"2010-06-01\",15.95],[\"2010-06-02\",12.75],[\"2010-06-03\",12.75],[\"2010-06-04\",25.49],[\"2010-06-06\",9.95],[\"2010-06-07\",18.0],[\"2010-06-08\",12.75],[\"2010-06-09\",40.0],[\"2010-06-10\",12.75],[\"2010-06-11\",39.95],[\"2010-06-13\",16.95],[\"2010-06-14\",16.95],[\"2010-06-15\",12.75],[\"2010-06-16\",19.95],[\"2010-06-17\",12.75],[\"2010-06-18\",10.95],[\"2010-06-20\",12.75],[\"2010-06-21\",12.75],[\"2010-06-22\",19.95],[\"2010-06-23\",19.95],[\"2010-06-24\",25.49],[\"2010-06-25\",12.75],[\"2010-06-27\",12.75],[\"2010-06-28\",14.95],[\"2010-06-29\",125.0],[\"2010-06-30\",19.95],[\"2010-07-01\",18.95],[\"2010-07-02\",8.95],[\"2010-07-04\",24.95],[\"2010-07-05\",18.0],[\"2010-07-06\",19.95],[\"2010-07-07\",12.75],[\"2010-07-08\",125.0],[\"2010-07-09\",15.95],[\"2010-07-11\",15.95],[\"2010-07-12\",295.0],[\"2010-07-13\",40.0],[\"2010-07-14\",12.75],[\"2010-07-15\",18.0],[\"2010-07-16\",34.95],[\"2010-07-18\",4.95],[\"2010-07-19\",10.95],[\"2010-07-20\",12.75],[\"2010-07-21\",15.95],[\"2010-07-22\",28.0],[\"2010-07-23\",10.95],[\"2010-07-25\",15.0],[\"2010-07-26\",18.0],[\"2010-07-27\",19.95],[\"2010-07-28\",10.95],[\"2010-07-29\",10.95],[\"2010-07-30\",12.75],[\"2010-08-01\",12.75],[\"2010-08-02\",295.0],[\"2010-08-03\",295.0],[\"2010-08-04\",12.75],[\"2010-08-05\",12.95],[\"2010-08-06\",8.5],[\"2010-08-08\",34.95],[\"2010-08-09\",6.68],[\"2010-08-10\",5.95],[\"2010-08-11\",18.0],[\"2010-08-12\",16.95],[\"2010-08-13\",10.65],[\"2010-08-15\",12.75],[\"2010-08-16\",12.75],[\"2010-08-17\",9.95],[\"2010-08-18\",12.75],[\"2010-08-19\",12.75],[\"2010-08-20\",15.0],[\"2010-08-22\",8.5],[\"2010-08-23\",14.95],[\"2010-08-24\",295.0],[\"2010-08-25\",12.75],[\"2010-08-26\",8.5],[\"2010-08-27\",7.49],[\"2010-08-29\",8.5],[\"2010-08-31\",9.95],[\"2010-09-01\",79.95],[\"2010-09-02\",39.95],[\"2010-09-03\",15.0],[\"2010-09-05\",10.95],[\"2010-09-06\",18.0],[\"2010-09-07\",10.95],[\"2010-09-08\",2.55],[\"2010-09-09\",110.0],[\"2010-09-10\",6.75],[\"2010-09-12\",16.95],[\"2010-09-13\",12.75],[\"2010-09-14\",12.75],[\"2010-09-15\",16.95],[\"2010-09-16\",18.0],[\"2010-09-17\",79.95],[\"2010-09-19\",14.95],[\"2010-09-20\",129.95],[\"2010-09-21\",9.95],[\"2010-09-22\",7.95],[\"2010-09-23\",18.95],[\"2010-09-24\",14.95],[\"2010-09-26\",12.75],[\"2010-09-27\",16.95],[\"2010-09-28\",16.95],[\"2010-09-29\",50.0],[\"2010-09-30\",16.98],[\"2010-10-01\",18.95],[\"2010-10-03\",5.45],[\"2010-10-04\",29.95],[\"2010-10-05\",12.75],[\"2010-10-06\",50.0],[\"2010-10-07\",12.75],[\"2010-10-08\",16.95],[\"2010-10-10\",14.95],[\"2010-10-11\",79.95],[\"2010-10-12\",10.95],[\"2010-10-13\",16.95],[\"2010-10-14\",52.78],[\"2010-10-15\",16.98],[\"2010-10-17\",14.95],[\"2010-10-18\",18.0],[\"2010-10-19\",21.95],[\"2010-10-20\",34.95],[\"2010-10-21\",145.0],[\"2010-10-22\",145.0],[\"2010-10-24\",39.95],[\"2010-10-25\",14.95],[\"2010-10-26\",9.95],[\"2010-10-27\",14.95],[\"2010-10-28\",12.75],[\"2010-10-29\",39.95],[\"2010-10-31\",18.0],[\"2010-11-01\",9.95],[\"2010-11-02\",40.0],[\"2010-11-03\",165.0],[\"2010-11-04\",14.95],[\"2010-11-05\",14.95],[\"2010-11-07\",8.95],[\"2010-11-08\",32.69],[\"2010-11-09\",50.0],[\"2010-11-10\",16.95],[\"2010-11-11\",14.95],[\"2010-11-12\",15.0],[\"2010-11-14\",28.0],[\"2010-11-15\",40.0],[\"2010-11-16\",24.95],[\"2010-11-17\",295.0],[\"2010-11-18\",34.95],[\"2010-11-19\",253.0],[\"2010-11-21\",14.95],[\"2010-11-22\",12.75],[\"2010-11-23\",12.75],[\"2010-11-24\",79.95],[\"2010-11-25\",65.0],[\"2010-11-26\",8.5],[\"2010-11-28\",110.0],[\"2010-11-29\",18.0],[\"2010-11-30\",24.95],[\"2010-12-01\",19.95],[\"2010-12-02\",10.95],[\"2010-12-03\",40.0],[\"2010-12-05\",18.0],[\"2010-12-06\",14.95],[\"2010-12-07\",19.84],[\"2010-12-08\",21.95],[\"2010-12-09\",18.0],[\"2010-12-10\",16.95],[\"2010-12-12\",19.95],[\"2010-12-13\",12.75],[\"2010-12-14\",29.95],[\"2010-12-15\",12.75],[\"2010-12-16\",39.95],[\"2010-12-17\",18.0],[\"2010-12-19\",8.5],[\"2010-12-20\",22.0],[\"2010-12-21\",18.0],[\"2010-12-22\",4.95],[\"2010-12-23\",5.95],[\"2011-01-04\",8.5],[\"2011-01-05\",12.75],[\"2011-01-06\",8.5],[\"2011-01-07\",39.95],[\"2011-01-09\",12.75],[\"2011-01-10\",18.0],[\"2011-01-11\",18.0],[\"2011-01-12\",165.0],[\"2011-01-13\",8.5],[\"2011-01-14\",18.0],[\"2011-01-16\",3.95],[\"2011-01-17\",12.75],[\"2011-01-18\",6.95],[\"2011-01-19\",18.0],[\"2011-01-20\",8.95],[\"2011-01-21\",40.0],[\"2011-01-23\",14.95],[\"2011-01-24\",12.75],[\"2011-01-25\",40.0],[\"2011-01-26\",12.75],[\"2011-01-27\",18.0],[\"2011-01-28\",7.95],[\"2011-01-30\",2.95],[\"2011-01-31\",14.95],[\"2011-02-01\",14.95],[\"2011-02-02\",12.75],[\"2011-02-03\",15.0],[\"2011-02-04\",295.0],[\"2011-02-07\",12.75],[\"2011-02-08\",4.95],[\"2011-02-09\",15.0],[\"2011-02-10\",165.0],[\"2011-02-11\",145.0],[\"2011-02-13\",5.95],[\"2011-02-14\",16.95],[\"2011-02-15\",10.95],[\"2011-02-16\",8.5],[\"2011-02-17\",18.0],[\"2011-02-18\",14.95],[\"2011-02-20\",10.95],[\"2011-02-21\",12.75],[\"2011-02-22\",10.95],[\"2011-02-23\",34.95],[\"2011-02-24\",10.95],[\"2011-02-25\",40.0],[\"2011-02-27\",18.0],[\"2011-02-28\",125.0],[\"2011-03-01\",376.5],[\"2011-03-02\",10.95],[\"2011-03-03\",40.0],[\"2011-03-04\",28.0],[\"2011-03-06\",10.95],[\"2011-03-07\",125.0],[\"2011-03-08\",10.95],[\"2011-03-09\",40.0],[\"2011-03-10\",14.95],[\"2011-03-11\",16.95],[\"2011-03-14\",10.95],[\"2011-03-15\",9.95],[\"2011-03-16\",10.95],[\"2011-03-17\",10.95],[\"2011-03-18\",18.0],[\"2011-03-20\",18.0],[\"2011-03-21\",10.95],[\"2011-03-22\",9.95],[\"2011-03-23\",16.95],[\"2011-03-24\",8.5],[\"2011-03-25\",18.0],[\"2011-03-27\",12.75],[\"2011-03-28\",150.0],[\"2011-03-29\",10.65],[\"2011-03-30\",12.75],[\"2011-03-31\",18.0],[\"2011-04-01\",16.95],[\"2011-04-03\",10.95],[\"2011-04-04\",2382.92],[\"2011-04-05\",125.0],[\"2011-04-06\",8.5],[\"2011-04-07\",12.75],[\"2011-04-08\",18.0],[\"2011-04-10\",10.95],[\"2011-04-11\",8.5],[\"2011-04-12\",10.95],[\"2011-04-13\",12.75],[\"2011-04-14\",18.0],[\"2011-04-15\",40.0],[\"2011-04-17\",9.95],[\"2011-04-18\",12.75],[\"2011-04-19\",5.95],[\"2011-04-20\",14.95],[\"2011-04-21\",40.0],[\"2011-04-26\",40.0],[\"2011-04-27\",50.0],[\"2011-04-28\",295.0],[\"2011-05-01\",9.95],[\"2011-05-03\",110.0],[\"2011-05-04\",9.95],[\"2011-05-05\",39.95],[\"2011-05-06\",40.0],[\"2011-05-08\",16.95],[\"2011-05-09\",12.75]]","source":"online_retail_ii","split":"dev","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.invoice_date < ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC","sql_parameters":"[\"2011-05-10\"]","state":"{\"question\":\"Return the maximum of l.unit_price for retail lines joined to their invoices where (i.invoice_date is before '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\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}646{"category":"join/and/having","domain":"commerce","family_id":"4333eb617f2da1597f6cadd3","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"bbc2301ae25ad6bad43364c2a1c830f41930133df0543d4f399f0151e3aa322a","language":"en","license":"CC-BY-4.0","query":"Return the average of l.unit_price for retail lines joined to their invoices where (i.country equals 'Austria' and l.unit_price is greater than 2.25), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Austria\\\",2.25,10],\\\"sql\\\":\\\"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.country = ? OR l.unit_price > ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Austria\\\",2.25],\\\"sql\\\":\\\"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.country = ? AND l.unit_price > ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Austria\\\",2.25,10],\\\"sql\\\":\\\"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.country = ? AND l.unit_price > ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[10],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","sql":"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.country = ? AND l.unit_price > ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3","sql_parameters":"[\"Austria\",2.25,10]","state":"{\"question\":\"Return the average of l.unit_price for retail lines joined to their invoices where (i.country equals 'Austria' and l.unit_price is greater than 2.25), 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_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}647{"category":"single_table/or/having","domain":"commerce","family_id":"4ab21f2477281d031a4e6842","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"d744c4cde021ca66e261e0ea86a38bd0a7ba62db407fa9276db875d934117566","language":"en","license":"CC-BY-4.0","query":"Return the average of quantity for retail invoice lines where (country equals 'Denmark' or unit_price is greater than 4.77), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Denmark\\\",4.77,10],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (country = ? AND unit_price > ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Denmark\\\",4.77,10],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (country = ? OR unit_price > ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Denmark\\\",4.77],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (country = ? OR unit_price > ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Denmark\\\",4.77,10],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (country = ? OR unit_price > ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Finland\",1.5],[\"Switzerland\",1.8571428571428572],[\"Sweden\",2.0833333333333335]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (country = ? OR unit_price > ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3","sql_parameters":"[\"Denmark\",4.77,10]","state":"{\"question\":\"Return the average of quantity for retail invoice lines where (country equals 'Denmark' or unit_price is greater than 4.77), 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\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}648{"category":"join/distinct_invoice/date/and/having","domain":"commerce","family_id":"569a5ad3114a5aca324719f8","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"10a0a83abd9a519a5cc5e0b95321c4a9a53b10487b5582c5f8d5a2972c0e45a6","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.unit_price is at most 8.5 and i.invoice_date is on or after '2011-09-29'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[8.5,\\\"2011-09-29\\\",10],\\\"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 HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[8.5,\\\"2011-09-29\\\"],\\\"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 <= ? AND i.invoice_date >= ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[8.5,\\\"2011-09-29\\\",10],\\\"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 <= ? AND i.invoice_date >= ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[8.5,\\\"2011-09-29\\\",10],\\\"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 <= ? AND i.invoice_date >= ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Netherlands\",6],[\"EIRE\",10],[\"Finland\",10]]","source":"online_retail_ii","split":"dev","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 <= ? AND i.invoice_date >= ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3","sql_parameters":"[8.5,\"2011-09-29\",10]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.unit_price is at most 8.5 and i.invoice_date is on or after '2011-09-29'), 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_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}649{"category":"single_table/date/and/having","domain":"commerce","family_id":"f403f5a557ccb4a4ca99b4c2","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"eb9ad49322c10bbbc08e22bae57af8bc57a8cd970f246bed6dc392115cd185db","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail invoice lines where (country equals 'Bahrain' and invoice_date is before '2010-02-18'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Bahrain\\\",\\\"2010-02-18\\\",2],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? OR invoice_date < ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Bahrain\\\",2],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Bahrain\\\",\\\"2010-02-18\\\",2],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5","sql_parameters":"[\"Bahrain\",\"2010-02-18\",2]","state":"{\"question\":\"Return the number of rows for retail invoice lines where (country equals 'Bahrain' and invoice_date is before '2010-02-18'), 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\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}650{"category":"single_table/or/grouped","domain":"sensor","family_id":"8b22e91f231cb4d18a1a8dff","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"88424acb14f8f105cb4b14c3be9465af709f0e38abf55ca28da7bd504c72131c","language":"en","license":"CC-BY-4.0","query":"Return the minimum of ps2_mean for hydraulic cycles where (ps1_mean is at most 160.79926 or vs1_mean is at most 0.61133), grouped by valve, ordered by valve ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[160.79926,0.61133],\\\"sql\\\":\\\"SELECT valve, MIN(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? AND vs1_mean <= ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[160.79926,0.61133],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR vs1_mean <= ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[160.79926,0.61133],\\\"sql\\\":\\\"SELECT valve, SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR vs1_mean <= ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[160.79926,0.61133],\\\"sql\\\":\\\"SELECT valve, MIN(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR vs1_mean <= ?) GROUP BY valve ORDER BY valve ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[73,104.40631],[80,104.58879],[90,104.79758],[100,104.9733]]","source":"hydraulic","split":"dev","sql":"SELECT valve, MIN(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR vs1_mean <= ?) GROUP BY valve ORDER BY valve ASC","sql_parameters":"[160.79926,0.61133]","state":"{\"question\":\"Return the minimum of ps2_mean for hydraulic cycles where (ps1_mean is at most 160.79926 or vs1_mean is at most 0.61133), 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\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}651{"category":"join/distinct_invoice/or/ranked","domain":"commerce","family_id":"68f2e64f9df8432b3dab5b9a","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"b84f75128e65371149093a06f26c407b41d6f68936ba37dba81b5f67e96635e8","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.quantity is greater than 92 or l.unit_price is at most 49.95), grouped by i.invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[92,49.95],\\\"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 > ? AND l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[92,49.95],\\\"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 > ? OR l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[92,49.95],\\\"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 > ? OR l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[92,49.95],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) 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 value ASC, i.invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-01-06\",1],[\"2010-01-18\",1],[\"2010-07-11\",1]]","source":"online_retail_ii","split":"dev","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 > ? OR l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3","sql_parameters":"[92,49.95]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.quantity is greater than 92 or l.unit_price is at most 49.95), grouped by i.invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}652{"category":"single_table/grouped","domain":"sensor","family_id":"041838376c2bcc9ff30b92a9","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"952b677c93cedc8f527e2d1ada0e38b6e057074bc1f10197e92a2514017d08cf","language":"en","license":"CC-BY-4.0","query":"Return the maximum of eps1_mean for hydraulic cycles where (ps1_mean is greater than 156.56746), grouped by valve, ordered by valve ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[156.56746],\\\"sql\\\":\\\"SELECT valve, MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[156.56746],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps1_mean > ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[156.56746],\\\"sql\\\":\\\"SELECT valve, SUM(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[156.56746],\\\"sql\\\":\\\"SELECT valve, AVG(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ?) GROUP BY valve ORDER BY valve ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[73,2740.641],[80,2728.44763],[90,2736.7313],[100,2716.9452]]","source":"hydraulic","split":"dev","sql":"SELECT valve, MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ?) GROUP BY valve ORDER BY valve ASC","sql_parameters":"[156.56746]","state":"{\"question\":\"Return the maximum of eps1_mean for hydraulic cycles where (ps1_mean is greater than 156.56746), 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\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}653{"category":"single_table/or/having","domain":"commerce","family_id":"d07aa59e862c45f7a99ecda4","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"c8f3fdd8bab4c9d51c87bc43805ae44632960783cfe80dd6098070f4f448fde4","language":"en","license":"CC-BY-4.0","query":"Return the maximum of product_related for shopping sessions where (month equals 'Dec' or product_duration is at most 3395.729484), grouped by revenue, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by revenue ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Dec\\\",3395.729484,2],\\\"sql\\\":\\\"SELECT revenue, MAX(product_related) AS value FROM shopping_sessions WHERE (month = ? OR product_duration <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Dec\\\",3395.729484,2],\\\"sql\\\":\\\"SELECT revenue, MAX(product_related) AS value FROM shopping_sessions WHERE (month = ? AND product_duration <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Dec\\\",3395.729484,2],\\\"sql\\\":\\\"SELECT revenue, MAX(product_related) AS value FROM shopping_sessions WHERE (month = ? OR product_duration <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Dec\\\",3395.729484,2],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (month = ? OR product_duration <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,449],[1,198]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, MAX(product_related) AS value FROM shopping_sessions WHERE (month = ? OR product_duration <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 5","sql_parameters":"[\"Dec\",3395.729484,2]","state":"{\"question\":\"Return the maximum of product_related for shopping sessions where (month equals 'Dec' or product_duration is at most 3395.729484), grouped by revenue, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by revenue ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}654{"category":"single_table/date/ranked","domain":"commerce","family_id":"df12b68e615402dc858b5e35","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"a41110f01b37aa5ef63e27c51c70eb45dc651cc1fc36db4e8b6b2f6680666eac","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail invoice lines where (invoice_date is on or after '2010-02-18'), grouped by country; return at most 5 groups ordered by aggregate value DESC, breaking ties by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"United Kingdom\",23013],[\"Germany\",502],[\"France\",234],[\"EIRE\",195],[\"Netherlands\",111]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5","sql_parameters":"[\"2010-02-18\"]","state":"{\"question\":\"Return the number of rows for retail invoice lines where (invoice_date is on or after '2010-02-18'), 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\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}655{"category":"single_table/or/having","domain":"sensor","family_id":"ba98c4e04fa2945953f173c7","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"68c8d2ed375e707c8212d6cabc902fc7d4a424e8c793bb78bbcfc2228339c246","language":"en","license":"CC-BY-4.0","query":"Return the average of fs1_mean for hydraulic cycles where (ps1_mean is greater than 156.56746 or fs1_mean is at most 6.63763), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[156.56746,6.63763,10],\\\"sql\\\":\\\"SELECT cooler, AVG(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? AND fs1_mean <= ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[156.56746,6.63763,10],\\\"sql\\\":\\\"SELECT cooler, AVG(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? OR fs1_mean <= ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[156.56746,6.63763,10],\\\"sql\\\":\\\"SELECT cooler, AVG(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? OR fs1_mean <= ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[156.56746,6.63763,10],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? OR fs1_mean <= ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[3,5.469690300546448],[20,6.537843797814207],[100,6.583382199730095]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, AVG(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? OR fs1_mean <= ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value ASC, cooler ASC LIMIT 3","sql_parameters":"[156.56746,6.63763,10]","state":"{\"question\":\"Return the average of fs1_mean for hydraulic cycles where (ps1_mean is greater than 156.56746 or fs1_mean is at most 6.63763), 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\":\"INTEGER\",\"cooler\":\"INTEGER\",\"cycle_id\":\"INTEGER\",\"eps1_mean\":\"REAL\",\"fs1_mean\":\"REAL\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}656{"category":"single_table/aggregate","domain":"commerce","family_id":"3bdc6070d97e79bbb50bafe1","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"e59896df5f827042f7e29b017fd06de48feafba9f6153db9f11c9c4e312ef952","language":"en","license":"CC-BY-4.0","query":"Return the minimum of product_duration for shopping sessions where (administrative is greater than 13).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[13],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (administrative > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[13],\\\"sql\\\":\\\"SELECT SUM(product_duration) AS value FROM shopping_sessions WHERE (administrative > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[13],\\\"sql\\\":\\\"SELECT AVG(product_duration) AS value FROM shopping_sessions WHERE (administrative > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[13],\\\"sql\\\":\\\"SELECT MIN(product_duration) AS value FROM shopping_sessions WHERE (administrative > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[72.41666667]]","source":"online_shoppers","split":"dev","sql":"SELECT MIN(product_duration) AS value FROM shopping_sessions WHERE (administrative > ?)","sql_parameters":"[13]","state":"{\"question\":\"Return the minimum of product_duration for shopping sessions where (administrative is greater than 13).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}657{"category":"single_table/and/ranked","domain":"commerce","family_id":"f70cd5d80959be489d0a49c9","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"81d297fa4f243087729b24f1eb29666f291a47863c2f3d8aa213ada16ea72469","language":"en","license":"CC-BY-4.0","query":"Return the minimum of product_duration for shopping sessions where (month equals 'Jul' and traffic_type equals 12), grouped by visitor_type; return at most 3 groups ordered by aggregate value ASC, breaking ties by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Jul\\\",12],\\\"sql\\\":\\\"SELECT visitor_type, MIN(product_duration) AS value FROM shopping_sessions WHERE (month = ? OR traffic_type = ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT visitor_type, MIN(product_duration) AS value FROM shopping_sessions GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Jul\\\",12],\\\"sql\\\":\\\"SELECT visitor_type, MIN(product_duration) AS value FROM shopping_sessions WHERE (month = ? AND traffic_type = ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Jul\\\"],\\\"sql\\\":\\\"SELECT visitor_type, MIN(product_duration) AS value FROM shopping_sessions WHERE (month = ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, MIN(product_duration) AS value FROM shopping_sessions WHERE (month = ? AND traffic_type = ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3","sql_parameters":"[\"Jul\",12]","state":"{\"question\":\"Return the minimum of product_duration for shopping sessions where (month equals 'Jul' and traffic_type equals 12), grouped by visitor_type; return at most 3 groups ordered by aggregate value ASC, breaking ties by visitor_type ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}658{"category":"single_table/having","domain":"sensor","family_id":"674e63a482d798d35b89e702","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"c7968930d9b6b9527ee327899c4cafa75d9449626991420020f3910600d9fdf2","language":"en","license":"CC-BY-4.0","query":"Return the sum of eps1_mean for hydraulic cycles where (ps2_mean is at most 107.72581), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[107.72581,10],\\\"sql\\\":\\\"SELECT valve, SUM(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[107.72581,10],\\\"sql\\\":\\\"SELECT valve, SUM(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[107.72581,10],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[107.72581,10],\\\"sql\\\":\\\"SELECT valve, AVG(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[90,380781.70713],[73,445081.89199],[80,447424.7072]]","source":"hydraulic","split":"dev","sql":"SELECT valve, SUM(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 3","sql_parameters":"[107.72581,10]","state":"{\"question\":\"Return the sum of eps1_mean for hydraulic cycles where (ps2_mean is at most 107.72581), 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\",\"cooler\":\"INTEGER\",\"cycle_id\":\"INTEGER\",\"eps1_mean\":\"REAL\",\"fs1_mean\":\"REAL\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}659{"category":"join/date/and/grouped","domain":"commerce","family_id":"c8459c37935bd6397251c943","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"c9c30c2020c300aeca893f547fdaaa6076fe1d6b8824426ada95e55bbb14e159","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail lines joined to their invoices where (l.unit_price is at most 49.95 and i.invoice_date is before '2011-05-10'), grouped by i.invoice_date, ordered by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[49.95,\\\"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 (l.unit_price <= ? AND i.invoice_date < ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[49.95,\\\"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 (l.unit_price <= ? OR i.invoice_date < ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[49.95,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.quantity) 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\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[49.95,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(l.quantity) 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\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-01\",52],[\"2009-12-02\",96],[\"2009-12-03\",91],[\"2009-12-04\",62],[\"2009-12-05\",28],[\"2009-12-06\",31],[\"2009-12-07\",65],[\"2009-12-08\",83],[\"2009-12-09\",86],[\"2009-12-10\",71],[\"2009-12-11\",28],[\"2009-12-13\",25],[\"2009-12-14\",68],[\"2009-12-15\",90],[\"2009-12-16\",54],[\"2009-12-17\",97],[\"2009-12-18\",54],[\"2009-12-20\",20],[\"2009-12-21\",43],[\"2009-12-22\",45],[\"2009-12-23\",27],[\"2010-01-04\",17],[\"2010-01-05\",18],[\"2010-01-06\",3],[\"2010-01-07\",31],[\"2010-01-08\",46],[\"2010-01-10\",19],[\"2010-01-11\",33],[\"2010-01-12\",44],[\"2010-01-13\",21],[\"2010-01-14\",20],[\"2010-01-15\",36],[\"2010-01-17\",13],[\"2010-01-18\",6],[\"2010-01-19\",35],[\"2010-01-20\",33],[\"2010-01-21\",40],[\"2010-01-22\",25],[\"2010-01-24\",30],[\"2010-01-25\",34],[\"2010-01-26\",23],[\"2010-01-27\",58],[\"2010-01-28\",19],[\"2010-01-29\",30],[\"2010-01-31\",41],[\"2010-02-01\",37],[\"2010-02-02\",25],[\"2010-02-03\",27],[\"2010-02-04\",47],[\"2010-02-05\",41],[\"2010-02-07\",11],[\"2010-02-08\",51],[\"2010-02-09\",36],[\"2010-02-10\",28],[\"2010-02-11\",29],[\"2010-02-12\",29],[\"2010-02-14\",17],[\"2010-02-15\",34],[\"2010-02-16\",51],[\"2010-02-17\",41],[\"2010-02-18\",32],[\"2010-02-19\",34],[\"2010-02-21\",18],[\"2010-02-22\",44],[\"2010-02-23\",19],[\"2010-02-24\",49],[\"2010-02-25\",55],[\"2010-02-26\",18],[\"2010-02-28\",37],[\"2010-03-01\",56],[\"2010-03-02\",30],[\"2010-03-03\",46],[\"2010-03-04\",31],[\"2010-03-05\",69],[\"2010-03-07\",16],[\"2010-03-08\",81],[\"2010-03-09\",46],[\"2010-03-10\",37],[\"2010-03-11\",35],[\"2010-03-12\",35],[\"2010-03-14\",22],[\"2010-03-15\",33],[\"2010-03-16\",23],[\"2010-03-17\",30],[\"2010-03-18\",65],[\"2010-03-19\",34],[\"2010-03-21\",24],[\"2010-03-22\",30],[\"2010-03-23\",52],[\"2010-03-24\",40],[\"2010-03-25\",34],[\"2010-03-26\",35],[\"2010-03-28\",13],[\"2010-03-29\",34],[\"2010-03-30\",39],[\"2010-03-31\",39],[\"2010-04-01\",34],[\"2010-04-06\",40],[\"2010-04-07\",35],[\"2010-04-08\",72],[\"2010-04-09\",20],[\"2010-04-11\",23],[\"2010-04-12\",37],[\"2010-04-13\",27],[\"2010-04-14\",45],[\"2010-04-15\",27],[\"2010-04-16\",43],[\"2010-04-18\",19],[\"2010-04-19\",56],[\"2010-04-20\",47],[\"2010-04-21\",31],[\"2010-04-22\",67],[\"2010-04-23\",37],[\"2010-04-25\",42],[\"2010-04-26\",53],[\"2010-04-27\",55],[\"2010-04-28\",46],[\"2010-04-29\",69],[\"2010-04-30\",38],[\"2010-05-02\",26],[\"2010-05-04\",16],[\"2010-05-05\",80],[\"2010-05-06\",47],[\"2010-05-07\",62],[\"2010-05-09\",45],[\"2010-05-10\",67],[\"2010-05-11\",38],[\"2010-05-12\",84],[\"2010-05-13\",28],[\"2010-05-14\",39],[\"2010-05-16\",19],[\"2010-05-17\",21],[\"2010-05-18\",42],[\"2010-05-19\",50],[\"2010-05-20\",32],[\"2010-05-21\",42],[\"2010-05-23\",28],[\"2010-05-24\",66],[\"2010-05-25\",34],[\"2010-05-26\",56],[\"2010-05-27\",60],[\"2010-05-28\",44],[\"2010-05-30\",12],[\"2010-06-01\",33],[\"2010-06-02\",45],[\"2010-06-03\",63],[\"2010-06-04\",30],[\"2010-06-06\",18],[\"2010-06-07\",58],[\"2010-06-08\",45],[\"2010-06-09\",34],[\"2010-06-10\",39],[\"2010-06-11\",45],[\"2010-06-13\",60],[\"2010-06-14\",38],[\"2010-06-15\",26],[\"2010-06-16\",58],[\"2010-06-17\",40],[\"2010-06-18\",31],[\"2010-06-20\",21],[\"2010-06-21\",16],[\"2010-06-22\",17],[\"2010-06-23\",66],[\"2010-06-24\",48],[\"2010-06-25\",19],[\"2010-06-27\",48],[\"2010-06-28\",44],[\"2010-06-29\",43],[\"2010-06-30\",40],[\"2010-07-01\",41],[\"2010-07-02\",7],[\"2010-07-04\",14],[\"2010-07-05\",59],[\"2010-07-06\",50],[\"2010-07-07\",44],[\"2010-07-08\",57],[\"2010-07-09\",7],[\"2010-07-11\",3],[\"2010-07-12\",35],[\"2010-07-13\",53],[\"2010-07-14\",19],[\"2010-07-15\",52],[\"2010-07-16\",58],[\"2010-07-18\",26],[\"2010-07-19\",31],[\"2010-07-20\",52],[\"2010-07-21\",56],[\"2010-07-22\",35],[\"2010-07-23\",24],[\"2010-07-25\",15],[\"2010-07-26\",43],[\"2010-07-27\",72],[\"2010-07-28\",30],[\"2010-07-29\",27],[\"2010-07-30\",52],[\"2010-08-01\",12],[\"2010-08-02\",54],[\"2010-08-03\",33],[\"2010-08-04\",16],[\"2010-08-05\",61],[\"2010-08-06\",24],[\"2010-08-08\",27],[\"2010-08-09\",48],[\"2010-08-10\",16],[\"2010-08-11\",24],[\"2010-08-12\",39],[\"2010-08-13\",48],[\"2010-08-15\",51],[\"2010-08-16\",21],[\"2010-08-17\",44],[\"2010-08-18\",24],[\"2010-08-19\",52],[\"2010-08-20\",44],[\"2010-08-22\",26],[\"2010-08-23\",28],[\"2010-08-24\",21],[\"2010-08-25\",46],[\"2010-08-26\",39],[\"2010-08-27\",19],[\"2010-08-29\",22],[\"2010-08-31\",39],[\"2010-09-01\",36],[\"2010-09-02\",69],[\"2010-09-03\",64],[\"2010-09-05\",42],[\"2010-09-06\",25],[\"2010-09-07\",37],[\"2010-09-08\",9],[\"2010-09-09\",30],[\"2010-09-10\",17],[\"2010-09-12\",16],[\"2010-09-13\",71],[\"2010-09-14\",58],[\"2010-09-15\",20],[\"2010-09-16\",45],[\"2010-09-17\",35],[\"2010-09-19\",27],[\"2010-09-20\",61],[\"2010-09-21\",91],[\"2010-09-22\",43],[\"2010-09-23\",31],[\"2010-09-24\",35],[\"2010-09-26\",64],[\"2010-09-27\",54],[\"2010-09-28\",80],[\"2010-09-29\",53],[\"2010-09-30\",52],[\"2010-10-01\",39],[\"2010-10-03\",23],[\"2010-10-04\",45],[\"2010-10-05\",52],[\"2010-10-06\",51],[\"2010-10-07\",59],[\"2010-10-08\",47],[\"2010-10-10\",32],[\"2010-10-11\",51],[\"2010-10-12\",74],[\"2010-10-13\",42],[\"2010-10-14\",48],[\"2010-10-15\",83],[\"2010-10-17\",6],[\"2010-10-18\",90],[\"2010-10-19\",42],[\"2010-10-20\",81],[\"2010-10-21\",65],[\"2010-10-22\",60],[\"2010-10-24\",42],[\"2010-10-25\",35],[\"2010-10-26\",73],[\"2010-10-27\",43],[\"2010-10-28\",38],[\"2010-10-29\",75],[\"2010-10-31\",40],[\"2010-11-01\",21],[\"2010-11-02\",59],[\"2010-11-03\",73],[\"2010-11-04\",116],[\"2010-11-05\",30],[\"2010-11-07\",27],[\"2010-11-08\",27],[\"2010-11-09\",65],[\"2010-11-10\",103],[\"2010-11-11\",95],[\"2010-11-12\",78],[\"2010-11-14\",30],[\"2010-11-15\",66],[\"2010-11-16\",102],[\"2010-11-17\",94],[\"2010-11-18\",89],[\"2010-11-19\",68],[\"2010-11-21\",38],[\"2010-11-22\",65],[\"2010-11-23\",73],[\"2010-11-24\",94],[\"2010-11-25\",129],[\"2010-11-26\",47],[\"2010-11-28\",50],[\"2010-11-29\",67],[\"2010-11-30\",95],[\"2010-12-01\",248],[\"2010-12-02\",226],[\"2010-12-03\",72],[\"2010-12-05\",78],[\"2010-12-06\",116],[\"2010-12-07\",144],[\"2010-12-08\",178],[\"2010-12-09\",194],[\"2010-12-10\",45],[\"2010-12-12\",19],[\"2010-12-13\",55],[\"2010-12-14\",80],[\"2010-12-15\",56],[\"2010-12-16\",117],[\"2010-12-17\",57],[\"2010-12-19\",12],[\"2010-12-20\",39],[\"2010-12-21\",35],[\"2010-12-22\",17],[\"2010-12-23\",26],[\"2011-01-04\",11],[\"2011-01-05\",39],[\"2011-01-06\",30],[\"2011-01-07\",28],[\"2011-01-09\",26],[\"2011-01-10\",9],[\"2011-01-11\",52],[\"2011-01-12\",28],[\"2011-01-13\",15],[\"2011-01-14\",37],[\"2011-01-16\",2],[\"2011-01-17\",40],[\"2011-01-18\",28],[\"2011-01-19\",9],[\"2011-01-20\",45],[\"2011-01-21\",42],[\"2011-01-23\",10],[\"2011-01-24\",37],[\"2011-01-25\",52],[\"2011-01-26\",36],[\"2011-01-27\",37],[\"2011-01-28\",10],[\"2011-01-30\",5],[\"2011-01-31\",35],[\"2011-02-01\",42],[\"2011-02-02\",48],[\"2011-02-03\",27],[\"2011-02-04\",41],[\"2011-02-07\",31],[\"2011-02-08\",16],[\"2011-02-09\",13],[\"2011-02-10\",33],[\"2011-02-11\",28],[\"2011-02-13\",5],[\"2011-02-14\",25],[\"2011-02-15\",34],[\"2011-02-16\",55],[\"2011-02-17\",57],[\"2011-02-18\",32],[\"2011-02-20\",9],[\"2011-02-21\",18],[\"2011-02-22\",29],[\"2011-02-23\",27],[\"2011-02-24\",25],[\"2011-02-25\",40],[\"2011-02-27\",13],[\"2011-02-28\",22],[\"2011-03-01\",52],[\"2011-03-02\",17],[\"2011-03-03\",39],[\"2011-03-04\",43],[\"2011-03-06\",16],[\"2011-03-07\",48],[\"2011-03-08\",33],[\"2011-03-09\",45],[\"2011-03-10\",43],[\"2011-03-11\",49],[\"2011-03-14\",35],[\"2011-03-15\",19],[\"2011-03-16\",46],[\"2011-03-17\",51],[\"2011-03-18\",58],[\"2011-03-20\",65],[\"2011-03-21\",47],[\"2011-03-22\",16],[\"2011-03-23\",44],[\"2011-03-24\",24],[\"2011-03-25\",39],[\"2011-03-27\",21],[\"2011-03-28\",42],[\"2011-03-29\",19],[\"2011-03-30\",50],[\"2011-03-31\",58],[\"2011-04-01\",74],[\"2011-04-03\",19],[\"2011-04-04\",17],[\"2011-04-05\",45],[\"2011-04-06\",20],[\"2011-04-07\",53],[\"2011-04-08\",67],[\"2011-04-10\",2],[\"2011-04-11\",46],[\"2011-04-12\",32],[\"2011-04-13\",43],[\"2011-04-14\",77],[\"2011-04-15\",18],[\"2011-04-17\",21],[\"2011-04-18\",32],[\"2011-04-19\",20],[\"2011-04-20\",52],[\"2011-04-21\",61],[\"2011-04-26\",58],[\"2011-04-27\",55],[\"2011-04-28\",55],[\"2011-05-01\",5],[\"2011-05-03\",54],[\"2011-05-04\",59],[\"2011-05-05\",97],[\"2011-05-06\",59],[\"2011-05-08\",32],[\"2011-05-09\",52]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.invoice_date, COUNT(*) 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","sql_parameters":"[49.95,\"2011-05-10\"]","state":"{\"question\":\"Return the number of rows for retail lines joined to their invoices where (l.unit_price is at most 49.95 and i.invoice_date is before '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\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}660{"category":"single_table/and/ranked","domain":"sensor","family_id":"eec843d418cd8be905be37eb","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"db0d26d4b2369ab81bfee71beabcb04d17e73c0c409c51e2d6fd1a215c38a5a9","language":"en","license":"CC-BY-4.0","query":"Return the minimum of ts1_mean for hydraulic cycles where (fs1_mean is at most 3.36184 and vs1_mean is at most 0.56377), grouped by pump_leakage; return at most 3 groups ordered by aggregate value ASC, breaking ties by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[3.36184,0.56377],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(ts1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? AND vs1_mean <= ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[3.36184,0.56377],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(ts1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? OR vs1_mean <= ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(ts1_mean) AS value FROM hydraulic_cycles GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[3.36184],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(ts1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, MIN(ts1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? AND vs1_mean <= ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3","sql_parameters":"[3.36184,0.56377]","state":"{\"question\":\"Return the minimum of ts1_mean for hydraulic cycles where (fs1_mean is at most 3.36184 and vs1_mean is at most 0.56377), 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\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}661{"category":"single_table/and/having","domain":"sensor","family_id":"79196a592d798b76169035f8","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"aec04d6f53e17ba7ab78c3d46777246f5b7be8c99b9ebb52c69ed9d8a5fc9ad1","language":"en","license":"CC-BY-4.0","query":"Return the sum of vs1_mean for hydraulic cycles where (cooler equals 20 and ps1_mean is at most 172.56377), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[20,172.56377,2],\\\"sql\\\":\\\"SELECT cooler, SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? OR ps1_mean <= ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[20,172.56377,2],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (cooler = ? AND ps1_mean <= ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[20,172.56377,2],\\\"sql\\\":\\\"SELECT cooler, AVG(vs1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? AND ps1_mean <= ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[20,172.56377,2],\\\"sql\\\":\\\"SELECT cooler, SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? AND ps1_mean <= ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[20,447.04355]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? AND ps1_mean <= ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5","sql_parameters":"[20,172.56377,2]","state":"{\"question\":\"Return the sum of vs1_mean for hydraulic cycles where (cooler equals 20 and ps1_mean is at most 172.56377), 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_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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}662{"category":"single_table/or/having","domain":"commerce","family_id":"6dcdbf5f986b54863b37c3be","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"ec48bceab744ceec895421404b0ef703a55e51545563633da05cc7fb9edffcb1","language":"en","license":"CC-BY-4.0","query":"Return the minimum of unit_price for retail invoice lines where (country equals 'Canada' or unit_price is greater than 49.95), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Canada\\\",49.95,10],\\\"sql\\\":\\\"SELECT country, MIN(unit_price) AS value FROM retail_lines WHERE (country = ? AND unit_price > ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Canada\\\",49.95],\\\"sql\\\":\\\"SELECT country, MIN(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price > ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Canada\\\",49.95,10],\\\"sql\\\":\\\"SELECT country, MIN(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price > ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Canada\\\",49.95,10],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? OR unit_price > ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"EIRE\",50.0],[\"United Kingdom\",50.0]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, MIN(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price > ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3","sql_parameters":"[\"Canada\",49.95,10]","state":"{\"question\":\"Return the minimum of unit_price for retail invoice lines where (country equals 'Canada' or unit_price is greater than 49.95), 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\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}663{"category":"single_table/date/grouped","domain":"commerce","family_id":"80dac642a79110b2ada29786","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"d10763886713389853f7d35ad4a30090e6ee472eef952a920fcbda5dddaac180","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail invoice lines where (invoice_date is before '2010-02-18'), grouped by country, ordered by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT country, MIN(quantity) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country ORDER BY country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",5],[\"Cyprus\",6],[\"EIRE\",9],[\"Finland\",4],[\"France\",4],[\"Germany\",17],[\"Netherlands\",7],[\"Portugal\",4],[\"Spain\",5],[\"Sweden\",10],[\"United Kingdom\",2330]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country ORDER BY country ASC","sql_parameters":"[\"2010-02-18\"]","state":"{\"question\":\"Return the number of rows for retail invoice lines where (invoice_date is before '2010-02-18'), 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\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}664{"category":"single_table/ranked","domain":"commerce","family_id":"69b89b103415a3526258cd6f","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"4ae5ccd4a4ff86b3d45244f0523acddf5a27d29769211ef8d2ca11db00757759","language":"en","license":"CC-BY-4.0","query":"Return the average of unit_price for retail invoice lines where (quantity is greater than 25), grouped by country; return at most 3 groups ordered by aggregate value ASC, breaking ties by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[25],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (quantity > ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[25],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (quantity > ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[25],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (quantity > ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[25],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (quantity > ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Belgium\",0.44333333333333336],[\"Italy\",0.85],[\"Japan\",0.9500000000000001]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (quantity > ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3","sql_parameters":"[25]","state":"{\"question\":\"Return the average of unit_price for retail invoice lines where (quantity is greater than 25), 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\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}665{"category":"join/ranked","domain":"commerce","family_id":"9320ee647fca5f8acbd26f41","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"42d89fbe9964e0a02238390d881cd0303c99d57005af89b3844d5a301c413ada","language":"en","license":"CC-BY-4.0","query":"Return the maximum of l.quantity for retail lines joined to their invoices where (i.country equals 'Finland'), grouped by i.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Finland\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Finland\\\"],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Finland\\\"],\\\"sql\\\":\\\"SELECT i.country, MAX(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Finland\\\"],\\\"sql\\\":\\\"SELECT i.country, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Finland\",144]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, MAX(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3","sql_parameters":"[\"Finland\"]","state":"{\"question\":\"Return the maximum of l.quantity for retail lines joined to their invoices where (i.country equals 'Finland'), grouped by i.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}666{"category":"single_table/or/having","domain":"commerce","family_id":"f6515e58fedb6b161f8527ae","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"e87d5859392589efab23ed121533472ed13f60f240c0081a53e81429ebe88d8d","language":"en","license":"CC-BY-4.0","query":"Return the average of administrative for shopping sessions where (region equals 4 or product_duration is greater than 3395.729484), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[4,3395.729484,10],\\\"sql\\\":\\\"SELECT visitor_type, AVG(administrative) AS value FROM shopping_sessions WHERE (region = ? AND product_duration > ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[4,3395.729484,10],\\\"sql\\\":\\\"SELECT visitor_type, AVG(administrative) AS value FROM shopping_sessions WHERE (region = ? OR product_duration > ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[4,3395.729484],\\\"sql\\\":\\\"SELECT visitor_type, AVG(administrative) AS value FROM shopping_sessions WHERE (region = ? OR product_duration > ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[4,3395.729484,10],\\\"sql\\\":\\\"SELECT visitor_type, AVG(administrative) AS value FROM shopping_sessions WHERE (region = ? OR product_duration > ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value DESC, visitor_type ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"New_Visitor\",2.9367088607594938],[\"Returning_Visitor\",3.8125659978880675]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, AVG(administrative) AS value FROM shopping_sessions WHERE (region = ? OR product_duration > ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value ASC, visitor_type ASC LIMIT 3","sql_parameters":"[4,3395.729484,10]","state":"{\"question\":\"Return the average of administrative for shopping sessions where (region equals 4 or product_duration is greater than 3395.729484), 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_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}667{"category":"single_table/date/or/grouped","domain":"commerce","family_id":"e12fc0f562bfd0535e34778c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"02ddb5e33e16dcbb3fa384ea2fdb6064acd1654b5f61a77a85a95d2a1dd259f6","language":"en","license":"CC-BY-4.0","query":"Return the sum of quantity for retail invoice lines where (quantity is at most 25 or invoice_date is on or after '2011-09-29'), grouped by invoice_date, ordered by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[25,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[25,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[25,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[25,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-01\",394],[\"2009-12-02\",755],[\"2009-12-03\",700],[\"2009-12-04\",403],[\"2009-12-05\",277],[\"2009-12-06\",166],[\"2009-12-07\",534],[\"2009-12-08\",501],[\"2009-12-09\",416],[\"2009-12-10\",427],[\"2009-12-11\",149],[\"2009-12-13\",195],[\"2009-12-14\",380],[\"2009-12-15\",525],[\"2009-12-16\",454],[\"2009-12-17\",667],[\"2009-12-18\",391],[\"2009-12-20\",176],[\"2009-12-21\",201],[\"2009-12-22\",160],[\"2009-12-23\",86],[\"2010-01-04\",81],[\"2010-01-05\",52],[\"2010-01-06\",19],[\"2010-01-07\",65],[\"2010-01-08\",270],[\"2010-01-10\",118],[\"2010-01-11\",305],[\"2010-01-12\",184],[\"2010-01-13\",107],[\"2010-01-14\",148],[\"2010-01-15\",224],[\"2010-01-17\",126],[\"2010-01-18\",36],[\"2010-01-19\",272],[\"2010-01-20\",197],[\"2010-01-21\",223],[\"2010-01-22\",114],[\"2010-01-24\",242],[\"2010-01-25\",145],[\"2010-01-26\",166],[\"2010-01-27\",336],[\"2010-01-28\",133],[\"2010-01-29\",128],[\"2010-01-31\",347],[\"2010-02-01\",242],[\"2010-02-02\",193],[\"2010-02-03\",328],[\"2010-02-04\",215],[\"2010-02-05\",289],[\"2010-02-07\",31],[\"2010-02-08\",305],[\"2010-02-09\",249],[\"2010-02-10\",248],[\"2010-02-11\",122],[\"2010-02-12\",194],[\"2010-02-14\",87],[\"2010-02-15\",232],[\"2010-02-16\",333],[\"2010-02-17\",239],[\"2010-02-18\",200],[\"2010-02-19\",72],[\"2010-02-21\",172],[\"2010-02-22\",356],[\"2010-02-23\",95],[\"2010-02-24\",213],[\"2010-02-25\",296],[\"2010-02-26\",49],[\"2010-02-28\",242],[\"2010-03-01\",480],[\"2010-03-02\",167],[\"2010-03-03\",443],[\"2010-03-04\",182],[\"2010-03-05\",371],[\"2010-03-07\",60],[\"2010-03-08\",504],[\"2010-03-09\",331],[\"2010-03-10\",123],[\"2010-03-11\",246],[\"2010-03-12\",289],[\"2010-03-14\",181],[\"2010-03-15\",184],[\"2010-03-16\",123],[\"2010-03-17\",110],[\"2010-03-18\",291],[\"2010-03-19\",88],[\"2010-03-21\",151],[\"2010-03-22\",146],[\"2010-03-23\",260],[\"2010-03-24\",282],[\"2010-03-25\",204],[\"2010-03-26\",199],[\"2010-03-28\",120],[\"2010-03-29\",142],[\"2010-03-30\",226],[\"2010-03-31\",216],[\"2010-04-01\",257],[\"2010-04-06\",272],[\"2010-04-07\",266],[\"2010-04-08\",299],[\"2010-04-09\",116],[\"2010-04-11\",216],[\"2010-04-12\",249],[\"2010-04-13\",122],[\"2010-04-14\",318],[\"2010-04-15\",133],[\"2010-04-16\",178],[\"2010-04-18\",82],[\"2010-04-19\",251],[\"2010-04-20\",264],[\"2010-04-21\",230],[\"2010-04-22\",359],[\"2010-04-23\",154],[\"2010-04-25\",285],[\"2010-04-26\",360],[\"2010-04-27\",324],[\"2010-04-28\",313],[\"2010-04-29\",330],[\"2010-04-30\",243],[\"2010-05-02\",286],[\"2010-05-04\",101],[\"2010-05-05\",620],[\"2010-05-06\",243],[\"2010-05-07\",558],[\"2010-05-09\",275],[\"2010-05-10\",479],[\"2010-05-11\",374],[\"2010-05-12\",304],[\"2010-05-13\",156],[\"2010-05-14\",103],[\"2010-05-16\",107],[\"2010-05-17\",57],[\"2010-05-18\",222],[\"2010-05-19\",286],[\"2010-05-20\",278],[\"2010-05-21\",137],[\"2010-05-23\",291],[\"2010-05-24\",451],[\"2010-05-25\",116],[\"2010-05-26\",369],[\"2010-05-27\",452],[\"2010-05-28\",214],[\"2010-05-30\",50],[\"2010-06-01\",137],[\"2010-06-02\",289],[\"2010-06-03\",437],[\"2010-06-04\",108],[\"2010-06-06\",198],[\"2010-06-07\",441],[\"2010-06-08\",362],[\"2010-06-09\",178],[\"2010-06-10\",250],[\"2010-06-11\",228],[\"2010-06-13\",621],[\"2010-06-14\",222],[\"2010-06-15\",90],[\"2010-06-16\",289],[\"2010-06-17\",172],[\"2010-06-18\",142],[\"2010-06-20\",83],[\"2010-06-21\",117],[\"2010-06-22\",156],[\"2010-06-23\",547],[\"2010-06-24\",314],[\"2010-06-25\",140],[\"2010-06-27\",360],[\"2010-06-28\",274],[\"2010-06-29\",240],[\"2010-06-30\",169],[\"2010-07-01\",262],[\"2010-07-02\",13],[\"2010-07-04\",46],[\"2010-07-05\",402],[\"2010-07-06\",234],[\"2010-07-07\",158],[\"2010-07-08\",316],[\"2010-07-09\",58],[\"2010-07-11\",4],[\"2010-07-12\",168],[\"2010-07-13\",251],[\"2010-07-14\",81],[\"2010-07-15\",257],[\"2010-07-16\",449],[\"2010-07-18\",191],[\"2010-07-19\",248],[\"2010-07-20\",361],[\"2010-07-21\",320],[\"2010-07-22\",385],[\"2010-07-23\",68],[\"2010-07-25\",67],[\"2010-07-26\",251],[\"2010-07-27\",339],[\"2010-07-28\",188],[\"2010-07-29\",194],[\"2010-07-30\",274],[\"2010-08-01\",55],[\"2010-08-02\",426],[\"2010-08-03\",289],[\"2010-08-04\",164],[\"2010-08-05\",440],[\"2010-08-06\",153],[\"2010-08-08\",177],[\"2010-08-09\",194],[\"2010-08-10\",77],[\"2010-08-11\",160],[\"2010-08-12\",188],[\"2010-08-13\",254],[\"2010-08-15\",256],[\"2010-08-16\",57],[\"2010-08-17\",332],[\"2010-08-18\",141],[\"2010-08-19\",253],[\"2010-08-20\",319],[\"2010-08-22\",178],[\"2010-08-23\",335],[\"2010-08-24\",19],[\"2010-08-25\",364],[\"2010-08-26\",286],[\"2010-08-27\",184],[\"2010-08-29\",166],[\"2010-08-31\",292],[\"2010-09-01\",287],[\"2010-09-02\",386],[\"2010-09-03\",364],[\"2010-09-05\",421],[\"2010-09-06\",156],[\"2010-09-07\",221],[\"2010-09-08\",78],[\"2010-09-09\",253],[\"2010-09-10\",146],[\"2010-09-12\",25],[\"2010-09-13\",299],[\"2010-09-14\",621],[\"2010-09-15\",120],[\"2010-09-16\",384],[\"2010-09-17\",259],[\"2010-09-19\",149],[\"2010-09-20\",405],[\"2010-09-21\",675],[\"2010-09-22\",358],[\"2010-09-23\",205],[\"2010-09-24\",142],[\"2010-09-26\",318],[\"2010-09-27\",259],[\"2010-09-28\",390],[\"2010-09-29\",525],[\"2010-09-30\",301],[\"2010-10-01\",303],[\"2010-10-03\",316],[\"2010-10-04\",346],[\"2010-10-05\",304],[\"2010-10-06\",321],[\"2010-10-07\",501],[\"2010-10-08\",208],[\"2010-10-10\",189],[\"2010-10-11\",420],[\"2010-10-12\",558],[\"2010-10-13\",258],[\"2010-10-14\",280],[\"2010-10-15\",505],[\"2010-10-17\",6],[\"2010-10-18\",692],[\"2010-10-19\",239],[\"2010-10-20\",551],[\"2010-10-21\",348],[\"2010-10-22\",513],[\"2010-10-24\",337],[\"2010-10-25\",213],[\"2010-10-26\",469],[\"2010-10-27\",523],[\"2010-10-28\",334],[\"2010-10-29\",526],[\"2010-10-31\",208],[\"2010-11-01\",146],[\"2010-11-02\",576],[\"2010-11-03\",536],[\"2010-11-04\",730],[\"2010-11-05\",148],[\"2010-11-07\",133],[\"2010-11-08\",225],[\"2010-11-09\",410],[\"2010-11-10\",643],[\"2010-11-11\",523],[\"2010-11-12\",682],[\"2010-11-14\",212],[\"2010-11-15\",409],[\"2010-11-16\",619],[\"2010-11-17\",756],[\"2010-11-18\",780],[\"2010-11-19\",295],[\"2010-11-21\",319],[\"2010-11-22\",565],[\"2010-11-23\",637],[\"2010-11-24\",603],[\"2010-11-25\",1078],[\"2010-11-26\",323],[\"2010-11-28\",332],[\"2010-11-29\",407],[\"2010-11-30\",921],[\"2010-12-01\",1188],[\"2010-12-02\",1860],[\"2010-12-03\",390],[\"2010-12-05\",276],[\"2010-12-06\",938],[\"2010-12-07\",662],[\"2010-12-08\",1236],[\"2010-12-09\",1310],[\"2010-12-10\",330],[\"2010-12-12\",39],[\"2010-12-13\",245],[\"2010-12-14\",776],[\"2010-12-15\",411],[\"2010-12-16\",864],[\"2010-12-17\",510],[\"2010-12-19\",20],[\"2010-12-20\",260],[\"2010-12-21\",240],[\"2010-12-22\",163],[\"2010-12-23\",98],[\"2011-01-04\",90],[\"2011-01-05\",180],[\"2011-01-06\",205],[\"2011-01-07\",63],[\"2011-01-09\",187],[\"2011-01-10\",8],[\"2011-01-11\",244],[\"2011-01-12\",155],[\"2011-01-13\",54],[\"2011-01-14\",403],[\"2011-01-16\",17],[\"2011-01-17\",357],[\"2011-01-18\",264],[\"2011-01-19\",80],[\"2011-01-20\",338],[\"2011-01-21\",174],[\"2011-01-23\",67],[\"2011-01-24\",224],[\"2011-01-25\",229],[\"2011-01-26\",307],[\"2011-01-27\",301],[\"2011-01-28\",90],[\"2011-01-30\",76],[\"2011-01-31\",243],[\"2011-02-01\",210],[\"2011-02-02\",370],[\"2011-02-03\",189],[\"2011-02-04\",166],[\"2011-02-07\",152],[\"2011-02-08\",37],[\"2011-02-09\",77],[\"2011-02-10\",154],[\"2011-02-11\",151],[\"2011-02-13\",40],[\"2011-02-14\",116],[\"2011-02-15\",184],[\"2011-02-16\",411],[\"2011-02-17\",453],[\"2011-02-18\",278],[\"2011-02-20\",46],[\"2011-02-21\",113],[\"2011-02-22\",205],[\"2011-02-23\",216],[\"2011-02-24\",207],[\"2011-02-25\",255],[\"2011-02-27\",172],[\"2011-02-28\",139],[\"2011-03-01\",277],[\"2011-03-02\",69],[\"2011-03-03\",305],[\"2011-03-04\",280],[\"2011-03-06\",121],[\"2011-03-07\",212],[\"2011-03-08\",265],[\"2011-03-09\",495],[\"2011-03-10\",330],[\"2011-03-11\",206],[\"2011-03-14\",199],[\"2011-03-15\",137],[\"2011-03-16\",251],[\"2011-03-17\",274],[\"2011-03-18\",320],[\"2011-03-20\",373],[\"2011-03-21\",379],[\"2011-03-22\",96],[\"2011-03-23\",107],[\"2011-03-24\",175],[\"2011-03-25\",170],[\"2011-03-27\",138],[\"2011-03-28\",276],[\"2011-03-29\",167],[\"2011-03-30\",332],[\"2011-03-31\",300],[\"2011-04-01\",357],[\"2011-04-03\",118],[\"2011-04-04\",49],[\"2011-04-05\",162],[\"2011-04-06\",185],[\"2011-04-07\",329],[\"2011-04-08\",574],[\"2011-04-10\",48],[\"2011-04-11\",231],[\"2011-04-12\",232],[\"2011-04-13\",233],[\"2011-04-14\",427],[\"2011-04-15\",129],[\"2011-04-17\",221],[\"2011-04-18\",216],[\"2011-04-19\",115],[\"2011-04-20\",434],[\"2011-04-21\",327],[\"2011-04-26\",438],[\"2011-04-27\",267],[\"2011-04-28\",370],[\"2011-05-01\",21],[\"2011-05-03\",312],[\"2011-05-04\",352],[\"2011-05-05\",561],[\"2011-05-06\",383],[\"2011-05-08\",295],[\"2011-05-09\",434],[\"2011-05-10\",421],[\"2011-05-11\",311],[\"2011-05-12\",419],[\"2011-05-13\",500],[\"2011-05-15\",49],[\"2011-05-16\",544],[\"2011-05-17\",399],[\"2011-05-18\",366],[\"2011-05-19\",531],[\"2011-05-20\",377],[\"2011-05-22\",306],[\"2011-05-23\",335],[\"2011-05-24\",453],[\"2011-05-25\",301],[\"2011-05-26\",458],[\"2011-05-27\",366],[\"2011-05-29\",56],[\"2011-05-31\",218],[\"2011-06-01\",174],[\"2011-06-02\",404],[\"2011-06-03\",171],[\"2011-06-05\",210],[\"2011-06-06\",240],[\"2011-06-07\",442],[\"2011-06-08\",585],[\"2011-06-09\",557],[\"2011-06-10\",151],[\"2011-06-12\",37],[\"2011-06-13\",226],[\"2011-06-14\",277],[\"2011-06-15\",96],[\"2011-06-16\",917],[\"2011-06-17\",251],[\"2011-06-19\",163],[\"2011-06-20\",172],[\"2011-06-21\",265],[\"2011-06-22\",250],[\"2011-06-23\",140],[\"2011-06-24\",245],[\"2011-06-26\",115],[\"2011-06-27\",56],[\"2011-06-28\",332],[\"2011-06-29\",267],[\"2011-06-30\",191],[\"2011-07-01\",95],[\"2011-07-03\",78],[\"2011-07-04\",208],[\"2011-07-05\",322],[\"2011-07-06\",319],[\"2011-07-07\",225],[\"2011-07-08\",49],[\"2011-07-10\",29],[\"2011-07-11\",215],[\"2011-07-12\",231],[\"2011-07-13\",413],[\"2011-07-14\",306],[\"2011-07-15\",348],[\"2011-07-17\",290],[\"2011-07-18\",89],[\"2011-07-19\",333],[\"2011-07-20\",284],[\"2011-07-21\",300],[\"2011-07-22\",279],[\"2011-07-24\",278],[\"2011-07-25\",466],[\"2011-07-26\",234],[\"2011-07-27\",80],[\"2011-07-28\",581],[\"2011-07-29\",303],[\"2011-07-31\",171],[\"2011-08-01\",143],[\"2011-08-02\",141],[\"2011-08-03\",230],[\"2011-08-04\",494],[\"2011-08-05\",226],[\"2011-08-07\",378],[\"2011-08-08\",104],[\"2011-08-09\",221],[\"2011-08-10\",295],[\"2011-08-11\",199],[\"2011-08-12\",136],[\"2011-08-14\",130],[\"2011-08-15\",325],[\"2011-08-16\",307],[\"2011-08-17\",84],[\"2011-08-18\",258],[\"2011-08-19\",339],[\"2011-08-21\",192],[\"2011-08-22\",420],[\"2011-08-23\",338],[\"2011-08-24\",546],[\"2011-08-25\",374],[\"2011-08-26\",125],[\"2011-08-28\",65],[\"2011-08-30\",92],[\"2011-08-31\",35],[\"2011-09-01\",376],[\"2011-09-02\",284],[\"2011-09-04\",276],[\"2011-09-05\",171],[\"2011-09-06\",357],[\"2011-09-07\",77],[\"2011-09-08\",399],[\"2011-09-09\",322],[\"2011-09-11\",310],[\"2011-09-12\",604],[\"2011-09-13\",114],[\"2011-09-14\",782],[\"2011-09-15\",238],[\"2011-09-16\",157],[\"2011-09-18\",7],[\"2011-09-19\",355],[\"2011-09-20\",427],[\"2011-09-21\",297],[\"2011-09-22\",535],[\"2011-09-23\",102],[\"2011-09-25\",223],[\"2011-09-26\",212],[\"2011-09-27\",324],[\"2011-09-28\",357],[\"2011-09-29\",1774],[\"2011-09-30\",1034],[\"2011-10-02\",384],[\"2011-10-03\",2297],[\"2011-10-04\",4581],[\"2011-10-05\",1347],[\"2011-10-06\",4536],[\"2011-10-07\",5337],[\"2011-10-09\",53],[\"2011-10-10\",1405],[\"2011-10-11\",805],[\"2011-10-12\",777],[\"2011-10-13\",1257],[\"2011-10-14\",623],[\"2011-10-17\",3588],[\"2011-10-18\",1268],[\"2011-10-19\",2561],[\"2011-10-20\",1091],[\"2011-10-21\",505],[\"2011-10-23\",8],[\"2011-10-24\",4121],[\"2011-10-25\",3228],[\"2011-10-26\",3331],[\"2011-10-27\",2110],[\"2011-10-28\",2141],[\"2011-10-30\",951],[\"2011-10-31\",1511],[\"2011-11-01\",1207],[\"2011-11-02\",2165],[\"2011-11-03\",6577],[\"2011-11-04\",1086],[\"2011-11-06\",777],[\"2011-11-07\",1587],[\"2011-11-08\",1944],[\"2011-11-09\",6634],[\"2011-11-10\",1334],[\"2011-11-11\",2275],[\"2011-11-13\",655],[\"2011-11-14\",1278],[\"2011-11-15\",2700],[\"2011-11-16\",3731],[\"2011-11-17\",3706],[\"2011-11-18\",2929],[\"2011-11-20\",1092],[\"2011-11-21\",1311],[\"2011-11-22\",5811],[\"2011-11-23\",3107],[\"2011-11-24\",3689],[\"2011-11-25\",2102],[\"2011-11-27\",39],[\"2011-11-28\",5736],[\"2011-11-29\",1952],[\"2011-11-30\",918],[\"2011-12-01\",4298],[\"2011-12-02\",1990],[\"2011-12-04\",1007],[\"2011-12-05\",3775],[\"2011-12-06\",3190],[\"2011-12-07\",1877],[\"2011-12-08\",1341],[\"2011-12-09\",842]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC","sql_parameters":"[25,\"2011-09-29\"]","state":"{\"question\":\"Return the sum of quantity for retail invoice lines where (quantity is at most 25 or invoice_date is on or after '2011-09-29'), 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\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}668{"category":"single_table/date/and/grouped","domain":"commerce","family_id":"cd9d17f3f82c88669927e289","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"129cadca343d826dee9c6278bf8736414460355d6f9c35581780b7956ea76f46","language":"en","license":"CC-BY-4.0","query":"Return the average of unit_price for retail invoice lines where (country equals 'Finland' and invoice_date is before '2010-02-18'), grouped by invoice_date, ordered by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Finland\\\",\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Finland\\\",\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Finland\\\",\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Finland\\\",\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-13\",12.7225]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC","sql_parameters":"[\"Finland\",\"2010-02-18\"]","state":"{\"question\":\"Return the average of unit_price for retail invoice lines where (country equals 'Finland' and invoice_date is before '2010-02-18'), 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\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}669{"category":"single_table/date/or/grouped","domain":"commerce","family_id":"0c79d73a1c56d86ea7df50fe","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"5809b0980aeabcff06b38c559c37693b5dd5fcb19d2db8ff541e3e1d37293342","language":"en","license":"CC-BY-4.0","query":"Return the minimum of quantity for retail invoice lines where (quantity is greater than 25 or invoice_date is before '2010-02-18'), grouped by invoice_date, ordered by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[25,\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (quantity > ? OR invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[25,\\\"2010-02-18\\\"],\\\"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_3\":\"{\\\"parameters\\\":[25,\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (quantity > ? OR invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[25,\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (quantity > ? OR invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-01\",1],[\"2009-12-02\",1],[\"2009-12-03\",1],[\"2009-12-04\",1],[\"2009-12-05\",1],[\"2009-12-06\",1],[\"2009-12-07\",1],[\"2009-12-08\",1],[\"2009-12-09\",1],[\"2009-12-10\",1],[\"2009-12-11\",1],[\"2009-12-13\",1],[\"2009-12-14\",1],[\"2009-12-15\",1],[\"2009-12-16\",1],[\"2009-12-17\",1],[\"2009-12-18\",1],[\"2009-12-20\",1],[\"2009-12-21\",1],[\"2009-12-22\",1],[\"2009-12-23\",1],[\"2010-01-04\",1],[\"2010-01-05\",1],[\"2010-01-06\",1],[\"2010-01-07\",1],[\"2010-01-08\",3],[\"2010-01-10\",2],[\"2010-01-11\",1],[\"2010-01-12\",1],[\"2010-01-13\",1],[\"2010-01-14\",1],[\"2010-01-15\",1],[\"2010-01-17\",6],[\"2010-01-18\",6],[\"2010-01-19\",2],[\"2010-01-20\",1],[\"2010-01-21\",1],[\"2010-01-22\",1],[\"2010-01-24\",3],[\"2010-01-25\",1],[\"2010-01-26\",1],[\"2010-01-27\",1],[\"2010-01-28\",1],[\"2010-01-29\",1],[\"2010-01-31\",1],[\"2010-02-01\",1],[\"2010-02-02\",1],[\"2010-02-03\",1],[\"2010-02-04\",1],[\"2010-02-05\",1],[\"2010-02-07\",1],[\"2010-02-08\",1],[\"2010-02-09\",1],[\"2010-02-10\",1],[\"2010-02-11\",1],[\"2010-02-12\",1],[\"2010-02-14\",1],[\"2010-02-15\",2],[\"2010-02-16\",1],[\"2010-02-17\",1],[\"2010-02-18\",32],[\"2010-02-19\",30],[\"2010-02-21\",120],[\"2010-02-22\",36],[\"2010-02-23\",50],[\"2010-02-24\",40],[\"2010-02-25\",32],[\"2010-02-26\",36],[\"2010-02-28\",27],[\"2010-03-01\",32],[\"2010-03-02\",27],[\"2010-03-03\",30],[\"2010-03-04\",30],[\"2010-03-05\",48],[\"2010-03-07\",48],[\"2010-03-08\",26],[\"2010-03-09\",36],[\"2010-03-10\",36],[\"2010-03-11\",26],[\"2010-03-12\",50],[\"2010-03-14\",40],[\"2010-03-15\",48],[\"2010-03-16\",36],[\"2010-03-17\",36],[\"2010-03-18\",26],[\"2010-03-19\",40],[\"2010-03-21\",64],[\"2010-03-22\",36],[\"2010-03-23\",30],[\"2010-03-24\",34],[\"2010-03-25\",48],[\"2010-03-26\",36],[\"2010-03-28\",30],[\"2010-03-29\",36],[\"2010-03-30\",30],[\"2010-03-31\",36],[\"2010-04-01\",32],[\"2010-04-06\",32],[\"2010-04-07\",30],[\"2010-04-08\",28],[\"2010-04-09\",100],[\"2010-04-11\",32],[\"2010-04-12\",28],[\"2010-04-13\",28],[\"2010-04-14\",30],[\"2010-04-15\",30],[\"2010-04-16\",36],[\"2010-04-18\",32],[\"2010-04-19\",30],[\"2010-04-20\",48],[\"2010-04-21\",48],[\"2010-04-22\",32],[\"2010-04-23\",32],[\"2010-04-25\",32],[\"2010-04-26\",48],[\"2010-04-27\",26],[\"2010-04-28\",40],[\"2010-04-29\",30],[\"2010-04-30\",32],[\"2010-05-02\",48],[\"2010-05-04\",560],[\"2010-05-05\",30],[\"2010-05-06\",48],[\"2010-05-07\",32],[\"2010-05-09\",36],[\"2010-05-10\",30],[\"2010-05-11\",36],[\"2010-05-12\",40],[\"2010-05-13\",32],[\"2010-05-14\",30],[\"2010-05-16\",36],[\"2010-05-17\",28],[\"2010-05-18\",27],[\"2010-05-19\",32],[\"2010-05-20\",48],[\"2010-05-21\",32],[\"2010-05-23\",36],[\"2010-05-24\",32],[\"2010-05-25\",36],[\"2010-05-26\",30],[\"2010-05-27\",30],[\"2010-05-28\",36],[\"2010-05-30\",48],[\"2010-06-01\",36],[\"2010-06-02\",32],[\"2010-06-03\",30],[\"2010-06-04\",72],[\"2010-06-06\",48],[\"2010-06-07\",32],[\"2010-06-08\",30],[\"2010-06-09\",36],[\"2010-06-10\",32],[\"2010-06-11\",36],[\"2010-06-13\",30],[\"2010-06-14\",40],[\"2010-06-15\",36],[\"2010-06-16\",30],[\"2010-06-17\",32],[\"2010-06-18\",30],[\"2010-06-20\",48],[\"2010-06-22\",30],[\"2010-06-23\",36],[\"2010-06-24\",30],[\"2010-06-25\",96],[\"2010-06-27\",32],[\"2010-06-28\",32],[\"2010-06-29\",32],[\"2010-06-30\",27],[\"2010-07-01\",36],[\"2010-07-04\",48],[\"2010-07-05\",48],[\"2010-07-06\",30],[\"2010-07-07\",30],[\"2010-07-08\",32],[\"2010-07-12\",36],[\"2010-07-13\",36],[\"2010-07-14\",30],[\"2010-07-15\",30],[\"2010-07-16\",48],[\"2010-07-18\",32],[\"2010-07-19\",36],[\"2010-07-20\",32],[\"2010-07-21\",32],[\"2010-07-22\",30],[\"2010-07-23\",72],[\"2010-07-25\",36],[\"2010-07-26\",30],[\"2010-07-27\",36],[\"2010-07-28\",48],[\"2010-07-29\",32],[\"2010-07-30\",30],[\"2010-08-02\",32],[\"2010-08-03\",30],[\"2010-08-05\",30],[\"2010-08-06\",40],[\"2010-08-08\",36],[\"2010-08-09\",32],[\"2010-08-10\",48],[\"2010-08-11\",108],[\"2010-08-12\",48],[\"2010-08-13\",30],[\"2010-08-15\",48],[\"2010-08-16\",32],[\"2010-08-17\",32],[\"2010-08-18\",30],[\"2010-08-19\",30],[\"2010-08-20\",32],[\"2010-08-22\",36],[\"2010-08-23\",96],[\"2010-08-24\",36],[\"2010-08-25\",30],[\"2010-08-26\",36],[\"2010-08-29\",48],[\"2010-08-31\",48],[\"2010-09-01\",32],[\"2010-09-02\",30],[\"2010-09-03\",48],[\"2010-09-05\",32],[\"2010-09-06\",36],[\"2010-09-07\",32],[\"2010-09-08\",72],[\"2010-09-09\",32],[\"2010-09-10\",48],[\"2010-09-12\",30],[\"2010-09-13\",50],[\"2010-09-14\",32],[\"2010-09-15\",30],[\"2010-09-16\",48],[\"2010-09-17\",30],[\"2010-09-19\",30],[\"2010-09-20\",32],[\"2010-09-21\",40],[\"2010-09-22\",36],[\"2010-09-23\",36],[\"2010-09-24\",32],[\"2010-09-26\",30],[\"2010-09-27\",40],[\"2010-09-28\",32],[\"2010-09-29\",32],[\"2010-09-30\",48],[\"2010-10-01\",48],[\"2010-10-03\",40],[\"2010-10-04\",30],[\"2010-10-05\",36],[\"2010-10-06\",30],[\"2010-10-07\",36],[\"2010-10-08\",36],[\"2010-10-10\",30],[\"2010-10-11\",32],[\"2010-10-12\",32],[\"2010-10-13\",40],[\"2010-10-14\",30],[\"2010-10-15\",30],[\"2010-10-18\",32],[\"2010-10-19\",36],[\"2010-10-20\",30],[\"2010-10-21\",48],[\"2010-10-22\",36],[\"2010-10-24\",32],[\"2010-10-25\",32],[\"2010-10-26\",30],[\"2010-10-27\",36],[\"2010-10-28\",32],[\"2010-10-29\",27],[\"2010-10-31\",48],[\"2010-11-01\",48],[\"2010-11-02\",32],[\"2010-11-03\",32],[\"2010-11-04\",30],[\"2010-11-05\",40],[\"2010-11-07\",36],[\"2010-11-08\",32],[\"2010-11-09\",32],[\"2010-11-10\",36],[\"2010-11-11\",32],[\"2010-11-12\",32],[\"2010-11-14\",36],[\"2010-11-15\",36],[\"2010-11-16\",30],[\"2010-11-17\",27],[\"2010-11-18\",32],[\"2010-11-19\",30],[\"2010-11-21\",60],[\"2010-11-22\",36],[\"2010-11-23\",40],[\"2010-11-24\",26],[\"2010-11-25\",32],[\"2010-11-26\",30],[\"2010-11-28\",36],[\"2010-11-29\",27],[\"2010-11-30\",30],[\"2010-12-01\",36],[\"2010-12-02\",32],[\"2010-12-03\",30],[\"2010-12-05\",32],[\"2010-12-06\",40],[\"2010-12-07\",30],[\"2010-12-08\",26],[\"2010-12-09\",32],[\"2010-12-10\",30],[\"2010-12-12\",30],[\"2010-12-13\",32],[\"2010-12-14\",36],[\"2010-12-15\",48],[\"2010-12-16\",30],[\"2010-12-17\",36],[\"2010-12-20\",36],[\"2010-12-21\",100],[\"2010-12-22\",30],[\"2010-12-23\",30],[\"2011-01-04\",36],[\"2011-01-05\",48],[\"2011-01-06\",32],[\"2011-01-07\",48],[\"2011-01-09\",40],[\"2011-01-10\",48],[\"2011-01-11\",32],[\"2011-01-12\",36],[\"2011-01-13\",48],[\"2011-01-14\",48],[\"2011-01-17\",36],[\"2011-01-18\",30],[\"2011-01-19\",64],[\"2011-01-20\",36],[\"2011-01-21\",36],[\"2011-01-23\",32],[\"2011-01-24\",48],[\"2011-01-25\",32],[\"2011-01-26\",32],[\"2011-01-27\",72],[\"2011-01-28\",48],[\"2011-01-31\",30],[\"2011-02-01\",30],[\"2011-02-02\",30],[\"2011-02-03\",96],[\"2011-02-04\",32],[\"2011-02-07\",40],[\"2011-02-08\",32],[\"2011-02-10\",36],[\"2011-02-11\",30],[\"2011-02-14\",40],[\"2011-02-15\",36],[\"2011-02-16\",36],[\"2011-02-17\",30],[\"2011-02-18\",30],[\"2011-02-20\",48],[\"2011-02-21\",48],[\"2011-02-22\",36],[\"2011-02-23\",48],[\"2011-02-24\",30],[\"2011-02-25\",44],[\"2011-02-27\",40],[\"2011-02-28\",30],[\"2011-03-01\",36],[\"2011-03-02\",36],[\"2011-03-03\",32],[\"2011-03-04\",280],[\"2011-03-06\",32],[\"2011-03-07\",36],[\"2011-03-08\",60],[\"2011-03-09\",48],[\"2011-03-10\",36],[\"2011-03-11\",48],[\"2011-03-14\",30],[\"2011-03-15\",32],[\"2011-03-16\",32],[\"2011-03-17\",36],[\"2011-03-18\",32],[\"2011-03-20\",30],[\"2011-03-21\",30],[\"2011-03-22\",48],[\"2011-03-23\",32],[\"2011-03-24\",40],[\"2011-03-25\",36],[\"2011-03-27\",32],[\"2011-03-28\",36],[\"2011-03-29\",27],[\"2011-03-30\",40],[\"2011-03-31\",36],[\"2011-04-01\",26],[\"2011-04-03\",36],[\"2011-04-04\",32],[\"2011-04-05\",36],[\"2011-04-06\",120],[\"2011-04-07\",32],[\"2011-04-08\",30],[\"2011-04-11\",30],[\"2011-04-12\",32],[\"2011-04-13\",30],[\"2011-04-14\",32],[\"2011-04-15\",100],[\"2011-04-17\",40],[\"2011-04-18\",48],[\"2011-04-19\",36],[\"2011-04-20\",36],[\"2011-04-21\",32],[\"2011-04-26\",27],[\"2011-04-27\",32],[\"2011-04-28\",40],[\"2011-05-01\",48],[\"2011-05-03\",33],[\"2011-05-04\",36],[\"2011-05-05\",30],[\"2011-05-06\",40],[\"2011-05-08\",32],[\"2011-05-09\",50],[\"2011-05-10\",200],[\"2011-05-11\",36],[\"2011-05-12\",32],[\"2011-05-13\",36],[\"2011-05-15\",72],[\"2011-05-16\",30],[\"2011-05-17\",30],[\"2011-05-18\",32],[\"2011-05-19\",30],[\"2011-05-20\",30],[\"2011-05-22\",48],[\"2011-05-23\",30],[\"2011-05-24\",32],[\"2011-05-25\",36],[\"2011-05-26\",30],[\"2011-05-27\",32],[\"2011-05-29\",30],[\"2011-05-31\",36],[\"2011-06-01\",30],[\"2011-06-02\",30],[\"2011-06-03\",36],[\"2011-06-05\",36],[\"2011-06-06\",32],[\"2011-06-07\",36],[\"2011-06-08\",30],[\"2011-06-09\",48],[\"2011-06-10\",32],[\"2011-06-13\",36],[\"2011-06-14\",48],[\"2011-06-15\",48],[\"2011-06-16\",36],[\"2011-06-17\",36],[\"2011-06-19\",40],[\"2011-06-20\",32],[\"2011-06-21\",36],[\"2011-06-22\",30],[\"2011-06-23\",32],[\"2011-06-24\",32],[\"2011-06-27\",36],[\"2011-06-28\",36],[\"2011-06-29\",48],[\"2011-06-30\",48],[\"2011-07-01\",36],[\"2011-07-03\",90],[\"2011-07-04\",48],[\"2011-07-05\",30],[\"2011-07-06\",30],[\"2011-07-07\",40],[\"2011-07-08\",48],[\"2011-07-11\",32],[\"2011-07-12\",32],[\"2011-07-13\",40],[\"2011-07-14\",30],[\"2011-07-15\",36],[\"2011-07-17\",36],[\"2011-07-18\",48],[\"2011-07-19\",30],[\"2011-07-20\",36],[\"2011-07-21\",32],[\"2011-07-22\",26],[\"2011-07-24\",36],[\"2011-07-25\",36],[\"2011-07-26\",100],[\"2011-07-27\",30],[\"2011-07-28\",36],[\"2011-07-29\",30],[\"2011-07-31\",32],[\"2011-08-01\",36],[\"2011-08-02\",48],[\"2011-08-03\",32],[\"2011-08-04\",28],[\"2011-08-05\",36],[\"2011-08-07\",33],[\"2011-08-08\",432],[\"2011-08-09\",32],[\"2011-08-10\",48],[\"2011-08-11\",32],[\"2011-08-12\",40],[\"2011-08-14\",30],[\"2011-08-15\",36],[\"2011-08-16\",36],[\"2011-08-17\",36],[\"2011-08-18\",36],[\"2011-08-19\",36],[\"2011-08-21\",40],[\"2011-08-22\",30],[\"2011-08-23\",40],[\"2011-08-24\",32],[\"2011-08-25\",32],[\"2011-08-26\",30],[\"2011-08-28\",48],[\"2011-08-30\",48],[\"2011-08-31\",48],[\"2011-09-01\",32],[\"2011-09-02\",36],[\"2011-09-04\",72],[\"2011-09-05\",35],[\"2011-09-06\",32],[\"2011-09-07\",36],[\"2011-09-08\",40],[\"2011-09-09\",36],[\"2011-09-11\",32],[\"2011-09-12\",30],[\"2011-09-13\",32],[\"2011-09-14\",36],[\"2011-09-15\",36],[\"2011-09-16\",72],[\"2011-09-18\",100],[\"2011-09-19\",36],[\"2011-09-20\",40],[\"2011-09-21\",44],[\"2011-09-22\",32],[\"2011-09-23\",48],[\"2011-09-25\",48],[\"2011-09-26\",30],[\"2011-09-27\",36],[\"2011-09-28\",30],[\"2011-09-29\",32],[\"2011-09-30\",36],[\"2011-10-02\",48],[\"2011-10-03\",30],[\"2011-10-04\",30],[\"2011-10-05\",32],[\"2011-10-06\",36],[\"2011-10-07\",32],[\"2011-10-10\",48],[\"2011-10-11\",36],[\"2011-10-12\",32],[\"2011-10-13\",36],[\"2011-10-14\",36],[\"2011-10-17\",30],[\"2011-10-18\",30],[\"2011-10-19\",32],[\"2011-10-20\",48],[\"2011-10-21\",27],[\"2011-10-24\",32],[\"2011-10-25\",48],[\"2011-10-26\",36],[\"2011-10-27\",36],[\"2011-10-28\",30],[\"2011-10-30\",36],[\"2011-10-31\",32],[\"2011-11-01\",30],[\"2011-11-02\",36],[\"2011-11-03\",48],[\"2011-11-04\",32],[\"2011-11-06\",30],[\"2011-11-07\",40],[\"2011-11-08\",32],[\"2011-11-09\",30],[\"2011-11-10\",30],[\"2011-11-11\",32],[\"2011-11-13\",72],[\"2011-11-14\",48],[\"2011-11-15\",30],[\"2011-11-16\",30],[\"2011-11-17\",30],[\"2011-11-18\",30],[\"2011-11-20\",32],[\"2011-11-21\",32],[\"2011-11-22\",32],[\"2011-11-23\",32],[\"2011-11-24\",32],[\"2011-11-25\",30],[\"2011-11-28\",32],[\"2011-11-29\",27],[\"2011-11-30\",30],[\"2011-12-01\",30],[\"2011-12-02\",32],[\"2011-12-04\",36],[\"2011-12-05\",32],[\"2011-12-06\",30],[\"2011-12-07\",31],[\"2011-12-08\",30],[\"2011-12-09\",36]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (quantity > ? OR invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC","sql_parameters":"[25,\"2010-02-18\"]","state":"{\"question\":\"Return the minimum of quantity for retail invoice lines where (quantity is greater than 25 or invoice_date is before '2010-02-18'), 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\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}670{"category":"single_table/date/or/having","domain":"commerce","family_id":"a626445e327e6b76963389bb","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"30ae46dc34beefb0f3e2474c4d46e9e95ccad3e0deec063822f95870cf52a729","language":"en","license":"CC-BY-4.0","query":"Return the maximum of quantity for retail invoice lines where (unit_price is greater than 49.95 or invoice_date is before '2010-12-02'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[49.95,\\\"2010-12-02\\\",10],\\\"sql\\\":\\\"SELECT country, MAX(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\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[49.95,\\\"2010-12-02\\\",10],\\\"sql\\\":\\\"SELECT country, MAX(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_3\":\"{\\\"parameters\\\":[49.95,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT country, MAX(quantity) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date < ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[49.95,\\\"2010-12-02\\\",10],\\\"sql\\\":\\\"SELECT country, MAX(quantity) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Belgium\",20],[\"Portugal\",60],[\"Australia\",100]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, MAX(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","sql_parameters":"[49.95,\"2010-12-02\",10]","state":"{\"question\":\"Return the maximum of quantity for retail invoice lines where (unit_price is greater than 49.95 or invoice_date is before '2010-12-02'), 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\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}671{"category":"single_table/or/ranked","domain":"commerce","family_id":"6893c210c092b2c7fec73a72","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"ff1f53fda8fc5bcffd1ebc1ece08d420fdefb2124aa22cf577bc64b334c992c3","language":"en","license":"CC-BY-4.0","query":"Return the minimum of administrative for shopping sessions where (visitor_type equals 'Returning_Visitor' or revenue equals 1), grouped by visitor_type; return at most 3 groups ordered by aggregate value ASC, breaking ties by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Returning_Visitor\\\",1],\\\"sql\\\":\\\"SELECT visitor_type, MIN(administrative) AS value FROM shopping_sessions WHERE (visitor_type = ? AND revenue = ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Returning_Visitor\\\",1],\\\"sql\\\":\\\"SELECT visitor_type, MIN(administrative) AS value FROM shopping_sessions WHERE (visitor_type = ? OR revenue = ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Returning_Visitor\\\",1],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (visitor_type = ? OR revenue = ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Returning_Visitor\\\",1],\\\"sql\\\":\\\"SELECT visitor_type, SUM(administrative) AS value FROM shopping_sessions WHERE (visitor_type = ? OR revenue = ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"New_Visitor\",0],[\"Other\",0],[\"Returning_Visitor\",0]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, MIN(administrative) AS value FROM shopping_sessions WHERE (visitor_type = ? OR revenue = ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3","sql_parameters":"[\"Returning_Visitor\",1]","state":"{\"question\":\"Return the minimum of administrative for shopping sessions where (visitor_type equals 'Returning_Visitor' or revenue equals 1), grouped by visitor_type; return at most 3 groups ordered by aggregate value ASC, breaking ties by visitor_type ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}672{"category":"single_table/ranked","domain":"commerce","family_id":"47aced5ca6a26fd0996a7641","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"f539318a52f6cf823375acee2f1f81bd2ec6635e049d3ed8d9ff7491ed3cc8da","language":"en","license":"CC-BY-4.0","query":"Return the sum of unit_price for retail invoice lines where (country equals 'Bahrain'), grouped by invoice_date; return at most 5 groups ordered by aggregate value DESC, breaking ties by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Bahrain\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (country = ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Bahrain\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Bahrain\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (country = ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Bahrain\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (country = ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-05-19\",24.299999999999997],[\"2010-05-10\",14.25],[\"2010-03-23\",8.5]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (country = ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5","sql_parameters":"[\"Bahrain\"]","state":"{\"question\":\"Return the sum of unit_price for retail invoice lines where (country equals 'Bahrain'), 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\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}673{"category":"single_table/or/aggregate","domain":"commerce","family_id":"a09e8218a86e428dcd73561c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"99c555eb6a4046726ea326766a87aba1c6e3a8a97f2379f3abfc1df45cd2e58f","language":"en","license":"CC-BY-4.0","query":"Return the maximum of product_related for shopping sessions where (region equals 7 or administrative is greater than 18).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[7,18],\\\"sql\\\":\\\"SELECT MAX(product_related) AS value FROM shopping_sessions WHERE (region = ? AND administrative > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[7,18],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (region = ? OR administrative > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[7,18],\\\"sql\\\":\\\"SELECT SUM(product_related) AS value FROM shopping_sessions WHERE (region = ? OR administrative > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[7,18],\\\"sql\\\":\\\"SELECT MAX(product_related) AS value FROM shopping_sessions WHERE (region = ? OR administrative > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[686]]","source":"online_shoppers","split":"dev","sql":"SELECT MAX(product_related) AS value FROM shopping_sessions WHERE (region = ? OR administrative > ?)","sql_parameters":"[7,18]","state":"{\"question\":\"Return the maximum of product_related for shopping sessions where (region equals 7 or administrative is greater than 18).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}674{"category":"single_table/or/having","domain":"commerce","family_id":"5875963a220c01e4711eb17f","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"9b31cf95911970f73d622d7d000a3f53cade6304cb3ae83c12ebe72b17425e25","language":"en","license":"CC-BY-4.0","query":"Return the sum of administrative for shopping sessions where (traffic_type equals 12 or product_duration is at most 472.4166667), grouped by revenue, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by revenue ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[12,472.4166667,2],\\\"sql\\\":\\\"SELECT revenue, SUM(administrative) AS value FROM shopping_sessions WHERE (traffic_type = ? AND product_duration <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[12,472.4166667,2],\\\"sql\\\":\\\"SELECT revenue, SUM(administrative) AS value FROM shopping_sessions WHERE (traffic_type = ? OR product_duration <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[12,472.4166667,2],\\\"sql\\\":\\\"SELECT revenue, SUM(administrative) AS value FROM shopping_sessions WHERE (traffic_type = ? OR product_duration <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[12,472.4166667,2],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (traffic_type = ? OR product_duration <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,5495],[1,697]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, SUM(administrative) AS value FROM shopping_sessions WHERE (traffic_type = ? OR product_duration <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 5","sql_parameters":"[12,472.4166667,2]","state":"{\"question\":\"Return the sum of administrative for shopping sessions where (traffic_type equals 12 or product_duration is at most 472.4166667), grouped by revenue, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by revenue ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}675{"category":"single_table/ranked","domain":"commerce","family_id":"47aced5ca6a26fd0996a7641","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"55c7c1f94e66ac5975ea014068d48a8c1e4811a8886a5133257a4fe48a6841e9","language":"en","license":"CC-BY-4.0","query":"Return the sum of unit_price for retail invoice lines where (country equals 'EIRE'), grouped by invoice_date; return at most 5 groups ordered by aggregate value DESC, breaking ties by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"EIRE\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (country = ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"EIRE\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (country = ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"EIRE\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"EIRE\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (country = ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-06-20\",3133.12],[\"2011-11-07\",112.49000000000001],[\"2010-11-03\",84.95],[\"2010-11-09\",84.95],[\"2011-07-01\",84.95]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (country = ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5","sql_parameters":"[\"EIRE\"]","state":"{\"question\":\"Return the sum of unit_price for retail invoice lines where (country equals 'EIRE'), 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\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}676{"category":"single_table/or/having","domain":"sensor","family_id":"0703b7e56beee63d45e7dd1c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"0774d751b51ff4bf196b146fef45981573512733c7d3b26772f26498487c5a9b","language":"en","license":"CC-BY-4.0","query":"Return the sum of vs1_mean for hydraulic cycles where (ps2_mean is at most 105.7255 or vs1_mean is greater than 0.56377), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[105.7255,0.56377,2],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND vs1_mean > ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[105.7255,0.56377,2],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR vs1_mean > ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[105.7255,0.56377,2],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR vs1_mean > ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value ASC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[105.7255,0.56377,2],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR vs1_mean > ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,536.94755],[2,219.11675],[1,217.16224]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR vs1_mean > ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 5","sql_parameters":"[105.7255,0.56377,2]","state":"{\"question\":\"Return the sum of vs1_mean for hydraulic cycles where (ps2_mean is at most 105.7255 or vs1_mean is greater than 0.56377), 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\":{\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}677{"category":"single_table/and/having","domain":"sensor","family_id":"8e03f1e3c0c886c9f4eed784","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"eeb6635a82997b523ea69cdb6b56100db5542b44500950e93672f57abcad0121","language":"en","license":"CC-BY-4.0","query":"Return the sum of vs1_mean for hydraulic cycles where (cooler equals 3 and valve equals 100), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[3,100,2],\\\"sql\\\":\\\"SELECT cooler, SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? OR valve = ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[3,100,2],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (cooler = ? AND valve = ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[3,100,2],\\\"sql\\\":\\\"SELECT cooler, SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? AND valve = ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[3,100,2],\\\"sql\\\":\\\"SELECT cooler, AVG(vs1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? AND valve = ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[3,246.59475]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? AND valve = ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5","sql_parameters":"[3,100,2]","state":"{\"question\":\"Return the sum of vs1_mean for hydraulic cycles where (cooler equals 3 and valve equals 100), 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_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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}678{"category":"single_table/and/having","domain":"sensor","family_id":"59ec1e9d879a3c3e112bdb91","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"cf9b6e579e88fd2172ff3e2cc61d454d9f77427e082ea20eb66b85bbb9d12141","language":"en","license":"CC-BY-4.0","query":"Return the minimum of ps2_mean for hydraulic cycles where (ps2_mean is at most 105.7255 and vs1_mean is greater than 0.56377), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[105.7255,0.56377,10],\\\"sql\\\":\\\"SELECT cooler, MIN(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR vs1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[105.7255,0.56377],\\\"sql\\\":\\\"SELECT cooler, MIN(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND vs1_mean > ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[105.7255,0.56377,10],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND vs1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[105.7255,0.56377,10],\\\"sql\\\":\\\"SELECT cooler, MIN(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND vs1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[3,104.40631]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, MIN(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND vs1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value ASC, cooler ASC LIMIT 3","sql_parameters":"[105.7255,0.56377,10]","state":"{\"question\":\"Return the minimum of ps2_mean for hydraulic cycles where (ps2_mean is at most 105.7255 and vs1_mean is greater than 0.56377), 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\":\"INTEGER\",\"cooler\":\"INTEGER\",\"cycle_id\":\"INTEGER\",\"eps1_mean\":\"REAL\",\"fs1_mean\":\"REAL\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}679{"category":"single_table/grouped","domain":"sensor","family_id":"d9855d8a8f8da2d34dd593db","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"9c5393ee5781d988dbd80a80adce5df1c08e7147ec4a7eec78c641413c0fd743","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for hydraulic cycles where (eps1_mean is at most 2544.76), grouped by pump_leakage, ordered by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2544.76],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2544.76],\\\"sql\\\":\\\"SELECT pump_leakage, AVG(ps1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2544.76],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2544.76],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(ps1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,1105],[1,228],[2,210]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC","sql_parameters":"[2544.76]","state":"{\"question\":\"Return the number of rows for hydraulic cycles where (eps1_mean is at most 2544.76), 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_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}680{"category":"single_table/date/and/ranked","domain":"commerce","family_id":"722bd3ecfefe39bf9224037d","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"1e5e119751345e5b373a577b76541367e5da868373e791104c75c78a8a38724f","language":"en","license":"CC-BY-4.0","query":"Return the average of unit_price for retail invoice lines where (country equals 'Belgium' and invoice_date is on or after '2011-05-10'), grouped by invoice_date; return at most 5 groups ordered by aggregate value DESC, breaking ties by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Belgium\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Belgium\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Belgium\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Belgium\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-11-17\",14.966666666666667],[\"2011-08-25\",13.35],[\"2011-11-29\",12.379999999999999],[\"2011-05-23\",11.408333333333333],[\"2011-06-08\",9.92]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5","sql_parameters":"[\"Belgium\",\"2011-05-10\"]","state":"{\"question\":\"Return the average of unit_price for retail invoice lines where (country equals 'Belgium' and invoice_date is on or after '2011-05-10'), 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\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}681{"category":"single_table/date/grouped","domain":"commerce","family_id":"aa5175f1cb57dd786fde4b91","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"0bbb991d77b442730e42e8a9ae0c8606109784daae63fea3e08fb4349596207a","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (invoice_date is on or after '2010-12-02'), grouped by invoice_date, ordered by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-12-02\",10.95],[\"2010-12-03\",40.0],[\"2010-12-05\",18.0],[\"2010-12-06\",14.95],[\"2010-12-07\",19.84],[\"2010-12-08\",21.95],[\"2010-12-09\",18.0],[\"2010-12-10\",16.95],[\"2010-12-12\",19.95],[\"2010-12-13\",12.75],[\"2010-12-14\",29.95],[\"2010-12-15\",12.75],[\"2010-12-16\",39.95],[\"2010-12-17\",18.0],[\"2010-12-19\",8.5],[\"2010-12-20\",22.0],[\"2010-12-21\",18.0],[\"2010-12-22\",4.95],[\"2010-12-23\",5.95],[\"2011-01-04\",8.5],[\"2011-01-05\",12.75],[\"2011-01-06\",8.5],[\"2011-01-07\",39.95],[\"2011-01-09\",12.75],[\"2011-01-10\",18.0],[\"2011-01-11\",18.0],[\"2011-01-12\",165.0],[\"2011-01-13\",8.5],[\"2011-01-14\",18.0],[\"2011-01-16\",3.95],[\"2011-01-17\",12.75],[\"2011-01-18\",6.95],[\"2011-01-19\",18.0],[\"2011-01-20\",8.95],[\"2011-01-21\",40.0],[\"2011-01-23\",14.95],[\"2011-01-24\",12.75],[\"2011-01-25\",40.0],[\"2011-01-26\",12.75],[\"2011-01-27\",18.0],[\"2011-01-28\",7.95],[\"2011-01-30\",2.95],[\"2011-01-31\",14.95],[\"2011-02-01\",14.95],[\"2011-02-02\",12.75],[\"2011-02-03\",15.0],[\"2011-02-04\",295.0],[\"2011-02-07\",12.75],[\"2011-02-08\",4.95],[\"2011-02-09\",15.0],[\"2011-02-10\",165.0],[\"2011-02-11\",145.0],[\"2011-02-13\",5.95],[\"2011-02-14\",16.95],[\"2011-02-15\",10.95],[\"2011-02-16\",8.5],[\"2011-02-17\",18.0],[\"2011-02-18\",14.95],[\"2011-02-20\",10.95],[\"2011-02-21\",12.75],[\"2011-02-22\",10.95],[\"2011-02-23\",34.95],[\"2011-02-24\",10.95],[\"2011-02-25\",40.0],[\"2011-02-27\",18.0],[\"2011-02-28\",125.0],[\"2011-03-01\",376.5],[\"2011-03-02\",10.95],[\"2011-03-03\",40.0],[\"2011-03-04\",28.0],[\"2011-03-06\",10.95],[\"2011-03-07\",125.0],[\"2011-03-08\",10.95],[\"2011-03-09\",40.0],[\"2011-03-10\",14.95],[\"2011-03-11\",16.95],[\"2011-03-14\",10.95],[\"2011-03-15\",9.95],[\"2011-03-16\",10.95],[\"2011-03-17\",10.95],[\"2011-03-18\",18.0],[\"2011-03-20\",18.0],[\"2011-03-21\",10.95],[\"2011-03-22\",9.95],[\"2011-03-23\",16.95],[\"2011-03-24\",8.5],[\"2011-03-25\",18.0],[\"2011-03-27\",12.75],[\"2011-03-28\",150.0],[\"2011-03-29\",10.65],[\"2011-03-30\",12.75],[\"2011-03-31\",18.0],[\"2011-04-01\",16.95],[\"2011-04-03\",10.95],[\"2011-04-04\",2382.92],[\"2011-04-05\",125.0],[\"2011-04-06\",8.5],[\"2011-04-07\",12.75],[\"2011-04-08\",18.0],[\"2011-04-10\",10.95],[\"2011-04-11\",8.5],[\"2011-04-12\",10.95],[\"2011-04-13\",12.75],[\"2011-04-14\",18.0],[\"2011-04-15\",40.0],[\"2011-04-17\",9.95],[\"2011-04-18\",12.75],[\"2011-04-19\",5.95],[\"2011-04-20\",14.95],[\"2011-04-21\",40.0],[\"2011-04-26\",40.0],[\"2011-04-27\",50.0],[\"2011-04-28\",295.0],[\"2011-05-01\",9.95],[\"2011-05-03\",110.0],[\"2011-05-04\",9.95],[\"2011-05-05\",39.95],[\"2011-05-06\",40.0],[\"2011-05-08\",16.95],[\"2011-05-09\",12.75],[\"2011-05-10\",16.95],[\"2011-05-11\",18.0],[\"2011-05-12\",12.5],[\"2011-05-13\",34.95],[\"2011-05-15\",16.95],[\"2011-05-16\",10.4],[\"2011-05-17\",12.5],[\"2011-05-18\",40.0],[\"2011-05-19\",39.95],[\"2011-05-20\",16.95],[\"2011-05-22\",9.95],[\"2011-05-23\",18.0],[\"2011-05-24\",29.95],[\"2011-05-25\",8.5],[\"2011-05-26\",125.0],[\"2011-05-27\",10.95],[\"2011-05-29\",5.45],[\"2011-05-31\",12.75],[\"2011-06-01\",16.95],[\"2011-06-02\",40.0],[\"2011-06-03\",18.0],[\"2011-06-05\",34.95],[\"2011-06-06\",12.75],[\"2011-06-07\",12.75],[\"2011-06-08\",15.0],[\"2011-06-09\",18.0],[\"2011-06-10\",18.0],[\"2011-06-12\",19.95],[\"2011-06-13\",19.95],[\"2011-06-14\",15.0],[\"2011-06-15\",12.75],[\"2011-06-16\",25.0],[\"2011-06-17\",16.95],[\"2011-06-19\",7.95],[\"2011-06-20\",1917.0],[\"2011-06-21\",25.0],[\"2011-06-22\",15.0],[\"2011-06-23\",9.95],[\"2011-06-24\",16.95],[\"2011-06-26\",28.0],[\"2011-06-27\",4.95],[\"2011-06-28\",12.75],[\"2011-06-29\",24.95],[\"2011-06-30\",165.0],[\"2011-07-01\",50.0],[\"2011-07-03\",10.95],[\"2011-07-04\",12.75],[\"2011-07-05\",15.0],[\"2011-07-06\",12.75],[\"2011-07-07\",15.0],[\"2011-07-08\",85.0],[\"2011-07-10\",2.55],[\"2011-07-11\",18.0],[\"2011-07-12\",10.95],[\"2011-07-13\",85.0],[\"2011-07-14\",14.95],[\"2011-07-15\",16.95],[\"2011-07-17\",18.0],[\"2011-07-18\",16.95],[\"2011-07-19\",18.0],[\"2011-07-20\",28.0],[\"2011-07-21\",14.95],[\"2011-07-22\",8.5],[\"2011-07-24\",24.95],[\"2011-07-25\",15.0],[\"2011-07-26\",16.95],[\"2011-07-27\",7.65],[\"2011-07-28\",15.0],[\"2011-07-29\",12.75],[\"2011-07-31\",12.5],[\"2011-08-01\",4.95],[\"2011-08-02\",8.5],[\"2011-08-03\",12.75],[\"2011-08-04\",49.95],[\"2011-08-05\",18.0],[\"2011-08-07\",8.5],[\"2011-08-08\",40.0],[\"2011-08-09\",18.0],[\"2011-08-10\",12.75],[\"2011-08-11\",15.0],[\"2011-08-12\",6.75],[\"2011-08-14\",39.95],[\"2011-08-15\",5.95],[\"2011-08-16\",18.0],[\"2011-08-17\",3.39],[\"2011-08-18\",12.75],[\"2011-08-19\",14.95],[\"2011-08-21\",8.5],[\"2011-08-22\",10.95],[\"2011-08-23\",7.65],[\"2011-08-24\",18.0],[\"2011-08-25\",34.95],[\"2011-08-26\",85.0],[\"2011-08-28\",5.95],[\"2011-08-30\",40.0],[\"2011-08-31\",18.0],[\"2011-09-01\",12.75],[\"2011-09-02\",10.95],[\"2011-09-04\",18.0],[\"2011-09-05\",6.35],[\"2011-09-06\",18.0],[\"2011-09-07\",10.75],[\"2011-09-08\",19.95],[\"2011-09-09\",15.0],[\"2011-09-11\",7.5],[\"2011-09-12\",9.95],[\"2011-09-13\",40.0],[\"2011-09-14\",9.95],[\"2011-09-15\",50.0],[\"2011-09-16\",18.0],[\"2011-09-18\",9.95],[\"2011-09-19\",8.5],[\"2011-09-20\",9.95],[\"2011-09-21\",12.75],[\"2011-09-22\",18.0],[\"2011-09-23\",49.95],[\"2011-09-25\",40.0],[\"2011-09-26\",12.5],[\"2011-09-27\",12.5],[\"2011-09-28\",15.0],[\"2011-09-29\",10.95],[\"2011-09-30\",50.0],[\"2011-10-02\",9.95],[\"2011-10-03\",152.78],[\"2011-10-04\",40.0],[\"2011-10-05\",39.95],[\"2011-10-06\",18.0],[\"2011-10-07\",18.0],[\"2011-10-09\",7.08],[\"2011-10-10\",12.75],[\"2011-10-11\",50.0],[\"2011-10-12\",18.0],[\"2011-10-13\",12.75],[\"2011-10-14\",12.75],[\"2011-10-17\",9.95],[\"2011-10-18\",39.95],[\"2011-10-19\",3949.32],[\"2011-10-20\",18.0],[\"2011-10-21\",20.8],[\"2011-10-23\",12.75],[\"2011-10-24\",25.0],[\"2011-10-25\",250.0],[\"2011-10-26\",25.0],[\"2011-10-27\",18.0],[\"2011-10-28\",12.5],[\"2011-10-30\",29.95],[\"2011-10-31\",18.0],[\"2011-11-01\",10.4],[\"2011-11-02\",7.65],[\"2011-11-03\",25.0],[\"2011-11-04\",18.0],[\"2011-11-06\",16.65],[\"2011-11-07\",50.0],[\"2011-11-08\",12.5],[\"2011-11-09\",24.95],[\"2011-11-10\",549.34],[\"2011-11-11\",18.0],[\"2011-11-13\",16.65],[\"2011-11-14\",12.75],[\"2011-11-15\",10.95],[\"2011-11-16\",145.0],[\"2011-11-17\",40.0],[\"2011-11-18\",39.95],[\"2011-11-20\",9.95],[\"2011-11-21\",15.0],[\"2011-11-22\",40.0],[\"2011-11-23\",40.0],[\"2011-11-24\",14.95],[\"2011-11-25\",50.0],[\"2011-11-27\",9.95],[\"2011-11-28\",15.0],[\"2011-11-29\",40.0],[\"2011-11-30\",18.0],[\"2011-12-01\",40.0],[\"2011-12-02\",40.0],[\"2011-12-04\",18.0],[\"2011-12-05\",219.5],[\"2011-12-06\",25.0],[\"2011-12-07\",18.0],[\"2011-12-08\",18.0],[\"2011-12-09\",12.75]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC","sql_parameters":"[\"2010-12-02\"]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines where (invoice_date is on or after '2010-12-02'), 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\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}682{"category":"single_table/date/and/grouped","domain":"commerce","family_id":"d512623accfda5fa8519e86b","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"ddcf9dd1800d52763e19c31f376243053944c230863de252bb8715c93b6c6c8d","language":"en","license":"CC-BY-4.0","query":"Return the minimum of quantity for retail invoice lines where (quantity is at most 92 and invoice_date is before '2011-05-10'), grouped by invoice_date, ordered by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[92,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[92,\\\"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_3\":\"{\\\"parameters\\\":[92,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[92,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-01\",1],[\"2009-12-02\",1],[\"2009-12-03\",1],[\"2009-12-04\",1],[\"2009-12-05\",1],[\"2009-12-06\",1],[\"2009-12-07\",1],[\"2009-12-08\",1],[\"2009-12-09\",1],[\"2009-12-10\",1],[\"2009-12-11\",1],[\"2009-12-13\",1],[\"2009-12-14\",1],[\"2009-12-15\",1],[\"2009-12-16\",1],[\"2009-12-17\",1],[\"2009-12-18\",1],[\"2009-12-20\",1],[\"2009-12-21\",1],[\"2009-12-22\",1],[\"2009-12-23\",1],[\"2010-01-04\",1],[\"2010-01-05\",1],[\"2010-01-06\",1],[\"2010-01-07\",1],[\"2010-01-08\",3],[\"2010-01-10\",2],[\"2010-01-11\",1],[\"2010-01-12\",1],[\"2010-01-13\",1],[\"2010-01-14\",1],[\"2010-01-15\",1],[\"2010-01-17\",6],[\"2010-01-18\",6],[\"2010-01-19\",2],[\"2010-01-20\",1],[\"2010-01-21\",1],[\"2010-01-22\",1],[\"2010-01-24\",3],[\"2010-01-25\",1],[\"2010-01-26\",1],[\"2010-01-27\",1],[\"2010-01-28\",1],[\"2010-01-29\",1],[\"2010-01-31\",1],[\"2010-02-01\",1],[\"2010-02-02\",1],[\"2010-02-03\",1],[\"2010-02-04\",1],[\"2010-02-05\",1],[\"2010-02-07\",1],[\"2010-02-08\",1],[\"2010-02-09\",1],[\"2010-02-10\",1],[\"2010-02-11\",1],[\"2010-02-12\",1],[\"2010-02-14\",1],[\"2010-02-15\",2],[\"2010-02-16\",1],[\"2010-02-17\",1],[\"2010-02-18\",1],[\"2010-02-19\",1],[\"2010-02-21\",1],[\"2010-02-22\",1],[\"2010-02-23\",1],[\"2010-02-24\",1],[\"2010-02-25\",1],[\"2010-02-26\",1],[\"2010-02-28\",1],[\"2010-03-01\",2],[\"2010-03-02\",1],[\"2010-03-03\",1],[\"2010-03-04\",1],[\"2010-03-05\",1],[\"2010-03-07\",1],[\"2010-03-08\",1],[\"2010-03-09\",1],[\"2010-03-10\",1],[\"2010-03-11\",1],[\"2010-03-12\",2],[\"2010-03-14\",1],[\"2010-03-15\",1],[\"2010-03-16\",1],[\"2010-03-17\",1],[\"2010-03-18\",1],[\"2010-03-19\",1],[\"2010-03-21\",1],[\"2010-03-22\",1],[\"2010-03-23\",1],[\"2010-03-24\",1],[\"2010-03-25\",1],[\"2010-03-26\",1],[\"2010-03-28\",12],[\"2010-03-29\",1],[\"2010-03-30\",1],[\"2010-03-31\",1],[\"2010-04-01\",1],[\"2010-04-06\",1],[\"2010-04-07\",6],[\"2010-04-08\",1],[\"2010-04-09\",1],[\"2010-04-11\",2],[\"2010-04-12\",1],[\"2010-04-13\",1],[\"2010-04-14\",1],[\"2010-04-15\",1],[\"2010-04-16\",1],[\"2010-04-18\",1],[\"2010-04-19\",1],[\"2010-04-20\",1],[\"2010-04-21\",1],[\"2010-04-22\",1],[\"2010-04-23\",1],[\"2010-04-25\",2],[\"2010-04-26\",1],[\"2010-04-27\",1],[\"2010-04-28\",1],[\"2010-04-29\",1],[\"2010-04-30\",1],[\"2010-05-02\",1],[\"2010-05-04\",1],[\"2010-05-05\",1],[\"2010-05-06\",1],[\"2010-05-07\",1],[\"2010-05-09\",1],[\"2010-05-10\",1],[\"2010-05-11\",1],[\"2010-05-12\",1],[\"2010-05-13\",1],[\"2010-05-14\",1],[\"2010-05-16\",2],[\"2010-05-17\",1],[\"2010-05-18\",1],[\"2010-05-19\",1],[\"2010-05-20\",1],[\"2010-05-21\",1],[\"2010-05-23\",1],[\"2010-05-24\",1],[\"2010-05-25\",1],[\"2010-05-26\",1],[\"2010-05-27\",1],[\"2010-05-28\",1],[\"2010-05-30\",1],[\"2010-06-01\",1],[\"2010-06-02\",1],[\"2010-06-03\",1],[\"2010-06-04\",1],[\"2010-06-06\",1],[\"2010-06-07\",2],[\"2010-06-08\",1],[\"2010-06-09\",1],[\"2010-06-10\",1],[\"2010-06-11\",1],[\"2010-06-13\",1],[\"2010-06-14\",1],[\"2010-06-15\",1],[\"2010-06-16\",2],[\"2010-06-17\",1],[\"2010-06-18\",1],[\"2010-06-20\",1],[\"2010-06-21\",2],[\"2010-06-22\",1],[\"2010-06-23\",1],[\"2010-06-24\",1],[\"2010-06-25\",1],[\"2010-06-27\",1],[\"2010-06-28\",2],[\"2010-06-29\",1],[\"2010-06-30\",1],[\"2010-07-01\",1],[\"2010-07-02\",1],[\"2010-07-04\",1],[\"2010-07-05\",1],[\"2010-07-06\",2],[\"2010-07-07\",1],[\"2010-07-08\",1],[\"2010-07-09\",1],[\"2010-07-11\",1],[\"2010-07-12\",1],[\"2010-07-13\",1],[\"2010-07-14\",1],[\"2010-07-15\",1],[\"2010-07-16\",1],[\"2010-07-18\",4],[\"2010-07-19\",1],[\"2010-07-20\",1],[\"2010-07-21\",1],[\"2010-07-22\",1],[\"2010-07-23\",1],[\"2010-07-25\",1],[\"2010-07-26\",1],[\"2010-07-27\",1],[\"2010-07-28\",1],[\"2010-07-29\",1],[\"2010-07-30\",1],[\"2010-08-01\",1],[\"2010-08-02\",1],[\"2010-08-03\",1],[\"2010-08-04\",1],[\"2010-08-05\",1],[\"2010-08-06\",1],[\"2010-08-08\",2],[\"2010-08-09\",2],[\"2010-08-10\",1],[\"2010-08-11\",1],[\"2010-08-12\",1],[\"2010-08-13\",1],[\"2010-08-15\",1],[\"2010-08-16\",2],[\"2010-08-17\",1],[\"2010-08-18\",1],[\"2010-08-19\",1],[\"2010-08-20\",1],[\"2010-08-22\",1],[\"2010-08-23\",1],[\"2010-08-24\",1],[\"2010-08-25\",1],[\"2010-08-26\",1],[\"2010-08-27\",3],[\"2010-08-29\",1],[\"2010-08-31\",1],[\"2010-09-01\",1],[\"2010-09-02\",1],[\"2010-09-03\",1],[\"2010-09-05\",2],[\"2010-09-06\",2],[\"2010-09-07\",2],[\"2010-09-08\",6],[\"2010-09-09\",1],[\"2010-09-10\",4],[\"2010-09-12\",1],[\"2010-09-13\",1],[\"2010-09-14\",1],[\"2010-09-15\",1],[\"2010-09-16\",1],[\"2010-09-17\",1],[\"2010-09-19\",2],[\"2010-09-20\",1],[\"2010-09-21\",1],[\"2010-09-22\",1],[\"2010-09-23\",1],[\"2010-09-24\",1],[\"2010-09-26\",1],[\"2010-09-27\",1],[\"2010-09-28\",1],[\"2010-09-29\",1],[\"2010-09-30\",1],[\"2010-10-01\",1],[\"2010-10-03\",4],[\"2010-10-04\",1],[\"2010-10-05\",1],[\"2010-10-06\",1],[\"2010-10-07\",1],[\"2010-10-08\",1],[\"2010-10-10\",1],[\"2010-10-11\",1],[\"2010-10-12\",1],[\"2010-10-13\",1],[\"2010-10-14\",1],[\"2010-10-15\",1],[\"2010-10-17\",1],[\"2010-10-18\",1],[\"2010-10-19\",1],[\"2010-10-20\",1],[\"2010-10-21\",1],[\"2010-10-22\",2],[\"2010-10-24\",1],[\"2010-10-25\",1],[\"2010-10-26\",1],[\"2010-10-27\",1],[\"2010-10-28\",1],[\"2010-10-29\",1],[\"2010-10-31\",1],[\"2010-11-01\",3],[\"2010-11-02\",1],[\"2010-11-03\",1],[\"2010-11-04\",1],[\"2010-11-05\",1],[\"2010-11-07\",1],[\"2010-11-08\",1],[\"2010-11-09\",1],[\"2010-11-10\",1],[\"2010-11-11\",1],[\"2010-11-12\",1],[\"2010-11-14\",1],[\"2010-11-15\",1],[\"2010-11-16\",1],[\"2010-11-17\",1],[\"2010-11-18\",1],[\"2010-11-19\",1],[\"2010-11-21\",1],[\"2010-11-22\",1],[\"2010-11-23\",1],[\"2010-11-24\",1],[\"2010-11-25\",1],[\"2010-11-26\",1],[\"2010-11-28\",1],[\"2010-11-29\",1],[\"2010-11-30\",1],[\"2010-12-01\",1],[\"2010-12-02\",1],[\"2010-12-03\",1],[\"2010-12-05\",1],[\"2010-12-06\",1],[\"2010-12-07\",1],[\"2010-12-08\",1],[\"2010-12-09\",1],[\"2010-12-10\",1],[\"2010-12-12\",1],[\"2010-12-13\",1],[\"2010-12-14\",1],[\"2010-12-15\",1],[\"2010-12-16\",1],[\"2010-12-17\",1],[\"2010-12-19\",1],[\"2010-12-20\",1],[\"2010-12-21\",1],[\"2010-12-22\",1],[\"2010-12-23\",1],[\"2011-01-04\",4],[\"2011-01-05\",1],[\"2011-01-06\",6],[\"2011-01-07\",1],[\"2011-01-09\",2],[\"2011-01-10\",1],[\"2011-01-11\",1],[\"2011-01-12\",1],[\"2011-01-13\",2],[\"2011-01-14\",1],[\"2011-01-16\",1],[\"2011-01-17\",1],[\"2011-01-18\",3],[\"2011-01-19\",1],[\"2011-01-20\",1],[\"2011-01-21\",1],[\"2011-01-23\",1],[\"2011-01-24\",1],[\"2011-01-25\",1],[\"2011-01-26\",2],[\"2011-01-27\",1],[\"2011-01-28\",4],[\"2011-01-30\",12],[\"2011-01-31\",1],[\"2011-02-01\",1],[\"2011-02-02\",1],[\"2011-02-03\",2],[\"2011-02-04\",1],[\"2011-02-07\",1],[\"2011-02-08\",3],[\"2011-02-09\",1],[\"2011-02-10\",1],[\"2011-02-11\",1],[\"2011-02-13\",4],[\"2011-02-14\",1],[\"2011-02-15\",1],[\"2011-02-16\",2],[\"2011-02-17\",1],[\"2011-02-18\",1],[\"2011-02-20\",3],[\"2011-02-21\",1],[\"2011-02-22\",1],[\"2011-02-23\",2],[\"2011-02-24\",2],[\"2011-02-25\",1],[\"2011-02-27\",1],[\"2011-02-28\",1],[\"2011-03-01\",1],[\"2011-03-02\",3],[\"2011-03-03\",1],[\"2011-03-04\",1],[\"2011-03-06\",2],[\"2011-03-07\",1],[\"2011-03-08\",4],[\"2011-03-09\",1],[\"2011-03-10\",1],[\"2011-03-11\",1],[\"2011-03-14\",1],[\"2011-03-15\",1],[\"2011-03-16\",1],[\"2011-03-17\",1],[\"2011-03-18\",1],[\"2011-03-20\",1],[\"2011-03-21\",1],[\"2011-03-22\",4],[\"2011-03-23\",1],[\"2011-03-24\",4],[\"2011-03-25\",1],[\"2011-03-27\",2],[\"2011-03-28\",1],[\"2011-03-29\",4],[\"2011-03-30\",1],[\"2011-03-31\",1],[\"2011-04-01\",1],[\"2011-04-03\",1],[\"2011-04-04\",1],[\"2011-04-05\",1],[\"2011-04-06\",1],[\"2011-04-07\",1],[\"2011-04-08\",1],[\"2011-04-10\",24],[\"2011-04-11\",1],[\"2011-04-12\",1],[\"2011-04-13\",1],[\"2011-04-14\",1],[\"2011-04-15\",1],[\"2011-04-17\",2],[\"2011-04-18\",1],[\"2011-04-19\",1],[\"2011-04-20\",2],[\"2011-04-21\",1],[\"2011-04-26\",1],[\"2011-04-27\",1],[\"2011-04-28\",1],[\"2011-05-01\",2],[\"2011-05-03\",1],[\"2011-05-04\",1],[\"2011-05-05\",1],[\"2011-05-06\",1],[\"2011-05-08\",1],[\"2011-05-09\",1]]","source":"online_retail_ii","split":"dev","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","sql_parameters":"[92,\"2011-05-10\"]","state":"{\"question\":\"Return the minimum of quantity for retail invoice lines where (quantity is at most 92 and invoice_date is before '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\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}683{"category":"single_table/or/ranked","domain":"sensor","family_id":"fb22c40a37bd6ce92fcc5865","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"898d42a1831ba36c30dd2b8778e707daf354afca17d373d9f5aeb34d608a042f","language":"en","license":"CC-BY-4.0","query":"Return the maximum of ps2_mean for hydraulic cycles where (ts1_mean is at most 36.33327 or vs1_mean is greater than 0.71948), grouped by cooler; return at most 5 groups ordered by aggregate value DESC, breaking ties by cooler ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[36.33327,0.71948],\\\"sql\\\":\\\"SELECT cooler, MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? AND vs1_mean > ?) GROUP BY cooler ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[36.33327,0.71948],\\\"sql\\\":\\\"SELECT cooler, MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? OR vs1_mean > ?) GROUP BY cooler ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[36.33327,0.71948],\\\"sql\\\":\\\"SELECT cooler, MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? OR vs1_mean > ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[36.33327,0.71948],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? OR vs1_mean > ?) GROUP BY cooler ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[3,131.58909],[100,109.8156]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? OR vs1_mean > ?) GROUP BY cooler ORDER BY value DESC, cooler ASC LIMIT 5","sql_parameters":"[36.33327,0.71948]","state":"{\"question\":\"Return the maximum of ps2_mean for hydraulic cycles where (ts1_mean is at most 36.33327 or vs1_mean is greater than 0.71948), 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_mean\":\"REAL\",\"fs1_mean\":\"REAL\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}684{"category":"single_table/and/grouped","domain":"commerce","family_id":"1633878da278264b67457c1f","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"5e06fe3b2455e7afee6a4b96a9936039a36702bf50f31cdd38758cd0a15668a1","language":"en","license":"CC-BY-4.0","query":"Return the maximum of product_duration for shopping sessions where (region equals 8 and product_related is at most 226), grouped by revenue, ordered by revenue ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[8,226],\\\"sql\\\":\\\"SELECT revenue, MAX(product_duration) AS value FROM shopping_sessions WHERE (region = ? OR product_related <= ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[8,226],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (region = ? AND product_related <= ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[8,226],\\\"sql\\\":\\\"SELECT revenue, SUM(product_duration) AS value FROM shopping_sessions WHERE (region = ? AND product_related <= ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[8,226],\\\"sql\\\":\\\"SELECT revenue, MAX(product_duration) AS value FROM shopping_sessions WHERE (region = ? AND product_related <= ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,8024.509197],[1,7243.649316]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, MAX(product_duration) AS value FROM shopping_sessions WHERE (region = ? AND product_related <= ?) GROUP BY revenue ORDER BY revenue ASC","sql_parameters":"[8,226]","state":"{\"question\":\"Return the maximum of product_duration for shopping sessions where (region equals 8 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\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}685{"category":"single_table/aggregate","domain":"commerce","family_id":"df15f1339b4c9198ec5f3a10","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"18726d10543c3101fddda9003427427dd4ca25e3ab0ccb17b39390a68fb6f585","language":"en","license":"CC-BY-4.0","query":"Return the maximum of administrative for shopping sessions where (administrative is greater than 23).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[23],\\\"sql\\\":\\\"SELECT MAX(administrative) AS value FROM shopping_sessions WHERE (administrative > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[23],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (administrative > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[23],\\\"sql\\\":\\\"SELECT SUM(administrative) AS value FROM shopping_sessions WHERE (administrative > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[23],\\\"sql\\\":\\\"SELECT AVG(administrative) AS value FROM shopping_sessions WHERE (administrative > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[27]]","source":"online_shoppers","split":"dev","sql":"SELECT MAX(administrative) AS value FROM shopping_sessions WHERE (administrative > ?)","sql_parameters":"[23]","state":"{\"question\":\"Return the maximum of administrative for shopping sessions where (administrative is greater than 23).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}686{"category":"single_table/or/aggregate","domain":"sensor","family_id":"f91c80c9f81fd0fcb7fecec8","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"900db01fdc589ce086726892f85f9afaa9b0c4b0550abc60497b9724280e236a","language":"en","license":"CC-BY-4.0","query":"Return the average of fs1_mean for hydraulic cycles where (ts1_mean is at most 36.33327 or vs1_mean is at most 0.56377).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[36.33327,0.56377],\\\"sql\\\":\\\"SELECT AVG(fs1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? AND vs1_mean <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[36.33327,0.56377],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? OR vs1_mean <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[36.33327,0.56377],\\\"sql\\\":\\\"SELECT SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? OR vs1_mean <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[36.33327,0.56377],\\\"sql\\\":\\\"SELECT AVG(fs1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? OR vs1_mean <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[6.581701031636864]]","source":"hydraulic","split":"dev","sql":"SELECT AVG(fs1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? OR vs1_mean <= ?)","sql_parameters":"[36.33327,0.56377]","state":"{\"question\":\"Return the average of fs1_mean for hydraulic cycles where (ts1_mean is at most 36.33327 or 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_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}687{"category":"single_table/and/having","domain":"sensor","family_id":"373ec56b0af2eac925eb6cf8","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"6f10f9d10dd87a4fb90715a2b23d7c9d2bc8e1b6b465ea46511fe2c02359e32d","language":"en","license":"CC-BY-4.0","query":"Return the minimum of eps1_mean for hydraulic cycles where (pump_leakage equals 1 and fs1_mean is at most 6.57291), grouped by pump_leakage, keeping only groups with at least 10 matching rows; return at most 3 groups ordered by aggregate value ASC, breaking ties by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[1,6.57291,10],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(eps1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? OR fs1_mean <= ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[1,6.57291,10],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(eps1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? AND fs1_mean <= ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[1,6.57291,10],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? AND fs1_mean <= ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[1,6.57291,10],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(eps1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? AND fs1_mean <= ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1,2374.582]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, MIN(eps1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? AND fs1_mean <= ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value ASC, pump_leakage ASC LIMIT 3","sql_parameters":"[1,6.57291,10]","state":"{\"question\":\"Return the minimum of eps1_mean for hydraulic cycles where (pump_leakage equals 1 and fs1_mean is at most 6.57291), grouped by pump_leakage, keeping only groups with at least 10 matching rows; 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\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}688{"category":"single_table/aggregate","domain":"sensor","family_id":"fe786a7968ea41b0616d684c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"a8b6781034fc2e48bf558e2c84e7073e68bcf550930596c7c9503cce9b05b983","language":"en","license":"CC-BY-4.0","query":"Return the minimum of ps2_mean for hydraulic cycles where (eps1_mean is greater than 2544.76).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2544.76],\\\"sql\\\":\\\"SELECT MIN(ps2_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2544.76],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (eps1_mean > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2544.76],\\\"sql\\\":\\\"SELECT SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2544.76],\\\"sql\\\":\\\"SELECT AVG(ps2_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[108.41435]]","source":"hydraulic","split":"dev","sql":"SELECT MIN(ps2_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ?)","sql_parameters":"[2544.76]","state":"{\"question\":\"Return the minimum of ps2_mean for hydraulic cycles where (eps1_mean is greater than 2544.76).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}689{"category":"single_table/or/grouped","domain":"commerce","family_id":"cd779062bf0bdd1927610428","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"faddd80cb2f8c794b505752ca42052007d3720d5c0cee5e962a5767b9924fc04","language":"en","license":"CC-BY-4.0","query":"Return the sum of quantity for retail invoice lines where (country equals 'Channel Islands' or quantity is at most 92), grouped by country, ordered by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\",92],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\",92],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\",92],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\",92],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?) GROUP BY country ORDER BY country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",611],[\"Austria\",229],[\"Bahrain\",97],[\"Belgium\",422],[\"Canada\",52],[\"Channel Islands\",2482],[\"Cyprus\",66],[\"Denmark\",385],[\"EIRE\",3406],[\"Finland\",1912],[\"France\",3920],[\"Germany\",5865],[\"Israel\",34],[\"Italy\",180],[\"Japan\",315],[\"Netherlands\",1388],[\"Norway\",114],[\"Poland\",157],[\"Portugal\",219],[\"Singapore\",6],[\"Spain\",1313],[\"Sweden\",972],[\"Switzerland\",599],[\"USA\",36],[\"United Arab Emirates\",2],[\"United Kingdom\",351104]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?) GROUP BY country ORDER BY country ASC","sql_parameters":"[\"Channel Islands\",92]","state":"{\"question\":\"Return the sum of quantity for retail invoice lines where (country equals 'Channel Islands' or quantity is at most 92), 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\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}690{"category":"single_table/and/having","domain":"commerce","family_id":"41d6f8ad3cf4ba5f0356ccc1","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"4b55a3ff42fff9e569fe208eba7b7a8885075abb77d2be8dfb003d87e56bbd0f","language":"en","license":"CC-BY-4.0","query":"Return the minimum of product_related for shopping sessions where (month equals 'May' and product_duration is greater than 167.5), grouped by month, keeping only groups with at least 10 matching rows; return at most 3 groups ordered by aggregate value ASC, breaking ties by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"May\\\",167.5,10],\\\"sql\\\":\\\"SELECT month, MIN(product_related) AS value FROM shopping_sessions WHERE (month = ? OR product_duration > ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value ASC, month ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"May\\\",167.5,10],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (month = ? AND product_duration > ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value ASC, month ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"May\\\",167.5,10],\\\"sql\\\":\\\"SELECT month, SUM(product_related) AS value FROM shopping_sessions WHERE (month = ? AND product_duration > ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value ASC, month ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"May\\\",167.5,10],\\\"sql\\\":\\\"SELECT month, MIN(product_related) AS value FROM shopping_sessions WHERE (month = ? AND product_duration > ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value ASC, month ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"May\",1]]","source":"online_shoppers","split":"dev","sql":"SELECT month, MIN(product_related) AS value FROM shopping_sessions WHERE (month = ? AND product_duration > ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value ASC, month ASC LIMIT 3","sql_parameters":"[\"May\",167.5,10]","state":"{\"question\":\"Return the minimum of product_related for shopping sessions where (month equals 'May' and product_duration is greater than 167.5), grouped by month, keeping only groups with at least 10 matching rows; return at most 3 groups ordered by aggregate value ASC, breaking ties by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}691{"category":"single_table/or/having","domain":"sensor","family_id":"a0e22a3247bab973d36f7723","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"493f57a442f4b16919aa1acd8166319709754b7134776a159c0e89f8083c7f48","language":"en","license":"CC-BY-4.0","query":"Return the average of fs1_mean for hydraulic cycles where (ps1_mean is greater than 156.56746 or eps1_mean is greater than 2598.8769), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[156.56746,2598.8769,10],\\\"sql\\\":\\\"SELECT valve, AVG(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? OR eps1_mean > ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[156.56746,2598.8769,10],\\\"sql\\\":\\\"SELECT valve, AVG(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? AND eps1_mean > ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[156.56746,2598.8769,10],\\\"sql\\\":\\\"SELECT valve, AVG(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? OR eps1_mean > ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[156.56746,2598.8769,10],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? OR eps1_mean > ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[73,5.881434603174603],[90,5.9116526298701295],[80,5.9182591233766235]]","source":"hydraulic","split":"dev","sql":"SELECT valve, AVG(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? OR eps1_mean > ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 3","sql_parameters":"[156.56746,2598.8769,10]","state":"{\"question\":\"Return the average of fs1_mean for hydraulic cycles where (ps1_mean is greater than 156.56746 or eps1_mean is greater than 2598.8769), 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\",\"cooler\":\"INTEGER\",\"cycle_id\":\"INTEGER\",\"eps1_mean\":\"REAL\",\"fs1_mean\":\"REAL\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}692{"category":"single_table/or/having","domain":"commerce","family_id":"95b775f3a1796de6a9273527","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"5b674dc01ffa4d9a7d14e8ac344084c8002970e30b9fc9edc670ecc36b819097","language":"en","license":"CC-BY-4.0","query":"Return the average of unit_price for retail invoice lines where (country equals 'Austria' or unit_price is greater than 2.25), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Austria\\\",2.25,10],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price > ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Austria\\\",2.25,10],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? AND unit_price > ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Austria\\\",2.25],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price > ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Austria\\\",2.25,10],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price > ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-07-18\",3.3579999999999997],[\"2011-02-08\",3.4583333333333335],[\"2010-12-23\",3.736666666666667]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price > ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3","sql_parameters":"[\"Austria\",2.25,10]","state":"{\"question\":\"Return the average of unit_price for retail invoice lines where (country equals 'Austria' or unit_price is greater than 2.25), 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\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}693{"category":"single_table/or/ranked","domain":"commerce","family_id":"cee551f9e88f1c8aa8598e23","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"6e31505c33ca6f2b8a859462f8f602229069feb41ec7c020ce1829632ef88a5e","language":"en","license":"CC-BY-4.0","query":"Return the average of product_related for shopping sessions where (visitor_type equals 'Other' or traffic_type equals 17), grouped by month; return at most 3 groups ordered by aggregate value ASC, breaking ties by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Other\\\",17],\\\"sql\\\":\\\"SELECT month, AVG(product_related) AS value FROM shopping_sessions WHERE (visitor_type = ? OR traffic_type = ?) GROUP BY month ORDER BY value ASC, month ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Other\\\",17],\\\"sql\\\":\\\"SELECT month, AVG(product_related) AS value FROM shopping_sessions WHERE (visitor_type = ? AND traffic_type = ?) GROUP BY month ORDER BY value ASC, month ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Other\\\",17],\\\"sql\\\":\\\"SELECT month, AVG(product_related) AS value FROM shopping_sessions WHERE (visitor_type = ? OR traffic_type = ?) GROUP BY month ORDER BY value DESC, month ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Other\\\",17],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (visitor_type = ? OR traffic_type = ?) GROUP BY month ORDER BY value ASC, month ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"May\",4.0],[\"Dec\",9.806451612903226],[\"Nov\",10.454545454545455]]","source":"online_shoppers","split":"dev","sql":"SELECT month, AVG(product_related) AS value FROM shopping_sessions WHERE (visitor_type = ? OR traffic_type = ?) GROUP BY month ORDER BY value ASC, month ASC LIMIT 3","sql_parameters":"[\"Other\",17]","state":"{\"question\":\"Return the average of product_related for shopping sessions where (visitor_type equals 'Other' or traffic_type equals 17), grouped by month; return at most 3 groups ordered by aggregate value ASC, breaking ties by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}694{"category":"single_table/and/grouped","domain":"commerce","family_id":"aa4616e8e02091094ad6a7d5","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"30bc84774de742c00eac2d4dc6a96f48dbe0283f6bd742b92653c9c07279c2f2","language":"en","license":"CC-BY-4.0","query":"Return the average of product_duration for shopping sessions where (traffic_type equals 12 and product_duration is greater than 3395.729484), grouped by revenue, ordered by revenue ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[12,3395.729484],\\\"sql\\\":\\\"SELECT revenue, AVG(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ? OR product_duration > ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT revenue, AVG(product_duration) AS value FROM shopping_sessions GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[12],\\\"sql\\\":\\\"SELECT revenue, AVG(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[12,3395.729484],\\\"sql\\\":\\\"SELECT revenue, AVG(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ? AND product_duration > ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, AVG(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ? AND product_duration > ?) GROUP BY revenue ORDER BY revenue ASC","sql_parameters":"[12,3395.729484]","state":"{\"question\":\"Return the average of product_duration for shopping sessions where (traffic_type equals 12 and product_duration is greater than 3395.729484), grouped by revenue, ordered by revenue ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}695{"category":"single_table/or/grouped","domain":"sensor","family_id":"e03e27112df7ce12fa584fbb","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"ec1a2c735737491b3f7e5f418a4709e18d163f64db533aef56e6fce4eae6e657","language":"en","license":"CC-BY-4.0","query":"Return the maximum of ts1_mean for hydraulic cycles where (eps1_mean is greater than 2544.76 or vs1_mean is greater than 0.71948), grouped by cooler, ordered by cooler ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2544.76,0.71948],\\\"sql\\\":\\\"SELECT cooler, MAX(ts1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ? AND vs1_mean > ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2544.76,0.71948],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (eps1_mean > ? OR vs1_mean > ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2544.76,0.71948],\\\"sql\\\":\\\"SELECT cooler, SUM(ts1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ? OR vs1_mean > ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2544.76,0.71948],\\\"sql\\\":\\\"SELECT cooler, MAX(ts1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ? OR vs1_mean > ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[3,57.89928],[100,36.37988]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, MAX(ts1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ? OR vs1_mean > ?) GROUP BY cooler ORDER BY cooler ASC","sql_parameters":"[2544.76,0.71948]","state":"{\"question\":\"Return the maximum of ts1_mean for hydraulic cycles where (eps1_mean is greater than 2544.76 or vs1_mean is greater than 0.71948), grouped by cooler, ordered by cooler ascending.\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}696{"category":"single_table/grouped","domain":"commerce","family_id":"7abd88a5efff5dfe7d0cea63","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"7676fa76ceda10f27f580d266ae4f5f0eade6d33914f5c88fe5f4d0bf9c4625a","language":"en","license":"CC-BY-4.0","query":"Return the sum of product_duration for shopping sessions where (product_related is at most 155), grouped by month, ordered by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[155],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (product_related <= ?) GROUP BY month ORDER BY month ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[155],\\\"sql\\\":\\\"SELECT month, AVG(product_duration) AS value FROM shopping_sessions WHERE (product_related <= ?) GROUP BY month ORDER BY month ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[155],\\\"sql\\\":\\\"SELECT month, SUM(product_duration) AS value FROM shopping_sessions WHERE (product_related <= ?) GROUP BY month ORDER BY month ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[155],\\\"sql\\\":\\\"SELECT month, MIN(product_duration) AS value FROM shopping_sessions WHERE (product_related <= ?) GROUP BY month ORDER BY month ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Aug\",437888.08228246],[\"Dec\",1683758.5844565],[\"Feb\",86666.695096867],[\"Jul\",392814.5208572],[\"June\",242848.35100113],[\"Mar\",1496702.5594313531],[\"May\",3069446.189808513],[\"Nov\",3918864.41402142],[\"Oct\",528827.57216055],[\"Sep\",462275.20854464]]","source":"online_shoppers","split":"dev","sql":"SELECT month, SUM(product_duration) AS value FROM shopping_sessions WHERE (product_related <= ?) GROUP BY month ORDER BY month ASC","sql_parameters":"[155]","state":"{\"question\":\"Return the sum of product_duration for shopping sessions where (product_related is at most 155), grouped by month, ordered by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}697{"category":"single_table/and/having","domain":"commerce","family_id":"4fe87b7a41c8ce2a76bed9ea","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"d36008614f83a6420458439db8de8927877c6895e91fe45db25ae3ee5db823ab","language":"en","license":"CC-BY-4.0","query":"Return the sum of unit_price for retail invoice lines where (country equals 'Australia' and quantity is at most 648), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Australia\\\",648,10],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Australia\\\",648,10],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Australia\\\",648,10],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Australia\\\",648,10],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",138.82]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3","sql_parameters":"[\"Australia\",648,10]","state":"{\"question\":\"Return the sum of unit_price for retail invoice lines where (country equals 'Australia' and quantity is at most 648), 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\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}698{"category":"single_table/and/having","domain":"commerce","family_id":"d3de8f6d2266e168ee7d0659","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"2b2cc5be9f144115611fb64390e9e06e29d55c583be05fd74bd39a94ad119f6c","language":"en","license":"CC-BY-4.0","query":"Return the average of product_duration for shopping sessions where (month equals 'Dec' and traffic_type equals 13), grouped by month, keeping only groups with at least 10 matching rows; return at most 3 groups ordered by aggregate value ASC, breaking ties by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Dec\\\",13,10],\\\"sql\\\":\\\"SELECT month, AVG(product_duration) AS value FROM shopping_sessions WHERE (month = ? OR traffic_type = ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value ASC, month ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Dec\\\",13,10],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (month = ? AND traffic_type = ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value ASC, month ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Dec\\\",13,10],\\\"sql\\\":\\\"SELECT month, AVG(product_duration) AS value FROM shopping_sessions WHERE (month = ? AND traffic_type = ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value ASC, month ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Dec\\\",13,10],\\\"sql\\\":\\\"SELECT month, SUM(product_duration) AS value FROM shopping_sessions WHERE (month = ? AND traffic_type = ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value ASC, month ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Dec\",752.0323138673584]]","source":"online_shoppers","split":"dev","sql":"SELECT month, AVG(product_duration) AS value FROM shopping_sessions WHERE (month = ? AND traffic_type = ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value ASC, month ASC LIMIT 3","sql_parameters":"[\"Dec\",13,10]","state":"{\"question\":\"Return the average of product_duration for shopping sessions where (month equals 'Dec' and traffic_type equals 13), grouped by month, keeping only groups with at least 10 matching rows; return at most 3 groups ordered by aggregate value ASC, breaking ties by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}699{"category":"single_table/or/having","domain":"commerce","family_id":"2754bce8f91e76032dd83cd6","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"d76e6f9200415465cc07c117ac0fe759cc33c2e32f9049146db426e82237f768","language":"en","license":"CC-BY-4.0","query":"Return the minimum of product_related for shopping sessions where (administrative is greater than 7 or product_related is greater than 93), grouped by month, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[7,93,2],\\\"sql\\\":\\\"SELECT month, MIN(product_related) AS value FROM shopping_sessions WHERE (administrative > ? AND product_related > ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[7,93,2],\\\"sql\\\":\\\"SELECT month, MIN(product_related) AS value FROM shopping_sessions WHERE (administrative > ? OR product_related > ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value ASC, month ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[7,93,2],\\\"sql\\\":\\\"SELECT month, MIN(product_related) AS value FROM shopping_sessions WHERE (administrative > ? OR product_related > ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[7,93,2],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (administrative > ? OR product_related > ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Feb\",36],[\"Aug\",10],[\"Jul\",7],[\"June\",7],[\"Sep\",7]]","source":"online_shoppers","split":"dev","sql":"SELECT month, MIN(product_related) AS value FROM shopping_sessions WHERE (administrative > ? OR product_related > ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5","sql_parameters":"[7,93,2]","state":"{\"question\":\"Return the minimum of product_related for shopping sessions where (administrative is greater than 7 or product_related is greater than 93), grouped by month, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}700{"category":"single_table/and/aggregate","domain":"commerce","family_id":"158b7fd239166d0f7c30527f","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"8354091e9ec42525c654377480f7c8e5807175f3ac077d0e9a7d7e0c519f2aad","language":"en","license":"CC-BY-4.0","query":"Return the maximum of product_duration for shopping sessions where (visitor_type equals 'Returning_Visitor' and traffic_type equals 16).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Returning_Visitor\\\",16],\\\"sql\\\":\\\"SELECT MAX(product_duration) AS value FROM shopping_sessions WHERE (visitor_type = ? OR traffic_type = ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Returning_Visitor\\\",16],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (visitor_type = ? AND traffic_type = ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Returning_Visitor\\\",16],\\\"sql\\\":\\\"SELECT MAX(product_duration) AS value FROM shopping_sessions WHERE (visitor_type = ? AND traffic_type = ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Returning_Visitor\\\",16],\\\"sql\\\":\\\"SELECT SUM(product_duration) AS value FROM shopping_sessions WHERE (visitor_type = ? AND traffic_type = ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1229.466667]]","source":"online_shoppers","split":"dev","sql":"SELECT MAX(product_duration) AS value FROM shopping_sessions WHERE (visitor_type = ? AND traffic_type = ?)","sql_parameters":"[\"Returning_Visitor\",16]","state":"{\"question\":\"Return the maximum of product_duration for shopping sessions where (visitor_type equals 'Returning_Visitor' and traffic_type equals 16).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}701{"category":"join/date/or/aggregate","domain":"commerce","family_id":"f36fdb99e025b70eca6c5036","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"23d495b198475661f4eadcf12cfa23c96eaad2492a1316b3e9a2f0c3336d0df0","language":"en","license":"CC-BY-4.0","query":"Return the maximum of l.unit_price for retail lines joined to their invoices where (l.unit_price is greater than 8.5 or i.invoice_date is on or after '2011-09-29').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[8.5,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) 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\\\":[8.5,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT 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 >= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[8.5,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT SUM(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_4\":\"{\\\"parameters\\\":[8.5,\\\"2011-09-29\\\"],\\\"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 >= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[3949.32]]","source":"online_retail_ii","split":"dev","sql":"SELECT 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 >= ?)","sql_parameters":"[8.5,\"2011-09-29\"]","state":"{\"question\":\"Return the maximum of l.unit_price for retail lines joined to their invoices where (l.unit_price is greater than 8.5 or i.invoice_date is on or after '2011-09-29').\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}702{"category":"single_table/or/grouped","domain":"sensor","family_id":"6916bece1f6aacef7ef009ee","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"714fc0186f171898d0ce42d2fa97dfafb2f065c89a1f75aea9f70a0780a53091","language":"en","license":"CC-BY-4.0","query":"Return the minimum of ps1_mean for hydraulic cycles where (eps1_mean is greater than 2598.8769 or ts1_mean is at most 35.56605), grouped by pump_leakage, ordered by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2598.8769,35.56605],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(ps1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ? OR ts1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2598.8769,35.56605],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(ps1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ? AND ts1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2598.8769,35.56605],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (eps1_mean > ? OR ts1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2598.8769,35.56605],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ? OR ts1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,160.93769],[1,160.67221],[2,160.71169]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, MIN(ps1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ? OR ts1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC","sql_parameters":"[2598.8769,35.56605]","state":"{\"question\":\"Return the minimum of ps1_mean for hydraulic cycles where (eps1_mean is greater than 2598.8769 or ts1_mean is at most 35.56605), 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_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}703{"category":"join/distinct_invoice/or/ranked","domain":"commerce","family_id":"1bf0d82e2635527c668482f8","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"3a5b16338dc61606a20d4c524cbf239d8538208beb333a16bb010d029a7d0931","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.customer_id equals '12366' or l.quantity is at most 1800), grouped by i.invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12366\\\",1800],\\\"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.customer_id = ? AND l.quantity <= ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12366\\\",1800],\\\"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.customer_id = ? OR l.quantity <= ?) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12366\\\",1800],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR l.quantity <= ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12366\\\",1800],\\\"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.customer_id = ? OR l.quantity <= ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-01-06\",1],[\"2010-01-18\",1],[\"2010-07-11\",1]]","source":"online_retail_ii","split":"dev","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.customer_id = ? OR l.quantity <= ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3","sql_parameters":"[\"12366\",1800]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.customer_id equals '12366' or l.quantity is at most 1800), grouped by i.invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}704{"category":"join/distinct_invoice/and/having","domain":"commerce","family_id":"76fbc55618d87cda0a0f442d","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"22f8f4d84ab35de8e79eb0df870419346fab6fe565203b5184ad593aa42141ef","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.customer_id equals '12348' and l.quantity is greater than 229), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12348\\\",229,10],\\\"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.customer_id = ? AND l.quantity > ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12348\\\",229,10],\\\"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.customer_id = ? OR l.quantity > ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[10],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[229,10],\\\"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 HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","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.customer_id = ? AND l.quantity > ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3","sql_parameters":"[\"12348\",229,10]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.customer_id equals '12348' and l.quantity is greater than 229), 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_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}705{"category":"single_table/and/having","domain":"commerce","family_id":"45986a9dda8644597e2aad09","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"e423cc9a742129740428211e4935a4b2ec4b0779119c4a6699170f53c0c12e4e","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (country equals 'Denmark' and quantity is at most 1800), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Denmark\\\",1800,10],\\\"sql\\\":\\\"SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Denmark\\\",1800,10],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Denmark\\\",1800,10],\\\"sql\\\":\\\"SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Denmark\\\",1800,10],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Denmark\",18.0]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3","sql_parameters":"[\"Denmark\",1800,10]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines where (country equals 'Denmark' and quantity is at most 1800), 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\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}706{"category":"single_table/or/aggregate","domain":"commerce","family_id":"b072787e442068e945cb947b","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"d311587487fea87ecc85e9e169a8b8252cb72935771758cabe2eef21cae3e238","language":"en","license":"CC-BY-4.0","query":"Return the maximum of administrative for shopping sessions where (administrative is at most 13 or product_duration is greater than 1564.0).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[13,1564.0],\\\"sql\\\":\\\"SELECT MAX(administrative) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_duration > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[13,1564.0],\\\"sql\\\":\\\"SELECT MAX(administrative) AS value FROM shopping_sessions WHERE (administrative <= ? AND product_duration > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[13,1564.0],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_duration > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[13,1564.0],\\\"sql\\\":\\\"SELECT SUM(administrative) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_duration > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[27]]","source":"online_shoppers","split":"dev","sql":"SELECT MAX(administrative) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_duration > ?)","sql_parameters":"[13,1564.0]","state":"{\"question\":\"Return the maximum of administrative 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\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}707{"category":"single_table/or/ranked","domain":"commerce","family_id":"f231486669dc1a55a0c15a99","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"4d16d6e969bcaad54bd39159ef0674b0a4bc2779ed7ca68597230d81f4e0c597","language":"en","license":"CC-BY-4.0","query":"Return the average of product_duration for shopping sessions where (traffic_type equals 15 or product_duration is greater than 472.4166667), grouped by visitor_type; return at most 3 groups ordered by aggregate value ASC, breaking ties by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[15,472.4166667],\\\"sql\\\":\\\"SELECT visitor_type, AVG(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ? AND product_duration > ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[15,472.4166667],\\\"sql\\\":\\\"SELECT visitor_type, AVG(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ? OR product_duration > ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[15,472.4166667],\\\"sql\\\":\\\"SELECT visitor_type, AVG(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ? OR product_duration > ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[15,472.4166667],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (traffic_type = ? OR product_duration > ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"New_Visitor\",1170.050691536579],[\"Other\",1662.953546796],[\"Returning_Visitor\",2089.117827123533]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, AVG(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ? OR product_duration > ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3","sql_parameters":"[15,472.4166667]","state":"{\"question\":\"Return the average of product_duration for shopping sessions where (traffic_type equals 15 or product_duration is greater than 472.4166667), grouped by visitor_type; return at most 3 groups ordered by aggregate value ASC, breaking ties by visitor_type ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}708{"category":"single_table/or/grouped","domain":"sensor","family_id":"99005a0dadde6a700a31e844","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"23ebf1ed145d0b1a3487007af19861e8d1ea3690ac83e5c3d2327ed82106211d","language":"en","license":"CC-BY-4.0","query":"Return the maximum of ps1_mean for hydraulic cycles where (ps1_mean is greater than 158.27043 or ps2_mean is at most 109.23171), grouped by valve, ordered by valve ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[158.27043,109.23171],\\\"sql\\\":\\\"SELECT valve, MAX(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? AND ps2_mean <= ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[158.27043,109.23171],\\\"sql\\\":\\\"SELECT valve, MAX(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? OR ps2_mean <= ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[158.27043,109.23171],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? OR ps2_mean <= ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[158.27043,109.23171],\\\"sql\\\":\\\"SELECT valve, SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? OR ps2_mean <= ?) GROUP BY valve ORDER BY valve ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[73,180.70461],[80,180.62794],[90,180.54151],[100,180.92271]]","source":"hydraulic","split":"dev","sql":"SELECT valve, MAX(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? OR ps2_mean <= ?) GROUP BY valve ORDER BY valve ASC","sql_parameters":"[158.27043,109.23171]","state":"{\"question\":\"Return the maximum of ps1_mean for hydraulic cycles where (ps1_mean is greater than 158.27043 or ps2_mean is at most 109.23171), 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\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}709{"category":"single_table/date/or/ranked","domain":"commerce","family_id":"373dde6589162641acfa304f","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"6f3504b3b3334d9fa649403c291069d52dde7566ccf634e840f76417210a7902","language":"en","license":"CC-BY-4.0","query":"Return the average of quantity for retail invoice lines where (quantity is greater than 229 or invoice_date is on or after '2011-05-10'), grouped by country; return at most 3 groups ordered by aggregate value ASC, breaking ties by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[229,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (quantity > ? AND invoice_date >= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[229,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (quantity > ? OR invoice_date >= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[229,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (quantity > ? OR invoice_date >= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[229,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (quantity > ? OR invoice_date >= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Singapore\",1.0],[\"Switzerland\",1.0],[\"Israel\",2.0]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (quantity > ? OR invoice_date >= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3","sql_parameters":"[229,\"2011-05-10\"]","state":"{\"question\":\"Return the average of quantity for retail invoice lines where (quantity is greater than 229 or invoice_date is on or after '2011-05-10'), 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\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}710{"category":"join/date/or/grouped","domain":"commerce","family_id":"d2675d729366d96ad8bd9d85","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"3cd72e17f29e521e5b3ed45bda5ff511ac7a29e49aedabdc67815eabb1069c5d","language":"en","license":"CC-BY-4.0","query":"Return the average of l.quantity for retail lines joined to their invoices where (l.quantity is greater than 25 or i.invoice_date is on or after '2010-02-18'), grouped by i.invoice_date, ordered by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[25,\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(l.quantity) 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.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[25,\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) 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.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[25,\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.quantity) 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.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[25,\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, 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 >= ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-01\",63.69230769230769],[\"2009-12-02\",101.75],[\"2009-12-03\",1092.9473684210527],[\"2009-12-04\",122.3125],[\"2009-12-05\",84.0],[\"2009-12-06\",51.0],[\"2009-12-07\",84.8],[\"2009-12-08\",139.8],[\"2009-12-09\",60.4],[\"2009-12-10\",70.66666666666667],[\"2009-12-11\",37.333333333333336],[\"2009-12-13\",60.0],[\"2009-12-14\",66.0],[\"2009-12-15\",124.40625],[\"2009-12-16\",103.33333333333333],[\"2009-12-17\",72.0],[\"2009-12-18\",79.63636363636364],[\"2009-12-20\",109.0],[\"2009-12-21\",88.0],[\"2009-12-22\",164.25],[\"2009-12-23\",88.5],[\"2010-01-04\",130.85714285714286],[\"2010-01-05\",129.14285714285714],[\"2010-01-07\",228.44444444444446],[\"2010-01-08\",252.57142857142858],[\"2010-01-10\",142.25],[\"2010-01-11\",173.75],[\"2010-01-12\",141.8],[\"2010-01-13\",149.71428571428572],[\"2010-01-14\",54.4],[\"2010-01-15\",70.33333333333333],[\"2010-01-17\",126.25],[\"2010-01-18\",48.0],[\"2010-01-19\",48.75],[\"2010-01-20\",171.5],[\"2010-01-21\",85.6],[\"2010-01-22\",80.0],[\"2010-01-24\",42.666666666666664],[\"2010-01-25\",48.0],[\"2010-01-27\",158.1904761904762],[\"2010-01-28\",63.6],[\"2010-01-29\",113.0909090909091],[\"2010-01-31\",64.0],[\"2010-02-01\",82.28571428571429],[\"2010-02-02\",120.0],[\"2010-02-03\",66.0],[\"2010-02-04\",112.85714285714286],[\"2010-02-05\",101.06666666666666],[\"2010-02-07\",196.0],[\"2010-02-08\",66.0],[\"2010-02-09\",66.57142857142857],[\"2010-02-10\",40.8],[\"2010-02-11\",122.66666666666667],[\"2010-02-12\",181.57142857142858],[\"2010-02-14\",112.66666666666667],[\"2010-02-15\",80.44444444444444],[\"2010-02-16\",116.66666666666667],[\"2010-02-17\",143.0],[\"2010-02-18\",28.0],[\"2010-02-19\",118.47058823529412],[\"2010-02-21\",37.55555555555556],[\"2010-02-22\",21.12],[\"2010-02-23\",16.68421052631579],[\"2010-02-24\",47.48979591836735],[\"2010-02-25\",84.03636363636363],[\"2010-02-26\",38.27777777777778],[\"2010-02-28\",29.43243243243243],[\"2010-03-01\",37.0],[\"2010-03-02\",19.533333333333335],[\"2010-03-03\",12.717391304347826],[\"2010-03-04\",37.29032258064516],[\"2010-03-05\",32.94202898550725],[\"2010-03-07\",9.75],[\"2010-03-08\",39.876543209876544],[\"2010-03-09\",30.5],[\"2010-03-10\",67.16216216216216],[\"2010-03-11\",20.62857142857143],[\"2010-03-12\",16.82857142857143],[\"2010-03-14\",20.772727272727273],[\"2010-03-15\",67.93939393939394],[\"2010-03-16\",22.91304347826087],[\"2010-03-17\",141.93333333333334],[\"2010-03-18\",75.73846153846154],[\"2010-03-19\",93.17647058823529],[\"2010-03-21\",32.458333333333336],[\"2010-03-22\",53.46666666666667],[\"2010-03-23\",876.0384615384615],[\"2010-03-24\",23.21951219512195],[\"2010-03-25\",16.764705882352942],[\"2010-03-26\",13.114285714285714],[\"2010-03-28\",25.076923076923077],[\"2010-03-29\",134.7058823529412],[\"2010-03-30\",24.564102564102566],[\"2010-03-31\",22.46153846153846],[\"2010-04-01\",72.88235294117646],[\"2010-04-06\",80.7],[\"2010-04-07\",32.51428571428571],[\"2010-04-08\",40.041666666666664],[\"2010-04-09\",25.8],[\"2010-04-11\",69.21739130434783],[\"2010-04-12\",37.513513513513516],[\"2010-04-13\",22.444444444444443],[\"2010-04-14\",39.51111111111111],[\"2010-04-15\",14.703703703703704],[\"2010-04-16\",50.604651162790695],[\"2010-04-18\",46.421052631578945],[\"2010-04-19\",43.30357142857143],[\"2010-04-20\",36.723404255319146],[\"2010-04-21\",21.272727272727273],[\"2010-04-22\",80.17910447761194],[\"2010-04-23\",10.64864864864865],[\"2010-04-25\",37.214285714285715],[\"2010-04-26\",46.113207547169814],[\"2010-04-27\",24.89090909090909],[\"2010-04-28\",31.76086956521739],[\"2010-04-29\",30.956521739130434],[\"2010-04-30\",13.447368421052632],[\"2010-05-02\",32.0],[\"2010-05-04\",38.88235294117647],[\"2010-05-05\",31.825],[\"2010-05-06\",33.765957446808514],[\"2010-05-07\",57.903225806451616],[\"2010-05-09\",8.511111111111111],[\"2010-05-10\",56.76119402985075],[\"2010-05-11\",15.105263157894736],[\"2010-05-12\",103.97619047619048],[\"2010-05-13\",29.214285714285715],[\"2010-05-14\",65.35897435897436],[\"2010-05-16\",30.894736842105264],[\"2010-05-17\",35.76190476190476],[\"2010-05-18\",327.5952380952381],[\"2010-05-19\",37.5],[\"2010-05-20\",16.1875],[\"2010-05-21\",11.642857142857142],[\"2010-05-23\",24.107142857142858],[\"2010-05-24\",11.681818181818182],[\"2010-05-25\",97.6470588235294],[\"2010-05-26\",38.19642857142857],[\"2010-05-27\",22.2],[\"2010-05-28\",30.045454545454547],[\"2010-05-30\",24.166666666666668],[\"2010-06-01\",18.575757575757574],[\"2010-06-02\",9.266666666666667],[\"2010-06-03\",39.666666666666664],[\"2010-06-04\",26.8],[\"2010-06-06\",13.666666666666666],[\"2010-06-07\",179.77586206896552],[\"2010-06-08\",119.46666666666667],[\"2010-06-09\",60.411764705882355],[\"2010-06-10\",10.0],[\"2010-06-11\",38.977777777777774],[\"2010-06-13\",18.633333333333333],[\"2010-06-14\",21.94736842105263],[\"2010-06-15\",54.69230769230769],[\"2010-06-16\",35.08620689655172],[\"2010-06-17\",11.85],[\"2010-06-18\",11.935483870967742],[\"2010-06-20\",53.95238095238095],[\"2010-06-21\",7.3125],[\"2010-06-22\",14.705882352941176],[\"2010-06-23\",53.25757575757576],[\"2010-06-24\",27.25],[\"2010-06-25\",12.421052631578947],[\"2010-06-27\",35.125],[\"2010-06-28\",70.4090909090909],[\"2010-06-29\",56.45454545454545],[\"2010-06-30\",44.125],[\"2010-07-01\",24.146341463414632],[\"2010-07-02\",1.8571428571428572],[\"2010-07-04\",25.0],[\"2010-07-05\",26.033898305084747],[\"2010-07-06\",58.28],[\"2010-07-07\",29.363636363636363],[\"2010-07-08\",17.017241379310345],[\"2010-07-09\",8.285714285714286],[\"2010-07-11\",1.3333333333333333],[\"2010-07-12\",31.35135135135135],[\"2010-07-13\",24.77358490566038],[\"2010-07-14\",19.105263157894736],[\"2010-07-15\",67.51923076923077],[\"2010-07-16\",27.810344827586206],[\"2010-07-18\",58.42307692307692],[\"2010-07-19\",22.129032258064516],[\"2010-07-20\",13.057692307692308],[\"2010-07-21\",19.0],[\"2010-07-22\",19.4],[\"2010-07-23\",56.0],[\"2010-07-25\",64.2],[\"2010-07-26\",49.97674418604651],[\"2010-07-27\",75.29166666666667],[\"2010-07-28\",30.266666666666666],[\"2010-07-29\",27.25925925925926],[\"2010-07-30\",33.88461538461539],[\"2010-08-01\",4.583333333333333],[\"2010-08-02\",23.357142857142858],[\"2010-08-03\",140.65714285714284],[\"2010-08-04\",10.25],[\"2010-08-05\",55.14754098360656],[\"2010-08-06\",19.041666666666668],[\"2010-08-08\",38.25925925925926],[\"2010-08-09\",69.8125],[\"2010-08-10\",40.9375],[\"2010-08-11\",52.333333333333336],[\"2010-08-12\",11.58974358974359],[\"2010-08-13\",21.666666666666668],[\"2010-08-15\",121.80392156862744],[\"2010-08-16\",94.61904761904762],[\"2010-08-17\",46.27272727272727],[\"2010-08-18\",9.625],[\"2010-08-19\",56.75],[\"2010-08-20\",31.068181818181817],[\"2010-08-22\",25.153846153846153],[\"2010-08-23\",22.535714285714285],[\"2010-08-24\",116.4090909090909],[\"2010-08-25\",50.73913043478261],[\"2010-08-26\",77.8974358974359],[\"2010-08-27\",9.68421052631579],[\"2010-08-29\",9.727272727272727],[\"2010-08-31\",51.794871794871796],[\"2010-09-01\",13.08108108108108],[\"2010-09-02\",26.231884057971016],[\"2010-09-03\",285.71875],[\"2010-09-05\",29.785714285714285],[\"2010-09-06\",24.96],[\"2010-09-07\",55.054054054054056],[\"2010-09-08\",34.44444444444444],[\"2010-09-09\",15.28125],[\"2010-09-10\",31.41176470588235],[\"2010-09-12\",53.5625],[\"2010-09-13\",89.87323943661971],[\"2010-09-14\",17.67241379310345],[\"2010-09-15\",20.6],[\"2010-09-16\",20.977777777777778],[\"2010-09-17\",38.47222222222222],[\"2010-09-19\",35.22222222222222],[\"2010-09-20\",65.22222222222223],[\"2010-09-21\",51.285714285714285],[\"2010-09-22\",19.209302325581394],[\"2010-09-23\",9.32258064516129],[\"2010-09-24\",19.428571428571427],[\"2010-09-26\",40.125],[\"2010-09-27\",75.42592592592592],[\"2010-09-28\",17.425],[\"2010-09-29\",21.98148148148148],[\"2010-09-30\",22.826923076923077],[\"2010-10-01\",15.205128205128204],[\"2010-10-03\",19.73913043478261],[\"2010-10-04\",41.333333333333336],[\"2010-10-05\",39.0],[\"2010-10-06\",126.25],[\"2010-10-07\",31.71186440677966],[\"2010-10-08\",354.6808510638298],[\"2010-10-10\",14.09375],[\"2010-10-11\",18.384615384615383],[\"2010-10-12\",39.83783783783784],[\"2010-10-13\",50.523809523809526],[\"2010-10-14\",81.75510204081633],[\"2010-10-15\",21.433734939759034],[\"2010-10-17\",1.0],[\"2010-10-18\",32.08888888888889],[\"2010-10-19\",9.69047619047619],[\"2010-10-20\",45.06172839506173],[\"2010-10-21\",19.09090909090909],[\"2010-10-22\",53.78688524590164],[\"2010-10-24\",21.071428571428573],[\"2010-10-25\",15.228571428571428],[\"2010-10-26\",56.136986301369866],[\"2010-10-27\",13.0],[\"2010-10-28\",20.05263157894737],[\"2010-10-29\",16.30666666666667],[\"2010-10-31\",17.3],[\"2010-11-01\",53.80952380952381],[\"2010-11-02\",20.576271186440678],[\"2010-11-03\",30.0],[\"2010-11-04\",245.67241379310346],[\"2010-11-05\",128.66666666666666],[\"2010-11-07\",11.296296296296296],[\"2010-11-08\",33.51851851851852],[\"2010-11-09\",36.333333333333336],[\"2010-11-10\",54.74757281553398],[\"2010-11-11\",57.48421052631579],[\"2010-11-12\",57.8974358974359],[\"2010-11-14\",14.533333333333333],[\"2010-11-15\",39.31818181818182],[\"2010-11-16\",45.84313725490196],[\"2010-11-17\",26.28125],[\"2010-11-18\",26.876404494382022],[\"2010-11-19\",36.53623188405797],[\"2010-11-21\",12.605263157894736],[\"2010-11-22\",17.06153846153846],[\"2010-11-23\",28.506849315068493],[\"2010-11-24\",26.385416666666668],[\"2010-11-25\",31.70769230769231],[\"2010-11-26\",26.914893617021278],[\"2010-11-28\",15.923076923076923],[\"2010-11-29\",43.701492537313435],[\"2010-11-30\",20.74736842105263],[\"2010-12-01\",40.435483870967744],[\"2010-12-02\",72.83185840707965],[\"2010-12-03\",77.05555555555556],[\"2010-12-05\",20.564102564102566],[\"2010-12-06\",39.53448275862069],[\"2010-12-07\",72.70833333333333],[\"2010-12-08\",25.280898876404493],[\"2010-12-09\",35.88659793814433],[\"2010-12-10\",20.977777777777778],[\"2010-12-12\",11.631578947368421],[\"2010-12-13\",45.472727272727276],[\"2010-12-14\",31.325],[\"2010-12-15\",11.196428571428571],[\"2010-12-16\",34.64957264957265],[\"2010-12-17\",19.473684210526315],[\"2010-12-19\",1.6666666666666667],[\"2010-12-20\",113.7948717948718],[\"2010-12-21\",12.571428571428571],[\"2010-12-22\",21.235294117647058],[\"2010-12-23\",8.615384615384615],[\"2011-01-04\",44.18181818181818],[\"2011-01-05\",59.38461538461539],[\"2011-01-06\",57.43333333333333],[\"2011-01-07\",62.25],[\"2011-01-09\",29.03846153846154],[\"2011-01-10\",27.555555555555557],[\"2011-01-11\",309.84615384615387],[\"2011-01-12\",19.620689655172413],[\"2011-01-13\",59.06666666666667],[\"2011-01-14\",15.108108108108109],[\"2011-01-16\",8.5],[\"2011-01-17\",36.225],[\"2011-01-18\",19.357142857142858],[\"2011-01-19\",40.0],[\"2011-01-20\",22.0],[\"2011-01-21\",29.285714285714285],[\"2011-01-23\",9.9],[\"2011-01-24\",13.297297297297296],[\"2011-01-25\",40.59615384615385],[\"2011-01-26\",53.638888888888886],[\"2011-01-27\",10.08108108108108],[\"2011-01-28\",13.8],[\"2011-01-30\",15.2],[\"2011-01-31\",31.0],[\"2011-02-01\",26.642857142857142],[\"2011-02-02\",25.708333333333332],[\"2011-02-03\",139.88888888888889],[\"2011-02-04\",64.33333333333333],[\"2011-02-07\",92.3225806451613],[\"2011-02-08\",78.8125],[\"2011-02-09\",5.923076923076923],[\"2011-02-10\",186.1764705882353],[\"2011-02-11\",32.03448275862069],[\"2011-02-13\",8.0],[\"2011-02-14\",48.24],[\"2011-02-15\",102.23529411764706],[\"2011-02-16\",40.163636363636364],[\"2011-02-17\",23.912280701754387],[\"2011-02-18\",27.3125],[\"2011-02-20\",54.666666666666664],[\"2011-02-21\",27.61111111111111],[\"2011-02-22\",28.17241379310345],[\"2011-02-23\",25.85185185185185],[\"2011-02-24\",17.56],[\"2011-02-25\",30.425],[\"2011-02-27\",16.307692307692307],[\"2011-02-28\",11.791666666666666],[\"2011-03-01\",28.181818181818183],[\"2011-03-02\",61.588235294117645],[\"2011-03-03\",26.615384615384617],[\"2011-03-04\",88.55813953488372],[\"2011-03-06\",25.4375],[\"2011-03-07\",40.470588235294116],[\"2011-03-08\",66.84848484848484],[\"2011-03-09\",50.86666666666667],[\"2011-03-10\",30.46511627906977],[\"2011-03-11\",31.346938775510203],[\"2011-03-14\",24.6],[\"2011-03-15\",22.36842105263158],[\"2011-03-16\",49.71739130434783],[\"2011-03-17\",52.549019607843135],[\"2011-03-18\",28.06896551724138],[\"2011-03-20\",75.06153846153846],[\"2011-03-21\",22.404255319148938],[\"2011-03-22\",36.875],[\"2011-03-23\",50.43181818181818],[\"2011-03-24\",59.125],[\"2011-03-25\",79.6923076923077],[\"2011-03-27\",17.904761904761905],[\"2011-03-28\",25.86046511627907],[\"2011-03-29\",18.842105263157894],[\"2011-03-30\",46.96],[\"2011-03-31\",26.689655172413794],[\"2011-04-01\",88.14864864864865],[\"2011-04-03\",39.26315789473684],[\"2011-04-04\",26.523809523809526],[\"2011-04-05\",99.82608695652173],[\"2011-04-06\",15.25],[\"2011-04-07\",16.849056603773583],[\"2011-04-08\",31.432835820895523],[\"2011-04-10\",24.0],[\"2011-04-11\",25.195652173913043],[\"2011-04-12\",29.0],[\"2011-04-13\",74.25581395348837],[\"2011-04-14\",54.35064935064935],[\"2011-04-15\",12.722222222222221],[\"2011-04-17\",12.428571428571429],[\"2011-04-18\",298.0625],[\"2011-04-19\",26.15],[\"2011-04-20\",123.88461538461539],[\"2011-04-21\",46.704918032786885],[\"2011-04-26\",58.775862068965516],[\"2011-04-27\",82.01785714285714],[\"2011-04-28\",15.68421052631579],[\"2011-05-01\",13.8],[\"2011-05-03\",30.636363636363637],[\"2011-05-04\",35.32203389830509],[\"2011-05-05\",46.649484536082475],[\"2011-05-06\",13.88135593220339],[\"2011-05-08\",14.21875],[\"2011-05-09\",18.46153846153846],[\"2011-05-10\",18.65909090909091],[\"2011-05-11\",27.280701754385966],[\"2011-05-12\",13.106060606060606],[\"2011-05-13\",35.52777777777778],[\"2011-05-15\",19.266666666666666],[\"2011-05-16\",24.40625],[\"2011-05-17\",35.61971830985915],[\"2011-05-18\",39.220338983050844],[\"2011-05-19\",32.25333333333333],[\"2011-05-20\",54.329268292682926],[\"2011-05-22\",11.904761904761905],[\"2011-05-23\",92.86153846153846],[\"2011-05-24\",69.33802816901408],[\"2011-05-25\",18.19047619047619],[\"2011-05-26\",37.861111111111114],[\"2011-05-27\",33.55555555555556],[\"2011-05-29\",38.0],[\"2011-05-31\",58.94736842105263],[\"2011-06-01\",16.516129032258064],[\"2011-06-02\",30.444444444444443],[\"2011-06-03\",14.84375],[\"2011-06-05\",29.22222222222222],[\"2011-06-06\",33.696969696969695],[\"2011-06-07\",20.327272727272728],[\"2011-06-08\",51.52238805970149],[\"2011-06-09\",15.581818181818182],[\"2011-06-10\",39.65384615384615],[\"2011-06-12\",3.7],[\"2011-06-13\",41.95238095238095],[\"2011-06-14\",63.3],[\"2011-06-15\",20.869565217391305],[\"2011-06-16\",32.03157894736842],[\"2011-06-17\",41.25],[\"2011-06-19\",35.67857142857143],[\"2011-06-20\",55.458333333333336],[\"2011-06-21\",14.212121212121213],[\"2011-06-22\",68.6],[\"2011-06-23\",11.130434782608695],[\"2011-06-24\",23.547619047619047],[\"2011-06-26\",5.476190476190476],[\"2011-06-27\",52.52173913043478],[\"2011-06-28\",48.083333333333336],[\"2011-06-29\",31.322580645161292],[\"2011-06-30\",90.62857142857143],[\"2011-07-01\",20.85185185185185],[\"2011-07-03\",18.666666666666668],[\"2011-07-04\",98.11764705882354],[\"2011-07-05\",91.58620689655173],[\"2011-07-06\",48.59322033898305],[\"2011-07-07\",69.56896551724138],[\"2011-07-08\",47.21052631578947],[\"2011-07-10\",5.8],[\"2011-07-11\",63.76315789473684],[\"2011-07-12\",61.25],[\"2011-07-13\",17.931818181818183],[\"2011-07-14\",30.170212765957448],[\"2011-07-15\",17.476190476190474],[\"2011-07-17\",31.818181818181817],[\"2011-07-18\",15.25],[\"2011-07-19\",66.15384615384616],[\"2011-07-20\",51.578947368421055],[\"2011-07-21\",44.666666666666664],[\"2011-07-22\",21.475],[\"2011-07-24\",53.01538461538462],[\"2011-07-25\",22.892307692307693],[\"2011-07-26\",22.242424242424242],[\"2011-07-27\",58.666666666666664],[\"2011-07-28\",47.7816091954023],[\"2011-07-29\",20.236842105263158],[\"2011-07-31\",27.40909090909091],[\"2011-08-01\",54.625],[\"2011-08-02\",102.03125],[\"2011-08-03\",48.25],[\"2011-08-04\",55.690140845070424],[\"2011-08-05\",40.4],[\"2011-08-07\",25.275],[\"2011-08-08\",68.66666666666667],[\"2011-08-09\",12.464285714285714],[\"2011-08-10\",13.0],[\"2011-08-11\",34.41304347826087],[\"2011-08-12\",52.5],[\"2011-08-14\",8.521739130434783],[\"2011-08-15\",27.344827586206897],[\"2011-08-16\",9.536585365853659],[\"2011-08-17\",162.35294117647058],[\"2011-08-18\",128.46153846153845],[\"2011-08-19\",19.023809523809526],[\"2011-08-21\",47.515151515151516],[\"2011-08-22\",43.228070175438596],[\"2011-08-23\",57.90243902439025],[\"2011-08-24\",86.32352941176471],[\"2011-08-25\",17.50877192982456],[\"2011-08-26\",51.94444444444444],[\"2011-08-28\",30.647058823529413],[\"2011-08-30\",10.26086956521739],[\"2011-08-31\",20.3],[\"2011-09-01\",64.98507462686567],[\"2011-09-02\",100.54237288135593],[\"2011-09-04\",45.82857142857143],[\"2011-09-05\",74.86666666666666],[\"2011-09-06\",28.084745762711865],[\"2011-09-07\",39.421052631578945],[\"2011-09-08\",38.42372881355932],[\"2011-09-09\",10.487804878048781],[\"2011-09-11\",33.0],[\"2011-09-12\",32.57142857142857],[\"2011-09-13\",61.61904761904762],[\"2011-09-14\",33.972972972972975],[\"2011-09-15\",82.15384615384616],[\"2011-09-16\",77.17391304347827],[\"2011-09-18\",67.83333333333333],[\"2011-09-19\",15.127659574468085],[\"2011-09-20\",48.54],[\"2011-09-21\",51.020833333333336],[\"2011-09-22\",31.985915492957748],[\"2011-09-23\",30.0],[\"2011-09-25\",27.96875],[\"2011-09-26\",26.903225806451612],[\"2011-09-27\",61.464285714285715],[\"2011-09-28\",60.34090909090909],[\"2011-09-29\",46.68421052631579],[\"2011-09-30\",22.977777777777778],[\"2011-10-02\",29.53846153846154],[\"2011-10-03\",67.55882352941177],[\"2011-10-04\",111.73170731707317],[\"2011-10-05\",20.723076923076924],[\"2011-10-06\",52.74418604651163],[\"2011-10-07\",90.45762711864407],[\"2011-10-09\",8.833333333333334],[\"2011-10-10\",26.50943396226415],[\"2011-10-11\",13.416666666666666],[\"2011-10-12\",13.169491525423728],[\"2011-10-13\",24.173076923076923],[\"2011-10-14\",18.323529411764707],[\"2011-10-17\",55.2],[\"2011-10-18\",33.36842105263158],[\"2011-10-19\",33.69736842105263],[\"2011-10-20\",21.392156862745097],[\"2011-10-21\",12.023809523809524],[\"2011-10-23\",1.6],[\"2011-10-24\",64.390625],[\"2011-10-25\",107.6],[\"2011-10-26\",41.6375],[\"2011-10-27\",31.029411764705884],[\"2011-10-28\",35.68333333333333],[\"2011-10-30\",18.28846153846154],[\"2011-10-31\",32.148936170212764],[\"2011-11-01\",27.431818181818183],[\"2011-11-02\",74.65517241379311],[\"2011-11-03\",119.58181818181818],[\"2011-11-04\",21.294117647058822],[\"2011-11-06\",12.737704918032787],[\"2011-11-07\",22.35211267605634],[\"2011-11-08\",27.380281690140844],[\"2011-11-09\",54.377049180327866],[\"2011-11-10\",15.159090909090908],[\"2011-11-11\",50.55555555555556],[\"2011-11-13\",21.129032258064516],[\"2011-11-14\",29.72093023255814],[\"2011-11-15\",34.61538461538461],[\"2011-11-16\",36.57843137254902],[\"2011-11-17\",33.69090909090909],[\"2011-11-18\",34.86904761904762],[\"2011-11-20\",26.0],[\"2011-11-21\",23.836363636363636],[\"2011-11-22\",66.0340909090909],[\"2011-11-23\",33.77173913043478],[\"2011-11-24\",40.98888888888889],[\"2011-11-25\",29.194444444444443],[\"2011-11-27\",5.571428571428571],[\"2011-11-28\",75.47368421052632],[\"2011-11-29\",20.333333333333332],[\"2011-11-30\",18.36],[\"2011-12-01\",33.578125],[\"2011-12-02\",19.50980392156863],[\"2011-12-04\",21.425531914893618],[\"2011-12-05\",38.91752577319588],[\"2011-12-06\",29.0],[\"2011-12-07\",31.8135593220339],[\"2011-12-08\",17.88],[\"2011-12-09\",24.764705882352942]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.invoice_date, 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 >= ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC","sql_parameters":"[25,\"2010-02-18\"]","state":"{\"question\":\"Return the average of l.quantity for retail lines joined to their invoices where (l.quantity is greater than 25 or i.invoice_date is on or after '2010-02-18'), grouped by i.invoice_date, ordered by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}711{"category":"join/having","domain":"commerce","family_id":"fb8438c714e045619e5f5777","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"03b0e68266fb30ba814f63510d8b01b5c57f3af0b9a12a08d5e69dfb53514865","language":"en","license":"CC-BY-4.0","query":"Return the minimum of l.unit_price for retail lines joined to their invoices where (l.quantity is greater than 92), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[92,10],\\\"sql\\\":\\\"SELECT i.country, MIN(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[92,10],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[92,10],\\\"sql\\\":\\\"SELECT i.country, MIN(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[92,10],\\\"sql\\\":\\\"SELECT i.country, SUM(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Germany\",0.04],[\"United Kingdom\",0.04],[\"Sweden\",0.09]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, MIN(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3","sql_parameters":"[92,10]","state":"{\"question\":\"Return the minimum of l.unit_price for retail lines joined to their invoices where (l.quantity is greater than 92), 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_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}712{"category":"single_table/aggregate","domain":"sensor","family_id":"dbb54f71ecaf70c329b2a4ef","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"c50007bd9f6ad315cbb4802de56c27f3ad32ca15df512f826cd1c4c5c9eb5c34","language":"en","license":"CC-BY-4.0","query":"Return the maximum of ps2_mean for hydraulic cycles where (ps2_mean is at most 107.17314).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[107.17314],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[107.17314],\\\"sql\\\":\\\"SELECT MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[107.17314],\\\"sql\\\":\\\"SELECT SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[107.17314],\\\"sql\\\":\\\"SELECT AVG(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[107.17314]]","source":"hydraulic","split":"dev","sql":"SELECT MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ?)","sql_parameters":"[107.17314]","state":"{\"question\":\"Return the maximum of ps2_mean for hydraulic cycles where (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\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}713{"category":"single_table/or/having","domain":"commerce","family_id":"1e868a27384601a2a3c99adb","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"bbf524fe3800339b88cb3c9179abb9938168e53b8c3c17a7b067fff2b3e7635c","language":"en","license":"CC-BY-4.0","query":"Return the minimum of product_related for shopping sessions where (weekend equals 1 or region equals 2), grouped by visitor_type, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[1,2,2],\\\"sql\\\":\\\"SELECT visitor_type, MIN(product_related) AS value FROM shopping_sessions WHERE (weekend = ? AND region = ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[1,2,2],\\\"sql\\\":\\\"SELECT visitor_type, MIN(product_related) AS value FROM shopping_sessions WHERE (weekend = ? OR region = ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value ASC, visitor_type ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[1,2,2],\\\"sql\\\":\\\"SELECT visitor_type, MIN(product_related) AS value FROM shopping_sessions WHERE (weekend = ? OR region = ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[1,2,2],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (weekend = ? OR region = ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Other\",1],[\"New_Visitor\",0],[\"Returning_Visitor\",0]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, MIN(product_related) AS value FROM shopping_sessions WHERE (weekend = ? OR region = ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value DESC, visitor_type ASC LIMIT 5","sql_parameters":"[1,2,2]","state":"{\"question\":\"Return the minimum of product_related for shopping sessions where (weekend equals 1 or region equals 2), grouped by visitor_type, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by visitor_type ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}714{"category":"single_table/ranked","domain":"sensor","family_id":"0566c0a6e20499d81c53b50f","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"de87b4033da46a7edeb22191f226d86f0388a8c8fe2de2d301a36dac6e507534","language":"en","license":"CC-BY-4.0","query":"Return the maximum of ps1_mean for hydraulic cycles where (ps1_mean is greater than 158.27043), grouped by valve; return at most 3 groups ordered by aggregate value ASC, breaking ties by valve ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[158.27043],\\\"sql\\\":\\\"SELECT valve, MAX(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[158.27043],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps1_mean > ?) GROUP BY valve ORDER BY value ASC, valve ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[158.27043],\\\"sql\\\":\\\"SELECT valve, SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ?) GROUP BY valve ORDER BY value ASC, valve ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[158.27043],\\\"sql\\\":\\\"SELECT valve, MAX(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ?) GROUP BY valve ORDER BY value ASC, valve ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[90,180.54151],[80,180.62794],[73,180.70461]]","source":"hydraulic","split":"dev","sql":"SELECT valve, MAX(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ?) GROUP BY valve ORDER BY value ASC, valve ASC LIMIT 3","sql_parameters":"[158.27043]","state":"{\"question\":\"Return the maximum of ps1_mean for hydraulic cycles where (ps1_mean is greater than 158.27043), 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\":\"REAL\",\"fs1_mean\":\"REAL\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}715{"category":"join/having","domain":"commerce","family_id":"15c06a5c7f047207c1b6a90a","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"121f3399a2d10f4e9680cf00eadb5857c36e90663b5f210afb0a7f4a937bd505","language":"en","license":"CC-BY-4.0","query":"Return the minimum of l.quantity for retail lines joined to their invoices where (i.customer_id equals '12364'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12364\\\"],\\\"sql\\\":\\\"SELECT i.country, MIN(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12364\\\",10],\\\"sql\\\":\\\"SELECT i.country, MIN(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[10],\\\"sql\\\":\\\"SELECT i.country, MIN(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12364\\\"],\\\"sql\\\":\\\"SELECT MIN(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, MIN(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3","sql_parameters":"[\"12364\",10]","state":"{\"question\":\"Return the minimum of l.quantity for retail lines joined to their invoices where (i.customer_id equals '12364'), 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_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}716{"category":"single_table/and/ranked","domain":"sensor","family_id":"860fee97a55649327c3d493f","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"8ac2305a42535182e550a3f1dd2b8c3104e4340dc3cfa1c55b9841c980811040","language":"en","license":"CC-BY-4.0","query":"Return the maximum of vs1_mean for hydraulic cycles where (ps2_mean is at most 122.4767 and ts1_mean is greater than 52.59775), grouped by pump_leakage; return at most 3 groups ordered by aggregate value ASC, breaking ties by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[122.4767,52.59775],\\\"sql\\\":\\\"SELECT pump_leakage, MAX(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND ts1_mean > ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[122.4767,52.59775],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND ts1_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[122.4767,52.59775],\\\"sql\\\":\\\"SELECT pump_leakage, MAX(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND ts1_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[122.4767,52.59775],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND ts1_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1,0.77482],[2,0.80637],[0,0.83907]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, MAX(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND ts1_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3","sql_parameters":"[122.4767,52.59775]","state":"{\"question\":\"Return the maximum of vs1_mean for hydraulic cycles where (ps2_mean is at most 122.4767 and ts1_mean is greater than 52.59775), 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\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}717{"category":"single_table/or/grouped","domain":"sensor","family_id":"80d01250fbfb3ab1f40a54c7","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"cf40a5ca4311c60715ec9266c2857644b32f93383ea982aba930b3c396621999","language":"en","license":"CC-BY-4.0","query":"Return the average of eps1_mean for hydraulic cycles where (ps2_mean is greater than 109.23171 or fs1_mean is greater than 3.36184), grouped by valve, ordered by valve ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[109.23171,3.36184],\\\"sql\\\":\\\"SELECT valve, AVG(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? AND fs1_mean > ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[109.23171,3.36184],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? OR fs1_mean > ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[109.23171,3.36184],\\\"sql\\\":\\\"SELECT valve, AVG(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? OR fs1_mean > ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[109.23171,3.36184],\\\"sql\\\":\\\"SELECT valve, SUM(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? OR fs1_mean > ?) GROUP BY valve ORDER BY valve ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[73,2511.7985358888886],[80,2508.88707875],[90,2509.089291388889],[100,2481.670067146667]]","source":"hydraulic","split":"dev","sql":"SELECT valve, AVG(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? OR fs1_mean > ?) GROUP BY valve ORDER BY valve ASC","sql_parameters":"[109.23171,3.36184]","state":"{\"question\":\"Return the average of eps1_mean for hydraulic cycles where (ps2_mean is greater than 109.23171 or fs1_mean is greater than 3.36184), 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\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}718{"category":"single_table/or/having","domain":"commerce","family_id":"02412b2f1f5cc2135989e75f","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"af8d9f667a421b5a7aae3f3a674b387d2150b6ab928e5d8ac8d26f9e1ef46cdc","language":"en","license":"CC-BY-4.0","query":"Return the maximum of product_duration for shopping sessions where (administrative is at most 7 or product_duration is at most 876.3), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[7,876.3,10],\\\"sql\\\":\\\"SELECT revenue, MAX(product_duration) AS value FROM shopping_sessions WHERE (administrative <= ? AND product_duration <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[7,876.3,10],\\\"sql\\\":\\\"SELECT revenue, MAX(product_duration) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_duration <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[7,876.3,10],\\\"sql\\\":\\\"SELECT revenue, MAX(product_duration) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_duration <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[7,876.3,10],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_duration <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1,14568.16201],[0,63973.52223]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, MAX(product_duration) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_duration <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3","sql_parameters":"[7,876.3,10]","state":"{\"question\":\"Return the maximum of product_duration for shopping sessions where (administrative is at most 7 or product_duration is at most 876.3), 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\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}719{"category":"join/date/or/aggregate","domain":"commerce","family_id":"cbc2c9c4740cb941b7dac0b0","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"8c534b4eba9a9940629e3f77256465a60deb44046d93a5f004c5b49b44c3fb58","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.quantity for retail lines joined to their invoices where (i.customer_id equals '12348' or i.invoice_date is on or after '2011-09-29').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12348\\\",\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? AND i.invoice_date >= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12348\\\",\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR i.invoice_date >= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12348\\\",\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR i.invoice_date >= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12348\\\",\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR i.invoice_date >= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[138373]]","source":"online_retail_ii","split":"dev","sql":"SELECT SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR i.invoice_date >= ?)","sql_parameters":"[\"12348\",\"2011-09-29\"]","state":"{\"question\":\"Return the sum of l.quantity for retail lines joined to their invoices where (i.customer_id equals '12348' or i.invoice_date is on or after '2011-09-29').\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}720{"category":"single_table/or/aggregate","domain":"commerce","family_id":"8082eac3f88ccee14151399a","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"1b2bdde122afe5e22032e4fecc2469d28b9f3e5d52e8a8669f6a275dd51e820c","language":"en","license":"CC-BY-4.0","query":"Return the sum of unit_price for retail invoice lines where (country equals 'Finland' or unit_price is at most 49.95).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Finland\\\",49.95],\\\"sql\\\":\\\"SELECT SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Finland\\\",49.95],\\\"sql\\\":\\\"SELECT SUM(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Finland\\\",49.95],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Finland\\\",49.95],\\\"sql\\\":\\\"SELECT AVG(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[99173.86]]","source":"online_retail_ii","split":"dev","sql":"SELECT SUM(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?)","sql_parameters":"[\"Finland\",49.95]","state":"{\"question\":\"Return the sum of unit_price for retail invoice lines where (country equals 'Finland' or unit_price is at most 49.95).\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}721{"category":"single_table/and/grouped","domain":"sensor","family_id":"9c90e088c563fa686ddf6e11","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"e80301ad1a283e69856a53cced535deb3121b7b1b1a5a9be7fb48ed3afe0ac92","language":"en","license":"CC-BY-4.0","query":"Return the average of ts1_mean for hydraulic cycles where (fs1_mean is at most 6.41875 and ts1_mean is at most 52.59775), grouped by pump_leakage, ordered by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[6.41875,52.59775],\\\"sql\\\":\\\"SELECT pump_leakage, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? OR ts1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[6.41875,52.59775],\\\"sql\\\":\\\"SELECT pump_leakage, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? AND ts1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[6.41875,52.59775],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? AND ts1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[6.41875,52.59775],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(ts1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? AND ts1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1,44.808981333333335],[2,40.928711904761904]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? AND ts1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC","sql_parameters":"[6.41875,52.59775]","state":"{\"question\":\"Return the average of ts1_mean for hydraulic cycles where (fs1_mean is at most 6.41875 and ts1_mean is at most 52.59775), 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_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}722{"category":"single_table/or/ranked","domain":"commerce","family_id":"595124950fcff59d4bde6c9a","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"5ec707a1a288d73022222664a2b2c127431b461526b6e39a9f4ffca4c01b2af2","language":"en","license":"CC-BY-4.0","query":"Return the maximum of product_duration for shopping sessions where (visitor_type equals 'Other' or traffic_type equals 10), grouped by visitor_type; return at most 3 groups ordered by aggregate value ASC, breaking ties by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Other\\\",10],\\\"sql\\\":\\\"SELECT visitor_type, MAX(product_duration) AS value FROM shopping_sessions WHERE (visitor_type = ? AND traffic_type = ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Other\\\",10],\\\"sql\\\":\\\"SELECT visitor_type, MAX(product_duration) AS value FROM shopping_sessions WHERE (visitor_type = ? OR traffic_type = ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Other\\\",10],\\\"sql\\\":\\\"SELECT visitor_type, MAX(product_duration) AS value FROM shopping_sessions WHERE (visitor_type = ? OR traffic_type = ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Other\\\",10],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (visitor_type = ? OR traffic_type = ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"New_Visitor\",1661.166667],[\"Other\",9630.209524],[\"Returning_Visitor\",17550.58486]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, MAX(product_duration) AS value FROM shopping_sessions WHERE (visitor_type = ? OR traffic_type = ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3","sql_parameters":"[\"Other\",10]","state":"{\"question\":\"Return the maximum of product_duration for shopping sessions where (visitor_type equals 'Other' or traffic_type equals 10), grouped by visitor_type; return at most 3 groups ordered by aggregate value ASC, breaking ties by visitor_type ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}723{"category":"single_table/date/grouped","domain":"commerce","family_id":"aa5175f1cb57dd786fde4b91","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"9b5c15f47299f46e8384cf004ec69491b7ba016905fb3e5f0644d9b3550cd1bc","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (invoice_date is on or after '2010-02-18'), grouped by invoice_date, ordered by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-02-18\",12.75],[\"2010-02-19\",13.57],[\"2010-02-21\",12.75],[\"2010-02-22\",79.95],[\"2010-02-23\",45.95],[\"2010-02-24\",10.95],[\"2010-02-25\",18.0],[\"2010-02-26\",45.95],[\"2010-02-28\",12.75],[\"2010-03-01\",12.75],[\"2010-03-02\",12.75],[\"2010-03-03\",45.95],[\"2010-03-04\",26.95],[\"2010-03-05\",18.0],[\"2010-03-07\",7.95],[\"2010-03-08\",39.95],[\"2010-03-09\",12.75],[\"2010-03-10\",10.95],[\"2010-03-11\",12.75],[\"2010-03-12\",9.95],[\"2010-03-14\",16.95],[\"2010-03-15\",25.52],[\"2010-03-16\",18.0],[\"2010-03-17\",9.95],[\"2010-03-18\",29.95],[\"2010-03-19\",14.95],[\"2010-03-21\",12.75],[\"2010-03-22\",12.75],[\"2010-03-23\",12.75],[\"2010-03-24\",867.79],[\"2010-03-25\",40.0],[\"2010-03-26\",16.95],[\"2010-03-28\",4.95],[\"2010-03-29\",8.5],[\"2010-03-30\",18.95],[\"2010-03-31\",34.95],[\"2010-04-01\",10.95],[\"2010-04-06\",15.95],[\"2010-04-07\",10.95],[\"2010-04-08\",12.75],[\"2010-04-09\",12.75],[\"2010-04-11\",7.95],[\"2010-04-12\",12.75],[\"2010-04-13\",9.95],[\"2010-04-14\",12.75],[\"2010-04-15\",12.75],[\"2010-04-16\",12.75],[\"2010-04-18\",14.95],[\"2010-04-19\",26.95],[\"2010-04-20\",10.75],[\"2010-04-21\",125.0],[\"2010-04-22\",18.0],[\"2010-04-23\",45.95],[\"2010-04-25\",12.75],[\"2010-04-26\",39.95],[\"2010-04-27\",25.49],[\"2010-04-28\",7.65],[\"2010-04-29\",12.75],[\"2010-04-30\",14.95],[\"2010-05-02\",15.0],[\"2010-05-04\",230.0],[\"2010-05-05\",12.75],[\"2010-05-06\",19.95],[\"2010-05-07\",15.95],[\"2010-05-09\",16.95],[\"2010-05-10\",29.95],[\"2010-05-11\",16.95],[\"2010-05-12\",12.75],[\"2010-05-13\",12.75],[\"2010-05-14\",16.98],[\"2010-05-16\",8.5],[\"2010-05-17\",12.75],[\"2010-05-18\",18.95],[\"2010-05-19\",79.95],[\"2010-05-20\",12.75],[\"2010-05-21\",12.75],[\"2010-05-23\",12.75],[\"2010-05-24\",14.95],[\"2010-05-25\",19.95],[\"2010-05-26\",25.49],[\"2010-05-27\",12.75],[\"2010-05-28\",15.95],[\"2010-05-30\",12.75],[\"2010-06-01\",15.95],[\"2010-06-02\",12.75],[\"2010-06-03\",12.75],[\"2010-06-04\",25.49],[\"2010-06-06\",9.95],[\"2010-06-07\",18.0],[\"2010-06-08\",12.75],[\"2010-06-09\",40.0],[\"2010-06-10\",12.75],[\"2010-06-11\",39.95],[\"2010-06-13\",16.95],[\"2010-06-14\",16.95],[\"2010-06-15\",12.75],[\"2010-06-16\",19.95],[\"2010-06-17\",12.75],[\"2010-06-18\",10.95],[\"2010-06-20\",12.75],[\"2010-06-21\",12.75],[\"2010-06-22\",19.95],[\"2010-06-23\",19.95],[\"2010-06-24\",25.49],[\"2010-06-25\",12.75],[\"2010-06-27\",12.75],[\"2010-06-28\",14.95],[\"2010-06-29\",125.0],[\"2010-06-30\",19.95],[\"2010-07-01\",18.95],[\"2010-07-02\",8.95],[\"2010-07-04\",24.95],[\"2010-07-05\",18.0],[\"2010-07-06\",19.95],[\"2010-07-07\",12.75],[\"2010-07-08\",125.0],[\"2010-07-09\",15.95],[\"2010-07-11\",15.95],[\"2010-07-12\",295.0],[\"2010-07-13\",40.0],[\"2010-07-14\",12.75],[\"2010-07-15\",18.0],[\"2010-07-16\",34.95],[\"2010-07-18\",4.95],[\"2010-07-19\",10.95],[\"2010-07-20\",12.75],[\"2010-07-21\",15.95],[\"2010-07-22\",28.0],[\"2010-07-23\",10.95],[\"2010-07-25\",15.0],[\"2010-07-26\",18.0],[\"2010-07-27\",19.95],[\"2010-07-28\",10.95],[\"2010-07-29\",10.95],[\"2010-07-30\",12.75],[\"2010-08-01\",12.75],[\"2010-08-02\",295.0],[\"2010-08-03\",295.0],[\"2010-08-04\",12.75],[\"2010-08-05\",12.95],[\"2010-08-06\",8.5],[\"2010-08-08\",34.95],[\"2010-08-09\",6.68],[\"2010-08-10\",5.95],[\"2010-08-11\",18.0],[\"2010-08-12\",16.95],[\"2010-08-13\",10.65],[\"2010-08-15\",12.75],[\"2010-08-16\",12.75],[\"2010-08-17\",9.95],[\"2010-08-18\",12.75],[\"2010-08-19\",12.75],[\"2010-08-20\",15.0],[\"2010-08-22\",8.5],[\"2010-08-23\",14.95],[\"2010-08-24\",295.0],[\"2010-08-25\",12.75],[\"2010-08-26\",8.5],[\"2010-08-27\",7.49],[\"2010-08-29\",8.5],[\"2010-08-31\",9.95],[\"2010-09-01\",79.95],[\"2010-09-02\",39.95],[\"2010-09-03\",15.0],[\"2010-09-05\",10.95],[\"2010-09-06\",18.0],[\"2010-09-07\",10.95],[\"2010-09-08\",2.55],[\"2010-09-09\",110.0],[\"2010-09-10\",6.75],[\"2010-09-12\",16.95],[\"2010-09-13\",12.75],[\"2010-09-14\",12.75],[\"2010-09-15\",16.95],[\"2010-09-16\",18.0],[\"2010-09-17\",79.95],[\"2010-09-19\",14.95],[\"2010-09-20\",129.95],[\"2010-09-21\",9.95],[\"2010-09-22\",7.95],[\"2010-09-23\",18.95],[\"2010-09-24\",14.95],[\"2010-09-26\",12.75],[\"2010-09-27\",16.95],[\"2010-09-28\",16.95],[\"2010-09-29\",50.0],[\"2010-09-30\",16.98],[\"2010-10-01\",18.95],[\"2010-10-03\",5.45],[\"2010-10-04\",29.95],[\"2010-10-05\",12.75],[\"2010-10-06\",50.0],[\"2010-10-07\",12.75],[\"2010-10-08\",16.95],[\"2010-10-10\",14.95],[\"2010-10-11\",79.95],[\"2010-10-12\",10.95],[\"2010-10-13\",16.95],[\"2010-10-14\",52.78],[\"2010-10-15\",16.98],[\"2010-10-17\",14.95],[\"2010-10-18\",18.0],[\"2010-10-19\",21.95],[\"2010-10-20\",34.95],[\"2010-10-21\",145.0],[\"2010-10-22\",145.0],[\"2010-10-24\",39.95],[\"2010-10-25\",14.95],[\"2010-10-26\",9.95],[\"2010-10-27\",14.95],[\"2010-10-28\",12.75],[\"2010-10-29\",39.95],[\"2010-10-31\",18.0],[\"2010-11-01\",9.95],[\"2010-11-02\",40.0],[\"2010-11-03\",165.0],[\"2010-11-04\",14.95],[\"2010-11-05\",14.95],[\"2010-11-07\",8.95],[\"2010-11-08\",32.69],[\"2010-11-09\",50.0],[\"2010-11-10\",16.95],[\"2010-11-11\",14.95],[\"2010-11-12\",15.0],[\"2010-11-14\",28.0],[\"2010-11-15\",40.0],[\"2010-11-16\",24.95],[\"2010-11-17\",295.0],[\"2010-11-18\",34.95],[\"2010-11-19\",253.0],[\"2010-11-21\",14.95],[\"2010-11-22\",12.75],[\"2010-11-23\",12.75],[\"2010-11-24\",79.95],[\"2010-11-25\",65.0],[\"2010-11-26\",8.5],[\"2010-11-28\",110.0],[\"2010-11-29\",18.0],[\"2010-11-30\",24.95],[\"2010-12-01\",19.95],[\"2010-12-02\",10.95],[\"2010-12-03\",40.0],[\"2010-12-05\",18.0],[\"2010-12-06\",14.95],[\"2010-12-07\",19.84],[\"2010-12-08\",21.95],[\"2010-12-09\",18.0],[\"2010-12-10\",16.95],[\"2010-12-12\",19.95],[\"2010-12-13\",12.75],[\"2010-12-14\",29.95],[\"2010-12-15\",12.75],[\"2010-12-16\",39.95],[\"2010-12-17\",18.0],[\"2010-12-19\",8.5],[\"2010-12-20\",22.0],[\"2010-12-21\",18.0],[\"2010-12-22\",4.95],[\"2010-12-23\",5.95],[\"2011-01-04\",8.5],[\"2011-01-05\",12.75],[\"2011-01-06\",8.5],[\"2011-01-07\",39.95],[\"2011-01-09\",12.75],[\"2011-01-10\",18.0],[\"2011-01-11\",18.0],[\"2011-01-12\",165.0],[\"2011-01-13\",8.5],[\"2011-01-14\",18.0],[\"2011-01-16\",3.95],[\"2011-01-17\",12.75],[\"2011-01-18\",6.95],[\"2011-01-19\",18.0],[\"2011-01-20\",8.95],[\"2011-01-21\",40.0],[\"2011-01-23\",14.95],[\"2011-01-24\",12.75],[\"2011-01-25\",40.0],[\"2011-01-26\",12.75],[\"2011-01-27\",18.0],[\"2011-01-28\",7.95],[\"2011-01-30\",2.95],[\"2011-01-31\",14.95],[\"2011-02-01\",14.95],[\"2011-02-02\",12.75],[\"2011-02-03\",15.0],[\"2011-02-04\",295.0],[\"2011-02-07\",12.75],[\"2011-02-08\",4.95],[\"2011-02-09\",15.0],[\"2011-02-10\",165.0],[\"2011-02-11\",145.0],[\"2011-02-13\",5.95],[\"2011-02-14\",16.95],[\"2011-02-15\",10.95],[\"2011-02-16\",8.5],[\"2011-02-17\",18.0],[\"2011-02-18\",14.95],[\"2011-02-20\",10.95],[\"2011-02-21\",12.75],[\"2011-02-22\",10.95],[\"2011-02-23\",34.95],[\"2011-02-24\",10.95],[\"2011-02-25\",40.0],[\"2011-02-27\",18.0],[\"2011-02-28\",125.0],[\"2011-03-01\",376.5],[\"2011-03-02\",10.95],[\"2011-03-03\",40.0],[\"2011-03-04\",28.0],[\"2011-03-06\",10.95],[\"2011-03-07\",125.0],[\"2011-03-08\",10.95],[\"2011-03-09\",40.0],[\"2011-03-10\",14.95],[\"2011-03-11\",16.95],[\"2011-03-14\",10.95],[\"2011-03-15\",9.95],[\"2011-03-16\",10.95],[\"2011-03-17\",10.95],[\"2011-03-18\",18.0],[\"2011-03-20\",18.0],[\"2011-03-21\",10.95],[\"2011-03-22\",9.95],[\"2011-03-23\",16.95],[\"2011-03-24\",8.5],[\"2011-03-25\",18.0],[\"2011-03-27\",12.75],[\"2011-03-28\",150.0],[\"2011-03-29\",10.65],[\"2011-03-30\",12.75],[\"2011-03-31\",18.0],[\"2011-04-01\",16.95],[\"2011-04-03\",10.95],[\"2011-04-04\",2382.92],[\"2011-04-05\",125.0],[\"2011-04-06\",8.5],[\"2011-04-07\",12.75],[\"2011-04-08\",18.0],[\"2011-04-10\",10.95],[\"2011-04-11\",8.5],[\"2011-04-12\",10.95],[\"2011-04-13\",12.75],[\"2011-04-14\",18.0],[\"2011-04-15\",40.0],[\"2011-04-17\",9.95],[\"2011-04-18\",12.75],[\"2011-04-19\",5.95],[\"2011-04-20\",14.95],[\"2011-04-21\",40.0],[\"2011-04-26\",40.0],[\"2011-04-27\",50.0],[\"2011-04-28\",295.0],[\"2011-05-01\",9.95],[\"2011-05-03\",110.0],[\"2011-05-04\",9.95],[\"2011-05-05\",39.95],[\"2011-05-06\",40.0],[\"2011-05-08\",16.95],[\"2011-05-09\",12.75],[\"2011-05-10\",16.95],[\"2011-05-11\",18.0],[\"2011-05-12\",12.5],[\"2011-05-13\",34.95],[\"2011-05-15\",16.95],[\"2011-05-16\",10.4],[\"2011-05-17\",12.5],[\"2011-05-18\",40.0],[\"2011-05-19\",39.95],[\"2011-05-20\",16.95],[\"2011-05-22\",9.95],[\"2011-05-23\",18.0],[\"2011-05-24\",29.95],[\"2011-05-25\",8.5],[\"2011-05-26\",125.0],[\"2011-05-27\",10.95],[\"2011-05-29\",5.45],[\"2011-05-31\",12.75],[\"2011-06-01\",16.95],[\"2011-06-02\",40.0],[\"2011-06-03\",18.0],[\"2011-06-05\",34.95],[\"2011-06-06\",12.75],[\"2011-06-07\",12.75],[\"2011-06-08\",15.0],[\"2011-06-09\",18.0],[\"2011-06-10\",18.0],[\"2011-06-12\",19.95],[\"2011-06-13\",19.95],[\"2011-06-14\",15.0],[\"2011-06-15\",12.75],[\"2011-06-16\",25.0],[\"2011-06-17\",16.95],[\"2011-06-19\",7.95],[\"2011-06-20\",1917.0],[\"2011-06-21\",25.0],[\"2011-06-22\",15.0],[\"2011-06-23\",9.95],[\"2011-06-24\",16.95],[\"2011-06-26\",28.0],[\"2011-06-27\",4.95],[\"2011-06-28\",12.75],[\"2011-06-29\",24.95],[\"2011-06-30\",165.0],[\"2011-07-01\",50.0],[\"2011-07-03\",10.95],[\"2011-07-04\",12.75],[\"2011-07-05\",15.0],[\"2011-07-06\",12.75],[\"2011-07-07\",15.0],[\"2011-07-08\",85.0],[\"2011-07-10\",2.55],[\"2011-07-11\",18.0],[\"2011-07-12\",10.95],[\"2011-07-13\",85.0],[\"2011-07-14\",14.95],[\"2011-07-15\",16.95],[\"2011-07-17\",18.0],[\"2011-07-18\",16.95],[\"2011-07-19\",18.0],[\"2011-07-20\",28.0],[\"2011-07-21\",14.95],[\"2011-07-22\",8.5],[\"2011-07-24\",24.95],[\"2011-07-25\",15.0],[\"2011-07-26\",16.95],[\"2011-07-27\",7.65],[\"2011-07-28\",15.0],[\"2011-07-29\",12.75],[\"2011-07-31\",12.5],[\"2011-08-01\",4.95],[\"2011-08-02\",8.5],[\"2011-08-03\",12.75],[\"2011-08-04\",49.95],[\"2011-08-05\",18.0],[\"2011-08-07\",8.5],[\"2011-08-08\",40.0],[\"2011-08-09\",18.0],[\"2011-08-10\",12.75],[\"2011-08-11\",15.0],[\"2011-08-12\",6.75],[\"2011-08-14\",39.95],[\"2011-08-15\",5.95],[\"2011-08-16\",18.0],[\"2011-08-17\",3.39],[\"2011-08-18\",12.75],[\"2011-08-19\",14.95],[\"2011-08-21\",8.5],[\"2011-08-22\",10.95],[\"2011-08-23\",7.65],[\"2011-08-24\",18.0],[\"2011-08-25\",34.95],[\"2011-08-26\",85.0],[\"2011-08-28\",5.95],[\"2011-08-30\",40.0],[\"2011-08-31\",18.0],[\"2011-09-01\",12.75],[\"2011-09-02\",10.95],[\"2011-09-04\",18.0],[\"2011-09-05\",6.35],[\"2011-09-06\",18.0],[\"2011-09-07\",10.75],[\"2011-09-08\",19.95],[\"2011-09-09\",15.0],[\"2011-09-11\",7.5],[\"2011-09-12\",9.95],[\"2011-09-13\",40.0],[\"2011-09-14\",9.95],[\"2011-09-15\",50.0],[\"2011-09-16\",18.0],[\"2011-09-18\",9.95],[\"2011-09-19\",8.5],[\"2011-09-20\",9.95],[\"2011-09-21\",12.75],[\"2011-09-22\",18.0],[\"2011-09-23\",49.95],[\"2011-09-25\",40.0],[\"2011-09-26\",12.5],[\"2011-09-27\",12.5],[\"2011-09-28\",15.0],[\"2011-09-29\",10.95],[\"2011-09-30\",50.0],[\"2011-10-02\",9.95],[\"2011-10-03\",152.78],[\"2011-10-04\",40.0],[\"2011-10-05\",39.95],[\"2011-10-06\",18.0],[\"2011-10-07\",18.0],[\"2011-10-09\",7.08],[\"2011-10-10\",12.75],[\"2011-10-11\",50.0],[\"2011-10-12\",18.0],[\"2011-10-13\",12.75],[\"2011-10-14\",12.75],[\"2011-10-17\",9.95],[\"2011-10-18\",39.95],[\"2011-10-19\",3949.32],[\"2011-10-20\",18.0],[\"2011-10-21\",20.8],[\"2011-10-23\",12.75],[\"2011-10-24\",25.0],[\"2011-10-25\",250.0],[\"2011-10-26\",25.0],[\"2011-10-27\",18.0],[\"2011-10-28\",12.5],[\"2011-10-30\",29.95],[\"2011-10-31\",18.0],[\"2011-11-01\",10.4],[\"2011-11-02\",7.65],[\"2011-11-03\",25.0],[\"2011-11-04\",18.0],[\"2011-11-06\",16.65],[\"2011-11-07\",50.0],[\"2011-11-08\",12.5],[\"2011-11-09\",24.95],[\"2011-11-10\",549.34],[\"2011-11-11\",18.0],[\"2011-11-13\",16.65],[\"2011-11-14\",12.75],[\"2011-11-15\",10.95],[\"2011-11-16\",145.0],[\"2011-11-17\",40.0],[\"2011-11-18\",39.95],[\"2011-11-20\",9.95],[\"2011-11-21\",15.0],[\"2011-11-22\",40.0],[\"2011-11-23\",40.0],[\"2011-11-24\",14.95],[\"2011-11-25\",50.0],[\"2011-11-27\",9.95],[\"2011-11-28\",15.0],[\"2011-11-29\",40.0],[\"2011-11-30\",18.0],[\"2011-12-01\",40.0],[\"2011-12-02\",40.0],[\"2011-12-04\",18.0],[\"2011-12-05\",219.5],[\"2011-12-06\",25.0],[\"2011-12-07\",18.0],[\"2011-12-08\",18.0],[\"2011-12-09\",12.75]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC","sql_parameters":"[\"2010-02-18\"]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines where (invoice_date is on or after '2010-02-18'), 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\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}724{"category":"single_table/aggregate","domain":"sensor","family_id":"56bf953f6d43b0e8ffa08400","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"2e14af9e3f145ae88dbaec58ac61d1065d014ff08e4d82a08c5c3ef4543b5b51","language":"en","license":"CC-BY-4.0","query":"Return the maximum of fs1_mean for hydraulic cycles where (cooler equals 20).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[20],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (cooler = ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[20],\\\"sql\\\":\\\"SELECT SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[20],\\\"sql\\\":\\\"SELECT MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[20],\\\"sql\\\":\\\"SELECT AVG(fs1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[6.69124]]","source":"hydraulic","split":"dev","sql":"SELECT MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ?)","sql_parameters":"[20]","state":"{\"question\":\"Return the maximum of fs1_mean for hydraulic cycles where (cooler equals 20).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}725{"category":"single_table/and/grouped","domain":"commerce","family_id":"e3fef98601c2aef66b939f6f","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"a9496ced581434192348f54abbf95ca992265cd9521f88ed188c93314b2c0c6f","language":"en","license":"CC-BY-4.0","query":"Return the sum of unit_price for retail invoice lines where (country equals 'Finland' and unit_price is greater than 0.55), grouped by invoice_date, ordered by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Finland\\\",0.55],\\\"sql\\\":\\\"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price > ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Finland\\\",0.55],\\\"sql\\\":\\\"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND unit_price > ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Finland\\\",0.55],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND unit_price > ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Finland\\\",0.55],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? AND unit_price > ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-13\",50.89],[\"2010-07-13\",50.89],[\"2011-01-21\",54.64],[\"2011-01-25\",40.85],[\"2011-04-05\",44.6],[\"2011-04-21\",52.05],[\"2011-09-13\",50.85],[\"2011-09-25\",42.5],[\"2011-10-04\",43.75],[\"2011-10-12\",26.3],[\"2011-11-04\",29.65],[\"2011-11-17\",83.78],[\"2011-11-23\",43.75],[\"2011-11-29\",50.4],[\"2011-12-01\",51.25],[\"2011-12-02\",100.52]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND unit_price > ?) GROUP BY invoice_date ORDER BY invoice_date ASC","sql_parameters":"[\"Finland\",0.55]","state":"{\"question\":\"Return the sum of unit_price for retail invoice lines where (country equals 'Finland' and 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\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}726{"category":"single_table/grouped","domain":"commerce","family_id":"107d3de2819bf98aa70136a6","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"27ceccc2cc9774c4133648cb36b80cb80c35d9451d0c5b49e2102795a263a47b","language":"en","license":"CC-BY-4.0","query":"Return the sum of product_related for shopping sessions where (region equals 8), grouped by revenue, ordered by revenue ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[8],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[8],\\\"sql\\\":\\\"SELECT revenue, AVG(product_related) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[8],\\\"sql\\\":\\\"SELECT revenue, SUM(product_related) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[8],\\\"sql\\\":\\\"SELECT revenue, MIN(product_related) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,9745],[1,1855]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, SUM(product_related) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY revenue ORDER BY revenue ASC","sql_parameters":"[8]","state":"{\"question\":\"Return the sum of product_related for shopping sessions where (region equals 8), grouped by revenue, ordered by revenue ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}727{"category":"join/date/and/having","domain":"commerce","family_id":"de65d1ce624f2e2dd8fcd0e7","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"6da2d06eca8251512fc370356528141c0aa3e4c8dc444bcfff49ea9648c0ca19","language":"en","license":"CC-BY-4.0","query":"Return the maximum of l.unit_price for retail lines joined to their invoices where (l.quantity is at most 1800 and i.invoice_date is before '2011-05-10'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[1800,\\\"2011-05-10\\\",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 (l.quantity <= ? OR i.invoice_date < ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[1800,\\\"2011-05-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 (l.quantity <= ? AND i.invoice_date < ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[1800,\\\"2011-05-10\\\",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 (l.quantity <= ? AND i.invoice_date < ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[1800,\\\"2011-05-10\\\",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 (l.quantity <= ? AND i.invoice_date < ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-23\",3.75],[\"2010-01-17\",4.95],[\"2010-02-07\",4.95]]","source":"online_retail_ii","split":"dev","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 (l.quantity <= ? AND i.invoice_date < ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3","sql_parameters":"[1800,\"2011-05-10\",10]","state":"{\"question\":\"Return the maximum of l.unit_price for retail lines joined to their invoices where (l.quantity is at most 1800 and i.invoice_date is before '2011-05-10'), 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_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}728{"category":"single_table/aggregate","domain":"commerce","family_id":"4d3949ee36c9065dab987ecd","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"beb5c06339af1484df74c8919e314f1d6a31276d88f83c4a54ffaaab6c56fa6d","language":"en","license":"CC-BY-4.0","query":"Return the average of product_duration for shopping sessions where (traffic_type equals 18).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[18],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (traffic_type = ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[18],\\\"sql\\\":\\\"SELECT SUM(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[18],\\\"sql\\\":\\\"SELECT MIN(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[18],\\\"sql\\\":\\\"SELECT AVG(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[503.22611989999996]]","source":"online_shoppers","split":"dev","sql":"SELECT AVG(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ?)","sql_parameters":"[18]","state":"{\"question\":\"Return the average of product_duration for shopping sessions where (traffic_type equals 18).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}729{"category":"join/or/ranked","domain":"commerce","family_id":"02bf95a3236a66b821978a34","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"ea6afc5b9f2723de570faa3265ac783878eeed1a9c9c879bca179c12739d2dab","language":"en","license":"CC-BY-4.0","query":"Return the maximum of l.unit_price for retail lines joined to their invoices where (i.country equals 'Austria' or l.unit_price is greater than 4.77), grouped by i.invoice_date; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Austria\\\",4.77],\\\"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 l.unit_price > ?) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Austria\\\",4.77],\\\"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 = ? OR l.unit_price > ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Austria\\\",4.77],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR l.unit_price > ?) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Austria\\\",4.77],\\\"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 = ? OR l.unit_price > ?) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-10-19\",3949.32],[\"2011-04-04\",2382.92],[\"2011-06-20\",1917.0],[\"2010-03-24\",867.79],[\"2011-11-10\",549.34]]","source":"online_retail_ii","split":"dev","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 = ? OR l.unit_price > ?) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5","sql_parameters":"[\"Austria\",4.77]","state":"{\"question\":\"Return the maximum of l.unit_price for retail lines joined to their invoices where (i.country equals 'Austria' or l.unit_price is greater than 4.77), 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_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}730{"category":"single_table/or/ranked","domain":"sensor","family_id":"334816c80847f7240648dd5d","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"f0134c27f181515abe38cf0f4e0baafb1033321e4db385d5a55fae178af8ee67","language":"en","license":"CC-BY-4.0","query":"Return the sum of ps2_mean for hydraulic cycles where (ps1_mean is at most 158.96089 or fs1_mean is at most 3.36184), grouped by pump_leakage; return at most 5 groups ordered by aggregate value DESC, breaking ties by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[158.96089,3.36184],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? AND fs1_mean <= ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[158.96089,3.36184],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR fs1_mean <= ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[158.96089,3.36184],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR fs1_mean <= ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[158.96089,3.36184],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR fs1_mean <= ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,72037.09796],[2,36258.15079],[1,36127.68927]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR fs1_mean <= ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 5","sql_parameters":"[158.96089,3.36184]","state":"{\"question\":\"Return the sum of ps2_mean for hydraulic cycles where (ps1_mean is at most 158.96089 or fs1_mean is at most 3.36184), 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\",\"eps1_mean\":\"REAL\",\"fs1_mean\":\"REAL\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}731{"category":"single_table/or/grouped","domain":"sensor","family_id":"fee2a6cf8244fa21f1181971","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"ac3db4084d47ddb4f8bb3a72247da6704109c71298fa3cb1631b36a3c3d4be0e","language":"en","license":"CC-BY-4.0","query":"Return the maximum of eps1_mean for hydraulic cycles where (ps2_mean is at most 107.17314 or eps1_mean is at most 2544.76), grouped by pump_leakage, ordered by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[107.17314,2544.76],\\\"sql\\\":\\\"SELECT pump_leakage, MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR eps1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[107.17314,2544.76],\\\"sql\\\":\\\"SELECT pump_leakage, MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND eps1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[107.17314,2544.76],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR eps1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[107.17314,2544.76],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR eps1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,2544.76],[1,2543.7473],[2,2536.66127]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR eps1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC","sql_parameters":"[107.17314,2544.76]","state":"{\"question\":\"Return the maximum of eps1_mean for hydraulic cycles where (ps2_mean is at most 107.17314 or eps1_mean is at most 2544.76), 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_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}732{"category":"single_table/or/aggregate","domain":"commerce","family_id":"3c7d71a55ee5fba8f0039ccd","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"c93d193e6a4d2f011470d48f89476ded5c32c57e81b67ab5bfe8c438be1d65ed","language":"en","license":"CC-BY-4.0","query":"Return the minimum of product_duration for shopping sessions where (region equals 2 or traffic_type equals 18).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2,18],\\\"sql\\\":\\\"SELECT MIN(product_duration) AS value FROM shopping_sessions WHERE (region = ? AND traffic_type = ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2,18],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (region = ? OR traffic_type = ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2,18],\\\"sql\\\":\\\"SELECT MIN(product_duration) AS value FROM shopping_sessions WHERE (region = ? OR traffic_type = ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2,18],\\\"sql\\\":\\\"SELECT SUM(product_duration) AS value FROM shopping_sessions WHERE (region = ? OR traffic_type = ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0.0]]","source":"online_shoppers","split":"dev","sql":"SELECT MIN(product_duration) AS value FROM shopping_sessions WHERE (region = ? OR traffic_type = ?)","sql_parameters":"[2,18]","state":"{\"question\":\"Return the minimum of product_duration for shopping sessions where (region equals 2 or traffic_type equals 18).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}733{"category":"single_table/ranked","domain":"sensor","family_id":"3f5fe36b1c7e821537f22388","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"5423a71fdf837e9436d871a6351e0f609d297f042d682a43d44acebf7c8abf02","language":"en","license":"CC-BY-4.0","query":"Return the average of vs1_mean for hydraulic cycles where (cooler equals 20), grouped by cooler; return at most 3 groups ordered by aggregate value ASC, breaking ties by cooler ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[20],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (cooler = ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[20],\\\"sql\\\":\\\"SELECT cooler, SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[20],\\\"sql\\\":\\\"SELECT cooler, MIN(vs1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[20],\\\"sql\\\":\\\"SELECT cooler, AVG(vs1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[20,0.6107152322404371]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, AVG(vs1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 3","sql_parameters":"[20]","state":"{\"question\":\"Return the average of vs1_mean for hydraulic cycles where (cooler equals 20), 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\",\"cycle_id\":\"INTEGER\",\"eps1_mean\":\"REAL\",\"fs1_mean\":\"REAL\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}734{"category":"single_table/having","domain":"commerce","family_id":"304d0e4519767e0560f2c430","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"ba0cb01d894e4a8a550db72d9dad3767b47121a0d64fbad78e93f9bfd9ae4810","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (country equals 'Australia'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Australia\\\",2],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Australia\\\",2],\\\"sql\\\":\\\"SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (country = ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Australia\\\",2],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (country = ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Australia\\\",2],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (country = ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",8.95]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (country = ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5","sql_parameters":"[\"Australia\",2]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines where (country equals 'Australia'), 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_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}735{"category":"join/or/grouped","domain":"commerce","family_id":"0e774bff9d768fb2c6508350","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"847134d981f4f8e09eb91144c52630002176cd428092fe9e68b7f8ae029d0a90","language":"en","license":"CC-BY-4.0","query":"Return the minimum of l.quantity for retail lines joined to their invoices where (i.customer_id equals '12353' or l.unit_price is at most 4.77), grouped by i.country, ordered by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12353\\\",4.77],\\\"sql\\\":\\\"SELECT i.country, MIN(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? AND l.unit_price <= ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12353\\\",4.77],\\\"sql\\\":\\\"SELECT i.country, MIN(l.quantity) 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.country ORDER BY i.country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12353\\\",4.77],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) 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.country ORDER BY i.country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12353\\\",4.77],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) 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.country ORDER BY i.country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",5],[\"Austria\",8],[\"Bahrain\",2],[\"Belgium\",4],[\"Canada\",8],[\"Channel Islands\",6],[\"Cyprus\",6],[\"Denmark\",18],[\"EIRE\",1],[\"Finland\",4],[\"France\",1],[\"Germany\",1],[\"Israel\",3],[\"Italy\",12],[\"Japan\",1],[\"Netherlands\",2],[\"Norway\",5],[\"Poland\",24],[\"Portugal\",1],[\"Spain\",1],[\"Sweden\",1],[\"Switzerland\",1],[\"USA\",12],[\"United Kingdom\",1]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, MIN(l.quantity) 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.country ORDER BY i.country ASC","sql_parameters":"[\"12353\",4.77]","state":"{\"question\":\"Return the minimum of l.quantity for retail lines joined to their invoices where (i.customer_id equals '12353' or l.unit_price is at most 4.77), grouped by i.country, ordered by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}736{"category":"single_table/or/ranked","domain":"commerce","family_id":"2fd19b9d536bab86e5002d4c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"a17cf5f8fffd7eb2914dc67fdd5fc68276f0d0e75b290311e325f5ff38203b98","language":"en","license":"CC-BY-4.0","query":"Return the average of quantity for retail invoice lines where (country equals 'Austria' or unit_price is at most 8.5), grouped by invoice_date; return at most 5 groups ordered by aggregate value DESC, breaking ties by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Austria\\\",8.5],\\\"sql\\\":\\\"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Austria\\\",8.5],\\\"sql\\\":\\\"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Austria\\\",8.5],\\\"sql\\\":\\\"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Austria\\\",8.5],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-03-23\",929.2244897959183],[\"2010-10-08\",362.3478260869565],[\"2010-05-18\",343.825],[\"2011-01-11\",342.17021276595744],[\"2010-09-03\",314.17241379310343]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5","sql_parameters":"[\"Austria\",8.5]","state":"{\"question\":\"Return the average of quantity for retail invoice lines where (country equals 'Austria' or unit_price is at most 8.5), 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\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}737{"category":"single_table/having","domain":"commerce","family_id":"2758d8e59ad4373877f693e9","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"7bc3e269cf4624d75af51dbccae495145341080f9008bacbaf48deaece890381","language":"en","license":"CC-BY-4.0","query":"Return the sum of product_related for shopping sessions where (region equals 4), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[4,10],\\\"sql\\\":\\\"SELECT revenue, SUM(product_related) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[4,10],\\\"sql\\\":\\\"SELECT revenue, SUM(product_related) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[4,10],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[4,10],\\\"sql\\\":\\\"SELECT revenue, AVG(product_related) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1,8067],[0,27639]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, SUM(product_related) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3","sql_parameters":"[4,10]","state":"{\"question\":\"Return the sum of product_related for shopping sessions where (region equals 4), 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\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}738{"category":"join/distinct_invoice/date/or/ranked","domain":"commerce","family_id":"d263de06b9716fdbca917c9e","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"b950c0eb022bd3856cc4fbc67e7ed2ccd836df70b06dae1186a43ef572d1db3a","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.country equals 'Australia' or i.invoice_date is on or after '2011-09-29'), grouped by i.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Australia\\\",\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND i.invoice_date >= ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Australia\\\",\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR i.invoice_date >= ?) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Australia\\\",\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR i.invoice_date >= ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Australia\\\",\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR i.invoice_date >= ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Israel\",1],[\"Norway\",1],[\"Singapore\",1]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR i.invoice_date >= ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3","sql_parameters":"[\"Australia\",\"2011-09-29\"]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.country equals 'Australia' or i.invoice_date is on or after '2011-09-29'), grouped by i.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}739{"category":"join/null/date/and/having","domain":"commerce","family_id":"f86bffb9e47daa73b7b49f0e","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"093921265dfe68293f4fede5caf8a80a60f9d4caa0dd6ce9c33842453702f772","language":"en","license":"CC-BY-4.0","query":"Return the maximum of l.unit_price for retail lines joined to their invoices where (i.invoice_date is before '2010-07-14' and i.customer_id is present), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\",10],\\\"sql\\\":\\\"SELECT i.country, MAX(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.invoice_date < ? OR i.customer_id IS NOT NULL) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT i.country, MAX(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.invoice_date < ? AND i.customer_id IS NOT NULL) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\",10],\\\"sql\\\":\\\"SELECT i.country, MAX(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.invoice_date < ? AND i.customer_id IS NOT NULL) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\",10],\\\"sql\\\":\\\"SELECT i.country, MAX(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.invoice_date < ? AND i.customer_id IS NOT NULL) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",4.95],[\"Cyprus\",6.35],[\"EIRE\",12.75]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, MAX(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.invoice_date < ? AND i.customer_id IS NOT NULL) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3","sql_parameters":"[\"2010-07-14\",10]","state":"{\"question\":\"Return the maximum of l.unit_price for retail lines joined to their invoices where (i.invoice_date is before '2010-07-14' and i.customer_id is present), 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_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}740{"category":"join/date/or/aggregate","domain":"commerce","family_id":"c1647d24329bfd7beed1879d","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"725d0fab2bf425d029cdd9466becba407b087166bdfc97c7f75c45fcf378a681","language":"en","license":"CC-BY-4.0","query":"Return the maximum of l.unit_price for retail lines joined to their invoices where (i.customer_id equals '12364' or i.invoice_date is before '2010-07-14').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12364\\\",\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT MAX(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? AND i.invoice_date < ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12364\\\",\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR i.invoice_date < ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12364\\\",\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT SUM(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR i.invoice_date < ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12364\\\",\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT MAX(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR i.invoice_date < ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[867.79]]","source":"online_retail_ii","split":"dev","sql":"SELECT MAX(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR i.invoice_date < ?)","sql_parameters":"[\"12364\",\"2010-07-14\"]","state":"{\"question\":\"Return the maximum of l.unit_price for retail lines joined to their invoices where (i.customer_id equals '12364' or i.invoice_date is before '2010-07-14').\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}741{"category":"single_table/date/or/grouped","domain":"commerce","family_id":"5d328c2f51e1f5f0fcddaee0","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"16047b3f29a9eb6c1fb710a74e6abefa376bdc123051e67a16350a473e32891e","language":"en","license":"CC-BY-4.0","query":"Return the minimum of quantity for retail invoice lines where (country equals 'Cyprus' or invoice_date is on or after '2010-07-14'), grouped by invoice_date, ordered by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (country = ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (country = ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-16\",12],[\"2010-01-26\",6],[\"2010-02-22\",2],[\"2010-03-16\",96],[\"2010-07-14\",1],[\"2010-07-15\",1],[\"2010-07-16\",1],[\"2010-07-18\",4],[\"2010-07-19\",1],[\"2010-07-20\",1],[\"2010-07-21\",1],[\"2010-07-22\",1],[\"2010-07-23\",1],[\"2010-07-25\",1],[\"2010-07-26\",1],[\"2010-07-27\",1],[\"2010-07-28\",1],[\"2010-07-29\",1],[\"2010-07-30\",1],[\"2010-08-01\",1],[\"2010-08-02\",1],[\"2010-08-03\",1],[\"2010-08-04\",1],[\"2010-08-05\",1],[\"2010-08-06\",1],[\"2010-08-08\",2],[\"2010-08-09\",2],[\"2010-08-10\",1],[\"2010-08-11\",1],[\"2010-08-12\",1],[\"2010-08-13\",1],[\"2010-08-15\",1],[\"2010-08-16\",2],[\"2010-08-17\",1],[\"2010-08-18\",1],[\"2010-08-19\",1],[\"2010-08-20\",1],[\"2010-08-22\",1],[\"2010-08-23\",1],[\"2010-08-24\",1],[\"2010-08-25\",1],[\"2010-08-26\",1],[\"2010-08-27\",3],[\"2010-08-29\",1],[\"2010-08-31\",1],[\"2010-09-01\",1],[\"2010-09-02\",1],[\"2010-09-03\",1],[\"2010-09-05\",2],[\"2010-09-06\",2],[\"2010-09-07\",2],[\"2010-09-08\",6],[\"2010-09-09\",1],[\"2010-09-10\",4],[\"2010-09-12\",1],[\"2010-09-13\",1],[\"2010-09-14\",1],[\"2010-09-15\",1],[\"2010-09-16\",1],[\"2010-09-17\",1],[\"2010-09-19\",2],[\"2010-09-20\",1],[\"2010-09-21\",1],[\"2010-09-22\",1],[\"2010-09-23\",1],[\"2010-09-24\",1],[\"2010-09-26\",1],[\"2010-09-27\",1],[\"2010-09-28\",1],[\"2010-09-29\",1],[\"2010-09-30\",1],[\"2010-10-01\",1],[\"2010-10-03\",4],[\"2010-10-04\",1],[\"2010-10-05\",1],[\"2010-10-06\",1],[\"2010-10-07\",1],[\"2010-10-08\",1],[\"2010-10-10\",1],[\"2010-10-11\",1],[\"2010-10-12\",1],[\"2010-10-13\",1],[\"2010-10-14\",1],[\"2010-10-15\",1],[\"2010-10-17\",1],[\"2010-10-18\",1],[\"2010-10-19\",1],[\"2010-10-20\",1],[\"2010-10-21\",1],[\"2010-10-22\",2],[\"2010-10-24\",1],[\"2010-10-25\",1],[\"2010-10-26\",1],[\"2010-10-27\",1],[\"2010-10-28\",1],[\"2010-10-29\",1],[\"2010-10-31\",1],[\"2010-11-01\",3],[\"2010-11-02\",1],[\"2010-11-03\",1],[\"2010-11-04\",1],[\"2010-11-05\",1],[\"2010-11-07\",1],[\"2010-11-08\",1],[\"2010-11-09\",1],[\"2010-11-10\",1],[\"2010-11-11\",1],[\"2010-11-12\",1],[\"2010-11-14\",1],[\"2010-11-15\",1],[\"2010-11-16\",1],[\"2010-11-17\",1],[\"2010-11-18\",1],[\"2010-11-19\",1],[\"2010-11-21\",1],[\"2010-11-22\",1],[\"2010-11-23\",1],[\"2010-11-24\",1],[\"2010-11-25\",1],[\"2010-11-26\",1],[\"2010-11-28\",1],[\"2010-11-29\",1],[\"2010-11-30\",1],[\"2010-12-01\",1],[\"2010-12-02\",1],[\"2010-12-03\",1],[\"2010-12-05\",1],[\"2010-12-06\",1],[\"2010-12-07\",1],[\"2010-12-08\",1],[\"2010-12-09\",1],[\"2010-12-10\",1],[\"2010-12-12\",1],[\"2010-12-13\",1],[\"2010-12-14\",1],[\"2010-12-15\",1],[\"2010-12-16\",1],[\"2010-12-17\",1],[\"2010-12-19\",1],[\"2010-12-20\",1],[\"2010-12-21\",1],[\"2010-12-22\",1],[\"2010-12-23\",1],[\"2011-01-04\",4],[\"2011-01-05\",1],[\"2011-01-06\",6],[\"2011-01-07\",1],[\"2011-01-09\",2],[\"2011-01-10\",1],[\"2011-01-11\",1],[\"2011-01-12\",1],[\"2011-01-13\",2],[\"2011-01-14\",1],[\"2011-01-16\",1],[\"2011-01-17\",1],[\"2011-01-18\",3],[\"2011-01-19\",1],[\"2011-01-20\",1],[\"2011-01-21\",1],[\"2011-01-23\",1],[\"2011-01-24\",1],[\"2011-01-25\",1],[\"2011-01-26\",2],[\"2011-01-27\",1],[\"2011-01-28\",4],[\"2011-01-30\",12],[\"2011-01-31\",1],[\"2011-02-01\",1],[\"2011-02-02\",1],[\"2011-02-03\",2],[\"2011-02-04\",1],[\"2011-02-07\",1],[\"2011-02-08\",3],[\"2011-02-09\",1],[\"2011-02-10\",1],[\"2011-02-11\",1],[\"2011-02-13\",4],[\"2011-02-14\",1],[\"2011-02-15\",1],[\"2011-02-16\",2],[\"2011-02-17\",1],[\"2011-02-18\",1],[\"2011-02-20\",3],[\"2011-02-21\",1],[\"2011-02-22\",1],[\"2011-02-23\",2],[\"2011-02-24\",2],[\"2011-02-25\",1],[\"2011-02-27\",1],[\"2011-02-28\",1],[\"2011-03-01\",1],[\"2011-03-02\",3],[\"2011-03-03\",1],[\"2011-03-04\",1],[\"2011-03-06\",2],[\"2011-03-07\",1],[\"2011-03-08\",4],[\"2011-03-09\",1],[\"2011-03-10\",1],[\"2011-03-11\",1],[\"2011-03-14\",1],[\"2011-03-15\",1],[\"2011-03-16\",1],[\"2011-03-17\",1],[\"2011-03-18\",1],[\"2011-03-20\",1],[\"2011-03-21\",1],[\"2011-03-22\",4],[\"2011-03-23\",1],[\"2011-03-24\",4],[\"2011-03-25\",1],[\"2011-03-27\",2],[\"2011-03-28\",1],[\"2011-03-29\",4],[\"2011-03-30\",1],[\"2011-03-31\",1],[\"2011-04-01\",1],[\"2011-04-03\",1],[\"2011-04-04\",1],[\"2011-04-05\",1],[\"2011-04-06\",1],[\"2011-04-07\",1],[\"2011-04-08\",1],[\"2011-04-10\",24],[\"2011-04-11\",1],[\"2011-04-12\",1],[\"2011-04-13\",1],[\"2011-04-14\",1],[\"2011-04-15\",1],[\"2011-04-17\",2],[\"2011-04-18\",1],[\"2011-04-19\",1],[\"2011-04-20\",2],[\"2011-04-21\",1],[\"2011-04-26\",1],[\"2011-04-27\",1],[\"2011-04-28\",1],[\"2011-05-01\",2],[\"2011-05-03\",1],[\"2011-05-04\",1],[\"2011-05-05\",1],[\"2011-05-06\",1],[\"2011-05-08\",1],[\"2011-05-09\",1],[\"2011-05-10\",1],[\"2011-05-11\",1],[\"2011-05-12\",1],[\"2011-05-13\",1],[\"2011-05-15\",1],[\"2011-05-16\",2],[\"2011-05-17\",2],[\"2011-05-18\",1],[\"2011-05-19\",1],[\"2011-05-20\",1],[\"2011-05-22\",2],[\"2011-05-23\",1],[\"2011-05-24\",1],[\"2011-05-25\",1],[\"2011-05-26\",1],[\"2011-05-27\",1],[\"2011-05-29\",1],[\"2011-05-31\",1],[\"2011-06-01\",1],[\"2011-06-02\",1],[\"2011-06-03\",1],[\"2011-06-05\",1],[\"2011-06-06\",2],[\"2011-06-07\",1],[\"2011-06-08\",1],[\"2011-06-09\",1],[\"2011-06-10\",1],[\"2011-06-12\",1],[\"2011-06-13\",1],[\"2011-06-14\",1],[\"2011-06-15\",1],[\"2011-06-16\",1],[\"2011-06-17\",1],[\"2011-06-19\",1],[\"2011-06-20\",1],[\"2011-06-21\",1],[\"2011-06-22\",1],[\"2011-06-23\",1],[\"2011-06-24\",1],[\"2011-06-26\",1],[\"2011-06-27\",4],[\"2011-06-28\",1],[\"2011-06-29\",1],[\"2011-06-30\",1],[\"2011-07-01\",1],[\"2011-07-03\",2],[\"2011-07-04\",4],[\"2011-07-05\",1],[\"2011-07-06\",1],[\"2011-07-07\",1],[\"2011-07-08\",1],[\"2011-07-10\",1],[\"2011-07-11\",1],[\"2011-07-12\",5],[\"2011-07-13\",1],[\"2011-07-14\",1],[\"2011-07-15\",1],[\"2011-07-17\",1],[\"2011-07-18\",1],[\"2011-07-19\",1],[\"2011-07-20\",1],[\"2011-07-21\",1],[\"2011-07-22\",1],[\"2011-07-24\",1],[\"2011-07-25\",1],[\"2011-07-26\",1],[\"2011-07-27\",1],[\"2011-07-28\",1],[\"2011-07-29\",1],[\"2011-07-31\",1],[\"2011-08-01\",1],[\"2011-08-02\",1],[\"2011-08-03\",1],[\"2011-08-04\",1],[\"2011-08-05\",1],[\"2011-08-07\",1],[\"2011-08-08\",1],[\"2011-08-09\",1],[\"2011-08-10\",1],[\"2011-08-11\",1],[\"2011-08-12\",8],[\"2011-08-14\",1],[\"2011-08-15\",3],[\"2011-08-16\",1],[\"2011-08-17\",12],[\"2011-08-18\",1],[\"2011-08-19\",1],[\"2011-08-21\",1],[\"2011-08-22\",1],[\"2011-08-23\",1],[\"2011-08-24\",1],[\"2011-08-25\",1],[\"2011-08-26\",2],[\"2011-08-28\",3],[\"2011-08-30\",1],[\"2011-08-31\",1],[\"2011-09-01\",2],[\"2011-09-02\",1],[\"2011-09-04\",1],[\"2011-09-05\",3],[\"2011-09-06\",1],[\"2011-09-07\",1],[\"2011-09-08\",1],[\"2011-09-09\",1],[\"2011-09-11\",4],[\"2011-09-12\",1],[\"2011-09-13\",1],[\"2011-09-14\",2],[\"2011-09-15\",1],[\"2011-09-16\",1],[\"2011-09-18\",1],[\"2011-09-19\",1],[\"2011-09-20\",1],[\"2011-09-21\",1],[\"2011-09-22\",1],[\"2011-09-23\",1],[\"2011-09-25\",1],[\"2011-09-26\",1],[\"2011-09-27\",1],[\"2011-09-28\",1],[\"2011-09-29\",4],[\"2011-09-30\",1],[\"2011-10-02\",1],[\"2011-10-03\",1],[\"2011-10-04\",1],[\"2011-10-05\",1],[\"2011-10-06\",1],[\"2011-10-07\",1],[\"2011-10-09\",2],[\"2011-10-10\",1],[\"2011-10-11\",1],[\"2011-10-12\",1],[\"2011-10-13\",1],[\"2011-10-14\",1],[\"2011-10-17\",1],[\"2011-10-18\",1],[\"2011-10-19\",1],[\"2011-10-20\",1],[\"2011-10-21\",1],[\"2011-10-23\",1],[\"2011-10-24\",1],[\"2011-10-25\",1],[\"2011-10-26\",1],[\"2011-10-27\",1],[\"2011-10-28\",1],[\"2011-10-30\",2],[\"2011-10-31\",1],[\"2011-11-01\",1],[\"2011-11-02\",1],[\"2011-11-03\",1],[\"2011-11-04\",1],[\"2011-11-06\",1],[\"2011-11-07\",1],[\"2011-11-08\",1],[\"2011-11-09\",1],[\"2011-11-10\",1],[\"2011-11-11\",1],[\"2011-11-13\",1],[\"2011-11-14\",1],[\"2011-11-15\",1],[\"2011-11-16\",1],[\"2011-11-17\",1],[\"2011-11-18\",1],[\"2011-11-20\",1],[\"2011-11-21\",1],[\"2011-11-22\",1],[\"2011-11-23\",1],[\"2011-11-24\",1],[\"2011-11-25\",1],[\"2011-11-27\",1],[\"2011-11-28\",1],[\"2011-11-29\",1],[\"2011-11-30\",1],[\"2011-12-01\",2],[\"2011-12-02\",1],[\"2011-12-04\",1],[\"2011-12-05\",1],[\"2011-12-06\",1],[\"2011-12-07\",1],[\"2011-12-08\",1],[\"2011-12-09\",2]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (country = ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC","sql_parameters":"[\"Cyprus\",\"2010-07-14\"]","state":"{\"question\":\"Return the minimum of quantity for retail invoice lines where (country equals 'Cyprus' or invoice_date is on or after '2010-07-14'), 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\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}742{"category":"single_table/and/having","domain":"commerce","family_id":"599d3ffb87ed5c094d83ec93","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"5e8367bd3d03b822f0287de09f14814727e70bd65b599998f87ebaaeed7b9880","language":"en","license":"CC-BY-4.0","query":"Return the sum of administrative for shopping sessions where (traffic_type equals 16 and product_related is greater than 340), grouped by month, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[16,340,2],\\\"sql\\\":\\\"SELECT month, SUM(administrative) AS value FROM shopping_sessions WHERE (traffic_type = ? OR product_related > ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[16,340,2],\\\"sql\\\":\\\"SELECT month, SUM(administrative) AS value FROM shopping_sessions WHERE (traffic_type = ? AND product_related > ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2],\\\"sql\\\":\\\"SELECT month, SUM(administrative) AS value FROM shopping_sessions GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[16,2],\\\"sql\\\":\\\"SELECT month, SUM(administrative) AS value FROM shopping_sessions WHERE (traffic_type = ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_shoppers","split":"dev","sql":"SELECT month, SUM(administrative) AS value FROM shopping_sessions WHERE (traffic_type = ? AND product_related > ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5","sql_parameters":"[16,340,2]","state":"{\"question\":\"Return the sum of administrative for shopping sessions where (traffic_type equals 16 and product_related is greater than 340), grouped by month, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}743{"category":"single_table/date/and/having","domain":"commerce","family_id":"ea9fc0d3a3e2a641b396501b","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"67d4e6d7e9379bf3338c63d0948a68f3b9ca82d66803b5120f81cc7bb343bbd8","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (country equals 'Cyprus' and invoice_date is on or after '2010-07-14'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",\\\"2010-07-14\\\",2],\\\"sql\\\":\\\"SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",\\\"2010-07-14\\\",2],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",\\\"2010-07-14\\\",2],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",\\\"2010-07-14\\\",2],\\\"sql\\\":\\\"SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Cyprus\",7.95]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5","sql_parameters":"[\"Cyprus\",\"2010-07-14\",2]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines where (country equals 'Cyprus' and invoice_date is on or after '2010-07-14'), 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_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}744{"category":"single_table/aggregate","domain":"sensor","family_id":"8bb35414c428b3d26d018c5c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"733f4aa67bb4a93e415e5f0182a9ee74f284eaf68f5b45cd13ef59b9dc2e9ef5","language":"en","license":"CC-BY-4.0","query":"Return the average of ps1_mean for hydraulic cycles where (accumulator equals 115).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[115],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (accumulator = ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[115],\\\"sql\\\":\\\"SELECT SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[115],\\\"sql\\\":\\\"SELECT AVG(ps1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[115],\\\"sql\\\":\\\"SELECT MIN(ps1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[161.52590448621555]]","source":"hydraulic","split":"dev","sql":"SELECT AVG(ps1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ?)","sql_parameters":"[115]","state":"{\"question\":\"Return the average of ps1_mean for hydraulic cycles where (accumulator equals 115).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}745{"category":"single_table/aggregate","domain":"commerce","family_id":"ad8f5ca2b828cc0a6d5273ea","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"ed46e819d0f6dfa378c17661af5c5aeb5b941837584d46e4fd8f7f1b9a997fd3","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (unit_price is greater than 8.5).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[8.5],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (unit_price > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[8.5],\\\"sql\\\":\\\"SELECT MAX(unit_price) AS value FROM retail_lines WHERE (unit_price > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[8.5],\\\"sql\\\":\\\"SELECT SUM(unit_price) AS value FROM retail_lines WHERE (unit_price > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[8.5],\\\"sql\\\":\\\"SELECT AVG(unit_price) AS value FROM retail_lines WHERE (unit_price > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[3949.32]]","source":"online_retail_ii","split":"dev","sql":"SELECT MAX(unit_price) AS value FROM retail_lines WHERE (unit_price > ?)","sql_parameters":"[8.5]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines where (unit_price is greater than 8.5).\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}746{"category":"single_table/grouped","domain":"sensor","family_id":"8e49358dd32c1aaf62e48e38","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"4d834de5bef927f1101db99cdbba1043c0d62809e55396883521291b70613741","language":"en","license":"CC-BY-4.0","query":"Return the maximum of eps1_mean for hydraulic cycles where (fs1_mean is greater than 3.36184), grouped by pump_leakage, ordered by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[3.36184],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (fs1_mean > ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[3.36184],\\\"sql\\\":\\\"SELECT pump_leakage, MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[3.36184],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(eps1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[3.36184],\\\"sql\\\":\\\"SELECT pump_leakage, AVG(eps1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,2617.69697],[1,2619.7363],[2,2582.46763]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC","sql_parameters":"[3.36184]","state":"{\"question\":\"Return the maximum of eps1_mean for hydraulic cycles where (fs1_mean is greater than 3.36184), 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_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}747{"category":"single_table/and/having","domain":"sensor","family_id":"e2c098fc07368f3d7ce68654","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"bdbf68e50f152644fbbad09781df219abf9349b98564d51e40016ffb356f10d7","language":"en","license":"CC-BY-4.0","query":"Return the sum of ps2_mean for hydraulic cycles where (ps1_mean is greater than 156.56746 and eps1_mean is greater than 2598.8769), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[156.56746,2598.8769,2],\\\"sql\\\":\\\"SELECT cooler, SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? OR eps1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[156.56746,2598.8769,2],\\\"sql\\\":\\\"SELECT cooler, SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? AND eps1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[156.56746,2598.8769,2],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? AND eps1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[156.56746,2598.8769,2],\\\"sql\\\":\\\"SELECT cooler, AVG(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? AND eps1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[3,27243.05216]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? AND eps1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5","sql_parameters":"[156.56746,2598.8769,2]","state":"{\"question\":\"Return the sum of ps2_mean for hydraulic cycles where (ps1_mean is greater than 156.56746 and eps1_mean is greater than 2598.8769), 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_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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}748{"category":"join/distinct_invoice/and/having","domain":"commerce","family_id":"76fbc55618d87cda0a0f442d","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"f9a9da1598376991209b6dbbbcbfd274803a7052a069eb99e3274584da07d871","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.customer_id equals '12348' and l.quantity is greater than 92), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12348\\\",92,10],\\\"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.customer_id = ? OR l.quantity > ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12348\\\",92,10],\\\"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.customer_id = ? AND l.quantity > ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12348\\\",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.customer_id = ? AND l.quantity > ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[10],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","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.customer_id = ? AND l.quantity > ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3","sql_parameters":"[\"12348\",92,10]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.customer_id equals '12348' and l.quantity is greater than 92), 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_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}749{"category":"single_table/date/and/aggregate","domain":"commerce","family_id":"703a64886a64179d55274c94","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"fbaaed611d712f75ae90318a628461cc92eefe71df73b783570901649f4c9c0d","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (country equals 'Austria' and invoice_date is on or after '2011-05-10').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Austria\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT MAX(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date >= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Austria\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT MAX(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Austria\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT MAX(unit_price) AS value FROM retail_lines\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[null]]","source":"online_retail_ii","split":"dev","sql":"SELECT MAX(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?)","sql_parameters":"[\"Austria\",\"2011-05-10\"]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines where (country equals 'Austria' and invoice_date is on or after '2011-05-10').\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}750{"category":"join/null/or/ranked","domain":"commerce","family_id":"2db5c6be19ae4a222d25a642","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"d96764a37ff33b9c3f074adde8821b8346d47fa58cc2471a92301f993f64c5ed","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.quantity for retail lines joined to their invoices where (i.country equals 'Bahrain' or i.customer_id is missing), grouped by i.invoice_date; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Bahrain\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(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 NULL) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Bahrain\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(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 NULL) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Bahrain\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR i.customer_id IS NULL) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Bahrain\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(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 NULL) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-08-16\",426],[\"2011-10-06\",216],[\"2010-08-13\",190],[\"2011-07-20\",141],[\"2011-02-25\",118]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.invoice_date, SUM(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 NULL) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5","sql_parameters":"[\"Bahrain\"]","state":"{\"question\":\"Return the sum of l.quantity for retail lines joined to their invoices where (i.country equals 'Bahrain' or i.customer_id is missing), 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_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}751{"category":"join/distinct_invoice/and/having","domain":"commerce","family_id":"32a65d5e3556026030efd042","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"8273902f95ca0724d03dd3b66cfb4f8d22a79764143b2359f4f36f427230ed1d","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.customer_id equals '12356' and l.quantity is at most 229), grouped by i.country, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12356\\\",229,2],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR l.quantity <= ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12356\\\",229,2],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? AND l.quantity <= ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12356\\\",229,2],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? AND l.quantity <= ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12356\\\",229,2],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? AND l.quantity <= ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Portugal\",1]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? AND l.quantity <= ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5","sql_parameters":"[\"12356\",229,2]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.customer_id equals '12356' and l.quantity is at most 229), grouped by i.country, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}752{"category":"single_table/and/ranked","domain":"commerce","family_id":"8c0032cfdda7a22e0d70786e","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"bdedd9523ee75fb691c834153b1670670dfa581947ed0008552f70c0741fbbbc","language":"en","license":"CC-BY-4.0","query":"Return the minimum of product_duration for shopping sessions where (region equals 9 and product_duration is greater than 1564.0), grouped by visitor_type; return at most 3 groups ordered by aggregate value ASC, breaking ties by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[9,1564.0],\\\"sql\\\":\\\"SELECT visitor_type, MIN(product_duration) AS value FROM shopping_sessions WHERE (region = ? OR product_duration > ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[9,1564.0],\\\"sql\\\":\\\"SELECT visitor_type, MIN(product_duration) AS value FROM shopping_sessions WHERE (region = ? AND product_duration > ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[9,1564.0],\\\"sql\\\":\\\"SELECT visitor_type, MIN(product_duration) AS value FROM shopping_sessions WHERE (region = ? AND product_duration > ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[9,1564.0],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (region = ? AND product_duration > ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Returning_Visitor\",1576.205078],[\"Other\",1666.75],[\"New_Visitor\",1692.25]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, MIN(product_duration) AS value FROM shopping_sessions WHERE (region = ? AND product_duration > ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3","sql_parameters":"[9,1564.0]","state":"{\"question\":\"Return the minimum of product_duration for shopping sessions where (region equals 9 and product_duration is greater than 1564.0), grouped by visitor_type; return at most 3 groups ordered by aggregate value ASC, breaking ties by visitor_type ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}753{"category":"single_table/grouped","domain":"sensor","family_id":"f5cbf085211a40711cf28a33","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"955190cbaa4a446a397fc09adb01d1aac330e05635345f344676625e56d10a90","language":"en","license":"CC-BY-4.0","query":"Return the sum of fs1_mean for hydraulic cycles where (ts1_mean is at most 35.56605), grouped by pump_leakage, ordered by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[35.56605],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[35.56605],\\\"sql\\\":\\\"SELECT pump_leakage, AVG(fs1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[35.56605],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(fs1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[35.56605],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,1438.04317],[1,45.53391],[2,6.39587]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC","sql_parameters":"[35.56605]","state":"{\"question\":\"Return the sum of fs1_mean for hydraulic cycles where (ts1_mean is at most 35.56605), 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_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}754{"category":"single_table/date/or/grouped","domain":"commerce","family_id":"bbd3e7a104ba7021f2420226","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"f01cdacb26036d44c5f43be3c201176255f3f5ea0efad3fcdb2b1f4c71ed9a1a","language":"en","license":"CC-BY-4.0","query":"Return the average 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, ordered by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[49.95,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (unit_price > ? AND invoice_date < ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[49.95,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date < ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[49.95,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date < ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[49.95,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date < ?) GROUP BY country ORDER BY country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",16.261904761904763],[\"Austria\",12.722222222222221],[\"Bahrain\",8.818181818181818],[\"Belgium\",13.985294117647058],[\"Canada\",10.4],[\"Channel Islands\",150.0],[\"Cyprus\",47.125],[\"Denmark\",41.0],[\"EIRE\",72.57228915662651],[\"Finland\",50.542857142857144],[\"France\",27.793650793650794],[\"Germany\",18.4],[\"Israel\",5.0],[\"Italy\",18.4],[\"Japan\",135.31578947368422],[\"Netherlands\",71.55208333333333],[\"Norway\",7.571428571428571],[\"Poland\",26.166666666666668],[\"Portugal\",12.294117647058824],[\"Singapore\",1.0],[\"Spain\",48.98936170212766],[\"Sweden\",125.01149425287356],[\"Switzerland\",27.88235294117647],[\"USA\",12.0],[\"United Arab Emirates\",1.0],[\"United Kingdom\",47.50901721468258]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date < ?) GROUP BY country ORDER BY country ASC","sql_parameters":"[49.95,\"2011-09-29\"]","state":"{\"question\":\"Return the average 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, ordered by country ascending.\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}755{"category":"single_table/grouped","domain":"sensor","family_id":"fc2779efb0d91c1c52d52be3","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"ad9d78ca4ed709667f675e54b8c2479ff22ae3c7770459c0c506bdf19d8812c6","language":"en","license":"CC-BY-4.0","query":"Return the maximum of ps1_mean for hydraulic cycles where (eps1_mean is greater than 2480.92663), grouped by pump_leakage, ordered by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2480.92663],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (eps1_mean > ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2480.92663],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2480.92663],\\\"sql\\\":\\\"SELECT pump_leakage, MAX(ps1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2480.92663],\\\"sql\\\":\\\"SELECT pump_leakage, AVG(ps1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,180.92271],[1,180.70273],[2,180.70461]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, MAX(ps1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC","sql_parameters":"[2480.92663]","state":"{\"question\":\"Return the maximum of ps1_mean for hydraulic cycles where (eps1_mean is greater than 2480.92663), 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_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}756{"category":"single_table/or/grouped","domain":"commerce","family_id":"fdfb3411254f7a8ecf050031","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"8c31c365bd11200b8d9d2b65c0b3a3e2edf8fe1e29b7db3aa4983d87fe6add28","language":"en","license":"CC-BY-4.0","query":"Return the maximum of quantity for retail invoice lines where (quantity is greater than 92 or unit_price is greater than 4.77), grouped by country, ordered by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[92,4.77],\\\"sql\\\":\\\"SELECT country, MAX(quantity) AS value FROM retail_lines WHERE (quantity > ? AND unit_price > ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[92,4.77],\\\"sql\\\":\\\"SELECT country, MAX(quantity) AS value FROM retail_lines WHERE (quantity > ? OR unit_price > ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[92,4.77],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (quantity > ? OR unit_price > ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[92,4.77],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (quantity > ? OR unit_price > ?) GROUP BY country ORDER BY country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",100],[\"Austria\",16],[\"Bahrain\",4],[\"Belgium\",272],[\"Channel Islands\",200],[\"Cyprus\",200],[\"Denmark\",256],[\"EIRE\",1440],[\"Finland\",144],[\"France\",576],[\"Germany\",288],[\"Israel\",2],[\"Italy\",96],[\"Japan\",576],[\"Netherlands\",576],[\"Norway\",6],[\"Poland\",1],[\"Portugal\",3],[\"Singapore\",1],[\"Spain\",560],[\"Sweden\",1440],[\"Switzerland\",144],[\"United Arab Emirates\",1],[\"United Kingdom\",10000]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, MAX(quantity) AS value FROM retail_lines WHERE (quantity > ? OR unit_price > ?) GROUP BY country ORDER BY country ASC","sql_parameters":"[92,4.77]","state":"{\"question\":\"Return the maximum of quantity for retail invoice lines where (quantity is greater than 92 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_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}757{"category":"join/date/ranked","domain":"commerce","family_id":"cf40e6a830fad4365f284a61","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"aa1e7a324ac714cf7a969694acc5d374d7c37f978e4989b60755718a5703f654","language":"en","license":"CC-BY-4.0","query":"Return the average of l.unit_price for retail lines joined to their invoices where (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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT i.country, 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.country ORDER BY value DESC, i.country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) 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_3\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT i.country, 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.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"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\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Poland\",1.6],[\"Channel Islands\",1.6833333333333333],[\"Australia\",1.9821052631578946]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, 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.country ORDER BY value ASC, i.country ASC LIMIT 3","sql_parameters":"[\"2010-12-02\"]","state":"{\"question\":\"Return the average of l.unit_price for retail lines joined to their invoices where (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\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}758{"category":"single_table/ranked","domain":"sensor","family_id":"d4a0eb9691f7a2623bbcd0a7","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"4b9a3bb5137021e58c654f79528a65450ad8a9e38355dd924bfb4da52e38d062","language":"en","license":"CC-BY-4.0","query":"Return the sum of ps2_mean for hydraulic cycles where (fs1_mean is at most 6.68926), grouped by valve; return at most 3 groups ordered by aggregate value ASC, breaking ties by valve ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[6.68926],\\\"sql\\\":\\\"SELECT valve, SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[6.68926],\\\"sql\\\":\\\"SELECT valve, SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ?) GROUP BY valve ORDER BY value ASC, valve ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[6.68926],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ?) GROUP BY valve ORDER BY value ASC, valve ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[6.68926],\\\"sql\\\":\\\"SELECT valve, AVG(ps2_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ?) GROUP BY valve ORDER BY value ASC, valve ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[90,36197.34758],[80,37508.52637],[73,39531.830930000004]]","source":"hydraulic","split":"dev","sql":"SELECT valve, SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ?) GROUP BY valve ORDER BY value ASC, valve ASC LIMIT 3","sql_parameters":"[6.68926]","state":"{\"question\":\"Return the sum of ps2_mean for hydraulic cycles where (fs1_mean is at most 6.68926), 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\":\"REAL\",\"fs1_mean\":\"REAL\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}759{"category":"single_table/or/grouped","domain":"commerce","family_id":"0ea64473474458f56bdea57c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"f41d2f2efe092dd215334c507622601cb5655e7bf189f44d3f422bb5d97cb12e","language":"en","license":"CC-BY-4.0","query":"Return the minimum of quantity for retail invoice lines where (quantity is at most 25 or unit_price is greater than 0.55), grouped by country, ordered by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[25,0.55],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[25,0.55],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[25,0.55],\\\"sql\\\":\\\"SELECT country, MIN(quantity) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[25,0.55],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?) GROUP BY country ORDER BY country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",2],[\"Austria\",1],[\"Bahrain\",2],[\"Belgium\",1],[\"Canada\",8],[\"Channel Islands\",2],[\"Cyprus\",2],[\"Denmark\",2],[\"EIRE\",1],[\"Finland\",1],[\"France\",1],[\"Germany\",1],[\"Israel\",1],[\"Italy\",1],[\"Japan\",1],[\"Netherlands\",1],[\"Norway\",1],[\"Poland\",1],[\"Portugal\",1],[\"Singapore\",1],[\"Spain\",1],[\"Sweden\",1],[\"Switzerland\",1],[\"USA\",12],[\"United Arab Emirates\",1],[\"United Kingdom\",1]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, MIN(quantity) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?) GROUP BY country ORDER BY country ASC","sql_parameters":"[25,0.55]","state":"{\"question\":\"Return the minimum of quantity for retail invoice lines where (quantity is at most 25 or unit_price is greater than 0.55), 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\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}760{"category":"single_table/date/grouped","domain":"commerce","family_id":"8926fcdcfa56e220fbdcba16","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"f0f43f5fa2965b094a48a3585176103918999cdd4fc6df9a8164d0a2e2b6eb83","language":"en","license":"CC-BY-4.0","query":"Return the average of unit_price for retail invoice lines where (invoice_date is on or after '2010-07-14'), grouped by invoice_date, ordered by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MIN(unit_price) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-07-14\",3.5142105263157895],[\"2010-07-15\",4.49],[\"2010-07-16\",4.0424137931034485],[\"2010-07-18\",2.0726923076923076],[\"2010-07-19\",3.8677419354838714],[\"2010-07-20\",3.7961538461538464],[\"2010-07-21\",3.4830357142857147],[\"2010-07-22\",3.1914285714285717],[\"2010-07-23\",2.9966666666666666],[\"2010-07-25\",2.6053333333333333],[\"2010-07-26\",2.7267441860465116],[\"2010-07-27\",3.760833333333333],[\"2010-07-28\",3.7550000000000003],[\"2010-07-29\",3.174074074074074],[\"2010-07-30\",4.145961538461538],[\"2010-08-01\",3.983333333333333],[\"2010-08-02\",9.800357142857143],[\"2010-08-03\",20.43057142857143],[\"2010-08-04\",5.51625],[\"2010-08-05\",2.9073770491803277],[\"2010-08-06\",2.9637499999999997],[\"2010-08-08\",3.8137037037037036],[\"2010-08-09\",2.073541666666667],[\"2010-08-10\",2.5725000000000002],[\"2010-08-11\",4.457916666666667],[\"2010-08-12\",4.4828205128205125],[\"2010-08-13\",3.2395833333333335],[\"2010-08-15\",2.9],[\"2010-08-16\",3.9309523809523808],[\"2010-08-17\",3.0025000000000004],[\"2010-08-18\",4.181666666666667],[\"2010-08-19\",4.0675],[\"2010-08-20\",3.8009090909090912],[\"2010-08-22\",2.2596153846153846],[\"2010-08-23\",3.936071428571428],[\"2010-08-24\",16.257272727272728],[\"2010-08-25\",2.888478260869565],[\"2010-08-26\",2.638717948717949],[\"2010-08-27\",4.576842105263158],[\"2010-08-29\",3.73],[\"2010-08-31\",2.276923076923077],[\"2010-09-01\",5.7072972972972975],[\"2010-09-02\",4.920869565217392],[\"2010-09-03\",3.3309375],[\"2010-09-05\",3.1916666666666664],[\"2010-09-06\",3.3480000000000003],[\"2010-09-07\",2.842162162162162],[\"2010-09-08\",1.5644444444444445],[\"2010-09-09\",10.43875],[\"2010-09-10\",2.3905882352941177],[\"2010-09-12\",4.418125],[\"2010-09-13\",3.0474647887323942],[\"2010-09-14\",3.6096551724137926],[\"2010-09-15\",3.2325000000000004],[\"2010-09-16\",4.188444444444444],[\"2010-09-17\",5.109166666666667],[\"2010-09-19\",3.0396296296296295],[\"2010-09-20\",6.176984126984126],[\"2010-09-21\",2.352967032967033],[\"2010-09-22\",2.201627906976744],[\"2010-09-23\",5.716129032258064],[\"2010-09-24\",3.806857142857143],[\"2010-09-26\",2.95078125],[\"2010-09-27\",3.557962962962963],[\"2010-09-28\",4.03675],[\"2010-09-29\",5.016481481481481],[\"2010-09-30\",3.856346153846154],[\"2010-10-01\",5.132564102564103],[\"2010-10-03\",2.0460869565217394],[\"2010-10-04\",3.552888888888889],[\"2010-10-05\",2.7676923076923075],[\"2010-10-06\",3.587307692307692],[\"2010-10-07\",3.369830508474576],[\"2010-10-08\",3.1551063829787234],[\"2010-10-10\",3.355625],[\"2010-10-11\",4.855961538461539],[\"2010-10-12\",2.8693243243243245],[\"2010-10-13\",2.9],[\"2010-10-14\",4.756326530612245],[\"2010-10-15\",3.27566265060241],[\"2010-10-17\",5.2316666666666665],[\"2010-10-18\",4.7876666666666665],[\"2010-10-19\",4.288571428571428],[\"2010-10-20\",3.46],[\"2010-10-21\",8.773333333333333],[\"2010-10-22\",6.355409836065574],[\"2010-10-24\",6.017142857142857],[\"2010-10-25\",3.209142857142857],[\"2010-10-26\",4.045205479452055],[\"2010-10-27\",5.1686046511627906],[\"2010-10-28\",4.043947368421052],[\"2010-10-29\",3.553066666666667],[\"2010-10-31\",4.470000000000001],[\"2010-11-01\",3.3085714285714287],[\"2010-11-02\",3.797457627118644],[\"2010-11-03\",6.6152],[\"2010-11-04\",3.3376724137931038],[\"2010-11-05\",4.566666666666666],[\"2010-11-07\",3.552962962962963],[\"2010-11-08\",5.766666666666667],[\"2010-11-09\",4.662727272727273],[\"2010-11-10\",4.109611650485437],[\"2010-11-11\",3.4426315789473687],[\"2010-11-12\",3.196923076923077],[\"2010-11-14\",4.97],[\"2010-11-15\",4.072727272727273],[\"2010-11-16\",4.0222549019607845],[\"2010-11-17\",8.095625],[\"2010-11-18\",3.854943820224719],[\"2010-11-19\",8.050144927536232],[\"2010-11-21\",3.9802631578947367],[\"2010-11-22\",3.817230769230769],[\"2010-11-23\",3.261369863013699],[\"2010-11-24\",4.933854166666666],[\"2010-11-25\",3.7142307692307694],[\"2010-11-26\",2.8076595744680852],[\"2010-11-28\",7.747115384615385],[\"2010-11-29\",3.521641791044776],[\"2010-11-30\",2.5597894736842104],[\"2010-12-01\",3.3451612903225807],[\"2010-12-02\",2.6269026548672563],[\"2010-12-03\",4.589166666666667],[\"2010-12-05\",4.727435897435898],[\"2010-12-06\",3.323793103448276],[\"2010-12-07\",4.073055555555555],[\"2010-12-08\",4.102247191011236],[\"2010-12-09\",3.65041237113402],[\"2010-12-10\",3.8],[\"2010-12-12\",5.776842105263158],[\"2010-12-13\",2.992],[\"2010-12-14\",3.670375],[\"2010-12-15\",4.219285714285714],[\"2010-12-16\",4.598376068376068],[\"2010-12-17\",4.071228070175438],[\"2010-12-19\",3.225],[\"2010-12-20\",3.128974358974359],[\"2010-12-21\",4.002285714285715],[\"2010-12-22\",2.378823529411765],[\"2010-12-23\",2.6723076923076925],[\"2011-01-04\",3.4763636363636365],[\"2011-01-05\",3.6233333333333335],[\"2011-01-06\",2.231666666666667],[\"2011-01-07\",4.9075],[\"2011-01-09\",4.013461538461538],[\"2011-01-10\",4.251111111111111],[\"2011-01-11\",3.7800000000000002],[\"2011-01-12\",11.445172413793104],[\"2011-01-13\",2.698],[\"2011-01-14\",4.263513513513513],[\"2011-01-16\",3.67],[\"2011-01-17\",2.96725],[\"2011-01-18\",3.492857142857143],[\"2011-01-19\",3.5944444444444446],[\"2011-01-20\",3.0284444444444443],[\"2011-01-21\",4.725714285714285],[\"2011-01-23\",7.772],[\"2011-01-24\",3.737027027027027],[\"2011-01-25\",3.2453846153846153],[\"2011-01-26\",3.8625000000000003],[\"2011-01-27\",4.348648648648648],[\"2011-01-28\",5.367],[\"2011-01-30\",2.21],[\"2011-01-31\",4.283714285714286],[\"2011-02-01\",4.221904761904762],[\"2011-02-02\",2.3649999999999998],[\"2011-02-03\",4.607777777777778],[\"2011-02-04\",10.738095238095237],[\"2011-02-07\",4.417419354838709],[\"2011-02-08\",2.881875],[\"2011-02-09\",5.153076923076923],[\"2011-02-10\",8.178823529411764],[\"2011-02-11\",9.467586206896552],[\"2011-02-13\",3.446],[\"2011-02-14\",4.4559999999999995],[\"2011-02-15\",3.191470588235294],[\"2011-02-16\",2.688727272727273],[\"2011-02-17\",3.1310526315789473],[\"2011-02-18\",2.8596875],[\"2011-02-20\",4.406666666666666],[\"2011-02-21\",3.8955555555555557],[\"2011-02-22\",2.707241379310345],[\"2011-02-23\",4.465185185185185],[\"2011-02-24\",3.9556],[\"2011-02-25\",3.5707500000000003],[\"2011-02-27\",3.0338461538461536],[\"2011-02-28\",13.613333333333335],[\"2011-03-01\",18.93618181818182],[\"2011-03-02\",3.099411764705882],[\"2011-03-03\",5.574871794871795],[\"2011-03-04\",4.125581395348838],[\"2011-03-06\",4.07125],[\"2011-03-07\",9.83235294117647],[\"2011-03-08\",4.547575757575757],[\"2011-03-09\",4.570888888888889],[\"2011-03-10\",4.258372093023255],[\"2011-03-11\",4.782653061224489],[\"2011-03-14\",3.3762857142857143],[\"2011-03-15\",4.416842105263158],[\"2011-03-16\",3.377608695652174],[\"2011-03-17\",2.7523529411764707],[\"2011-03-18\",3.907758620689655],[\"2011-03-20\",4.387076923076924],[\"2011-03-21\",2.468936170212766],[\"2011-03-22\",2.539375],[\"2011-03-23\",4.136818181818182],[\"2011-03-24\",2.6779166666666665],[\"2011-03-25\",2.6782051282051285],[\"2011-03-27\",5.429047619047619],[\"2011-03-28\",8.715116279069768],[\"2011-03-29\",3.678421052631579],[\"2011-03-30\",3.1910000000000003],[\"2011-03-31\",5.062413793103448],[\"2011-04-01\",3.7162162162162162],[\"2011-04-03\",2.9942105263157894],[\"2011-04-04\",193.91809523809525],[\"2011-04-05\",6.400434782608696],[\"2011-04-06\",3.335],[\"2011-04-07\",3.9801886792452827],[\"2011-04-08\",4.110746268656716],[\"2011-04-10\",6.1],[\"2011-04-11\",3.061086956521739],[\"2011-04-12\",3.4103125],[\"2011-04-13\",3.957441860465116],[\"2011-04-14\",3.1911688311688313],[\"2011-04-15\",5.851666666666667],[\"2011-04-17\",3.1614285714285715],[\"2011-04-18\",3.151875],[\"2011-04-19\",2.2485],[\"2011-04-20\",3.354807692307692],[\"2011-04-21\",3.618360655737705],[\"2011-04-26\",4.076724137931034],[\"2011-04-27\",3.9739285714285715],[\"2011-04-28\",11.274912280701754],[\"2011-05-01\",4.1899999999999995],[\"2011-05-03\",5.665636363636364],[\"2011-05-04\",3.4808474576271187],[\"2011-05-05\",4.682061855670104],[\"2011-05-06\",4.879830508474576],[\"2011-05-08\",2.656875],[\"2011-05-09\",3.6853846153846157],[\"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-22\",3.953095238095238],[\"2011-05-23\",4.1470769230769235],[\"2011-05-24\",5.244647887323944],[\"2011-05-25\",2.7404761904761905],[\"2011-05-26\",6.34875],[\"2011-05-27\",3.2464814814814815],[\"2011-05-29\",2.6258333333333335],[\"2011-05-31\",4.00578947368421],[\"2011-06-01\",3.951935483870968],[\"2011-06-02\",3.872666666666667],[\"2011-06-03\",4.091875],[\"2011-06-05\",4.384444444444444],[\"2011-06-06\",3.3066666666666666],[\"2011-06-07\",3.1623636363636365],[\"2011-06-08\",3.4485074626865675],[\"2011-06-09\",4.249818181818182],[\"2011-06-10\",4.9411538461538465],[\"2011-06-12\",8.834999999999999],[\"2011-06-13\",3.351666666666667],[\"2011-06-14\",3.204],[\"2011-06-15\",4.550869565217392],[\"2011-06-16\",2.857894736842105],[\"2011-06-17\",3.221388888888889],[\"2011-06-19\",2.338214285714286],[\"2011-06-20\",68.40395833333334],[\"2011-06-21\",4.466969696969697],[\"2011-06-22\",2.8235],[\"2011-06-23\",2.592608695652174],[\"2011-06-24\",3.056190476190476],[\"2011-06-26\",7.047142857142857],[\"2011-06-27\",1.997391304347826],[\"2011-06-28\",3.094791666666667],[\"2011-06-29\",4.336129032258064],[\"2011-06-30\",11.425142857142857],[\"2011-07-01\",6.5818518518518525],[\"2011-07-03\",4.398888888888889],[\"2011-07-04\",3.787352941176471],[\"2011-07-05\",3.169655172413793],[\"2011-07-06\",2.4479661016949152],[\"2011-07-07\",3.8013793103448275],[\"2011-07-08\",9.609473684210528],[\"2011-07-10\",1.158],[\"2011-07-11\",2.9802631578947367],[\"2011-07-12\",2.1441666666666666],[\"2011-07-13\",4.7070454545454545],[\"2011-07-14\",4.534042553191489],[\"2011-07-15\",3.6704761904761902],[\"2011-07-17\",4.009318181818181],[\"2011-07-18\",6.26],[\"2011-07-19\",2.4946153846153845],[\"2011-07-20\",3.513157894736842],[\"2011-07-21\",3.5733333333333333],[\"2011-07-22\",2.7065],[\"2011-07-24\",3.548],[\"2011-07-25\",4.229846153846154],[\"2011-07-26\",3.9724242424242426],[\"2011-07-27\",3.635714285714286],[\"2011-07-28\",3.4259770114942527],[\"2011-07-29\",3.1955263157894733],[\"2011-07-31\",3.5477272727272724],[\"2011-08-01\",1.7383333333333333],[\"2011-08-02\",2.110625],[\"2011-08-03\",3.338],[\"2011-08-04\",4.298450704225352],[\"2011-08-05\",3.5256],[\"2011-08-07\",2.40425],[\"2011-08-08\",5.336666666666667],[\"2011-08-09\",4.949642857142857],[\"2011-08-10\",3.603548387096774],[\"2011-08-11\",4.168913043478261],[\"2011-08-12\",3.010625],[\"2011-08-14\",7.559565217391304],[\"2011-08-15\",1.7810344827586206],[\"2011-08-16\",3.183170731707317],[\"2011-08-17\",1.4523529411764706],[\"2011-08-18\",3.2051282051282053],[\"2011-08-19\",3.1640476190476186],[\"2011-08-21\",2.590909090909091],[\"2011-08-22\",3.0494736842105263],[\"2011-08-23\",2.520487804878049],[\"2011-08-24\",2.576911764705882],[\"2011-08-25\",5.572105263157895],[\"2011-08-26\",7.153333333333332],[\"2011-08-28\",2.4464705882352944],[\"2011-08-30\",5.129130434782609],[\"2011-08-31\",6.927],[\"2011-09-01\",2.5911940298507465],[\"2011-09-02\",2.1298305084745763],[\"2011-09-04\",3.2022857142857144],[\"2011-09-05\",2.4376666666666664],[\"2011-09-06\",3.9920338983050847],[\"2011-09-07\",3.5068421052631575],[\"2011-09-08\",4.061525423728813],[\"2011-09-09\",5.030487804878049],[\"2011-09-11\",2.3823529411764706],[\"2011-09-12\",2.321632653061225],[\"2011-09-13\",5.619047619047619],[\"2011-09-14\",2.93472972972973],[\"2011-09-15\",5.052307692307692],[\"2011-09-16\",3.0852173913043477],[\"2011-09-18\",2.9166666666666665],[\"2011-09-19\",2.638723404255319],[\"2011-09-20\",3.5164],[\"2011-09-21\",2.999166666666667],[\"2011-09-22\",3.7895774647887324],[\"2011-09-23\",4.655714285714286],[\"2011-09-25\",4.3684375],[\"2011-09-26\",2.5783870967741938],[\"2011-09-27\",3.0764285714285715],[\"2011-09-28\",3.3638636363636363],[\"2011-09-29\",3.0076315789473687],[\"2011-09-30\",4.004222222222222],[\"2011-10-02\",4.260769230769231],[\"2011-10-03\",11.823823529411765],[\"2011-10-04\",3.790731707317073],[\"2011-10-05\",4.818153846153846],[\"2011-10-06\",3.0617441860465116],[\"2011-10-07\",2.755084745762712],[\"2011-10-09\",4.926666666666667],[\"2011-10-10\",3.521698113207547],[\"2011-10-11\",4.1001666666666665],[\"2011-10-12\",3.6183050847457627],[\"2011-10-13\",3.356346153846154],[\"2011-10-14\",3.273823529411765],[\"2011-10-17\",3.346923076923077],[\"2011-10-18\",4.432894736842106],[\"2011-10-19\",83.71802631578947],[\"2011-10-20\",3.0166666666666666],[\"2011-10-21\",4.407619047619048],[\"2011-10-23\",3.3579999999999997],[\"2011-10-24\",3.1915625],[\"2011-10-25\",10.853333333333333],[\"2011-10-26\",4.0545],[\"2011-10-27\",4.249705882352941],[\"2011-10-28\",3.419166666666667],[\"2011-10-30\",4.3769230769230765],[\"2011-10-31\",2.597872340425532],[\"2011-11-01\",3.6906818181818184],[\"2011-11-02\",2.503448275862069],[\"2011-11-03\",4.130909090909091],[\"2011-11-04\",3.040392156862745],[\"2011-11-06\",3.7903278688524593],[\"2011-11-07\",5.018450704225352],[\"2011-11-08\",3.167042253521127],[\"2011-11-09\",3.15],[\"2011-11-10\",15.689545454545454],[\"2011-11-11\",2.4724444444444447],[\"2011-11-13\",3.878064516129032],[\"2011-11-14\",3.2497674418604654],[\"2011-11-15\",3.0860256410256413],[\"2011-11-16\",5.15578431372549],[\"2011-11-17\",4.661818181818181],[\"2011-11-18\",4.1925],[\"2011-11-20\",2.1726190476190474],[\"2011-11-21\",3.352909090909091],[\"2011-11-22\",2.8920454545454546],[\"2011-11-23\",3.3629347826086957],[\"2011-11-24\",2.4713333333333334],[\"2011-11-25\",4.415],[\"2011-11-27\",3.4442857142857144],[\"2011-11-28\",2.5276315789473682],[\"2011-11-29\",4.47375],[\"2011-11-30\",3.5234000000000005],[\"2011-12-01\",3.40796875],[\"2011-12-02\",4.078823529411765],[\"2011-12-04\",3.1936170212765957],[\"2011-12-05\",5.610824742268041],[\"2011-12-06\",3.2925454545454547],[\"2011-12-07\",2.9996610169491524],[\"2011-12-08\",3.3912],[\"2011-12-09\",4.8088235294117645]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC","sql_parameters":"[\"2010-07-14\"]","state":"{\"question\":\"Return the average of unit_price for retail invoice lines where (invoice_date is on or after '2010-07-14'), 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\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}761{"category":"single_table/or/grouped","domain":"sensor","family_id":"b2ae25e36f742aa4a41f65a8","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"53fd9e4983a58309963eed4f28354c7c518c63f2c167fedafe68e90bb278a5cb","language":"en","license":"CC-BY-4.0","query":"Return the maximum of ps1_mean for hydraulic cycles where (ps2_mean is at most 122.4767 or fs1_mean is at most 3.36184), grouped by valve, ordered by valve ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[122.4767,3.36184],\\\"sql\\\":\\\"SELECT valve, MAX(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND fs1_mean <= ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[122.4767,3.36184],\\\"sql\\\":\\\"SELECT valve, MAX(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR fs1_mean <= ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[122.4767,3.36184],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR fs1_mean <= ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[122.4767,3.36184],\\\"sql\\\":\\\"SELECT valve, SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR fs1_mean <= ?) GROUP BY valve ORDER BY valve ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[73,180.70461],[80,180.62794],[90,180.54151],[100,180.92271]]","source":"hydraulic","split":"dev","sql":"SELECT valve, MAX(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR fs1_mean <= ?) GROUP BY valve ORDER BY valve ASC","sql_parameters":"[122.4767,3.36184]","state":"{\"question\":\"Return the maximum of ps1_mean for hydraulic cycles where (ps2_mean is at most 122.4767 or fs1_mean is at most 3.36184), 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\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}762{"category":"single_table/and/ranked","domain":"commerce","family_id":"91769b64aa75f4e357bdc04b","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"e20ddae58d45ec517bb76704c0620b1a91abea0aeb23f14c0cf5854b8d848982","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for shopping sessions where (region equals 8 and product_related is at most 226), grouped by month; return at most 5 groups ordered by aggregate value DESC, breaking ties by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[8,226],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (region = ? OR product_related <= ?) GROUP BY month ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[8,226],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (region = ? AND product_related <= ?) GROUP BY month ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[8,226],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (region = ? AND product_related <= ?) GROUP BY month ORDER BY value ASC, month ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[8,226],\\\"sql\\\":\\\"SELECT month, SUM(administrative) AS value FROM shopping_sessions WHERE (region = ? AND product_related <= ?) GROUP BY month ORDER BY value DESC, month ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"May\",123],[\"Nov\",86],[\"Mar\",69],[\"Dec\",67],[\"Jul\",22]]","source":"online_shoppers","split":"dev","sql":"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (region = ? AND product_related <= ?) GROUP BY month ORDER BY value DESC, month ASC LIMIT 5","sql_parameters":"[8,226]","state":"{\"question\":\"Return the number of rows for shopping sessions where (region equals 8 and product_related is at most 226), grouped by month; return at most 5 groups ordered by aggregate value DESC, breaking ties by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}763{"category":"single_table/or/aggregate","domain":"commerce","family_id":"f68057e8cac0f017e32f4acc","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"94bdf305b58983eabfcda1197d6d243cdf6dae0c159416107cbc71d3562ab017","language":"en","license":"CC-BY-4.0","query":"Return the sum of quantity for retail invoice lines where (country equals 'Belgium' or quantity is at most 92).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Belgium\\\",92],\\\"sql\\\":\\\"SELECT SUM(quantity) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Belgium\\\",92],\\\"sql\\\":\\\"SELECT SUM(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Belgium\\\",92],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Belgium\\\",92],\\\"sql\\\":\\\"SELECT AVG(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[374146]]","source":"online_retail_ii","split":"dev","sql":"SELECT SUM(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?)","sql_parameters":"[\"Belgium\",92]","state":"{\"question\":\"Return the sum of quantity for retail invoice lines where (country equals 'Belgium' or quantity is at most 92).\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}764{"category":"single_table/or/grouped","domain":"sensor","family_id":"fc3a1be586a4c2c6979f7209","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"4f39e66af0a49384ca3fe89a5f7c05e3451111bbd3e6b96f9ee2448be055b70a","language":"en","license":"CC-BY-4.0","query":"Return the sum of eps1_mean for hydraulic cycles where (cooler equals 100 or vs1_mean is greater than 0.71948), grouped by valve, ordered by valve ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[100,0.71948],\\\"sql\\\":\\\"SELECT valve, SUM(eps1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? AND vs1_mean > ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[100,0.71948],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (cooler = ? OR vs1_mean > ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[100,0.71948],\\\"sql\\\":\\\"SELECT valve, SUM(eps1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? OR vs1_mean > ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[100,0.71948],\\\"sql\\\":\\\"SELECT valve, AVG(eps1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? OR vs1_mean > ?) GROUP BY valve ORDER BY valve ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[73,447756.97276],[80,429311.67579],[90,437274.16242],[100,1099372.71747]]","source":"hydraulic","split":"dev","sql":"SELECT valve, SUM(eps1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? OR vs1_mean > ?) GROUP BY valve ORDER BY valve ASC","sql_parameters":"[100,0.71948]","state":"{\"question\":\"Return the sum of eps1_mean for hydraulic cycles where (cooler equals 100 or vs1_mean is greater than 0.71948), 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\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}765{"category":"join/date/grouped","domain":"commerce","family_id":"4dab8a33b9ca07e5c0a39bf8","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"6b30f24eac28ec3ccfd8fd05c51e3a53078a4bf220b72db32a2e07dfc406bbba","language":"en","license":"CC-BY-4.0","query":"Return the maximum of l.quantity for retail lines joined to their invoices where (i.invoice_date is on or after '2011-09-29'), grouped by i.country, ordered by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) 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 i.country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) 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 i.country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT i.country, MAX(l.quantity) 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 i.country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT i.country, AVG(l.quantity) 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 i.country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",10],[\"Belgium\",8],[\"Channel Islands\",24],[\"Denmark\",256],[\"EIRE\",500],[\"Finland\",72],[\"France\",96],[\"Germany\",288],[\"Israel\",3],[\"Netherlands\",200],[\"Norway\",6],[\"Portugal\",3],[\"Singapore\",1],[\"Spain\",360],[\"Sweden\",48],[\"Switzerland\",1],[\"United Kingdom\",2100]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, MAX(l.quantity) 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 i.country ASC","sql_parameters":"[\"2011-09-29\"]","state":"{\"question\":\"Return the maximum of l.quantity for retail lines joined to their invoices where (i.invoice_date is on or after '2011-09-29'), grouped by i.country, ordered by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}766{"category":"join/distinct_invoice/null/and/grouped","domain":"commerce","family_id":"a525f4f7fe1e5f8030241065","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"a995c1f4ca4865af8ecf1398b34adee53d1b982397f460db2efe605ff9adef56","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.quantity is at most 25 and i.customer_id is present), grouped by i.country, ordered by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[25],\\\"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.quantity <= ? AND i.customer_id IS NOT NULL) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[25],\\\"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.quantity <= ? OR i.customer_id IS NOT NULL) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[25],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? AND i.customer_id IS NOT NULL) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[25],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? AND i.customer_id IS NOT NULL) GROUP BY i.country ORDER BY i.country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",12],[\"Austria\",4],[\"Bahrain\",1],[\"Belgium\",18],[\"Canada\",1],[\"Channel Islands\",2],[\"Cyprus\",4],[\"Denmark\",3],[\"EIRE\",36],[\"Finland\",18],[\"France\",55],[\"Germany\",120],[\"Israel\",1],[\"Italy\",3],[\"Japan\",3],[\"Netherlands\",25],[\"Norway\",4],[\"Poland\",2],[\"Portugal\",6],[\"Singapore\",2],[\"Spain\",18],[\"Sweden\",12],[\"Switzerland\",8],[\"USA\",1],[\"United Arab Emirates\",1],[\"United Kingdom\",4986]]","source":"online_retail_ii","split":"dev","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.quantity <= ? AND i.customer_id IS NOT NULL) GROUP BY i.country ORDER BY i.country ASC","sql_parameters":"[25]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.quantity is at most 25 and i.customer_id is present), grouped by i.country, ordered by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}767{"category":"join/date/or/grouped","domain":"commerce","family_id":"6a8f52dc875df889439b7b76","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"5412c1c97ce6011daacefcc2abe7a194d273a50f0fcc807f7ba8c9a2f1c6c5cd","language":"en","license":"CC-BY-4.0","query":"Return the average of l.unit_price for retail lines joined to their invoices where (i.customer_id equals '12348' or i.invoice_date is on or after '2011-05-10'), grouped by i.invoice_date, ordered by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12348\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"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.customer_id = ? AND i.invoice_date >= ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12348\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"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.customer_id = ? OR i.invoice_date >= ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12348\\\",\\\"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.customer_id = ? OR i.invoice_date >= ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12348\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR i.invoice_date >= ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-01-25\",7.001666666666666],[\"2011-04-05\",8.92],[\"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-22\",3.953095238095238],[\"2011-05-23\",4.1470769230769235],[\"2011-05-24\",5.244647887323944],[\"2011-05-25\",2.7404761904761905],[\"2011-05-26\",6.34875],[\"2011-05-27\",3.2464814814814815],[\"2011-05-29\",2.6258333333333335],[\"2011-05-31\",4.00578947368421],[\"2011-06-01\",3.951935483870968],[\"2011-06-02\",3.872666666666667],[\"2011-06-03\",4.091875],[\"2011-06-05\",4.384444444444444],[\"2011-06-06\",3.3066666666666666],[\"2011-06-07\",3.1623636363636365],[\"2011-06-08\",3.4485074626865675],[\"2011-06-09\",4.249818181818182],[\"2011-06-10\",4.9411538461538465],[\"2011-06-12\",8.834999999999999],[\"2011-06-13\",3.351666666666667],[\"2011-06-14\",3.204],[\"2011-06-15\",4.550869565217392],[\"2011-06-16\",2.857894736842105],[\"2011-06-17\",3.221388888888889],[\"2011-06-19\",2.338214285714286],[\"2011-06-20\",68.40395833333334],[\"2011-06-21\",4.466969696969697],[\"2011-06-22\",2.8235],[\"2011-06-23\",2.592608695652174],[\"2011-06-24\",3.056190476190476],[\"2011-06-26\",7.047142857142857],[\"2011-06-27\",1.997391304347826],[\"2011-06-28\",3.094791666666667],[\"2011-06-29\",4.336129032258064],[\"2011-06-30\",11.425142857142857],[\"2011-07-01\",6.5818518518518525],[\"2011-07-03\",4.398888888888889],[\"2011-07-04\",3.787352941176471],[\"2011-07-05\",3.169655172413793],[\"2011-07-06\",2.4479661016949152],[\"2011-07-07\",3.8013793103448275],[\"2011-07-08\",9.609473684210528],[\"2011-07-10\",1.158],[\"2011-07-11\",2.9802631578947367],[\"2011-07-12\",2.1441666666666666],[\"2011-07-13\",4.7070454545454545],[\"2011-07-14\",4.534042553191489],[\"2011-07-15\",3.6704761904761902],[\"2011-07-17\",4.009318181818181],[\"2011-07-18\",6.26],[\"2011-07-19\",2.4946153846153845],[\"2011-07-20\",3.513157894736842],[\"2011-07-21\",3.5733333333333333],[\"2011-07-22\",2.7065],[\"2011-07-24\",3.548],[\"2011-07-25\",4.229846153846154],[\"2011-07-26\",3.9724242424242426],[\"2011-07-27\",3.635714285714286],[\"2011-07-28\",3.4259770114942527],[\"2011-07-29\",3.1955263157894733],[\"2011-07-31\",3.5477272727272724],[\"2011-08-01\",1.7383333333333333],[\"2011-08-02\",2.110625],[\"2011-08-03\",3.338],[\"2011-08-04\",4.298450704225352],[\"2011-08-05\",3.5256],[\"2011-08-07\",2.40425],[\"2011-08-08\",5.336666666666667],[\"2011-08-09\",4.949642857142857],[\"2011-08-10\",3.603548387096774],[\"2011-08-11\",4.168913043478261],[\"2011-08-12\",3.010625],[\"2011-08-14\",7.559565217391304],[\"2011-08-15\",1.7810344827586206],[\"2011-08-16\",3.183170731707317],[\"2011-08-17\",1.4523529411764706],[\"2011-08-18\",3.2051282051282053],[\"2011-08-19\",3.1640476190476186],[\"2011-08-21\",2.590909090909091],[\"2011-08-22\",3.0494736842105263],[\"2011-08-23\",2.520487804878049],[\"2011-08-24\",2.576911764705882],[\"2011-08-25\",5.572105263157895],[\"2011-08-26\",7.153333333333332],[\"2011-08-28\",2.4464705882352944],[\"2011-08-30\",5.129130434782609],[\"2011-08-31\",6.927],[\"2011-09-01\",2.5911940298507465],[\"2011-09-02\",2.1298305084745763],[\"2011-09-04\",3.2022857142857144],[\"2011-09-05\",2.4376666666666664],[\"2011-09-06\",3.9920338983050847],[\"2011-09-07\",3.5068421052631575],[\"2011-09-08\",4.061525423728813],[\"2011-09-09\",5.030487804878049],[\"2011-09-11\",2.3823529411764706],[\"2011-09-12\",2.321632653061225],[\"2011-09-13\",5.619047619047619],[\"2011-09-14\",2.93472972972973],[\"2011-09-15\",5.052307692307692],[\"2011-09-16\",3.0852173913043477],[\"2011-09-18\",2.9166666666666665],[\"2011-09-19\",2.638723404255319],[\"2011-09-20\",3.5164],[\"2011-09-21\",2.999166666666667],[\"2011-09-22\",3.7895774647887324],[\"2011-09-23\",4.655714285714286],[\"2011-09-25\",4.3684375],[\"2011-09-26\",2.5783870967741938],[\"2011-09-27\",3.0764285714285715],[\"2011-09-28\",3.3638636363636363],[\"2011-09-29\",3.0076315789473687],[\"2011-09-30\",4.004222222222222],[\"2011-10-02\",4.260769230769231],[\"2011-10-03\",11.823823529411765],[\"2011-10-04\",3.790731707317073],[\"2011-10-05\",4.818153846153846],[\"2011-10-06\",3.0617441860465116],[\"2011-10-07\",2.755084745762712],[\"2011-10-09\",4.926666666666667],[\"2011-10-10\",3.521698113207547],[\"2011-10-11\",4.1001666666666665],[\"2011-10-12\",3.6183050847457627],[\"2011-10-13\",3.356346153846154],[\"2011-10-14\",3.273823529411765],[\"2011-10-17\",3.346923076923077],[\"2011-10-18\",4.432894736842106],[\"2011-10-19\",83.71802631578947],[\"2011-10-20\",3.0166666666666666],[\"2011-10-21\",4.407619047619048],[\"2011-10-23\",3.3579999999999997],[\"2011-10-24\",3.1915625],[\"2011-10-25\",10.853333333333333],[\"2011-10-26\",4.0545],[\"2011-10-27\",4.249705882352941],[\"2011-10-28\",3.419166666666667],[\"2011-10-30\",4.3769230769230765],[\"2011-10-31\",2.597872340425532],[\"2011-11-01\",3.6906818181818184],[\"2011-11-02\",2.503448275862069],[\"2011-11-03\",4.130909090909091],[\"2011-11-04\",3.040392156862745],[\"2011-11-06\",3.7903278688524593],[\"2011-11-07\",5.018450704225352],[\"2011-11-08\",3.167042253521127],[\"2011-11-09\",3.15],[\"2011-11-10\",15.689545454545454],[\"2011-11-11\",2.4724444444444447],[\"2011-11-13\",3.878064516129032],[\"2011-11-14\",3.2497674418604654],[\"2011-11-15\",3.0860256410256413],[\"2011-11-16\",5.15578431372549],[\"2011-11-17\",4.661818181818181],[\"2011-11-18\",4.1925],[\"2011-11-20\",2.1726190476190474],[\"2011-11-21\",3.352909090909091],[\"2011-11-22\",2.8920454545454546],[\"2011-11-23\",3.3629347826086957],[\"2011-11-24\",2.4713333333333334],[\"2011-11-25\",4.415],[\"2011-11-27\",3.4442857142857144],[\"2011-11-28\",2.5276315789473682],[\"2011-11-29\",4.47375],[\"2011-11-30\",3.5234000000000005],[\"2011-12-01\",3.40796875],[\"2011-12-02\",4.078823529411765],[\"2011-12-04\",3.1936170212765957],[\"2011-12-05\",5.610824742268041],[\"2011-12-06\",3.2925454545454547],[\"2011-12-07\",2.9996610169491524],[\"2011-12-08\",3.3912],[\"2011-12-09\",4.8088235294117645]]","source":"online_retail_ii","split":"dev","sql":"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.customer_id = ? OR i.invoice_date >= ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC","sql_parameters":"[\"12348\",\"2011-05-10\"]","state":"{\"question\":\"Return the average of l.unit_price for retail lines joined to their invoices where (i.customer_id equals '12348' or 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\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}768{"category":"single_table/date/having","domain":"commerce","family_id":"d651e01f7daf5a760641b9e4","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"ce8634d4db24c86144e34475f342969db10e830edd551127273e578d6ef8229f","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail invoice lines where (invoice_date is on or after '2011-05-10'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\",2],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\",2],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\",2],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\",2],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"United Kingdom\",7939],[\"Germany\",266],[\"France\",114],[\"EIRE\",98],[\"Finland\",45]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5","sql_parameters":"[\"2011-05-10\",2]","state":"{\"question\":\"Return the number of rows for retail invoice lines where (invoice_date is on or after '2011-05-10'), 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_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}769{"category":"join/distinct_invoice/date/having","domain":"commerce","family_id":"a0f544fe6a9be5820d194243","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"71f5b2aef60dbebd4e0c42f90f4dae5313134f73fb530d341f985de36892cfb0","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.invoice_date is on or after '2011-09-29'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) 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\\\":[\\\"2011-09-29\\\",10],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) 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 DESC, i.country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2011-09-29\\\",10],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) 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\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2011-09-29\\\",10],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) 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\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Denmark\",2],[\"Netherlands\",7],[\"EIRE\",10]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, COUNT(DISTINCT i.invoice) 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","sql_parameters":"[\"2011-09-29\",10]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.invoice_date is on or after '2011-09-29'), 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_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}770{"category":"join/date/or/grouped","domain":"commerce","family_id":"6a8f52dc875df889439b7b76","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"da45ff34a8a41f6fd9dd1fd1c5d813069bc9701655aeabf22ca2305d38f5d2d4","language":"en","license":"CC-BY-4.0","query":"Return the average of l.unit_price for retail lines joined to their invoices where (i.customer_id equals '12364' or i.invoice_date is on or after '2011-05-10'), grouped by i.invoice_date, ordered by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12364\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"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.customer_id = ? OR i.invoice_date >= ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12364\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"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.customer_id = ? AND i.invoice_date >= ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12364\\\",\\\"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.customer_id = ? OR i.invoice_date >= ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12364\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR i.invoice_date >= ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"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-22\",3.953095238095238],[\"2011-05-23\",4.1470769230769235],[\"2011-05-24\",5.244647887323944],[\"2011-05-25\",2.7404761904761905],[\"2011-05-26\",6.34875],[\"2011-05-27\",3.2464814814814815],[\"2011-05-29\",2.6258333333333335],[\"2011-05-31\",4.00578947368421],[\"2011-06-01\",3.951935483870968],[\"2011-06-02\",3.872666666666667],[\"2011-06-03\",4.091875],[\"2011-06-05\",4.384444444444444],[\"2011-06-06\",3.3066666666666666],[\"2011-06-07\",3.1623636363636365],[\"2011-06-08\",3.4485074626865675],[\"2011-06-09\",4.249818181818182],[\"2011-06-10\",4.9411538461538465],[\"2011-06-12\",8.834999999999999],[\"2011-06-13\",3.351666666666667],[\"2011-06-14\",3.204],[\"2011-06-15\",4.550869565217392],[\"2011-06-16\",2.857894736842105],[\"2011-06-17\",3.221388888888889],[\"2011-06-19\",2.338214285714286],[\"2011-06-20\",68.40395833333334],[\"2011-06-21\",4.466969696969697],[\"2011-06-22\",2.8235],[\"2011-06-23\",2.592608695652174],[\"2011-06-24\",3.056190476190476],[\"2011-06-26\",7.047142857142857],[\"2011-06-27\",1.997391304347826],[\"2011-06-28\",3.094791666666667],[\"2011-06-29\",4.336129032258064],[\"2011-06-30\",11.425142857142857],[\"2011-07-01\",6.5818518518518525],[\"2011-07-03\",4.398888888888889],[\"2011-07-04\",3.787352941176471],[\"2011-07-05\",3.169655172413793],[\"2011-07-06\",2.4479661016949152],[\"2011-07-07\",3.8013793103448275],[\"2011-07-08\",9.609473684210528],[\"2011-07-10\",1.158],[\"2011-07-11\",2.9802631578947367],[\"2011-07-12\",2.1441666666666666],[\"2011-07-13\",4.7070454545454545],[\"2011-07-14\",4.534042553191489],[\"2011-07-15\",3.6704761904761902],[\"2011-07-17\",4.009318181818181],[\"2011-07-18\",6.26],[\"2011-07-19\",2.4946153846153845],[\"2011-07-20\",3.513157894736842],[\"2011-07-21\",3.5733333333333333],[\"2011-07-22\",2.7065],[\"2011-07-24\",3.548],[\"2011-07-25\",4.229846153846154],[\"2011-07-26\",3.9724242424242426],[\"2011-07-27\",3.635714285714286],[\"2011-07-28\",3.4259770114942527],[\"2011-07-29\",3.1955263157894733],[\"2011-07-31\",3.5477272727272724],[\"2011-08-01\",1.7383333333333333],[\"2011-08-02\",2.110625],[\"2011-08-03\",3.338],[\"2011-08-04\",4.298450704225352],[\"2011-08-05\",3.5256],[\"2011-08-07\",2.40425],[\"2011-08-08\",5.336666666666667],[\"2011-08-09\",4.949642857142857],[\"2011-08-10\",3.603548387096774],[\"2011-08-11\",4.168913043478261],[\"2011-08-12\",3.010625],[\"2011-08-14\",7.559565217391304],[\"2011-08-15\",1.7810344827586206],[\"2011-08-16\",3.183170731707317],[\"2011-08-17\",1.4523529411764706],[\"2011-08-18\",3.2051282051282053],[\"2011-08-19\",3.1640476190476186],[\"2011-08-21\",2.590909090909091],[\"2011-08-22\",3.0494736842105263],[\"2011-08-23\",2.520487804878049],[\"2011-08-24\",2.576911764705882],[\"2011-08-25\",5.572105263157895],[\"2011-08-26\",7.153333333333332],[\"2011-08-28\",2.4464705882352944],[\"2011-08-30\",5.129130434782609],[\"2011-08-31\",6.927],[\"2011-09-01\",2.5911940298507465],[\"2011-09-02\",2.1298305084745763],[\"2011-09-04\",3.2022857142857144],[\"2011-09-05\",2.4376666666666664],[\"2011-09-06\",3.9920338983050847],[\"2011-09-07\",3.5068421052631575],[\"2011-09-08\",4.061525423728813],[\"2011-09-09\",5.030487804878049],[\"2011-09-11\",2.3823529411764706],[\"2011-09-12\",2.321632653061225],[\"2011-09-13\",5.619047619047619],[\"2011-09-14\",2.93472972972973],[\"2011-09-15\",5.052307692307692],[\"2011-09-16\",3.0852173913043477],[\"2011-09-18\",2.9166666666666665],[\"2011-09-19\",2.638723404255319],[\"2011-09-20\",3.5164],[\"2011-09-21\",2.999166666666667],[\"2011-09-22\",3.7895774647887324],[\"2011-09-23\",4.655714285714286],[\"2011-09-25\",4.3684375],[\"2011-09-26\",2.5783870967741938],[\"2011-09-27\",3.0764285714285715],[\"2011-09-28\",3.3638636363636363],[\"2011-09-29\",3.0076315789473687],[\"2011-09-30\",4.004222222222222],[\"2011-10-02\",4.260769230769231],[\"2011-10-03\",11.823823529411765],[\"2011-10-04\",3.790731707317073],[\"2011-10-05\",4.818153846153846],[\"2011-10-06\",3.0617441860465116],[\"2011-10-07\",2.755084745762712],[\"2011-10-09\",4.926666666666667],[\"2011-10-10\",3.521698113207547],[\"2011-10-11\",4.1001666666666665],[\"2011-10-12\",3.6183050847457627],[\"2011-10-13\",3.356346153846154],[\"2011-10-14\",3.273823529411765],[\"2011-10-17\",3.346923076923077],[\"2011-10-18\",4.432894736842106],[\"2011-10-19\",83.71802631578947],[\"2011-10-20\",3.0166666666666666],[\"2011-10-21\",4.407619047619048],[\"2011-10-23\",3.3579999999999997],[\"2011-10-24\",3.1915625],[\"2011-10-25\",10.853333333333333],[\"2011-10-26\",4.0545],[\"2011-10-27\",4.249705882352941],[\"2011-10-28\",3.419166666666667],[\"2011-10-30\",4.3769230769230765],[\"2011-10-31\",2.597872340425532],[\"2011-11-01\",3.6906818181818184],[\"2011-11-02\",2.503448275862069],[\"2011-11-03\",4.130909090909091],[\"2011-11-04\",3.040392156862745],[\"2011-11-06\",3.7903278688524593],[\"2011-11-07\",5.018450704225352],[\"2011-11-08\",3.167042253521127],[\"2011-11-09\",3.15],[\"2011-11-10\",15.689545454545454],[\"2011-11-11\",2.4724444444444447],[\"2011-11-13\",3.878064516129032],[\"2011-11-14\",3.2497674418604654],[\"2011-11-15\",3.0860256410256413],[\"2011-11-16\",5.15578431372549],[\"2011-11-17\",4.661818181818181],[\"2011-11-18\",4.1925],[\"2011-11-20\",2.1726190476190474],[\"2011-11-21\",3.352909090909091],[\"2011-11-22\",2.8920454545454546],[\"2011-11-23\",3.3629347826086957],[\"2011-11-24\",2.4713333333333334],[\"2011-11-25\",4.415],[\"2011-11-27\",3.4442857142857144],[\"2011-11-28\",2.5276315789473682],[\"2011-11-29\",4.47375],[\"2011-11-30\",3.5234000000000005],[\"2011-12-01\",3.40796875],[\"2011-12-02\",4.078823529411765],[\"2011-12-04\",3.1936170212765957],[\"2011-12-05\",5.610824742268041],[\"2011-12-06\",3.2925454545454547],[\"2011-12-07\",2.9996610169491524],[\"2011-12-08\",3.3912],[\"2011-12-09\",4.8088235294117645]]","source":"online_retail_ii","split":"dev","sql":"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.customer_id = ? OR i.invoice_date >= ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC","sql_parameters":"[\"12364\",\"2011-05-10\"]","state":"{\"question\":\"Return the average of l.unit_price for retail lines joined to their invoices where (i.customer_id equals '12364' or 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\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}771{"category":"single_table/having","domain":"commerce","family_id":"af7ef7f24a43297693f1d84c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"4d5c0deaa77d07cb4296376215c90b00c4e7ee3c45bfa7b1cd1e612e69971fed","language":"en","license":"CC-BY-4.0","query":"Return the maximum of product_duration for shopping sessions where (region equals 5), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[5,10],\\\"sql\\\":\\\"SELECT revenue, MAX(product_duration) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[5,10],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[5,10],\\\"sql\\\":\\\"SELECT revenue, MAX(product_duration) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[5,10],\\\"sql\\\":\\\"SELECT revenue, SUM(product_duration) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1,5256.472341],[0,11308.09795]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, MAX(product_duration) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3","sql_parameters":"[5,10]","state":"{\"question\":\"Return the maximum of product_duration for shopping sessions where (region equals 5), 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\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}772{"category":"single_table/and/ranked","domain":"commerce","family_id":"8e218976fbd5a18f5d6103a7","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"b204615b3c2d9e536844b45c5d7872aa4a924f7ca07023fade12587bb5199abc","language":"en","license":"CC-BY-4.0","query":"Return the sum of unit_price for retail invoice lines where (country equals 'Denmark' and unit_price is at most 2.25), grouped by country; return at most 3 groups ordered by aggregate value ASC, breaking ties by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Denmark\\\",2.25],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Denmark\\\",2.25],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Denmark\\\",2.25],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Denmark\\\",2.25],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Denmark\",2.59]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3","sql_parameters":"[\"Denmark\",2.25]","state":"{\"question\":\"Return the sum of unit_price for retail invoice lines where (country equals 'Denmark' and unit_price is at most 2.25), 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\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}773{"category":"single_table/aggregate","domain":"commerce","family_id":"7ad90302893867a27feeabc2","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"32ba09f9bc9cfd55a14ed95f897643d2f42a749d8ed6223d3b8e34ca43dc6b70","language":"en","license":"CC-BY-4.0","query":"Return the average of product_related for shopping sessions where (region equals 8).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[8],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (region = ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[8],\\\"sql\\\":\\\"SELECT AVG(product_related) AS value FROM shopping_sessions WHERE (region = ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[8],\\\"sql\\\":\\\"SELECT SUM(product_related) AS value FROM shopping_sessions WHERE (region = ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[8],\\\"sql\\\":\\\"SELECT MIN(product_related) AS value FROM shopping_sessions WHERE (region = ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[26.72811059907834]]","source":"online_shoppers","split":"dev","sql":"SELECT AVG(product_related) AS value FROM shopping_sessions WHERE (region = ?)","sql_parameters":"[8]","state":"{\"question\":\"Return the average of product_related for shopping sessions where (region equals 8).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}774{"category":"single_table/date/ranked","domain":"commerce","family_id":"874eb54c09ae446bf567a27c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"b75e52cfdf0a1e610dd6593ce2adffb255cadad9d295e2b1fae4359456c0c06a","language":"en","license":"CC-BY-4.0","query":"Return the minimum of unit_price for retail invoice lines where (invoice_date is on or after '2010-12-02'), grouped by invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MIN(unit_price) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MIN(unit_price) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-09-16\",0.04],[\"2011-09-30\",0.04],[\"2011-10-19\",0.04]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MIN(unit_price) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3","sql_parameters":"[\"2010-12-02\"]","state":"{\"question\":\"Return the minimum of unit_price for retail invoice lines where (invoice_date is on or after '2010-12-02'), grouped by invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by invoice_date ascending.\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}775{"category":"single_table/grouped","domain":"commerce","family_id":"107d3de2819bf98aa70136a6","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"d18afb819b099b4abc9fb2c5f177b2deeda09bc7f1147a2051e0dcc33ef28894","language":"en","license":"CC-BY-4.0","query":"Return the sum of product_related for shopping sessions where (region equals 7), grouped by revenue, ordered by revenue ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[7],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[7],\\\"sql\\\":\\\"SELECT revenue, SUM(product_related) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[7],\\\"sql\\\":\\\"SELECT revenue, AVG(product_related) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[7],\\\"sql\\\":\\\"SELECT revenue, MIN(product_related) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,18657],[1,5284]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, SUM(product_related) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY revenue ORDER BY revenue ASC","sql_parameters":"[7]","state":"{\"question\":\"Return the sum of product_related for shopping sessions where (region equals 7), grouped by revenue, ordered by revenue ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}776{"category":"single_table/or/aggregate","domain":"sensor","family_id":"ce023a0b9132edeafeb68d50","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"a4cb6a1f3404e2041e71ae681d1c388bab05ca7325ffaba9fbac40402aca6184","language":"en","license":"CC-BY-4.0","query":"Return the minimum of ps1_mean for hydraulic cycles where (ps1_mean is greater than 158.96089 or ps2_mean is at most 107.17314).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[158.96089,107.17314],\\\"sql\\\":\\\"SELECT MIN(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? AND ps2_mean <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[158.96089,107.17314],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? OR ps2_mean <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[158.96089,107.17314],\\\"sql\\\":\\\"SELECT SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? OR ps2_mean <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[158.96089,107.17314],\\\"sql\\\":\\\"SELECT MIN(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? OR ps2_mean <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[155.39155]]","source":"hydraulic","split":"dev","sql":"SELECT MIN(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? OR ps2_mean <= ?)","sql_parameters":"[158.96089,107.17314]","state":"{\"question\":\"Return the minimum 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\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}777{"category":"single_table/date/ranked","domain":"commerce","family_id":"70eadeefd0c6e5f19e92a437","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"ad99497f834c8699581eec05562c489230a9fc226882c56d133ab00e8ec51904","language":"en","license":"CC-BY-4.0","query":"Return the average of unit_price for retail invoice lines where (invoice_date is before '2010-07-14'), grouped by country; return at most 5 groups ordered by aggregate value DESC, breaking ties by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Spain\",18.279444444444444],[\"Austria\",14.4],[\"Finland\",12.7225],[\"Denmark\",7.1325],[\"Germany\",4.941477272727273]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5","sql_parameters":"[\"2010-07-14\"]","state":"{\"question\":\"Return the average of unit_price for retail invoice lines where (invoice_date is before '2010-07-14'), 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\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}778{"category":"single_table/date/and/having","domain":"commerce","family_id":"856711faead756dadb591bef","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"fbc5b42495362a1efb1a1f873a22071e321036a7d9e4ba2ec61235424ec7e737","language":"en","license":"CC-BY-4.0","query":"Return the average of unit_price for retail invoice lines where (country equals 'Channel Islands' and invoice_date is on or after '2010-07-14'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\",\\\"2010-07-14\\\",10],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\",\\\"2010-07-14\\\",10],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\",\\\"2010-07-14\\\",10],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\",\\\"2010-07-14\\\",10],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Channel Islands\",3.248333333333333]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3","sql_parameters":"[\"Channel Islands\",\"2010-07-14\",10]","state":"{\"question\":\"Return the average of unit_price for retail invoice lines where (country equals 'Channel Islands' and invoice_date is on or after '2010-07-14'), 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\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}779{"category":"join/having","domain":"commerce","family_id":"a672937565edfe09855b6683","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"6bbea23cec40a9e2d74b346a39ddb3a407e6b4e59dcee5f5c4573936a523808d","language":"en","license":"CC-BY-4.0","query":"Return the average of l.quantity for retail lines joined to their invoices where (i.customer_id equals '12366'), grouped by i.country, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12366\\\",2],\\\"sql\\\":\\\"SELECT i.country, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12366\\\",2],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12366\\\",2],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12366\\\",2],\\\"sql\\\":\\\"SELECT i.country, MIN(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Cyprus\",98.66666666666667]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5","sql_parameters":"[\"12366\",2]","state":"{\"question\":\"Return the average of l.quantity for retail lines joined to their invoices where (i.customer_id equals '12366'), grouped by i.country, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}780{"category":"join/and/ranked","domain":"commerce","family_id":"dd45503c25740474142c64f6","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"7723ef24a5a7756d49a0a55a17146ef7cdd82e2773954a66ad296685ef6cf930","language":"en","license":"CC-BY-4.0","query":"Return the maximum of l.unit_price for retail lines joined to their invoices where (i.country equals 'Cyprus' and l.unit_price is at most 4.77), grouped by i.invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",4.77],\\\"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 l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",4.77],\\\"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 = ? OR l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",4.77],\\\"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 l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",4.77],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-16\",0.85],[\"2010-11-10\",1.45],[\"2010-03-16\",1.69]]","source":"online_retail_ii","split":"dev","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 l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3","sql_parameters":"[\"Cyprus\",4.77]","state":"{\"question\":\"Return the maximum of l.unit_price for retail lines joined to their invoices where (i.country equals 'Cyprus' and l.unit_price is at most 4.77), grouped by i.invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}781{"category":"single_table/or/grouped","domain":"sensor","family_id":"16ec13526082b58050810fbb","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"465d9b5ea9b636b99fd83dead94d1773b727aa738ef5e84132388fffa24b3c68","language":"en","license":"CC-BY-4.0","query":"Return the sum of fs1_mean for hydraulic cycles where (fs1_mean is greater than 6.57291 or ts1_mean is at most 36.33327), grouped by cooler, ordered by cooler ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[6.57291,36.33327],\\\"sql\\\":\\\"SELECT cooler, SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ? AND ts1_mean <= ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[6.57291,36.33327],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (fs1_mean > ? OR ts1_mean <= ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[6.57291,36.33327],\\\"sql\\\":\\\"SELECT cooler, SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ? OR ts1_mean <= ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[6.57291,36.33327],\\\"sql\\\":\\\"SELECT cooler, AVG(fs1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ? OR ts1_mean <= ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[3,2028.79874],[20,2678.39348],[100,4510.59339]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ? OR ts1_mean <= ?) GROUP BY cooler ORDER BY cooler ASC","sql_parameters":"[6.57291,36.33327]","state":"{\"question\":\"Return the sum of fs1_mean for hydraulic cycles where (fs1_mean is greater than 6.57291 or ts1_mean is at most 36.33327), grouped by cooler, ordered by cooler ascending.\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}782{"category":"single_table/and/having","domain":"commerce","family_id":"fe5c38e11093f7fc24814637","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"cf4cfdc68915b54175190e2e8e40fadd93eba052b66f453ea4099c6f200bcfd1","language":"en","license":"CC-BY-4.0","query":"Return the minimum of administrative for shopping sessions where (region equals 6 and administrative is at most 23), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[6,23,10],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (region = ? AND administrative <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[6,23,10],\\\"sql\\\":\\\"SELECT revenue, SUM(administrative) AS value FROM shopping_sessions WHERE (region = ? AND administrative <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[6,23,10],\\\"sql\\\":\\\"SELECT revenue, MIN(administrative) AS value FROM shopping_sessions WHERE (region = ? AND administrative <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[6,23,10],\\\"sql\\\":\\\"SELECT revenue, AVG(administrative) AS value FROM shopping_sessions WHERE (region = ? AND administrative <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,0],[1,0]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, MIN(administrative) AS value FROM shopping_sessions WHERE (region = ? AND administrative <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3","sql_parameters":"[6,23,10]","state":"{\"question\":\"Return the minimum of administrative for shopping sessions where (region equals 6 and administrative is at most 23), 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\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}783{"category":"join/distinct_invoice/having","domain":"commerce","family_id":"861b6b7dad44e5d0ac8f58f7","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"f44aa4ee734a40a83d020051947a78642681a4874ebaf8ba6c505d357c875e96","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.unit_price is greater than 0.55), grouped by i.invoice_date, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[0.55,2],\\\"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 > ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[0.55,2],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[0.55,2],\\\"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 > ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[0.55,2],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-12-01\",68],[\"2010-12-02\",68],[\"2010-12-09\",52],[\"2010-12-08\",46],[\"2010-12-07\",34]]","source":"online_retail_ii","split":"dev","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 > ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5","sql_parameters":"[0.55,2]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.unit_price is greater than 0.55), grouped by i.invoice_date, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}784{"category":"single_table/grouped","domain":"sensor","family_id":"3240bbbb45ee70b946c80d39","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"8ee47767d2ac9a9dfc5429c6fd312e2f82912b4976eea6f1d5debbbb8d9fcb02","language":"en","license":"CC-BY-4.0","query":"Return the sum of eps1_mean for hydraulic cycles where (eps1_mean is at most 2449.13677), grouped by pump_leakage, ordered by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2449.13677],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2449.13677],\\\"sql\\\":\\\"SELECT pump_leakage, AVG(eps1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2449.13677],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(eps1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2449.13677],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(eps1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,1347575.4467],[1,141581.18599],[2,106296.20612]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, SUM(eps1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC","sql_parameters":"[2449.13677]","state":"{\"question\":\"Return the sum of eps1_mean for hydraulic cycles where (eps1_mean is at most 2449.13677), 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_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}785{"category":"single_table/or/having","domain":"sensor","family_id":"d42222d14b31d8026799ffb6","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"633895b67d84445b18c10ded0ffb4e12c6e092e06f86b46c742e9df11df164da","language":"en","license":"CC-BY-4.0","query":"Return the sum of ps2_mean for hydraulic cycles where (pump_leakage equals 0 or ts1_mean is greater than 36.33327), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[0,36.33327,10],\\\"sql\\\":\\\"SELECT valve, SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? AND ts1_mean > ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[0,36.33327,10],\\\"sql\\\":\\\"SELECT valve, SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? OR ts1_mean > ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[0,36.33327,10],\\\"sql\\\":\\\"SELECT valve, SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? OR ts1_mean > ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[0,36.33327,10],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? OR ts1_mean > ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[80,31744.8716],[90,31842.20275],[73,33013.94732]]","source":"hydraulic","split":"dev","sql":"SELECT valve, SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? OR ts1_mean > ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 3","sql_parameters":"[0,36.33327,10]","state":"{\"question\":\"Return the sum of ps2_mean for hydraulic cycles where (pump_leakage equals 0 or ts1_mean is greater than 36.33327), 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\",\"cooler\":\"INTEGER\",\"cycle_id\":\"INTEGER\",\"eps1_mean\":\"REAL\",\"fs1_mean\":\"REAL\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}786{"category":"single_table/aggregate","domain":"sensor","family_id":"8a5af1e75a6d0884ff229897","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"f71bb102fc7946a12650d735e53c486e96f8a36c6466e0591192bdad3d05eba7","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for hydraulic cycles where (vs1_mean is greater than 0.54422).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[0.54422],\\\"sql\\\":\\\"SELECT SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (vs1_mean > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[0.54422],\\\"sql\\\":\\\"SELECT AVG(ps1_mean) AS value FROM hydraulic_cycles WHERE (vs1_mean > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[0.54422],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (vs1_mean > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[0.54422],\\\"sql\\\":\\\"SELECT MIN(ps1_mean) AS value FROM hydraulic_cycles WHERE (vs1_mean > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1983]]","source":"hydraulic","split":"dev","sql":"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (vs1_mean > ?)","sql_parameters":"[0.54422]","state":"{\"question\":\"Return the number of rows for hydraulic cycles where (vs1_mean is greater than 0.54422).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}787{"category":"join/having","domain":"commerce","family_id":"a672937565edfe09855b6683","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"40eec6f2fcbacde765104ed4dbf0e715704602215e04fc9f1054226e6e42ccc7","language":"en","license":"CC-BY-4.0","query":"Return the average of l.quantity for retail lines joined to their invoices where (i.customer_id equals '12356'), grouped by i.country, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12356\\\",2],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12356\\\",2],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12356\\\",2],\\\"sql\\\":\\\"SELECT i.country, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12356\\\",2],\\\"sql\\\":\\\"SELECT i.country, MIN(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Portugal\",2.5]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5","sql_parameters":"[\"12356\",2]","state":"{\"question\":\"Return the average of l.quantity for retail lines joined to their invoices where (i.customer_id equals '12356'), grouped by i.country, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}788{"category":"single_table/or/grouped","domain":"commerce","family_id":"50d42a5c5be25d1a20ac0af7","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"d8dc4d0e4f165c5649913ac7af620d072f32986eddb621263190e3f761387c1d","language":"en","license":"CC-BY-4.0","query":"Return the maximum of administrative for shopping sessions where (month equals 'Jul' or traffic_type equals 12), grouped by revenue, ordered by revenue ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Jul\\\",12],\\\"sql\\\":\\\"SELECT revenue, MAX(administrative) AS value FROM shopping_sessions WHERE (month = ? AND traffic_type = ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Jul\\\",12],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (month = ? OR traffic_type = ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Jul\\\",12],\\\"sql\\\":\\\"SELECT revenue, MAX(administrative) AS value FROM shopping_sessions WHERE (month = ? OR traffic_type = ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Jul\\\",12],\\\"sql\\\":\\\"SELECT revenue, SUM(administrative) AS value FROM shopping_sessions WHERE (month = ? OR traffic_type = ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,23],[1,16]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, MAX(administrative) AS value FROM shopping_sessions WHERE (month = ? OR traffic_type = ?) GROUP BY revenue ORDER BY revenue ASC","sql_parameters":"[\"Jul\",12]","state":"{\"question\":\"Return the maximum of administrative for shopping sessions where (month equals 'Jul' or traffic_type equals 12), grouped by revenue, ordered by revenue ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}789{"category":"single_table/and/ranked","domain":"commerce","family_id":"8e218976fbd5a18f5d6103a7","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"fa9dedeced762b8244e8faff8c1992e3fc24c75b490a1f793c728bb9af34d5ad","language":"en","license":"CC-BY-4.0","query":"Return the sum of unit_price for retail invoice lines where (country equals 'EIRE' and unit_price is at most 4.77), grouped by country; return at most 3 groups ordered by aggregate value ASC, breaking ties by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"EIRE\\\",4.77],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"EIRE\\\",4.77],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"EIRE\\\",4.77],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"EIRE\\\",4.77],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"EIRE\",275.57]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3","sql_parameters":"[\"EIRE\",4.77]","state":"{\"question\":\"Return the sum of unit_price for retail invoice lines where (country equals 'EIRE' and unit_price is at most 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\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}790{"category":"join/having","domain":"commerce","family_id":"381d5b876619913b3c784f11","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"6a368c56e67599c211600a586919ce8b3eadb306d4eb80c62af8dd51916dbc75","language":"en","license":"CC-BY-4.0","query":"Return the maximum of l.quantity for retail lines joined to their invoices where (l.unit_price is greater than 49.95), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[49.95],\\\"sql\\\":\\\"SELECT i.country, MAX(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[49.95,10],\\\"sql\\\":\\\"SELECT i.country, MAX(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[49.95,10],\\\"sql\\\":\\\"SELECT i.country, MAX(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[49.95,10],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"EIRE\",1],[\"United Kingdom\",34]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, MAX(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3","sql_parameters":"[49.95,10]","state":"{\"question\":\"Return the maximum of l.quantity for retail lines joined to their invoices where (l.unit_price is greater than 49.95), 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_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}791{"category":"join/aggregate","domain":"commerce","family_id":"a6218a885938b909a9399413","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"aea1ca0464cf860548bfb8ac2b6d3a51ea9bacad479b2cddb5a6e3bf6eeab30c","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail lines joined to their invoices where (i.country equals 'Canada').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Canada\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Canada\\\"],\\\"sql\\\":\\\"SELECT SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Canada\\\"],\\\"sql\\\":\\\"SELECT AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Canada\\\"],\\\"sql\\\":\\\"SELECT MIN(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[5]]","source":"online_retail_ii","split":"dev","sql":"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?)","sql_parameters":"[\"Canada\"]","state":"{\"question\":\"Return the number of rows for retail lines joined to their invoices where (i.country equals 'Canada').\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}792{"category":"single_table/and/ranked","domain":"commerce","family_id":"3a1354340d3a52cb72c2d5cf","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"6bd37c79500aec2439bf7a462dee7aa68f222c80baddcc9e8cc86441301a95c1","language":"en","license":"CC-BY-4.0","query":"Return the average of administrative for shopping sessions where (product_related is greater than 340 and product_duration is at most 167.5), grouped by month; return at most 5 groups ordered by aggregate value DESC, breaking ties by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[340,167.5],\\\"sql\\\":\\\"SELECT month, AVG(administrative) AS value FROM shopping_sessions WHERE (product_related > ? OR product_duration <= ?) GROUP BY month ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[340,167.5],\\\"sql\\\":\\\"SELECT month, AVG(administrative) AS value FROM shopping_sessions WHERE (product_related > ? AND product_duration <= ?) GROUP BY month ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT month, AVG(administrative) AS value FROM shopping_sessions GROUP BY month ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[340],\\\"sql\\\":\\\"SELECT month, AVG(administrative) AS value FROM shopping_sessions WHERE (product_related > ?) GROUP BY month ORDER BY value DESC, month ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_shoppers","split":"dev","sql":"SELECT month, AVG(administrative) AS value FROM shopping_sessions WHERE (product_related > ? AND product_duration <= ?) GROUP BY month ORDER BY value DESC, month ASC LIMIT 5","sql_parameters":"[340,167.5]","state":"{\"question\":\"Return the average of administrative for shopping sessions where (product_related is greater than 340 and product_duration is at most 167.5), grouped by month; return at most 5 groups ordered by aggregate value DESC, breaking ties by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}793{"category":"single_table/date/and/having","domain":"commerce","family_id":"856711faead756dadb591bef","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"92085f95f780a7bbb4cd78fa0dc81507d6a0b49be7ce83bf5efedf69f2e22da3","language":"en","license":"CC-BY-4.0","query":"Return the average of unit_price for retail invoice lines where (country equals 'Canada' and 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Canada\\\",\\\"2010-02-18\\\",10],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Canada\\\",\\\"2010-02-18\\\",10],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Canada\\\",\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[10],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","sql":"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3","sql_parameters":"[\"Canada\",\"2010-02-18\",10]","state":"{\"question\":\"Return the average of unit_price for retail invoice lines where (country equals 'Canada' and 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.\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}794{"category":"single_table/and/having","domain":"sensor","family_id":"84ef3a5b8fbee7a005d6d22b","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"912af2628ca722c0217372848ef7ec896c1d7e9ae6a05b9d163b671934df905f","language":"en","license":"CC-BY-4.0","query":"Return the maximum of eps1_mean for hydraulic cycles where (ps1_mean is at most 160.79926 and eps1_mean is at most 2398.143), grouped by pump_leakage, keeping only groups with at least 10 matching rows; return at most 3 groups ordered by aggregate value ASC, breaking ties by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[160.79926,2398.143,10],\\\"sql\\\":\\\"SELECT pump_leakage, MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR eps1_mean <= ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[160.79926,2398.143],\\\"sql\\\":\\\"SELECT pump_leakage, MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? AND eps1_mean <= ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[160.79926,2398.143,10],\\\"sql\\\":\\\"SELECT pump_leakage, MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? AND eps1_mean <= ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[160.79926,2398.143,10],\\\"sql\\\":\\\"SELECT pump_leakage, MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? AND eps1_mean <= ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1,2396.1548],[0,2398.143]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? AND eps1_mean <= ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value ASC, pump_leakage ASC LIMIT 3","sql_parameters":"[160.79926,2398.143,10]","state":"{\"question\":\"Return the maximum of eps1_mean for hydraulic cycles where (ps1_mean is at most 160.79926 and eps1_mean is at most 2398.143), grouped by pump_leakage, keeping only groups with at least 10 matching rows; 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\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}795{"category":"single_table/date/having","domain":"commerce","family_id":"84afec4d744f6c413d51eade","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"4fa1978fefe5ddd99fc867cd9b83b093933f56f69641016c9c31b4bd35707665","language":"en","license":"CC-BY-4.0","query":"Return the minimum of quantity for retail invoice lines where (invoice_date is before '2011-05-10'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\",10],\\\"sql\\\":\\\"SELECT country, MIN(quantity) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\",10],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\",10],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\",10],\\\"sql\\\":\\\"SELECT country, MIN(quantity) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Austria\",1],[\"Belgium\",1],[\"EIRE\",1]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, MIN(quantity) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3","sql_parameters":"[\"2011-05-10\",10]","state":"{\"question\":\"Return the minimum of quantity for retail invoice lines where (invoice_date is before '2011-05-10'), 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\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}796{"category":"single_table/or/aggregate","domain":"sensor","family_id":"c80bd65d54f885e9e1e146db","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"ff3d2504153ec83f09775783b49f8f82ecb68c2bd3840795dd8d8f3a59a30498","language":"en","license":"CC-BY-4.0","query":"Return the maximum of vs1_mean for hydraulic cycles where (ps1_mean is at most 160.79926 or eps1_mean is at most 2449.13677).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[160.79926,2449.13677],\\\"sql\\\":\\\"SELECT MAX(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR eps1_mean <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[160.79926,2449.13677],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR eps1_mean <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[160.79926,2449.13677],\\\"sql\\\":\\\"SELECT SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR eps1_mean <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[160.79926,2449.13677],\\\"sql\\\":\\\"SELECT AVG(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR eps1_mean <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0.83907]]","source":"hydraulic","split":"dev","sql":"SELECT MAX(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR eps1_mean <= ?)","sql_parameters":"[160.79926,2449.13677]","state":"{\"question\":\"Return the maximum of vs1_mean for hydraulic cycles where (ps1_mean is at most 160.79926 or eps1_mean is at most 2449.13677).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}797{"category":"join/date/and/grouped","domain":"commerce","family_id":"b281e727bc12553613e323f7","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"15136c5e92deaaff22cfb729f2efcdd918eff0c46b0919a8462c4bbe29f0d3dd","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail lines joined to their invoices where (l.unit_price is greater than 0.55 and i.invoice_date is on or after '2011-09-29'), grouped by i.country, ordered by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[0.55,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) 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\\\":[0.55,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) 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\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[0.55,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) 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\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[0.55,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT i.country, AVG(l.quantity) 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\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",5],[\"Belgium\",8],[\"Channel Islands\",8],[\"Denmark\",11],[\"EIRE\",43],[\"Finland\",36],[\"France\",48],[\"Germany\",116],[\"Israel\",2],[\"Netherlands\",22],[\"Norway\",2],[\"Portugal\",4],[\"Singapore\",2],[\"Spain\",8],[\"Sweden\",6],[\"Switzerland\",3],[\"United Kingdom\",3108]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, COUNT(*) 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","sql_parameters":"[0.55,\"2011-09-29\"]","state":"{\"question\":\"Return the number of rows for retail lines joined to their invoices where (l.unit_price is greater than 0.55 and i.invoice_date is on or after '2011-09-29'), grouped by i.country, ordered by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}798{"category":"join/distinct_invoice/and/ranked","domain":"commerce","family_id":"740c94a8bd2dfbc7b4b30d89","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"938e702a5a4f9cde687cc060b61d8486d9941644e8975613f6b75aad5010e270","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.customer_id equals '12348' and l.quantity is greater than 229), grouped by i.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12348\\\",229],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR l.quantity > ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12348\\\",229],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? AND l.quantity > ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12348\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? AND l.quantity > ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3","sql_parameters":"[\"12348\",229]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.customer_id equals '12348' and l.quantity is greater than 229), grouped by i.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}799{"category":"single_table/or/grouped","domain":"commerce","family_id":"30dc4db581b60e23643b505d","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"bf112e039b08104e0b37b9bbe7b667a3c18904c807a19415230115fa174bece7","language":"en","license":"CC-BY-4.0","query":"Return the sum of administrative for shopping sessions where (administrative is greater than 7 or product_related is at most 226), grouped by revenue, ordered by revenue ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[7,226],\\\"sql\\\":\\\"SELECT revenue, SUM(administrative) AS value FROM shopping_sessions WHERE (administrative > ? AND product_related <= ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[7,226],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (administrative > ? OR product_related <= ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[7,226],\\\"sql\\\":\\\"SELECT revenue, AVG(administrative) AS value FROM shopping_sessions WHERE (administrative > ? OR product_related <= ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[7,226],\\\"sql\\\":\\\"SELECT revenue, SUM(administrative) AS value FROM shopping_sessions WHERE (administrative > ? OR product_related <= ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,21911],[1,6391]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, SUM(administrative) AS value FROM shopping_sessions WHERE (administrative > ? OR product_related <= ?) GROUP BY revenue ORDER BY revenue ASC","sql_parameters":"[7,226]","state":"{\"question\":\"Return the sum of administrative for shopping sessions where (administrative is greater than 7 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\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}800{"category":"single_table/and/having","domain":"commerce","family_id":"4c7d09bcc08ca830d074ecd0","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"f2229c72297719d2959d937c0c96848acd0e897aa1c63856654176ccde4e7b7e","language":"en","license":"CC-BY-4.0","query":"Return the sum of product_related for shopping sessions where (administrative is at most 13 and 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[13,1564.0,10],\\\"sql\\\":\\\"SELECT revenue, SUM(product_related) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_duration > ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[13,1564.0,10],\\\"sql\\\":\\\"SELECT revenue, SUM(product_related) AS value FROM shopping_sessions WHERE (administrative <= ? AND product_duration > ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[13,1564.0,10],\\\"sql\\\":\\\"SELECT revenue, SUM(product_related) AS value FROM shopping_sessions WHERE (administrative <= ? AND product_duration > ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[13,1564.0,10],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (administrative <= ? AND product_duration > ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1,59401],[0,156817]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, SUM(product_related) AS value FROM shopping_sessions WHERE (administrative <= ? AND product_duration > ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3","sql_parameters":"[13,1564.0,10]","state":"{\"question\":\"Return the sum of product_related for shopping sessions where (administrative is at most 13 and 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\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}801{"category":"single_table/and/aggregate","domain":"commerce","family_id":"d8fae98cb71b6159ad6a9b70","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"8060129e1ecb1184fef3ac80574027052b2cd36fab8c3978ac4e688282fef6e9","language":"en","license":"CC-BY-4.0","query":"Return the maximum of product_duration for shopping sessions where (region equals 5 and traffic_type equals 14).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[5,14],\\\"sql\\\":\\\"SELECT MAX(product_duration) AS value FROM shopping_sessions WHERE (region = ? OR traffic_type = ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[5,14],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (region = ? AND traffic_type = ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[5,14],\\\"sql\\\":\\\"SELECT MAX(product_duration) AS value FROM shopping_sessions WHERE (region = ? AND traffic_type = ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT MAX(product_duration) AS value FROM shopping_sessions\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[null]]","source":"online_shoppers","split":"dev","sql":"SELECT MAX(product_duration) AS value FROM shopping_sessions WHERE (region = ? AND traffic_type = ?)","sql_parameters":"[5,14]","state":"{\"question\":\"Return the maximum of product_duration for shopping sessions where (region equals 5 and traffic_type equals 14).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}802{"category":"single_table/and/aggregate","domain":"commerce","family_id":"91ff22db6e9515567024a4b5","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"7da95e19e54fc44909245aa294e2f36bbc6a01a085e221304e29c289c90bfc1f","language":"en","license":"CC-BY-4.0","query":"Return the average of product_duration for shopping sessions where (month equals 'May' and product_duration is greater than 167.5).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"May\\\",167.5],\\\"sql\\\":\\\"SELECT AVG(product_duration) AS value FROM shopping_sessions WHERE (month = ? OR product_duration > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"May\\\",167.5],\\\"sql\\\":\\\"SELECT AVG(product_duration) AS value FROM shopping_sessions WHERE (month = ? AND product_duration > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"May\\\",167.5],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (month = ? AND product_duration > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"May\\\",167.5],\\\"sql\\\":\\\"SELECT SUM(product_duration) AS value FROM shopping_sessions WHERE (month = ? AND product_duration > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1297.906302112056]]","source":"online_shoppers","split":"dev","sql":"SELECT AVG(product_duration) AS value FROM shopping_sessions WHERE (month = ? AND product_duration > ?)","sql_parameters":"[\"May\",167.5]","state":"{\"question\":\"Return the average of product_duration for shopping sessions where (month equals 'May' and product_duration is greater than 167.5).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}803{"category":"single_table/ranked","domain":"commerce","family_id":"9f2211d31688e6b029b40a56","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"7fe893ade7a8958a683dfae25aa1bb4a02af8e74458e362896eb76f7a3450956","language":"en","license":"CC-BY-4.0","query":"Return the maximum of product_related for shopping sessions where (administrative is greater than 2), grouped by revenue; return at most 5 groups ordered by aggregate value DESC, breaking ties by revenue ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2],\\\"sql\\\":\\\"SELECT revenue, MAX(product_related) AS value FROM shopping_sessions WHERE (administrative > ?) GROUP BY revenue ORDER BY value ASC, revenue ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2],\\\"sql\\\":\\\"SELECT revenue, MAX(product_related) AS value FROM shopping_sessions WHERE (administrative > ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (administrative > ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2],\\\"sql\\\":\\\"SELECT revenue, SUM(product_related) AS value FROM shopping_sessions WHERE (administrative > ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,705],[1,534]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, MAX(product_related) AS value FROM shopping_sessions WHERE (administrative > ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5","sql_parameters":"[2]","state":"{\"question\":\"Return the maximum of product_related for shopping sessions where (administrative is greater than 2), 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_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}804{"category":"single_table/grouped","domain":"sensor","family_id":"3240bbbb45ee70b946c80d39","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"8d4af5ef094bb5793589d4cc2e243b39a4d75666b854984b3ecc1220236cb962","language":"en","license":"CC-BY-4.0","query":"Return the sum of eps1_mean for hydraulic cycles where (eps1_mean is at most 2598.8769), grouped by pump_leakage, ordered by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2598.8769],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2598.8769],\\\"sql\\\":\\\"SELECT pump_leakage, AVG(eps1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2598.8769],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(eps1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2598.8769],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(eps1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,2996973.78281],[1,975355.48373],[2,949464.87187]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, SUM(eps1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC","sql_parameters":"[2598.8769]","state":"{\"question\":\"Return the sum of eps1_mean for hydraulic cycles where (eps1_mean is at most 2598.8769), 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_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}805{"category":"single_table/and/ranked","domain":"sensor","family_id":"375b00c0a3be071ca8bc901a","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"90946d765afea836e8234f27a62eab7e0638266147ad2439c9caf835e8b2cbb4","language":"en","license":"CC-BY-4.0","query":"Return the minimum of ts1_mean for hydraulic cycles where (ps1_mean is at most 172.56377 and ts1_mean is greater than 44.84172), grouped by valve; return at most 5 groups ordered by aggregate value DESC, breaking ties by valve ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[172.56377,44.84172],\\\"sql\\\":\\\"SELECT valve, MIN(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR ts1_mean > ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[172.56377,44.84172],\\\"sql\\\":\\\"SELECT valve, MIN(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? AND ts1_mean > ?) GROUP BY valve ORDER BY value ASC, valve ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[172.56377,44.84172],\\\"sql\\\":\\\"SELECT valve, MIN(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? AND ts1_mean > ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[172.56377,44.84172],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? AND ts1_mean > ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[73,44.96243],[80,44.88435],[90,44.85178],[100,44.8424]]","source":"hydraulic","split":"dev","sql":"SELECT valve, MIN(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? AND ts1_mean > ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 5","sql_parameters":"[172.56377,44.84172]","state":"{\"question\":\"Return the minimum of ts1_mean for hydraulic cycles where (ps1_mean is at most 172.56377 and ts1_mean is greater than 44.84172), grouped by valve; return at most 5 groups ordered by aggregate value DESC, breaking ties by valve ascending.\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}806{"category":"join/distinct_invoice/and/grouped","domain":"commerce","family_id":"72feca2da22febf83935c981","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"afa51e65327c640aec254cefedf60dea6ae1aef41f7d95cc9e63bce953d46ff5","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[1800,8.5],\\\"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 <= ? OR l.unit_price > ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[1800,8.5],\\\"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 <= ? AND l.unit_price > ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[1800,8.5],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) 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\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[1800,8.5],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(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\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-02\",3],[\"2009-12-03\",5],[\"2009-12-04\",1],[\"2009-12-05\",3],[\"2009-12-06\",1],[\"2009-12-07\",4],[\"2009-12-08\",1],[\"2009-12-09\",4],[\"2009-12-10\",1],[\"2009-12-11\",2],[\"2009-12-13\",3],[\"2009-12-14\",3],[\"2009-12-15\",4],[\"2009-12-16\",4],[\"2009-12-17\",2],[\"2009-12-18\",2],[\"2009-12-20\",1],[\"2009-12-21\",2],[\"2009-12-22\",3],[\"2010-01-05\",3],[\"2010-01-07\",5],[\"2010-01-08\",2],[\"2010-01-11\",3],[\"2010-01-12\",4],[\"2010-01-14\",1],[\"2010-01-15\",2],[\"2010-01-19\",1],[\"2010-01-20\",1],[\"2010-01-21\",2],[\"2010-01-22\",2],[\"2010-01-24\",2],[\"2010-01-25\",3],[\"2010-01-26\",2],[\"2010-01-27\",3],[\"2010-01-28\",1],[\"2010-01-29\",5],[\"2010-01-31\",1],[\"2010-02-01\",3],[\"2010-02-02\",2],[\"2010-02-03\",2],[\"2010-02-04\",2],[\"2010-02-05\",1],[\"2010-02-08\",3],[\"2010-02-09\",3],[\"2010-02-10\",4],[\"2010-02-14\",1],[\"2010-02-15\",1],[\"2010-02-16\",3],[\"2010-02-18\",2],[\"2010-02-19\",3],[\"2010-02-21\",1],[\"2010-02-22\",3],[\"2010-02-23\",2],[\"2010-02-24\",4],[\"2010-02-25\",3],[\"2010-02-26\",1],[\"2010-02-28\",4],[\"2010-03-01\",2],[\"2010-03-02\",2],[\"2010-03-03\",3],[\"2010-03-04\",3],[\"2010-03-05\",4],[\"2010-03-08\",3],[\"2010-03-09\",3],[\"2010-03-10\",2],[\"2010-03-11\",1],[\"2010-03-12\",2],[\"2010-03-14\",1],[\"2010-03-15\",2],[\"2010-03-16\",3],[\"2010-03-17\",1],[\"2010-03-18\",4],[\"2010-03-19\",2],[\"2010-03-21\",3],[\"2010-03-22\",2],[\"2010-03-23\",2],[\"2010-03-24\",4],[\"2010-03-25\",3],[\"2010-03-26\",2],[\"2010-03-30\",3],[\"2010-03-31\",5],[\"2010-04-01\",2],[\"2010-04-06\",3],[\"2010-04-07\",2],[\"2010-04-08\",2],[\"2010-04-09\",3],[\"2010-04-12\",2],[\"2010-04-13\",1],[\"2010-04-14\",2],[\"2010-04-15\",1],[\"2010-04-16\",3],[\"2010-04-18\",1],[\"2010-04-19\",6],[\"2010-04-20\",1],[\"2010-04-21\",4],[\"2010-04-22\",4],[\"2010-04-23\",5],[\"2010-04-25\",1],[\"2010-04-26\",4],[\"2010-04-27\",5],[\"2010-04-29\",5],[\"2010-04-30\",5],[\"2010-05-02\",1],[\"2010-05-04\",4],[\"2010-05-05\",4],[\"2010-05-06\",5],[\"2010-05-07\",3],[\"2010-05-09\",5],[\"2010-05-10\",6],[\"2010-05-11\",1],[\"2010-05-12\",2],[\"2010-05-13\",2],[\"2010-05-14\",5],[\"2010-05-17\",2],[\"2010-05-18\",2],[\"2010-05-19\",3],[\"2010-05-20\",1],[\"2010-05-21\",5],[\"2010-05-23\",2],[\"2010-05-24\",2],[\"2010-05-25\",6],[\"2010-05-26\",4],[\"2010-05-27\",4],[\"2010-05-28\",2],[\"2010-05-30\",1],[\"2010-06-01\",1],[\"2010-06-02\",3],[\"2010-06-03\",5],[\"2010-06-04\",3],[\"2010-06-06\",2],[\"2010-06-07\",5],[\"2010-06-08\",3],[\"2010-06-09\",4],[\"2010-06-10\",5],[\"2010-06-11\",4],[\"2010-06-13\",5],[\"2010-06-14\",3],[\"2010-06-15\",2],[\"2010-06-16\",4],[\"2010-06-17\",5],[\"2010-06-18\",1],[\"2010-06-20\",4],[\"2010-06-21\",2],[\"2010-06-22\",2],[\"2010-06-23\",3],[\"2010-06-24\",3],[\"2010-06-25\",2],[\"2010-06-27\",3],[\"2010-06-28\",2],[\"2010-06-29\",3],[\"2010-06-30\",3],[\"2010-07-01\",2],[\"2010-07-02\",1],[\"2010-07-04\",4],[\"2010-07-05\",6],[\"2010-07-06\",3],[\"2010-07-07\",3],[\"2010-07-08\",4],[\"2010-07-09\",1],[\"2010-07-11\",1],[\"2010-07-12\",3],[\"2010-07-13\",4],[\"2010-07-14\",1],[\"2010-07-15\",6],[\"2010-07-16\",4],[\"2010-07-19\",2],[\"2010-07-20\",2],[\"2010-07-21\",3],[\"2010-07-22\",2],[\"2010-07-23\",2],[\"2010-07-25\",1],[\"2010-07-26\",2],[\"2010-07-27\",5],[\"2010-07-28\",2],[\"2010-07-29\",2],[\"2010-07-30\",6],[\"2010-08-01\",1],[\"2010-08-02\",5],[\"2010-08-03\",3],[\"2010-08-04\",2],[\"2010-08-05\",3],[\"2010-08-08\",2],[\"2010-08-11\",2],[\"2010-08-12\",5],[\"2010-08-13\",3],[\"2010-08-15\",2],[\"2010-08-16\",3],[\"2010-08-17\",2],[\"2010-08-18\",2],[\"2010-08-19\",5],[\"2010-08-20\",4],[\"2010-08-23\",4],[\"2010-08-24\",2],[\"2010-08-25\",1],[\"2010-08-31\",1],[\"2010-09-01\",2],[\"2010-09-02\",9],[\"2010-09-03\",4],[\"2010-09-05\",1],[\"2010-09-06\",2],[\"2010-09-07\",2],[\"2010-09-09\",5],[\"2010-09-12\",3],[\"2010-09-13\",5],[\"2010-09-14\",4],[\"2010-09-15\",1],[\"2010-09-16\",5],[\"2010-09-17\",1],[\"2010-09-19\",1],[\"2010-09-20\",4],[\"2010-09-21\",1],[\"2010-09-23\",2],[\"2010-09-24\",3],[\"2010-09-26\",3],[\"2010-09-27\",5],[\"2010-09-28\",4],[\"2010-09-29\",4],[\"2010-09-30\",5],[\"2010-10-01\",4],[\"2010-10-04\",2],[\"2010-10-05\",2],[\"2010-10-06\",4],[\"2010-10-07\",4],[\"2010-10-08\",1],[\"2010-10-10\",2],[\"2010-10-11\",3],[\"2010-10-12\",4],[\"2010-10-13\",1],[\"2010-10-14\",4],[\"2010-10-15\",5],[\"2010-10-17\",1],[\"2010-10-18\",9],[\"2010-10-19\",2],[\"2010-10-20\",2],[\"2010-10-21\",6],[\"2010-10-22\",3],[\"2010-10-24\",3],[\"2010-10-25\",2],[\"2010-10-26\",3],[\"2010-10-27\",1],[\"2010-10-28\",3],[\"2010-10-29\",3],[\"2010-10-31\",2],[\"2010-11-01\",1],[\"2010-11-02\",3],[\"2010-11-03\",5],[\"2010-11-04\",4],[\"2010-11-05\",3],[\"2010-11-07\",1],[\"2010-11-08\",3],[\"2010-11-09\",4],[\"2010-11-10\",7],[\"2010-11-11\",4],[\"2010-11-12\",2],[\"2010-11-14\",3],[\"2010-11-15\",6],[\"2010-11-16\",11],[\"2010-11-17\",5],[\"2010-11-18\",8],[\"2010-11-19\",7],[\"2010-11-21\",4],[\"2010-11-22\",3],[\"2010-11-23\",2],[\"2010-11-24\",8],[\"2010-11-25\",7],[\"2010-11-28\",5],[\"2010-11-29\",4],[\"2010-11-30\",2],[\"2010-12-01\",16],[\"2010-12-02\",8],[\"2010-12-03\",6],[\"2010-12-05\",10],[\"2010-12-06\",6],[\"2010-12-07\",10],[\"2010-12-08\",14],[\"2010-12-09\",12],[\"2010-12-10\",1],[\"2010-12-12\",5],[\"2010-12-13\",2],[\"2010-12-14\",5],[\"2010-12-15\",4],[\"2010-12-16\",10],[\"2010-12-17\",6],[\"2010-12-20\",3],[\"2010-12-21\",2],[\"2011-01-05\",2],[\"2011-01-07\",3],[\"2011-01-09\",2],[\"2011-01-10\",1],[\"2011-01-11\",5],[\"2011-01-12\",5],[\"2011-01-14\",2],[\"2011-01-17\",2],[\"2011-01-19\",1],[\"2011-01-20\",1],[\"2011-01-21\",3],[\"2011-01-23\",2],[\"2011-01-24\",2],[\"2011-01-25\",2],[\"2011-01-26\",2],[\"2011-01-27\",5],[\"2011-01-31\",3],[\"2011-02-01\",2],[\"2011-02-02\",2],[\"2011-02-03\",1],[\"2011-02-04\",2],[\"2011-02-07\",2],[\"2011-02-09\",1],[\"2011-02-10\",4],[\"2011-02-11\",4],[\"2011-02-14\",2],[\"2011-02-15\",2],[\"2011-02-17\",2],[\"2011-02-18\",1],[\"2011-02-20\",2],[\"2011-02-21\",3],[\"2011-02-22\",1],[\"2011-02-23\",2],[\"2011-02-24\",2],[\"2011-02-25\",1],[\"2011-02-27\",1],[\"2011-02-28\",2],[\"2011-03-01\",4],[\"2011-03-02\",1],[\"2011-03-03\",7],[\"2011-03-04\",4],[\"2011-03-06\",1],[\"2011-03-07\",6],[\"2011-03-08\",4],[\"2011-03-09\",7],[\"2011-03-10\",3],[\"2011-03-11\",3],[\"2011-03-14\",2],[\"2011-03-15\",3],[\"2011-03-16\",2],[\"2011-03-17\",2],[\"2011-03-18\",3],[\"2011-03-20\",5],[\"2011-03-21\",1],[\"2011-03-22\",1],[\"2011-03-23\",3],[\"2011-03-25\",1],[\"2011-03-27\",3],[\"2011-03-28\",6],[\"2011-03-29\",1],[\"2011-03-30\",2],[\"2011-03-31\",8],[\"2011-04-01\",5],[\"2011-04-03\",1],[\"2011-04-04\",1],[\"2011-04-05\",3],[\"2011-04-07\",4],[\"2011-04-08\",3],[\"2011-04-10\",1],[\"2011-04-12\",2],[\"2011-04-13\",4],[\"2011-04-14\",5],[\"2011-04-15\",2],[\"2011-04-17\",1],[\"2011-04-18\",1],[\"2011-04-20\",5],[\"2011-04-21\",4],[\"2011-04-26\",3],[\"2011-04-27\",3],[\"2011-04-28\",7],[\"2011-05-01\",1],[\"2011-05-03\",5],[\"2011-05-04\",3],[\"2011-05-05\",10],[\"2011-05-06\",5],[\"2011-05-08\",1],[\"2011-05-09\",2],[\"2011-05-10\",4],[\"2011-05-11\",4],[\"2011-05-12\",3],[\"2011-05-13\",3],[\"2011-05-15\",1],[\"2011-05-16\",2],[\"2011-05-17\",1],[\"2011-05-18\",5],[\"2011-05-19\",3],[\"2011-05-20\",7],[\"2011-05-22\",1],[\"2011-05-23\",5],[\"2011-05-24\",6],[\"2011-05-26\",3],[\"2011-05-27\",2],[\"2011-05-31\",2],[\"2011-06-01\",4],[\"2011-06-02\",3],[\"2011-06-03\",2],[\"2011-06-05\",3],[\"2011-06-06\",2],[\"2011-06-07\",3],[\"2011-06-08\",5],[\"2011-06-09\",5],[\"2011-06-10\",4],[\"2011-06-12\",3],[\"2011-06-13\",4],[\"2011-06-14\",2],[\"2011-06-15\",2],[\"2011-06-16\",1],[\"2011-06-17\",3],[\"2011-06-20\",3],[\"2011-06-21\",3],[\"2011-06-22\",2],[\"2011-06-23\",1],[\"2011-06-24\",3],[\"2011-06-26\",3],[\"2011-06-28\",2],[\"2011-06-29\",3],[\"2011-06-30\",2],[\"2011-07-01\",3],[\"2011-07-03\",1],[\"2011-07-04\",1],[\"2011-07-05\",2],[\"2011-07-06\",2],[\"2011-07-07\",4],[\"2011-07-08\",3],[\"2011-07-11\",1],[\"2011-07-12\",1],[\"2011-07-13\",4],[\"2011-07-14\",4],[\"2011-07-15\",3],[\"2011-07-17\",3],[\"2011-07-18\",2],[\"2011-07-19\",2],[\"2011-07-20\",3],[\"2011-07-21\",3],[\"2011-07-24\",5],[\"2011-07-25\",4],[\"2011-07-26\",2],[\"2011-07-28\",5],[\"2011-07-29\",2],[\"2011-07-31\",2],[\"2011-08-03\",2],[\"2011-08-04\",4],[\"2011-08-05\",4],[\"2011-08-08\",1],[\"2011-08-09\",2],[\"2011-08-10\",3],[\"2011-08-11\",3],[\"2011-08-14\",4],[\"2011-08-16\",1],[\"2011-08-18\",3],[\"2011-08-19\",2],[\"2011-08-22\",3],[\"2011-08-24\",2],[\"2011-08-25\",8],[\"2011-08-26\",1],[\"2011-08-30\",4],[\"2011-08-31\",3],[\"2011-09-01\",3],[\"2011-09-02\",1],[\"2011-09-04\",3],[\"2011-09-06\",3],[\"2011-09-07\",1],[\"2011-09-08\",5],[\"2011-09-09\",5],[\"2011-09-12\",2],[\"2011-09-13\",3],[\"2011-09-14\",2],[\"2011-09-15\",3],[\"2011-09-16\",1],[\"2011-09-18\",1],[\"2011-09-20\",2],[\"2011-09-21\",1],[\"2011-09-22\",4],[\"2011-09-23\",2],[\"2011-09-25\",2],[\"2011-09-26\",1],[\"2011-09-27\",2],[\"2011-09-28\",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\",1],[\"2011-10-24\",4],[\"2011-10-25\",2],[\"2011-10-26\",6],[\"2011-10-27\",4],[\"2011-10-28\",4],[\"2011-10-30\",5],[\"2011-10-31\",1],[\"2011-11-01\",2],[\"2011-11-03\",6],[\"2011-11-04\",3],[\"2011-11-06\",5],[\"2011-11-07\",5],[\"2011-11-08\",3],[\"2011-11-09\",5],[\"2011-11-10\",5],[\"2011-11-11\",2],[\"2011-11-13\",3],[\"2011-11-14\",1],[\"2011-11-15\",4],[\"2011-11-16\",9],[\"2011-11-17\",11],[\"2011-11-18\",6],[\"2011-11-20\",1],[\"2011-11-21\",4],[\"2011-11-22\",3],[\"2011-11-23\",4],[\"2011-11-24\",3],[\"2011-11-25\",8],[\"2011-11-27\",1],[\"2011-11-28\",2],[\"2011-11-29\",6],[\"2011-11-30\",4],[\"2011-12-01\",5],[\"2011-12-02\",6],[\"2011-12-04\",3],[\"2011-12-05\",5],[\"2011-12-06\",7],[\"2011-12-07\",3],[\"2011-12-08\",3],[\"2011-12-09\",5]]","source":"online_retail_ii","split":"dev","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 <= ? AND l.unit_price > ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC","sql_parameters":"[1800,8.5]","state":"{\"question\":\"Return the number of distinct i.invoice 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_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}807{"category":"join/distinct_invoice/date/or/ranked","domain":"commerce","family_id":"dbc76ad806b1f9af0f9fa19e","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"281427a15b02aa6af9fbc7b531da166a08518ddbfc94bda448c4ccf86b0e2bfc","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.unit_price is at most 2.25 or i.invoice_date is on or after '2010-02-18'), grouped by i.country; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2.25,\\\"2010-02-18\\\"],\\\"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 <= ? AND i.invoice_date >= ?) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2.25,\\\"2010-02-18\\\"],\\\"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 value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2.25,\\\"2010-02-18\\\"],\\\"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 value ASC, i.country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2.25,\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) 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 DESC, i.country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"United Kingdom\",6427],[\"Germany\",120],[\"France\",60],[\"EIRE\",53],[\"Netherlands\",35]]","source":"online_retail_ii","split":"dev","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 value DESC, i.country ASC LIMIT 5","sql_parameters":"[2.25,\"2010-02-18\"]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.unit_price is at most 2.25 or i.invoice_date is on or after '2010-02-18'), grouped by i.country; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}808{"category":"single_table/or/aggregate","domain":"sensor","family_id":"edcf1e9ff01f4d90212b97ff","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"757620bf1fed1d5599b26f2d16617bcacc12ad64366af0f2d215fa73b7575bba","language":"en","license":"CC-BY-4.0","query":"Return the sum of ps1_mean for hydraulic cycles where (pump_leakage equals 1 or vs1_mean is greater than 0.71948).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[1,0.71948],\\\"sql\\\":\\\"SELECT SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? AND vs1_mean > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[1,0.71948],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? OR vs1_mean > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[1,0.71948],\\\"sql\\\":\\\"SELECT AVG(ps1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? OR vs1_mean > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[1,0.71948],\\\"sql\\\":\\\"SELECT SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? OR vs1_mean > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[101889.62562]]","source":"hydraulic","split":"dev","sql":"SELECT SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? OR vs1_mean > ?)","sql_parameters":"[1,0.71948]","state":"{\"question\":\"Return the sum of ps1_mean for hydraulic cycles where (pump_leakage equals 1 or vs1_mean is greater than 0.71948).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}809{"category":"single_table/and/ranked","domain":"sensor","family_id":"793f5ab0d1dcb030ac7c4f53","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"b1d14c7efcf39f0659ec5c9ff481ce952bce4d14f4581731b59f711062d82ce6","language":"en","license":"CC-BY-4.0","query":"Return the sum of fs1_mean for hydraulic cycles where (fs1_mean is at most 6.63763 and ts1_mean is greater than 35.56605), grouped by valve; return at most 5 groups ordered by aggregate value DESC, breaking ties by valve ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[6.63763,35.56605],\\\"sql\\\":\\\"SELECT valve, SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? OR ts1_mean > ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[6.63763,35.56605],\\\"sql\\\":\\\"SELECT valve, SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? AND ts1_mean > ?) GROUP BY valve ORDER BY value ASC, valve ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[6.63763,35.56605],\\\"sql\\\":\\\"SELECT valve, SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? AND ts1_mean > ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[6.63763,35.56605],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? AND ts1_mean > ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[100,3986.63751],[73,1843.21573],[80,1643.93208],[90,1621.70572]]","source":"hydraulic","split":"dev","sql":"SELECT valve, SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? AND ts1_mean > ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 5","sql_parameters":"[6.63763,35.56605]","state":"{\"question\":\"Return the sum of fs1_mean for hydraulic cycles where (fs1_mean is at most 6.63763 and ts1_mean is greater than 35.56605), grouped by valve; return at most 5 groups ordered by aggregate value DESC, breaking ties by valve ascending.\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}810{"category":"single_table/grouped","domain":"sensor","family_id":"b87a813e34e1da43d7e8b7d7","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"0186132c046df7113bc970dfdeb1cf14d02d9a13a6a3cdc197b99ec50cad2c87","language":"en","license":"CC-BY-4.0","query":"Return the maximum of ps1_mean for hydraulic cycles where (ps2_mean is greater than 107.17314), grouped by cooler, ordered by cooler ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[107.17314],\\\"sql\\\":\\\"SELECT cooler, MAX(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[107.17314],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps2_mean > ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[107.17314],\\\"sql\\\":\\\"SELECT cooler, SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[107.17314],\\\"sql\\\":\\\"SELECT cooler, AVG(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[3,180.92271],[20,159.25179],[100,161.40794]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, MAX(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ?) GROUP BY cooler ORDER BY cooler ASC","sql_parameters":"[107.17314]","state":"{\"question\":\"Return the maximum of ps1_mean for hydraulic cycles where (ps2_mean is greater than 107.17314), grouped by cooler, ordered by cooler ascending.\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}811{"category":"join/having","domain":"commerce","family_id":"15c06a5c7f047207c1b6a90a","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"078d1bcd6174c721faca7d19e83296473553c076a731e3673646d2d998ee4abc","language":"en","license":"CC-BY-4.0","query":"Return the minimum of l.quantity for retail lines joined to their invoices where (i.customer_id equals '12353'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12353\\\"],\\\"sql\\\":\\\"SELECT i.country, MIN(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12353\\\",10],\\\"sql\\\":\\\"SELECT i.country, MIN(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[10],\\\"sql\\\":\\\"SELECT i.country, MIN(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12353\\\"],\\\"sql\\\":\\\"SELECT MIN(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, MIN(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3","sql_parameters":"[\"12353\",10]","state":"{\"question\":\"Return the minimum of l.quantity for retail lines joined to their invoices where (i.customer_id equals '12353'), 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_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}812{"category":"join/aggregate","domain":"commerce","family_id":"a6218a885938b909a9399413","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"85751ca5b5b41e31fa621f89d8c5e3c894c0510a25f0f2c6f58dbd0fb4da912f","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail lines joined to their invoices where (i.country equals 'Channel Islands').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\"],\\\"sql\\\":\\\"SELECT SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\"],\\\"sql\\\":\\\"SELECT AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\"],\\\"sql\\\":\\\"SELECT MIN(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[24]]","source":"online_retail_ii","split":"dev","sql":"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?)","sql_parameters":"[\"Channel Islands\"]","state":"{\"question\":\"Return the number of rows for retail lines joined to their invoices where (i.country equals 'Channel Islands').\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}813{"category":"single_table/and/grouped","domain":"commerce","family_id":"bdcf079866a1acd827b6c5c1","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"db49182426fcc81d21d25a12ae8da7308cfc168570aedc7d829c76ec5095c796","language":"en","license":"CC-BY-4.0","query":"Return the sum of quantity for retail invoice lines where (quantity is greater than 92 and unit_price is greater than 2.25), grouped by invoice_date, ordered by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[92,2.25],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (quantity > ? AND unit_price > ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[92,2.25],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (quantity > ? OR unit_price > ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[92,2.25],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (quantity > ? AND unit_price > ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[92,2.25],\\\"sql\\\":\\\"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (quantity > ? AND unit_price > ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-02\",680],[\"2009-12-07\",96],[\"2009-12-08\",1368],[\"2009-12-15\",744],[\"2009-12-16\",96],[\"2009-12-17\",576],[\"2009-12-21\",200],[\"2009-12-22\",408],[\"2010-01-04\",192],[\"2010-01-05\",790],[\"2010-01-07\",1192],[\"2010-01-08\",3484],[\"2010-01-10\",1320],[\"2010-01-13\",216],[\"2010-01-17\",312],[\"2010-01-27\",400],[\"2010-01-28\",96],[\"2010-01-31\",96],[\"2010-02-04\",120],[\"2010-02-05\",1190],[\"2010-02-08\",96],[\"2010-02-19\",144],[\"2010-02-24\",192],[\"2010-02-25\",384],[\"2010-02-28\",120],[\"2010-03-08\",592],[\"2010-03-11\",96],[\"2010-03-18\",1000],[\"2010-03-22\",480],[\"2010-04-08\",120],[\"2010-04-11\",320],[\"2010-04-12\",375],[\"2010-04-16\",96],[\"2010-04-20\",120],[\"2010-04-22\",196],[\"2010-04-27\",100],[\"2010-04-29\",108],[\"2010-05-05\",96],[\"2010-05-10\",336],[\"2010-05-19\",96],[\"2010-05-27\",100],[\"2010-06-07\",320],[\"2010-06-08\",4000],[\"2010-06-09\",704],[\"2010-06-11\",636],[\"2010-06-15\",96],[\"2010-06-16\",96],[\"2010-06-20\",120],[\"2010-06-27\",100],[\"2010-06-28\",574],[\"2010-06-30\",250],[\"2010-07-01\",96],[\"2010-07-05\",144],[\"2010-07-06\",96],[\"2010-07-07\",96],[\"2010-07-13\",128],[\"2010-07-15\",1272],[\"2010-07-20\",96],[\"2010-07-26\",200],[\"2010-07-27\",1384],[\"2010-07-30\",642],[\"2010-08-02\",500],[\"2010-08-05\",292],[\"2010-08-09\",96],[\"2010-08-11\",1096],[\"2010-08-13\",720],[\"2010-08-16\",354],[\"2010-08-23\",96],[\"2010-08-26\",444],[\"2010-08-31\",1360],[\"2010-09-06\",120],[\"2010-09-22\",432],[\"2010-09-27\",1350],[\"2010-09-28\",139],[\"2010-09-30\",192],[\"2010-10-06\",288],[\"2010-10-08\",1416],[\"2010-10-12\",200],[\"2010-10-14\",216],[\"2010-10-18\",336],[\"2010-10-20\",588],[\"2010-10-21\",216],[\"2010-10-22\",320],[\"2010-10-26\",292],[\"2010-11-04\",936],[\"2010-11-05\",748],[\"2010-11-09\",192],[\"2010-11-10\",792],[\"2010-11-12\",520],[\"2010-11-15\",792],[\"2010-11-16\",216],[\"2010-11-18\",96],[\"2010-11-19\",96],[\"2010-11-22\",144],[\"2010-11-23\",476],[\"2010-11-24\",544],[\"2010-11-25\",496],[\"2010-11-29\",504],[\"2010-12-01\",1152],[\"2010-12-02\",288],[\"2010-12-03\",240],[\"2010-12-05\",256],[\"2010-12-06\",312],[\"2010-12-07\",6276],[\"2010-12-16\",980],[\"2010-12-20\",96],[\"2011-01-04\",96],[\"2011-01-05\",560],[\"2011-01-06\",96],[\"2011-01-09\",336],[\"2011-01-11\",8062],[\"2011-01-12\",100],[\"2011-01-17\",200],[\"2011-01-20\",96],[\"2011-01-21\",100],[\"2011-01-26\",96],[\"2011-02-03\",480],[\"2011-02-04\",100],[\"2011-02-07\",2428],[\"2011-02-08\",384],[\"2011-02-10\",216],[\"2011-02-11\",412],[\"2011-02-16\",96],[\"2011-02-23\",96],[\"2011-03-01\",333],[\"2011-03-09\",114],[\"2011-03-10\",200],[\"2011-03-11\",288],[\"2011-03-20\",228],[\"2011-03-23\",100],[\"2011-03-24\",600],[\"2011-03-25\",1336],[\"2011-03-28\",150],[\"2011-03-30\",100],[\"2011-03-31\",376],[\"2011-04-01\",96],[\"2011-04-05\",1600],[\"2011-04-14\",288],[\"2011-04-18\",2700],[\"2011-04-20\",328],[\"2011-04-27\",100],[\"2011-05-03\",240],[\"2011-05-04\",410],[\"2011-05-05\",532],[\"2011-05-09\",352],[\"2011-05-18\",100],[\"2011-05-24\",3912],[\"2011-05-26\",196],[\"2011-05-27\",100],[\"2011-05-29\",240],[\"2011-06-02\",320],[\"2011-06-10\",96],[\"2011-06-13\",360],[\"2011-06-14\",780],[\"2011-06-16\",384],[\"2011-06-17\",100],[\"2011-06-20\",246],[\"2011-06-22\",96],[\"2011-06-28\",416],[\"2011-07-04\",3020],[\"2011-07-05\",100],[\"2011-07-06\",220],[\"2011-07-07\",196],[\"2011-07-12\",502],[\"2011-07-14\",688],[\"2011-07-19\",96],[\"2011-07-20\",340],[\"2011-07-21\",96],[\"2011-07-27\",480],[\"2011-07-28\",934],[\"2011-07-31\",96],[\"2011-08-03\",100],[\"2011-08-12\",240],[\"2011-08-22\",1100],[\"2011-08-24\",432],[\"2011-08-26\",96],[\"2011-09-02\",2004],[\"2011-09-05\",288],[\"2011-09-14\",96],[\"2011-09-15\",2750],[\"2011-09-20\",1000],[\"2011-09-22\",624],[\"2011-09-27\",408],[\"2011-09-28\",600],[\"2011-10-03\",720],[\"2011-10-04\",612],[\"2011-10-05\",100],[\"2011-10-06\",96],[\"2011-10-07\",1128],[\"2011-10-10\",456],[\"2011-10-17\",240],[\"2011-10-18\",100],[\"2011-10-24\",792],[\"2011-10-25\",1000],[\"2011-10-26\",672],[\"2011-11-02\",240],[\"2011-11-03\",1900],[\"2011-11-07\",96],[\"2011-11-08\",144],[\"2011-11-09\",868],[\"2011-11-14\",250],[\"2011-11-17\",396],[\"2011-11-21\",120],[\"2011-11-23\",808],[\"2011-11-25\",128],[\"2011-11-28\",1768],[\"2011-12-01\",624],[\"2011-12-06\",192]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (quantity > ? AND unit_price > ?) GROUP BY invoice_date ORDER BY invoice_date ASC","sql_parameters":"[92,2.25]","state":"{\"question\":\"Return the sum of quantity for retail invoice lines where (quantity is greater than 92 and 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\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}814{"category":"single_table/or/having","domain":"commerce","family_id":"e6262a178cd7eb4e4b4b79a3","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"caee23af9d2d590e85f10a7a19c0deb743bd9a7a0d3a7368701af6c62b424330","language":"en","license":"CC-BY-4.0","query":"Return the average of product_duration for shopping sessions where (traffic_type equals 14 or product_related is at most 93), grouped by visitor_type, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[14,93,2],\\\"sql\\\":\\\"SELECT visitor_type, AVG(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ? AND product_related <= ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[14,93,2],\\\"sql\\\":\\\"SELECT visitor_type, AVG(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ? OR product_related <= ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value ASC, visitor_type ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[14,93,2],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (traffic_type = ? OR product_related <= ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[14,93,2],\\\"sql\\\":\\\"SELECT visitor_type, AVG(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ? OR product_related <= ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Returning_Visitor\",919.582366873638],[\"New_Visitor\",610.6810166834881],[\"Other\",462.5500448469048]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, AVG(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ? OR product_related <= ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value DESC, visitor_type ASC LIMIT 5","sql_parameters":"[14,93,2]","state":"{\"question\":\"Return the average of product_duration for shopping sessions where (traffic_type equals 14 or product_related is at most 93), grouped by visitor_type, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by visitor_type ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}815{"category":"single_table/date/and/having","domain":"commerce","family_id":"43c680d1d74c84754e90c1f9","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"8ae4b57fa204701c50d99d4b1b1464513fa0098c0f593790634effd85af7e713","language":"en","license":"CC-BY-4.0","query":"Return the average of unit_price for retail invoice lines where (country equals 'Australia' and 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Australia\\\",\\\"2011-05-10\\\",10],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date < ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Australia\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Australia\\\",\\\"2011-05-10\\\",10],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Australia\\\",\\\"2011-05-10\\\",10],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-02-07\",3.96]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3","sql_parameters":"[\"Australia\",\"2011-05-10\",10]","state":"{\"question\":\"Return the average of unit_price for retail invoice lines where (country equals 'Australia' and 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\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}816{"category":"single_table/and/ranked","domain":"commerce","family_id":"3a981397881da523dfc26c9a","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"240535b410c1db7252210d54022708aa7d81ddf51688c78f756118277b5e7172","language":"en","license":"CC-BY-4.0","query":"Return the sum of unit_price for retail invoice lines where (country equals 'Bahrain' and quantity is greater than 1800), grouped by invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Bahrain\\\",1800],\\\"sql\\\":\\\"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND quantity > ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Bahrain\\\",1800],\\\"sql\\\":\\\"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? OR quantity > ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Bahrain\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (country = ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND quantity > ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3","sql_parameters":"[\"Bahrain\",1800]","state":"{\"question\":\"Return the sum of unit_price for retail invoice lines where (country equals 'Bahrain' and quantity is greater than 1800), grouped by invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by invoice_date ascending.\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}817{"category":"single_table/date/or/aggregate","domain":"commerce","family_id":"3f3af920170136f50d8fba96","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"8fc0686d756d1655f35f38f73f637a80b01dd33892156c8e1f726f301bb0cc95","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail invoice lines where (quantity is at most 92 or invoice_date is before '2011-05-10').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[92,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date < ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[92,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date < ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[92,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT SUM(quantity) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date < ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[92,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT AVG(quantity) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date < ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[25969]]","source":"online_retail_ii","split":"dev","sql":"SELECT COUNT(*) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date < ?)","sql_parameters":"[92,\"2011-05-10\"]","state":"{\"question\":\"Return the number of rows for retail invoice lines where (quantity is at most 92 or invoice_date is before '2011-05-10').\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}818{"category":"single_table/or/ranked","domain":"commerce","family_id":"131c567fc2543dda0a48e1d9","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"4c0a78c8c7150faa3b378b605fd456d40d56e5469f99f3de2baa258d2b0029b2","language":"en","license":"CC-BY-4.0","query":"Return the average of administrative for shopping sessions where (administrative is at most 23 or product_related is at most 226), grouped by visitor_type; return at most 5 groups ordered by aggregate value DESC, breaking ties by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[23,226],\\\"sql\\\":\\\"SELECT visitor_type, AVG(administrative) 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,226],\\\"sql\\\":\\\"SELECT visitor_type, AVG(administrative) AS value FROM shopping_sessions WHERE (administrative <= ? AND product_related <= ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[23,226],\\\"sql\\\":\\\"SELECT visitor_type, AVG(administrative) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_related <= ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[23,226],\\\"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\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"New_Visitor\",2.551948051948052],[\"Returning_Visitor\",2.281611374407583],[\"Other\",1.4705882352941178]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, AVG(administrative) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_related <= ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5","sql_parameters":"[23,226]","state":"{\"question\":\"Return the average of administrative for shopping sessions where (administrative is at most 23 or product_related is at most 226), 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\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}819{"category":"single_table/or/having","domain":"sensor","family_id":"00e61b02392f672b5b8c0d8c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"aa0ca26f0638170b51916c95771e2c744d3ad11dc90e9ba5e8f9e7e92767c17a","language":"en","license":"CC-BY-4.0","query":"Return the minimum of ts1_mean for hydraulic cycles where (cooler equals 100 or pump_leakage equals 0), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[100,0,10],\\\"sql\\\":\\\"SELECT cooler, MIN(ts1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? AND pump_leakage = ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[100,0,10],\\\"sql\\\":\\\"SELECT cooler, MIN(ts1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? OR pump_leakage = ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[100,0,10],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (cooler = ? OR pump_leakage = ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[100,0,10],\\\"sql\\\":\\\"SELECT cooler, MIN(ts1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? OR pump_leakage = ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[100,35.31378],[3,35.62198],[20,44.13098]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, MIN(ts1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? OR pump_leakage = ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value ASC, cooler ASC LIMIT 3","sql_parameters":"[100,0,10]","state":"{\"question\":\"Return the minimum of ts1_mean for hydraulic cycles where (cooler equals 100 or pump_leakage equals 0), 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\":\"INTEGER\",\"cooler\":\"INTEGER\",\"cycle_id\":\"INTEGER\",\"eps1_mean\":\"REAL\",\"fs1_mean\":\"REAL\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}820{"category":"join/distinct_invoice/date/and/having","domain":"commerce","family_id":"20ea2fb86972f2a3b4d5828a","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"83a7fe1b337c984b9daa87db3cca5778350e9b0e19e91f5ec52fa9768ed45d04","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.unit_price is at most 49.95 and i.invoice_date is before '2011-05-10'), grouped by i.invoice_date, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[49.95,\\\"2011-05-10\\\",2],\\\"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 <= ? AND i.invoice_date < ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[49.95,\\\"2011-05-10\\\",2],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) 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 HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[49.95,\\\"2011-05-10\\\",2],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.quantity) 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 HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[49.95,\\\"2011-05-10\\\",2],\\\"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 <= ? AND i.invoice_date < ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-12-01\",68],[\"2010-12-02\",68],[\"2010-12-09\",52],[\"2010-12-08\",46],[\"2010-12-07\",34]]","source":"online_retail_ii","split":"dev","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 <= ? AND i.invoice_date < ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5","sql_parameters":"[49.95,\"2011-05-10\",2]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.unit_price is at most 49.95 and i.invoice_date is before '2011-05-10'), grouped by i.invoice_date, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}821{"category":"single_table/date/having","domain":"commerce","family_id":"702afa634dd7dc929b2ef3df","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"d27e098deb598fee73af2f5f79d33ca7a6916816cfa2a67cacc3e5176460b09a","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail invoice lines where (invoice_date is on or after '2010-07-14'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\",10],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\",10],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\",10],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-01-23\",10],[\"2011-01-28\",10],[\"2011-06-12\",10]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3","sql_parameters":"[\"2010-07-14\",10]","state":"{\"question\":\"Return the number of rows for retail invoice lines where (invoice_date is on or after '2010-07-14'), 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\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}822{"category":"single_table/aggregate","domain":"commerce","family_id":"93cb3ddc79bc10308232ec9f","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"98cc3c1158298178de030148ce7f98243e7a71deda93fc296e03c680db975de9","language":"en","license":"CC-BY-4.0","query":"Return the average of product_duration for shopping sessions where (product_related is at most 155).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[155],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (product_related <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[155],\\\"sql\\\":\\\"SELECT AVG(product_duration) AS value FROM shopping_sessions WHERE (product_related <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[155],\\\"sql\\\":\\\"SELECT SUM(product_duration) AS value FROM shopping_sessions WHERE (product_related <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[155],\\\"sql\\\":\\\"SELECT MIN(product_duration) AS value FROM shopping_sessions WHERE (product_related <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1021.9054560103378]]","source":"online_shoppers","split":"dev","sql":"SELECT AVG(product_duration) AS value FROM shopping_sessions WHERE (product_related <= ?)","sql_parameters":"[155]","state":"{\"question\":\"Return the average of product_duration for shopping sessions where (product_related is at most 155).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}823{"category":"single_table/or/aggregate","domain":"sensor","family_id":"0e25b834b5fff597750c4457","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"237810127a6b1808b2a71cf2c7ebc7a7b010144c3ef461f38d88faf43751ed9b","language":"en","license":"CC-BY-4.0","query":"Return the average of fs1_mean for hydraulic cycles where (ts1_mean is at most 56.73035 or vs1_mean is greater than 0.61133).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[56.73035,0.61133],\\\"sql\\\":\\\"SELECT AVG(fs1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? AND vs1_mean > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[56.73035,0.61133],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? OR vs1_mean > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[56.73035,0.61133],\\\"sql\\\":\\\"SELECT AVG(fs1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? OR vs1_mean > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[56.73035,0.61133],\\\"sql\\\":\\\"SELECT SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? OR vs1_mean > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[6.198549283446712]]","source":"hydraulic","split":"dev","sql":"SELECT AVG(fs1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? OR vs1_mean > ?)","sql_parameters":"[56.73035,0.61133]","state":"{\"question\":\"Return the average of fs1_mean for hydraulic cycles where (ts1_mean is at most 56.73035 or vs1_mean is greater than 0.61133).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}824{"category":"single_table/aggregate","domain":"commerce","family_id":"93cb3ddc79bc10308232ec9f","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"fd9f778d164e24ea3a02ae79232f708e81d679c36b268428474f971ba24fd573","language":"en","license":"CC-BY-4.0","query":"Return the average of product_duration for shopping sessions where (product_related is at most 93).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[93],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (product_related <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[93],\\\"sql\\\":\\\"SELECT AVG(product_duration) AS value FROM shopping_sessions WHERE (product_related <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[93],\\\"sql\\\":\\\"SELECT SUM(product_duration) AS value FROM shopping_sessions WHERE (product_related <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[93],\\\"sql\\\":\\\"SELECT MIN(product_duration) AS value FROM shopping_sessions WHERE (product_related <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[867.2045667048891]]","source":"online_shoppers","split":"dev","sql":"SELECT AVG(product_duration) AS value FROM shopping_sessions WHERE (product_related <= ?)","sql_parameters":"[93]","state":"{\"question\":\"Return the average of product_duration for shopping sessions where (product_related is at most 93).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}825{"category":"single_table/having","domain":"sensor","family_id":"dae3cc377243ddf9cc17fe72","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"84db7cbe1d18970b4b0ef4ab8001b7877592f5904f394c2a3b32bbe86b3e8763","language":"en","license":"CC-BY-4.0","query":"Return the minimum of ps2_mean for hydraulic cycles where (ts1_mean is greater than 36.33327), grouped by pump_leakage, keeping only groups with at least 10 matching rows; return at most 3 groups ordered by aggregate value ASC, breaking ties by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[36.33327,10],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(ps2_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean > ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[36.33327,10],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (ts1_mean > ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[36.33327,10],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(ps2_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean > ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[36.33327,10],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean > ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1,104.40631],[2,104.53017],[0,104.8079]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, MIN(ps2_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean > ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value ASC, pump_leakage ASC LIMIT 3","sql_parameters":"[36.33327,10]","state":"{\"question\":\"Return the minimum of ps2_mean for hydraulic cycles where (ts1_mean is greater than 36.33327), grouped by pump_leakage, keeping only groups with at least 10 matching rows; 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\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}826{"category":"single_table/grouped","domain":"commerce","family_id":"5bff1bc72937fae9034df0e3","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"a99b341699cc6aabbea71c784c6ac097ae4d63ebd7e70267832de865ca994204","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (quantity is greater than 92), grouped by invoice_date, ordered by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[92],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (quantity > ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[92],\\\"sql\\\":\\\"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (quantity > ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[92],\\\"sql\\\":\\\"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (quantity > ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[92],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (quantity > ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-01\",0.85],[\"2009-12-02\",2.75],[\"2009-12-03\",2.0],[\"2009-12-04\",2.1],[\"2009-12-05\",0.19],[\"2009-12-07\",2.55],[\"2009-12-08\",5.45],[\"2009-12-09\",1.65],[\"2009-12-10\",1.65],[\"2009-12-13\",0.38],[\"2009-12-14\",1.45],[\"2009-12-15\",4.95],[\"2009-12-16\",2.55],[\"2009-12-17\",3.39],[\"2009-12-18\",1.95],[\"2009-12-20\",0.72],[\"2009-12-21\",2.95],[\"2009-12-22\",7.93],[\"2009-12-23\",1.65],[\"2010-01-04\",3.95],[\"2010-01-05\",4.0],[\"2010-01-07\",9.45],[\"2010-01-08\",3.0],[\"2010-01-10\",4.95],[\"2010-01-11\",2.1],[\"2010-01-12\",1.65],[\"2010-01-13\",3.39],[\"2010-01-14\",0.42],[\"2010-01-15\",1.65],[\"2010-01-17\",3.81],[\"2010-01-19\",1.45],[\"2010-01-20\",0.4],[\"2010-01-21\",1.65],[\"2010-01-27\",2.55],[\"2010-01-28\",2.55],[\"2010-01-29\",1.65],[\"2010-01-31\",2.55],[\"2010-02-01\",1.69],[\"2010-02-02\",1.06],[\"2010-02-03\",0.85],[\"2010-02-04\",2.55],[\"2010-02-05\",6.35],[\"2010-02-07\",2.1],[\"2010-02-08\",2.55],[\"2010-02-09\",0.36],[\"2010-02-11\",1.65],[\"2010-02-12\",2.1],[\"2010-02-14\",1.65],[\"2010-02-15\",1.65],[\"2010-02-16\",1.45],[\"2010-02-17\",1.06],[\"2010-02-18\",0.65],[\"2010-02-19\",2.55],[\"2010-02-21\",0.42],[\"2010-02-22\",1.06],[\"2010-02-23\",1.69],[\"2010-02-24\",2.55],[\"2010-02-25\",2.95],[\"2010-02-26\",2.1],[\"2010-02-28\",2.55],[\"2010-03-01\",1.06],[\"2010-03-02\",0.38],[\"2010-03-04\",1.65],[\"2010-03-05\",1.65],[\"2010-03-08\",2.55],[\"2010-03-09\",1.85],[\"2010-03-10\",1.45],[\"2010-03-11\",4.25],[\"2010-03-14\",1.06],[\"2010-03-15\",1.8],[\"2010-03-16\",1.69],[\"2010-03-17\",1.85],[\"2010-03-18\",4.58],[\"2010-03-19\",1.85],[\"2010-03-21\",0.42],[\"2010-03-22\",2.55],[\"2010-03-23\",1.65],[\"2010-03-24\",1.06],[\"2010-03-25\",1.65],[\"2010-03-28\",1.06],[\"2010-03-29\",1.85],[\"2010-03-30\",1.06],[\"2010-03-31\",1.06],[\"2010-04-01\",1.45],[\"2010-04-06\",1.65],[\"2010-04-07\",2.1],[\"2010-04-08\",4.95],[\"2010-04-09\",1.06],[\"2010-04-11\",2.55],[\"2010-04-12\",4.65],[\"2010-04-13\",0.85],[\"2010-04-14\",1.65],[\"2010-04-15\",2.1],[\"2010-04-16\",2.55],[\"2010-04-18\",1.75],[\"2010-04-19\",1.75],[\"2010-04-20\",3.39],[\"2010-04-21\",1.45],[\"2010-04-22\",7.26],[\"2010-04-25\",1.85],[\"2010-04-26\",1.65],[\"2010-04-27\",7.45],[\"2010-04-28\",1.95],[\"2010-04-29\",3.39],[\"2010-05-02\",1.45],[\"2010-05-04\",1.6],[\"2010-05-05\",2.95],[\"2010-05-06\",1.06],[\"2010-05-07\",1.85],[\"2010-05-10\",7.26],[\"2010-05-12\",2.1],[\"2010-05-13\",1.85],[\"2010-05-14\",1.06],[\"2010-05-16\",0.21],[\"2010-05-17\",1.65],[\"2010-05-18\",1.65],[\"2010-05-19\",2.55],[\"2010-05-21\",1.65],[\"2010-05-23\",0.42],[\"2010-05-25\",1.25],[\"2010-05-26\",1.45],[\"2010-05-27\",3.75],[\"2010-05-28\",1.06],[\"2010-05-30\",0.55],[\"2010-06-01\",1.65],[\"2010-06-03\",1.45],[\"2010-06-04\",1.06],[\"2010-06-07\",2.55],[\"2010-06-08\",2.55],[\"2010-06-09\",3.39],[\"2010-06-10\",0.65],[\"2010-06-11\",3.39],[\"2010-06-13\",1.25],[\"2010-06-14\",1.69],[\"2010-06-15\",3.39],[\"2010-06-16\",2.55],[\"2010-06-17\",1.45],[\"2010-06-20\",4.95],[\"2010-06-23\",1.65],[\"2010-06-24\",1.65],[\"2010-06-25\",0.42],[\"2010-06-27\",2.55],[\"2010-06-28\",3.39],[\"2010-06-29\",1.65],[\"2010-06-30\",4.65],[\"2010-07-01\",2.55],[\"2010-07-04\",1.45],[\"2010-07-05\",4.25],[\"2010-07-06\",3.75],[\"2010-07-07\",3.39],[\"2010-07-08\",0.65],[\"2010-07-12\",1.65],[\"2010-07-13\",2.55],[\"2010-07-15\",6.38],[\"2010-07-16\",1.45],[\"2010-07-18\",1.45],[\"2010-07-19\",0.75],[\"2010-07-20\",2.55],[\"2010-07-21\",1.65],[\"2010-07-23\",1.65],[\"2010-07-25\",0.85],[\"2010-07-26\",2.55],[\"2010-07-27\",7.46],[\"2010-07-28\",0.38],[\"2010-07-29\",1.06],[\"2010-07-30\",3.67],[\"2010-08-02\",3.67],[\"2010-08-03\",1.65],[\"2010-08-05\",8.5],[\"2010-08-06\",0.72],[\"2010-08-08\",0.29],[\"2010-08-09\",6.68],[\"2010-08-10\",1.65],[\"2010-08-11\",6.86],[\"2010-08-13\",2.51],[\"2010-08-15\",1.65],[\"2010-08-16\",9.32],[\"2010-08-17\",2.1],[\"2010-08-19\",1.69],[\"2010-08-20\",1.65],[\"2010-08-22\",1.65],[\"2010-08-23\",2.55],[\"2010-08-24\",1.45],[\"2010-08-25\",0.72],[\"2010-08-26\",7.46],[\"2010-08-31\",8.5],[\"2010-09-02\",1.65],[\"2010-09-03\",1.66],[\"2010-09-05\",1.85],[\"2010-09-06\",4.95],[\"2010-09-07\",1.95],[\"2010-09-08\",1.45],[\"2010-09-10\",1.65],[\"2010-09-12\",1.5],[\"2010-09-13\",1.65],[\"2010-09-15\",1.45],[\"2010-09-16\",2.1],[\"2010-09-17\",1.45],[\"2010-09-19\",1.65],[\"2010-09-20\",1.65],[\"2010-09-21\",1.85],[\"2010-09-22\",2.55],[\"2010-09-26\",1.25],[\"2010-09-27\",7.13],[\"2010-09-28\",4.14],[\"2010-09-29\",1.65],[\"2010-09-30\",2.55],[\"2010-10-01\",1.69],[\"2010-10-04\",1.06],[\"2010-10-05\",1.65],[\"2010-10-06\",3.95],[\"2010-10-07\",1.85],[\"2010-10-08\",2.75],[\"2010-10-10\",1.06],[\"2010-10-11\",0.72],[\"2010-10-12\",2.95],[\"2010-10-13\",1.65],[\"2010-10-14\",2.55],[\"2010-10-15\",1.06],[\"2010-10-18\",3.39],[\"2010-10-19\",0.29],[\"2010-10-20\",3.39],[\"2010-10-21\",4.25],[\"2010-10-22\",2.55],[\"2010-10-24\",2.1],[\"2010-10-25\",1.65],[\"2010-10-26\",3.75],[\"2010-10-28\",1.45],[\"2010-10-29\",0.95],[\"2010-10-31\",1.45],[\"2010-11-01\",1.06],[\"2010-11-02\",1.65],[\"2010-11-03\",1.65],[\"2010-11-04\",2.55],[\"2010-11-05\",8.5],[\"2010-11-07\",1.06],[\"2010-11-08\",1.06],[\"2010-11-09\",2.75],[\"2010-11-10\",3.86],[\"2010-11-11\",1.85],[\"2010-11-12\",10.95],[\"2010-11-15\",4.25],[\"2010-11-16\",4.25],[\"2010-11-17\",1.69],[\"2010-11-18\",4.65],[\"2010-11-19\",10.95],[\"2010-11-21\",1.65],[\"2010-11-22\",2.75],[\"2010-11-23\",2.55],[\"2010-11-24\",8.5],[\"2010-11-25\",3.45],[\"2010-11-26\",1.25],[\"2010-11-28\",1.85],[\"2010-11-29\",4.25],[\"2010-11-30\",1.65],[\"2010-12-01\",3.82],[\"2010-12-02\",10.95],[\"2010-12-03\",2.75],[\"2010-12-05\",2.55],[\"2010-12-06\",8.5],[\"2010-12-07\",6.38],[\"2010-12-08\",1.25],[\"2010-12-09\",1.45],[\"2010-12-10\",2.1],[\"2010-12-13\",1.69],[\"2010-12-14\",1.45],[\"2010-12-15\",0.19],[\"2010-12-16\",3.39],[\"2010-12-17\",1.06],[\"2010-12-20\",4.25],[\"2010-12-21\",1.65],[\"2011-01-04\",2.55],[\"2011-01-05\",3.39],[\"2011-01-06\",2.55],[\"2011-01-07\",1.65],[\"2011-01-09\",3.39],[\"2011-01-10\",1.06],[\"2011-01-11\",6.75],[\"2011-01-12\",7.45],[\"2011-01-13\",1.65],[\"2011-01-17\",2.55],[\"2011-01-19\",1.06],[\"2011-01-20\",3.82],[\"2011-01-21\",2.55],[\"2011-01-24\",1.45],[\"2011-01-25\",1.65],[\"2011-01-26\",2.55],[\"2011-01-31\",1.45],[\"2011-02-01\",2.1],[\"2011-02-02\",1.85],[\"2011-02-03\",3.39],[\"2011-02-04\",2.55],[\"2011-02-07\",6.38],[\"2011-02-08\",4.25],[\"2011-02-10\",3.39],[\"2011-02-11\",4.95],[\"2011-02-14\",1.45],[\"2011-02-15\",2.1],[\"2011-02-16\",2.55],[\"2011-02-17\",1.06],[\"2011-02-18\",1.65],[\"2011-02-20\",1.65],[\"2011-02-21\",1.25],[\"2011-02-22\",2.1],[\"2011-02-23\",4.25],[\"2011-02-25\",1.65],[\"2011-03-01\",12.75],[\"2011-03-02\",0.34],[\"2011-03-03\",1.06],[\"2011-03-04\",1.06],[\"2011-03-06\",1.85],[\"2011-03-07\",1.45],[\"2011-03-08\",0.25],[\"2011-03-09\",3.4],[\"2011-03-10\",2.55],[\"2011-03-11\",3.39],[\"2011-03-14\",1.65],[\"2011-03-15\",1.45],[\"2011-03-16\",2.1],[\"2011-03-17\",2.1],[\"2011-03-18\",2.1],[\"2011-03-20\",3.39],[\"2011-03-21\",1.65],[\"2011-03-22\",1.45],[\"2011-03-23\",4.15],[\"2011-03-24\",2.32],[\"2011-03-25\",6.38],[\"2011-03-28\",7.45],[\"2011-03-29\",1.65],[\"2011-03-30\",2.55],[\"2011-03-31\",2.55],[\"2011-04-01\",2.55],[\"2011-04-03\",0.72],[\"2011-04-04\",1.85],[\"2011-04-05\",3.39],[\"2011-04-06\",0.85],[\"2011-04-07\",1.45],[\"2011-04-08\",0.42],[\"2011-04-11\",1.06],[\"2011-04-12\",1.79],[\"2011-04-13\",1.79],[\"2011-04-14\",3.39],[\"2011-04-15\",1.79],[\"2011-04-18\",6.35],[\"2011-04-19\",0.55],[\"2011-04-20\",4.77],[\"2011-04-21\",1.79],[\"2011-04-26\",2.1],[\"2011-04-27\",2.75],[\"2011-04-28\",1.06],[\"2011-05-03\",3.39],[\"2011-05-04\",4.15],[\"2011-05-05\",4.15],[\"2011-05-06\",0.42],[\"2011-05-09\",4.95],[\"2011-05-10\",1.79],[\"2011-05-11\",1.45],[\"2011-05-12\",1.45],[\"2011-05-13\",1.79],[\"2011-05-15\",1.45],[\"2011-05-16\",1.79],[\"2011-05-17\",1.74],[\"2011-05-18\",2.75],[\"2011-05-19\",0.36],[\"2011-05-20\",1.95],[\"2011-05-23\",2.1],[\"2011-05-24\",4.25],[\"2011-05-25\",1.45],[\"2011-05-26\",3.75],[\"2011-05-27\",2.55],[\"2011-05-29\",4.65],[\"2011-05-31\",1.45],[\"2011-06-02\",2.55],[\"2011-06-05\",1.06],[\"2011-06-06\",1.79],[\"2011-06-07\",1.79],[\"2011-06-08\",1.79],[\"2011-06-09\",0.65],[\"2011-06-10\",2.55],[\"2011-06-13\",3.39],[\"2011-06-14\",2.75],[\"2011-06-15\",1.45],[\"2011-06-16\",3.39],[\"2011-06-17\",2.55],[\"2011-06-19\",2.1],[\"2011-06-20\",4.15],[\"2011-06-22\",3.25],[\"2011-06-24\",0.72],[\"2011-06-27\",1.79],[\"2011-06-28\",4.25],[\"2011-06-29\",1.85],[\"2011-06-30\",1.06],[\"2011-07-01\",1.25],[\"2011-07-04\",4.95],[\"2011-07-05\",2.75],[\"2011-07-06\",2.55],[\"2011-07-07\",2.55],[\"2011-07-08\",1.74],[\"2011-07-11\",1.65],[\"2011-07-12\",3.24],[\"2011-07-13\",1.45],[\"2011-07-14\",10.95],[\"2011-07-15\",0.85],[\"2011-07-17\",0.42],[\"2011-07-19\",2.55],[\"2011-07-20\",2.75],[\"2011-07-21\",2.55],[\"2011-07-22\",1.06],[\"2011-07-24\",1.06],[\"2011-07-25\",1.69],[\"2011-07-26\",1.79],[\"2011-07-27\",4.65],[\"2011-07-28\",3.24],[\"2011-07-29\",1.79],[\"2011-07-31\",2.49],[\"2011-08-01\",1.45],[\"2011-08-02\",1.69],[\"2011-08-03\",2.75],[\"2011-08-04\",1.45],[\"2011-08-05\",1.74],[\"2011-08-07\",0.72],[\"2011-08-08\",1.25],[\"2011-08-11\",1.79],[\"2011-08-12\",2.75],[\"2011-08-15\",0.55],[\"2011-08-17\",1.74],[\"2011-08-18\",1.69],[\"2011-08-19\",1.45],[\"2011-08-21\",1.79],[\"2011-08-22\",3.39],[\"2011-08-23\",2.1],[\"2011-08-24\",4.25],[\"2011-08-25\",0.85],[\"2011-08-26\",5.45],[\"2011-08-28\",1.85],[\"2011-08-30\",1.79],[\"2011-08-31\",1.79],[\"2011-09-01\",1.79],[\"2011-09-02\",6.5],[\"2011-09-04\",0.64],[\"2011-09-05\",2.4],[\"2011-09-06\",1.65],[\"2011-09-07\",1.79],[\"2011-09-08\",1.45],[\"2011-09-11\",1.85],[\"2011-09-12\",2.1],[\"2011-09-13\",1.79],[\"2011-09-14\",3.39],[\"2011-09-15\",4.58],[\"2011-09-16\",0.75],[\"2011-09-18\",1.79],[\"2011-09-19\",1.79],[\"2011-09-20\",3.2],[\"2011-09-21\",1.79],[\"2011-09-22\",6.72],[\"2011-09-23\",1.06],[\"2011-09-25\",1.65],[\"2011-09-26\",1.85],[\"2011-09-27\",7.65],[\"2011-09-28\",4.58],[\"2011-09-29\",1.06],[\"2011-09-30\",1.45],[\"2011-10-02\",0.55],[\"2011-10-03\",3.39],[\"2011-10-04\",2.55],[\"2011-10-05\",2.75],[\"2011-10-06\",3.39],[\"2011-10-07\",3.39],[\"2011-10-10\",5.75],[\"2011-10-13\",2.08],[\"2011-10-14\",1.65],[\"2011-10-17\",2.55],[\"2011-10-18\",4.3],[\"2011-10-19\",1.45],[\"2011-10-20\",1.79],[\"2011-10-24\",2.41],[\"2011-10-25\",3.39],[\"2011-10-26\",4.95],[\"2011-10-27\",1.79],[\"2011-10-28\",1.79],[\"2011-10-30\",0.42],[\"2011-10-31\",1.85],[\"2011-11-01\",2.1],[\"2011-11-02\",3.39],[\"2011-11-03\",3.2],[\"2011-11-04\",1.79],[\"2011-11-07\",4.95],[\"2011-11-08\",2.49],[\"2011-11-09\",3.75],[\"2011-11-10\",0.72],[\"2011-11-11\",1.79],[\"2011-11-13\",1.06],[\"2011-11-14\",4.15],[\"2011-11-15\",1.79],[\"2011-11-16\",1.79],[\"2011-11-17\",4.25],[\"2011-11-18\",1.79],[\"2011-11-20\",1.79],[\"2011-11-21\",2.55],[\"2011-11-22\",1.85],[\"2011-11-23\",3.75],[\"2011-11-24\",1.79],[\"2011-11-25\",2.55],[\"2011-11-28\",3.2],[\"2011-11-29\",1.85],[\"2011-11-30\",1.45],[\"2011-12-01\",2.39],[\"2011-12-02\",1.79],[\"2011-12-04\",2.1],[\"2011-12-05\",1.95],[\"2011-12-06\",4.95],[\"2011-12-07\",1.45],[\"2011-12-08\",1.06],[\"2011-12-09\",1.04]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (quantity > ?) GROUP BY invoice_date ORDER BY invoice_date ASC","sql_parameters":"[92]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines where (quantity is greater than 92), 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\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}827{"category":"single_table/and/aggregate","domain":"commerce","family_id":"e78bcc40f56afc79dc624565","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"8b21d11b58150696f7fef9a35a27a6156dca2b76d7efb11fc4982f210396e875","language":"en","license":"CC-BY-4.0","query":"Return the minimum of product_related for shopping sessions where (region equals 5 and product_related is greater than 226).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[5,226],\\\"sql\\\":\\\"SELECT MIN(product_related) AS value FROM shopping_sessions WHERE (region = ? OR product_related > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[5,226],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (region = ? AND product_related > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT MIN(product_related) AS value FROM shopping_sessions\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[5,226],\\\"sql\\\":\\\"SELECT MIN(product_related) AS value FROM shopping_sessions WHERE (region = ? AND product_related > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[358]]","source":"online_shoppers","split":"dev","sql":"SELECT MIN(product_related) AS value FROM shopping_sessions WHERE (region = ? AND product_related > ?)","sql_parameters":"[5,226]","state":"{\"question\":\"Return the minimum of product_related for shopping sessions where (region equals 5 and 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\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}828{"category":"single_table/aggregate","domain":"sensor","family_id":"4ebde106faf7742daec83a32","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"d9915d9517e66a27679a54c142b4be32900ae1e49b9a018c73e847947fd61afe","language":"en","license":"CC-BY-4.0","query":"Return the sum of fs1_mean for hydraulic cycles where (vs1_mean is greater than 0.71948).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[0.71948],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (vs1_mean > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[0.71948],\\\"sql\\\":\\\"SELECT SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (vs1_mean > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[0.71948],\\\"sql\\\":\\\"SELECT AVG(fs1_mean) AS value FROM hydraulic_cycles WHERE (vs1_mean > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[0.71948],\\\"sql\\\":\\\"SELECT MIN(fs1_mean) AS value FROM hydraulic_cycles WHERE (vs1_mean > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[693.57513]]","source":"hydraulic","split":"dev","sql":"SELECT SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (vs1_mean > ?)","sql_parameters":"[0.71948]","state":"{\"question\":\"Return the sum of fs1_mean for hydraulic cycles where (vs1_mean is greater than 0.71948).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}829{"category":"join/distinct_invoice/and/having","domain":"commerce","family_id":"b247a6d077f24212651344de","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"66441a3ad2f0e83acb9700f332953bbac3c6aa42e6eebaffb09e4e495f7570e3","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.country equals 'Austria' and l.unit_price is greater than 4.77), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Austria\\\",4.77,10],\\\"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 = ? OR l.unit_price > ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Austria\\\",4.77],\\\"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.unit_price > ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Austria\\\",4.77,10],\\\"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.unit_price > ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[10],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","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.unit_price > ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3","sql_parameters":"[\"Austria\",4.77,10]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.country equals 'Austria' and l.unit_price is greater than 4.77), 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_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}830{"category":"join/distinct_invoice/grouped","domain":"commerce","family_id":"497112d6e327c55380ae546c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"61481c816245e67825f13418e45893ce056efe4edceb3799b75c5d0eae3237d5","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.unit_price is at most 2.25), grouped by i.country, ordered by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2.25],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price <= ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2.25],\\\"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 <= ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2.25],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price <= ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2.25],\\\"sql\\\":\\\"SELECT i.country, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price <= ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",9],[\"Austria\",4],[\"Bahrain\",2],[\"Belgium\",9],[\"Canada\",1],[\"Channel Islands\",6],[\"Cyprus\",4],[\"Denmark\",1],[\"EIRE\",38],[\"Finland\",8],[\"France\",49],[\"Germany\",96],[\"Israel\",1],[\"Italy\",2],[\"Japan\",5],[\"Netherlands\",29],[\"Norway\",2],[\"Poland\",2],[\"Portugal\",4],[\"Spain\",18],[\"Sweden\",25],[\"Switzerland\",8],[\"United Kingdom\",5086]]","source":"online_retail_ii","split":"dev","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 <= ?) GROUP BY i.country ORDER BY i.country ASC","sql_parameters":"[2.25]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.unit_price is at most 2.25), grouped by i.country, ordered by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}831{"category":"join/date/grouped","domain":"commerce","family_id":"23c568afc4dc8ea6d24b7efa","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"9c1663fba8abbadab03fca597788c8ce66dfdc8cc5dfcfc8f493afcf234ee634","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail lines joined to their invoices where (i.invoice_date is on or after '2011-09-29'), grouped by i.invoice_date, ordered by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.quantity) 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-09-29\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(l.quantity) 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_3\":\"{\\\"parameters\\\":[\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, MIN(l.quantity) 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_4\":\"{\\\"parameters\\\":[\\\"2011-09-29\\\"],\\\"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\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-09-29\",38],[\"2011-09-30\",45],[\"2011-10-02\",13],[\"2011-10-03\",34],[\"2011-10-04\",41],[\"2011-10-05\",65],[\"2011-10-06\",86],[\"2011-10-07\",59],[\"2011-10-09\",6],[\"2011-10-10\",53],[\"2011-10-11\",60],[\"2011-10-12\",59],[\"2011-10-13\",52],[\"2011-10-14\",34],[\"2011-10-17\",65],[\"2011-10-18\",38],[\"2011-10-19\",76],[\"2011-10-20\",51],[\"2011-10-21\",42],[\"2011-10-23\",5],[\"2011-10-24\",64],[\"2011-10-25\",30],[\"2011-10-26\",80],[\"2011-10-27\",68],[\"2011-10-28\",60],[\"2011-10-30\",52],[\"2011-10-31\",47],[\"2011-11-01\",44],[\"2011-11-02\",29],[\"2011-11-03\",55],[\"2011-11-04\",51],[\"2011-11-06\",61],[\"2011-11-07\",71],[\"2011-11-08\",71],[\"2011-11-09\",122],[\"2011-11-10\",88],[\"2011-11-11\",45],[\"2011-11-13\",31],[\"2011-11-14\",43],[\"2011-11-15\",78],[\"2011-11-16\",102],[\"2011-11-17\",110],[\"2011-11-18\",84],[\"2011-11-20\",42],[\"2011-11-21\",55],[\"2011-11-22\",88],[\"2011-11-23\",92],[\"2011-11-24\",90],[\"2011-11-25\",72],[\"2011-11-27\",7],[\"2011-11-28\",76],[\"2011-11-29\",96],[\"2011-11-30\",50],[\"2011-12-01\",128],[\"2011-12-02\",102],[\"2011-12-04\",47],[\"2011-12-05\",97],[\"2011-12-06\",110],[\"2011-12-07\",59],[\"2011-12-08\",75],[\"2011-12-09\",34]]","source":"online_retail_ii","split":"dev","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","sql_parameters":"[\"2011-09-29\"]","state":"{\"question\":\"Return the number of rows for retail lines joined to their invoices where (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\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}832{"category":"single_table/date/grouped","domain":"commerce","family_id":"7a8953dc0e378f70b93cffab","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"f1e166d5004cb3cb4b9b855769ff7b84a0a68b78bcbd4baa9582968f2b72dc79","language":"en","license":"CC-BY-4.0","query":"Return the average of quantity for retail invoice lines where (invoice_date is before '2010-02-18'), grouped by invoice_date, ordered by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-01\",23.5],[\"2009-12-02\",41.78125],[\"2009-12-03\",230.81720430107526],[\"2009-12-04\",38.064516129032256],[\"2009-12-05\",21.892857142857142],[\"2009-12-06\",10.290322580645162],[\"2009-12-07\",33.78787878787879],[\"2009-12-08\",56.566265060240966],[\"2009-12-09\",18.666666666666668],[\"2009-12-10\",32.88732394366197],[\"2009-12-11\",9.321428571428571],[\"2009-12-13\",22.2],[\"2009-12-14\",9.470588235294118],[\"2009-12-15\",50.06666666666667],[\"2009-12-16\",25.62962962962963],[\"2009-12-17\",18.010309278350515],[\"2009-12-18\",23.462962962962962],[\"2009-12-20\",30.6],[\"2009-12-21\",19.0],[\"2009-12-22\",32.75555555555555],[\"2009-12-23\",29.40740740740741],[\"2010-01-04\",58.64705882352941],[\"2010-01-05\",53.111111111111114],[\"2010-01-06\",6.333333333333333],[\"2010-01-07\",68.41935483870968],[\"2010-01-08\",121.17391304347827],[\"2010-01-10\",96.05263157894737],[\"2010-01-11\",51.36363636363637],[\"2010-01-12\",36.40909090909091],[\"2010-01-13\",55.0],[\"2010-01-14\",21.0],[\"2010-01-15\",17.944444444444443],[\"2010-01-17\",48.53846153846154],[\"2010-01-18\",14.0],[\"2010-01-19\",18.914285714285715],[\"2010-01-20\",47.54545454545455],[\"2010-01-21\",26.975],[\"2010-01-22\",7.76],[\"2010-01-24\",12.333333333333334],[\"2010-01-25\",7.088235294117647],[\"2010-01-26\",7.217391304347826],[\"2010-01-27\",63.06896551724138],[\"2010-01-28\",23.736842105263158],[\"2010-01-29\",45.733333333333334],[\"2010-01-31\",16.26829268292683],[\"2010-02-01\",22.10810810810811],[\"2010-02-02\",16.653846153846153],[\"2010-02-03\",16.428571428571427],[\"2010-02-04\",38.191489361702125],[\"2010-02-05\",44.02439024390244],[\"2010-02-07\",109.72727272727273],[\"2010-02-08\",9.862745098039216],[\"2010-02-09\",19.86111111111111],[\"2010-02-10\",16.142857142857142],[\"2010-02-11\",42.275862068965516],[\"2010-02-12\",94.34482758620689],[\"2010-02-14\",44.88235294117647],[\"2010-02-15\",49.411764705882355],[\"2010-02-16\",33.98039215686274],[\"2010-02-17\",68.60975609756098]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC","sql_parameters":"[\"2010-02-18\"]","state":"{\"question\":\"Return the average of quantity for retail invoice lines where (invoice_date is before '2010-02-18'), 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\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}833{"category":"single_table/date/and/having","domain":"commerce","family_id":"6962ab368a1f91c5bb6a711c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"25f60dc6ef5799b3b44d6be067e8c92aceeb0b681f4fa91f0dab5d043b996cf4","language":"en","license":"CC-BY-4.0","query":"Return the maximum of quantity for retail invoice lines where (quantity is at most 25 and invoice_date is on or after '2011-09-29'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[25,\\\"2011-09-29\\\",2],\\\"sql\\\":\\\"SELECT invoice_date, MAX(quantity) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date >= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[25,\\\"2011-09-29\\\",2],\\\"sql\\\":\\\"SELECT invoice_date, MAX(quantity) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[25,\\\"2011-09-29\\\",2],\\\"sql\\\":\\\"SELECT invoice_date, MAX(quantity) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[25,\\\"2011-09-29\\\",2],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-09-29\",25],[\"2011-09-30\",25],[\"2011-10-07\",25],[\"2011-10-19\",25],[\"2011-10-30\",25]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MAX(quantity) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5","sql_parameters":"[25,\"2011-09-29\",2]","state":"{\"question\":\"Return the maximum of quantity for retail invoice lines where (quantity is at most 25 and invoice_date is on or after '2011-09-29'), 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\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}834{"category":"join/null/or/ranked","domain":"commerce","family_id":"072e3f7caa58c841a74fbc4e","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"02065a7dad98a381be0e5232ff86b32c3009b13084e555f2642bcf42068e5f2d","language":"en","license":"CC-BY-4.0","query":"Return the minimum of l.unit_price for retail lines joined to their invoices where (l.quantity is greater than 648 or i.customer_id is missing), grouped by i.country; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[648],\\\"sql\\\":\\\"SELECT i.country, MIN(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ? AND i.customer_id IS NULL) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[648],\\\"sql\\\":\\\"SELECT i.country, MIN(l.unit_price) 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 ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[648],\\\"sql\\\":\\\"SELECT i.country, MIN(l.unit_price) 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 ORDER BY value ASC, i.country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[648],\\\"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 ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Switzerland\",3.75],[\"Israel\",1.25],[\"Bahrain\",0.85],[\"EIRE\",0.16],[\"Sweden\",0.09]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, MIN(l.unit_price) 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 ORDER BY value DESC, i.country ASC LIMIT 5","sql_parameters":"[648]","state":"{\"question\":\"Return the minimum of l.unit_price for retail lines joined to their invoices where (l.quantity is greater than 648 or i.customer_id is missing), grouped by i.country; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}835{"category":"single_table/ranked","domain":"commerce","family_id":"fd32386b505be56f515287ae","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"0375d9eeaae9735393fa9b5b04f50b97469947ea25688e1e69e27fb006738e01","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for shopping sessions where (region equals 1), grouped by revenue; return at most 5 groups ordered by aggregate value DESC, breaking ties by revenue ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[1],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY revenue ORDER BY value ASC, revenue ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[1],\\\"sql\\\":\\\"SELECT revenue, SUM(administrative) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[1],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[1],\\\"sql\\\":\\\"SELECT revenue, AVG(administrative) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,4009],[1,771]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5","sql_parameters":"[1]","state":"{\"question\":\"Return the number of rows for shopping sessions where (region equals 1), 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_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}836{"category":"single_table/ranked","domain":"commerce","family_id":"32929511d17a8a9abb1063e4","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"334e991fce7e436a36e707f005b3913751e73f427e0f9657f24955ffb68ae34d","language":"en","license":"CC-BY-4.0","query":"Return the sum of administrative for shopping sessions where (region equals 7), grouped by revenue; return at most 5 groups ordered by aggregate value DESC, breaking ties by revenue ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[7],\\\"sql\\\":\\\"SELECT revenue, SUM(administrative) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY revenue ORDER BY value ASC, revenue ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[7],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[7],\\\"sql\\\":\\\"SELECT revenue, AVG(administrative) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[7],\\\"sql\\\":\\\"SELECT revenue, SUM(administrative) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,1398],[1,394]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, SUM(administrative) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5","sql_parameters":"[7]","state":"{\"question\":\"Return the sum of administrative for shopping sessions where (region equals 7), 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_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}837{"category":"join/or/grouped","domain":"commerce","family_id":"1353dc0fd757955d373f7039","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"53261d8e81bbeff699625e7e697aba72800a2ff91fa60d143b0fce44c320f50e","language":"en","license":"CC-BY-4.0","query":"Return the maximum of l.quantity for retail lines joined to their invoices where (i.country equals 'Denmark' or l.unit_price is at most 4.77), grouped by i.invoice_date, ordered by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Denmark\\\",4.77],\\\"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 l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Denmark\\\",4.77],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Denmark\\\",4.77],\\\"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 = ? OR l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Denmark\\\",4.77],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-01\",216],[\"2009-12-02\",288],[\"2009-12-03\",5184],[\"2009-12-04\",300],[\"2009-12-05\",144],[\"2009-12-06\",75],[\"2009-12-07\",288],[\"2009-12-08\",936],[\"2009-12-09\",144],[\"2009-12-10\",200],[\"2009-12-11\",40],[\"2009-12-13\",120],[\"2009-12-14\",96],[\"2009-12-15\",480],[\"2009-12-16\",200],[\"2009-12-17\",216],[\"2009-12-18\",168],[\"2009-12-20\",192],[\"2009-12-21\",200],[\"2009-12-22\",336],[\"2009-12-23\",240],[\"2010-01-04\",300],[\"2010-01-05\",200],[\"2010-01-06\",12],[\"2010-01-07\",832],[\"2010-01-08\",600],[\"2010-01-10\",300],[\"2010-01-11\",576],[\"2010-01-12\",720],[\"2010-01-13\",288],[\"2010-01-14\",150],[\"2010-01-15\",100],[\"2010-01-17\",192],[\"2010-01-18\",48],[\"2010-01-19\",100],[\"2010-01-20\",240],[\"2010-01-21\",144],[\"2010-01-22\",80],[\"2010-01-24\",48],[\"2010-01-25\",60],[\"2010-01-26\",24],[\"2010-01-27\",1440],[\"2010-01-28\",96],[\"2010-01-29\",288],[\"2010-01-31\",96],[\"2010-02-01\",144],[\"2010-02-02\",144],[\"2010-02-03\",96],[\"2010-02-04\",252],[\"2010-02-05\",200],[\"2010-02-07\",720],[\"2010-02-08\",96],[\"2010-02-09\",150],[\"2010-02-10\",48],[\"2010-02-11\",384],[\"2010-02-12\",600],[\"2010-02-14\",192],[\"2010-02-15\",100],[\"2010-02-16\",288],[\"2010-02-17\",720],[\"2010-02-18\",288],[\"2010-02-19\",1800],[\"2010-02-21\",192],[\"2010-02-22\",208],[\"2010-02-23\",100],[\"2010-02-24\",300],[\"2010-02-25\",480],[\"2010-02-26\",300],[\"2010-02-28\",256],[\"2010-03-01\",240],[\"2010-03-02\",120],[\"2010-03-03\",64],[\"2010-03-04\",240],[\"2010-03-05\",537],[\"2010-03-07\",48],[\"2010-03-08\",400],[\"2010-03-09\",144],[\"2010-03-10\",500],[\"2010-03-11\",96],[\"2010-03-12\",50],[\"2010-03-14\",96],[\"2010-03-15\",600],[\"2010-03-16\",104],[\"2010-03-17\",480],[\"2010-03-18\",720],[\"2010-03-19\",864],[\"2010-03-21\",300],[\"2010-03-22\",480],[\"2010-03-23\",10000],[\"2010-03-24\",384],[\"2010-03-25\",96],[\"2010-03-26\",48],[\"2010-03-28\",96],[\"2010-03-29\",816],[\"2010-03-30\",360],[\"2010-03-31\",144],[\"2010-04-01\",648],[\"2010-04-06\",720],[\"2010-04-07\",144],[\"2010-04-08\",288],[\"2010-04-09\",300],[\"2010-04-11\",720],[\"2010-04-12\",144],[\"2010-04-13\",96],[\"2010-04-14\",192],[\"2010-04-15\",150],[\"2010-04-16\",864],[\"2010-04-18\",144],[\"2010-04-19\",1440],[\"2010-04-20\",200],[\"2010-04-21\",144],[\"2010-04-22\",600],[\"2010-04-23\",72],[\"2010-04-25\",144],[\"2010-04-26\",432],[\"2010-04-27\",144],[\"2010-04-28\",150],[\"2010-04-29\",720],[\"2010-04-30\",90],[\"2010-05-02\",250],[\"2010-05-04\",560],[\"2010-05-05\",288],[\"2010-05-06\",576],[\"2010-05-07\",816],[\"2010-05-09\",72],[\"2010-05-10\",612],[\"2010-05-11\",80],[\"2010-05-12\",1440],[\"2010-05-13\",108],[\"2010-05-14\",1440],[\"2010-05-16\",100],[\"2010-05-17\",200],[\"2010-05-18\",5000],[\"2010-05-19\",500],[\"2010-05-20\",72],[\"2010-05-21\",100],[\"2010-05-23\",240],[\"2010-05-24\",84],[\"2010-05-25\",720],[\"2010-05-26\",720],[\"2010-05-27\",144],[\"2010-05-28\",144],[\"2010-05-30\",144],[\"2010-06-01\",144],[\"2010-06-02\",60],[\"2010-06-03\",432],[\"2010-06-04\",144],[\"2010-06-06\",48],[\"2010-06-07\",830],[\"2010-06-08\",3500],[\"2010-06-09\",384],[\"2010-06-10\",108],[\"2010-06-11\",216],[\"2010-06-13\",96],[\"2010-06-14\",120],[\"2010-06-15\",432],[\"2010-06-16\",200],[\"2010-06-17\",102],[\"2010-06-18\",60],[\"2010-06-20\",400],[\"2010-06-21\",24],[\"2010-06-22\",64],[\"2010-06-23\",720],[\"2010-06-24\",120],[\"2010-06-25\",96],[\"2010-06-27\",600],[\"2010-06-28\",720],[\"2010-06-29\",400],[\"2010-06-30\",720],[\"2010-07-01\",108],[\"2010-07-02\",3],[\"2010-07-04\",96],[\"2010-07-05\",200],[\"2010-07-06\",240],[\"2010-07-07\",144],[\"2010-07-08\",192],[\"2010-07-09\",18],[\"2010-07-12\",144],[\"2010-07-13\",128],[\"2010-07-14\",72],[\"2010-07-15\",816],[\"2010-07-16\",240],[\"2010-07-18\",288],[\"2010-07-19\",120],[\"2010-07-20\",96],[\"2010-07-21\",100],[\"2010-07-22\",72],[\"2010-07-23\",504],[\"2010-07-25\",500],[\"2010-07-26\",288],[\"2010-07-27\",432],[\"2010-07-28\",288],[\"2010-07-29\",124],[\"2010-07-30\",324],[\"2010-08-01\",12],[\"2010-08-02\",300],[\"2010-08-03\",2304],[\"2010-08-04\",25],[\"2010-08-05\",360],[\"2010-08-06\",192],[\"2010-08-08\",300],[\"2010-08-09\",200],[\"2010-08-10\",200],[\"2010-08-11\",216],[\"2010-08-12\",72],[\"2010-08-13\",312],[\"2010-08-15\",1200],[\"2010-08-16\",216],[\"2010-08-17\",288],[\"2010-08-18\",30],[\"2010-08-19\",720],[\"2010-08-20\",200],[\"2010-08-22\",100],[\"2010-08-23\",100],[\"2010-08-24\",720],[\"2010-08-25\",864],[\"2010-08-26\",400],[\"2010-08-27\",24],[\"2010-08-29\",48],[\"2010-08-31\",432],[\"2010-09-01\",72],[\"2010-09-02\",288],[\"2010-09-03\",7128],[\"2010-09-05\",144],[\"2010-09-06\",60],[\"2010-09-07\",288],[\"2010-09-08\",160],[\"2010-09-09\",60],[\"2010-09-10\",120],[\"2010-09-12\",480],[\"2010-09-13\",1056],[\"2010-09-14\",60],[\"2010-09-15\",96],[\"2010-09-16\",192],[\"2010-09-17\",288],[\"2010-09-19\",144],[\"2010-09-20\",768],[\"2010-09-21\",504],[\"2010-09-22\",216],[\"2010-09-23\",48],[\"2010-09-24\",60],[\"2010-09-26\",700],[\"2010-09-27\",768],[\"2010-09-28\",240],[\"2010-09-29\",100],[\"2010-09-30\",200],[\"2010-10-01\",96],[\"2010-10-03\",50],[\"2010-10-04\",720],[\"2010-10-05\",288],[\"2010-10-06\",1200],[\"2010-10-07\",200],[\"2010-10-08\",4752],[\"2010-10-10\",100],[\"2010-10-11\",192],[\"2010-10-12\",720],[\"2010-10-13\",576],[\"2010-10-14\",625],[\"2010-10-15\",216],[\"2010-10-17\",1],[\"2010-10-18\",200],[\"2010-10-19\",96],[\"2010-10-20\",200],[\"2010-10-21\",168],[\"2010-10-22\",1240],[\"2010-10-24\",256],[\"2010-10-25\",144],[\"2010-10-26\",600],[\"2010-10-27\",36],[\"2010-10-28\",144],[\"2010-10-29\",144],[\"2010-10-31\",96],[\"2010-11-01\",288],[\"2010-11-02\",160],[\"2010-11-03\",384],[\"2010-11-04\",9360],[\"2010-11-05\",1152],[\"2010-11-07\",100],[\"2010-11-08\",192],[\"2010-11-09\",360],[\"2010-11-10\",1000],[\"2010-11-11\",800],[\"2010-11-12\",800],[\"2010-11-14\",40],[\"2010-11-15\",288],[\"2010-11-16\",360],[\"2010-11-17\",720],[\"2010-11-18\",200],[\"2010-11-19\",960],[\"2010-11-21\",100],[\"2010-11-22\",144],[\"2010-11-23\",204],[\"2010-11-24\",288],[\"2010-11-25\",240],[\"2010-11-26\",192],[\"2010-11-28\",144],[\"2010-11-29\",288],[\"2010-11-30\",384],[\"2010-12-01\",600],[\"2010-12-02\",2880],[\"2010-12-03\",1440],[\"2010-12-05\",144],[\"2010-12-06\",480],[\"2010-12-07\",972],[\"2010-12-08\",384],[\"2010-12-09\",1394],[\"2010-12-10\",216],[\"2010-12-12\",48],[\"2010-12-13\",480],[\"2010-12-14\",288],[\"2010-12-15\",96],[\"2010-12-16\",500],[\"2010-12-17\",192],[\"2010-12-19\",6],[\"2010-12-20\",960],[\"2010-12-21\",100],[\"2010-12-22\",72],[\"2010-12-23\",48],[\"2011-01-04\",144],[\"2011-01-05\",600],[\"2011-01-06\",600],[\"2011-01-07\",600],[\"2011-01-09\",192],[\"2011-01-10\",144],[\"2011-01-11\",3114],[\"2011-01-12\",50],[\"2011-01-13\",288],[\"2011-01-14\",60],[\"2011-01-16\",16],[\"2011-01-17\",400],[\"2011-01-18\",50],[\"2011-01-19\",216],[\"2011-01-20\",144],[\"2011-01-21\",288],[\"2011-01-23\",24],[\"2011-01-24\",100],[\"2011-01-25\",192],[\"2011-01-26\",720],[\"2011-01-27\",72],[\"2011-01-28\",48],[\"2011-01-30\",20],[\"2011-01-31\",120],[\"2011-02-01\",130],[\"2011-02-02\",100],[\"2011-02-03\",2592],[\"2011-02-04\",432],[\"2011-02-07\",504],[\"2011-02-08\",216],[\"2011-02-09\",12],[\"2011-02-10\",1296],[\"2011-02-11\",100],[\"2011-02-13\",16],[\"2011-02-14\",288],[\"2011-02-15\",1500],[\"2011-02-16\",432],[\"2011-02-17\",288],[\"2011-02-18\",200],[\"2011-02-20\",250],[\"2011-02-21\",144],[\"2011-02-22\",192],[\"2011-02-23\",144],[\"2011-02-24\",72],[\"2011-02-25\",198],[\"2011-02-27\",40],[\"2011-02-28\",48],[\"2011-03-01\",192],[\"2011-03-02\",300],[\"2011-03-03\",288],[\"2011-03-04\",1200],[\"2011-03-06\",96],[\"2011-03-07\",576],[\"2011-03-08\",864],[\"2011-03-09\",600],[\"2011-03-10\",216],[\"2011-03-11\",300],[\"2011-03-14\",100],[\"2011-03-15\",160],[\"2011-03-16\",480],[\"2011-03-17\",720],[\"2011-03-18\",144],[\"2011-03-20\",2160],[\"2011-03-21\",100],[\"2011-03-22\",100],[\"2011-03-23\",200],[\"2011-03-24\",600],[\"2011-03-25\",432],[\"2011-03-27\",90],[\"2011-03-28\",150],[\"2011-03-29\",100],[\"2011-03-30\",600],[\"2011-03-31\",160],[\"2011-04-01\",1200],[\"2011-04-03\",288],[\"2011-04-04\",100],[\"2011-04-05\",500],[\"2011-04-06\",120],[\"2011-04-07\",96],[\"2011-04-08\",1200],[\"2011-04-10\",24],[\"2011-04-11\",200],[\"2011-04-12\",144],[\"2011-04-13\",1728],[\"2011-04-14\",600],[\"2011-04-15\",100],[\"2011-04-17\",40],[\"2011-04-18\",3114],[\"2011-04-19\",144],[\"2011-04-20\",960],[\"2011-04-21\",1008],[\"2011-04-26\",1200],[\"2011-04-27\",1200],[\"2011-04-28\",120],[\"2011-05-01\",48],[\"2011-05-03\",240],[\"2011-05-04\",288],[\"2011-05-05\",600],[\"2011-05-06\",108],[\"2011-05-08\",80],[\"2011-05-09\",128],[\"2011-05-10\",200],[\"2011-05-11\",240],[\"2011-05-12\",100],[\"2011-05-13\",336],[\"2011-05-15\",96],[\"2011-05-16\",144],[\"2011-05-17\",288],[\"2011-05-18\",144],[\"2011-05-19\",864],[\"2011-05-20\",576],[\"2011-05-22\",50],[\"2011-05-23\",2700],[\"2011-05-24\",888],[\"2011-05-25\",144],[\"2011-05-26\",200],[\"2011-05-27\",144],[\"2011-05-29\",130],[\"2011-05-31\",1152],[\"2011-06-01\",72],[\"2011-06-02\",320],[\"2011-06-03\",60],[\"2011-06-05\",288],[\"2011-06-06\",100],[\"2011-06-07\",216],[\"2011-06-08\",720],[\"2011-06-09\",144],[\"2011-06-10\",144],[\"2011-06-12\",6],[\"2011-06-13\",504],[\"2011-06-14\",660],[\"2011-06-15\",144],[\"2011-06-16\",288],[\"2011-06-17\",864],[\"2011-06-19\",150],[\"2011-06-20\",400],[\"2011-06-21\",72],[\"2011-06-22\",576],[\"2011-06-23\",48],[\"2011-06-24\",100],[\"2011-06-26\",24],[\"2011-06-27\",120],[\"2011-06-28\",320],[\"2011-06-29\",144],[\"2011-06-30\",828],[\"2011-07-01\",144],[\"2011-07-03\",90],[\"2011-07-04\",300],[\"2011-07-05\",720],[\"2011-07-06\",864],[\"2011-07-07\",1440],[\"2011-07-08\",200],[\"2011-07-10\",24],[\"2011-07-11\",576],[\"2011-07-12\",240],[\"2011-07-13\",192],[\"2011-07-14\",144],[\"2011-07-15\",160],[\"2011-07-17\",720],[\"2011-07-18\",48],[\"2011-07-19\",600],[\"2011-07-20\",432],[\"2011-07-21\",720],[\"2011-07-22\",144],[\"2011-07-24\",480],[\"2011-07-25\",192],[\"2011-07-26\",100],[\"2011-07-27\",576],[\"2011-07-28\",480],[\"2011-07-29\",100],[\"2011-07-31\",144],[\"2011-08-01\",360],[\"2011-08-02\",1000],[\"2011-08-03\",432],[\"2011-08-04\",1008],[\"2011-08-05\",240],[\"2011-08-07\",288],[\"2011-08-08\",700],[\"2011-08-09\",32],[\"2011-08-10\",60],[\"2011-08-11\",144],[\"2011-08-12\",144],[\"2011-08-14\",36],[\"2011-08-15\",192],[\"2011-08-16\",48],[\"2011-08-17\",824],[\"2011-08-18\",1200],[\"2011-08-19\",160],[\"2011-08-21\",200],[\"2011-08-22\",408],[\"2011-08-23\",600],[\"2011-08-24\",720],[\"2011-08-25\",96],[\"2011-08-26\",288],[\"2011-08-28\",96],[\"2011-08-30\",96],[\"2011-08-31\",120],[\"2011-09-01\",480],[\"2011-09-02\",840],[\"2011-09-04\",960],[\"2011-09-05\",480],[\"2011-09-06\",96],[\"2011-09-07\",144],[\"2011-09-08\",576],[\"2011-09-09\",72],[\"2011-09-11\",144],[\"2011-09-12\",216],[\"2011-09-13\",300],[\"2011-09-14\",600],[\"2011-09-15\",600],[\"2011-09-16\",500],[\"2011-09-18\",100],[\"2011-09-19\",100],[\"2011-09-20\",500],[\"2011-09-21\",200],[\"2011-09-22\",180],[\"2011-09-23\",288],[\"2011-09-25\",120],[\"2011-09-26\",144],[\"2011-09-27\",240],[\"2011-09-28\",500],[\"2011-09-29\",432],[\"2011-09-30\",216],[\"2011-10-02\",288],[\"2011-10-03\",960],[\"2011-10-04\",1540],[\"2011-10-05\",100],[\"2011-10-06\",480],[\"2011-10-07\",1296],[\"2011-10-09\",24],[\"2011-10-10\",100],[\"2011-10-11\",50],[\"2011-10-12\",72],[\"2011-10-13\",384],[\"2011-10-14\",96],[\"2011-10-17\",500],[\"2011-10-18\",396],[\"2011-10-19\",288],[\"2011-10-20\",144],[\"2011-10-21\",48],[\"2011-10-23\",2],[\"2011-10-24\",720],[\"2011-10-25\",1200],[\"2011-10-26\",384],[\"2011-10-27\",720],[\"2011-10-28\",480],[\"2011-10-30\",120],[\"2011-10-31\",144],[\"2011-11-01\",144],[\"2011-11-02\",864],[\"2011-11-03\",2100],[\"2011-11-04\",100],[\"2011-11-06\",48],[\"2011-11-07\",240],[\"2011-11-08\",192],[\"2011-11-09\",1200],[\"2011-11-10\",144],[\"2011-11-11\",576],[\"2011-11-13\",144],[\"2011-11-14\",150],[\"2011-11-15\",864],[\"2011-11-16\",200],[\"2011-11-17\",480],[\"2011-11-18\",300],[\"2011-11-20\",288],[\"2011-11-21\",192],[\"2011-11-22\",1600],[\"2011-11-23\",360],[\"2011-11-24\",288],[\"2011-11-25\",160],[\"2011-11-27\",12],[\"2011-11-28\",760],[\"2011-11-29\",288],[\"2011-11-30\",100],[\"2011-12-01\",288],[\"2011-12-02\",250],[\"2011-12-04\",120],[\"2011-12-05\",800],[\"2011-12-06\",200],[\"2011-12-07\",200],[\"2011-12-08\",144],[\"2011-12-09\",96]]","source":"online_retail_ii","split":"dev","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 = ? OR l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC","sql_parameters":"[\"Denmark\",4.77]","state":"{\"question\":\"Return the maximum of l.quantity for retail lines joined to their invoices where (i.country equals 'Denmark' or l.unit_price is at most 4.77), grouped by i.invoice_date, ordered by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}838{"category":"single_table/and/having","domain":"commerce","family_id":"fbd641e60b0777cfeba2bf1b","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"8a55bb66f85fdca29f5cc24abb9c3f11adc4376f2c418680dca9f5e9da1cdda9","language":"en","license":"CC-BY-4.0","query":"Return the average of quantity for retail invoice lines where (country equals 'Austria' and unit_price is at most 2.25), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Austria\\\",2.25,10],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Austria\\\",2.25],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Austria\\\",2.25,10],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[10],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","sql":"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3","sql_parameters":"[\"Austria\",2.25,10]","state":"{\"question\":\"Return the average of quantity for retail invoice lines where (country equals 'Austria' and unit_price is at most 2.25), 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\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}839{"category":"join/distinct_invoice/or/ranked","domain":"commerce","family_id":"75b56aad33b93349a2a0f818","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"828688c02d465b87ada4314ae0ff7760e2f5a5f37433398888603eba291643c2","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.country equals 'Cyprus' or l.unit_price is at most 4.77), grouped by i.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",4.77],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR l.unit_price <= ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",4.77],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND l.unit_price <= ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",4.77],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR l.unit_price <= ?) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",4.77],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR l.unit_price <= ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Canada\",1],[\"USA\",1],[\"Israel\",2]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR l.unit_price <= ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3","sql_parameters":"[\"Cyprus\",4.77]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.country equals 'Cyprus' or l.unit_price is at most 4.77), grouped by i.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}840{"category":"single_table/and/grouped","domain":"commerce","family_id":"94636e0acf4880fbce14c818","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"f9237edc3be591724b1d8a518a52037514af74c3d2d514a8eab8ec1bee7b3e01","language":"en","license":"CC-BY-4.0","query":"Return the sum of product_related for shopping sessions where (region equals 5 and traffic_type equals 14), grouped by visitor_type, ordered by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[5,14],\\\"sql\\\":\\\"SELECT visitor_type, SUM(product_related) AS value FROM shopping_sessions WHERE (region = ? AND traffic_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[5,14],\\\"sql\\\":\\\"SELECT visitor_type, SUM(product_related) AS value FROM shopping_sessions WHERE (region = ? OR traffic_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT visitor_type, SUM(product_related) AS value FROM shopping_sessions GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[5],\\\"sql\\\":\\\"SELECT visitor_type, SUM(product_related) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, SUM(product_related) AS value FROM shopping_sessions WHERE (region = ? AND traffic_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC","sql_parameters":"[5,14]","state":"{\"question\":\"Return the sum of product_related for shopping sessions where (region equals 5 and traffic_type equals 14), grouped by visitor_type, ordered by visitor_type ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}841{"category":"join/or/aggregate","domain":"commerce","family_id":"7cff13acfc3a32f923a621fa","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"b85dc7e18aac739f87e7854f324fff6650f033e52b5a43b901f26f23acf78c6e","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.quantity for retail lines joined to their invoices where (i.country equals 'Finland' or i.customer_id equals '12356').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Finland\\\",\\\"12356\\\"],\\\"sql\\\":\\\"SELECT SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND i.customer_id = ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Finland\\\",\\\"12356\\\"],\\\"sql\\\":\\\"SELECT SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR i.customer_id = ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Finland\\\",\\\"12356\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR i.customer_id = ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Finland\\\",\\\"12356\\\"],\\\"sql\\\":\\\"SELECT AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR i.customer_id = ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[2805]]","source":"online_retail_ii","split":"dev","sql":"SELECT SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR i.customer_id = ?)","sql_parameters":"[\"Finland\",\"12356\"]","state":"{\"question\":\"Return the sum of l.quantity for retail lines joined to their invoices where (i.country equals 'Finland' or i.customer_id equals '12356').\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}842{"category":"single_table/date/or/aggregate","domain":"commerce","family_id":"4fac18bc9b93c9cfe73adf65","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"4221a806335d72f0f37bb4c1632595fe37fd1379eeb71a4029fa4669da3a2421","language":"en","license":"CC-BY-4.0","query":"Return the sum of unit_price for retail invoice lines where (country equals 'Australia' or invoice_date is before '2011-09-29').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Australia\\\",\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Australia\\\",\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (country = ? OR invoice_date < ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Australia\\\",\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT SUM(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date < ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Australia\\\",\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT AVG(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date < ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[104065.79]]","source":"online_retail_ii","split":"dev","sql":"SELECT SUM(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date < ?)","sql_parameters":"[\"Australia\",\"2011-09-29\"]","state":"{\"question\":\"Return the sum of unit_price for retail invoice lines where (country equals 'Australia' or invoice_date is before '2011-09-29').\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}843{"category":"single_table/and/having","domain":"commerce","family_id":"8901a59a4b5f7c58f7142d0f","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"cdf341e80f76a95eb80d25014b2976b9c9f992e0b46645e7a23368b4bcb58d72","language":"en","license":"CC-BY-4.0","query":"Return the average of unit_price for retail invoice lines where (country equals 'EIRE' and unit_price is at most 4.77), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"EIRE\\\",4.77,2],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"EIRE\\\",4.77,2],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"EIRE\\\",4.77,2],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"EIRE\\\",4.77,2],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"EIRE\",1.927062937062937]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5","sql_parameters":"[\"EIRE\",4.77,2]","state":"{\"question\":\"Return the average of unit_price for retail invoice lines where (country equals 'EIRE' and unit_price is at most 4.77), 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_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}844{"category":"single_table/having","domain":"commerce","family_id":"13a213649b82d4d9247ed577","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"03ef0ad63f32156c9387e5cf497334a3bde149793d2346afacc7dea27bd9b817","language":"en","license":"CC-BY-4.0","query":"Return the minimum of administrative for shopping sessions where (traffic_type equals 14), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[14],\\\"sql\\\":\\\"SELECT revenue, MIN(administrative) AS value FROM shopping_sessions WHERE (traffic_type = ?) GROUP BY revenue ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[14,10],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (traffic_type = ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[14,10],\\\"sql\\\":\\\"SELECT revenue, MIN(administrative) AS value FROM shopping_sessions WHERE (traffic_type = ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[14,10],\\\"sql\\\":\\\"SELECT revenue, SUM(administrative) AS value FROM shopping_sessions WHERE (traffic_type = ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,0]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, MIN(administrative) AS value FROM shopping_sessions WHERE (traffic_type = ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3","sql_parameters":"[14,10]","state":"{\"question\":\"Return the minimum of administrative for shopping sessions where (traffic_type equals 14), 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\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}845{"category":"join/date/and/having","domain":"commerce","family_id":"c697c81f502b3a570fffc0e0","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"2ac69574dad0e10a059735140f5df0b3a1c1654021a5462eacd527134af23976","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.unit_price for retail lines joined to their invoices where (l.unit_price is at most 8.5 and i.invoice_date is on or after '2011-09-29'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[8.5,\\\"2011-09-29\\\",10],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.unit_price) 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 HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[8.5,\\\"2011-09-29\\\",10],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(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.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[8.5,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.unit_price) 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 value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[8.5,\\\"2011-09-29\\\",10],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.unit_price) 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 HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-10-02\",45.44],[\"2011-10-25\",50.6],[\"2011-11-13\",68.97]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.invoice_date, SUM(l.unit_price) 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 HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3","sql_parameters":"[8.5,\"2011-09-29\",10]","state":"{\"question\":\"Return the sum of l.unit_price for retail lines joined to their invoices where (l.unit_price is at most 8.5 and i.invoice_date is on or after '2011-09-29'), 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_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}846{"category":"single_table/and/ranked","domain":"commerce","family_id":"86f9ebaa9d087222c7aeac53","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"ad6892723f82284caed2c75625d025f6aa9deb67b833b8541497877b55ec6c6d","language":"en","license":"CC-BY-4.0","query":"Return the minimum of unit_price for retail invoice lines where (country equals 'Denmark' and quantity is at most 1800), grouped by country; return at most 5 groups ordered by aggregate value DESC, breaking ties by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Denmark\\\",1800],\\\"sql\\\":\\\"SELECT country, MIN(unit_price) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Denmark\\\",1800],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Denmark\\\",1800],\\\"sql\\\":\\\"SELECT country, MIN(unit_price) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Denmark\\\",1800],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Denmark\",0.72]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, MIN(unit_price) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5","sql_parameters":"[\"Denmark\",1800]","state":"{\"question\":\"Return the minimum of unit_price for retail invoice lines where (country equals 'Denmark' and 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\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}847{"category":"join/date/or/grouped","domain":"commerce","family_id":"8ca492959a2d9481491c47f9","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"6237cb5c4a8f0e4e080fc0d3b7ea63995673914751c65b9d7f83a5aeac625022","language":"en","license":"CC-BY-4.0","query":"Return the average of l.unit_price for retail lines joined to their invoices where (l.quantity is at most 648 or i.invoice_date is before '2010-07-14'), grouped by i.country, ordered by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[648,\\\"2010-07-14\\\"],\\\"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 ORDER BY i.country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[648,\\\"2010-07-14\\\"],\\\"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 <= ? AND i.invoice_date < ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[648,\\\"2010-07-14\\\"],\\\"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.invoice_date < ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[648,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT i.country, SUM(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 ORDER BY i.country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",2.9536170212765955],[\"Austria\",11.071666666666665],[\"Bahrain\",4.277272727272727],[\"Belgium\",7.979473684210525],[\"Canada\",0.998],[\"Channel Islands\",2.8654166666666665],[\"Cyprus\",3.615625],[\"Denmark\",6.1080000000000005],[\"EIRE\",22.85049751243781],[\"Finland\",11.211095890410958],[\"France\",4.98373949579832],[\"Germany\",7.925298651252409],[\"Israel\",5.36875],[\"Italy\",6.886666666666667],[\"Japan\",1.9694736842105265],[\"Netherlands\",5.356779661016949],[\"Norway\",58.2],[\"Poland\",8.031666666666666],[\"Portugal\",6.567619047619047],[\"Singapore\",1684.305],[\"Spain\",7.586666666666667],[\"Sweden\",5.294347826086956],[\"Switzerland\",9.49189189189189],[\"USA\",2.55],[\"United Arab Emirates\",134.0],[\"United Kingdom\",3.9433607175457395]]","source":"online_retail_ii","split":"dev","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 ORDER BY i.country ASC","sql_parameters":"[648,\"2010-07-14\"]","state":"{\"question\":\"Return the average of l.unit_price for retail lines joined to their invoices where (l.quantity is at most 648 or i.invoice_date is before '2010-07-14'), grouped by i.country, ordered by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}848{"category":"single_table/and/having","domain":"commerce","family_id":"8901a59a4b5f7c58f7142d0f","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"5dedf8a282b93eb5f64e8ca706d8095af5a05a6f62816c97bd3cd1ad7c407c97","language":"en","license":"CC-BY-4.0","query":"Return the average of unit_price for retail invoice lines where (country equals 'EIRE' and unit_price is at most 49.95), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"EIRE\\\",49.95,2],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"EIRE\\\",49.95,2],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"EIRE\\\",49.95,2],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"EIRE\\\",49.95,2],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"EIRE\",4.288730158730159]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5","sql_parameters":"[\"EIRE\",49.95,2]","state":"{\"question\":\"Return the average of unit_price for retail invoice lines where (country equals 'EIRE' and unit_price is at most 49.95), 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_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}849{"category":"join/distinct_invoice/or/ranked","domain":"commerce","family_id":"75b56aad33b93349a2a0f818","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"ed196434e3e54126b77f19e5263ab4992a914762bbbf61e29887fdcfc5ff0e56","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.country equals 'Belgium' or l.unit_price is at most 0.55), grouped by i.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Belgium\\\",0.55],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR l.unit_price <= ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Belgium\\\",0.55],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND l.unit_price <= ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Belgium\\\",0.55],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR l.unit_price <= ?) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Belgium\\\",0.55],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR l.unit_price <= ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Austria\",1],[\"Cyprus\",1],[\"Finland\",2]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR l.unit_price <= ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3","sql_parameters":"[\"Belgium\",0.55]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.country equals 'Belgium' or l.unit_price is at most 0.55), grouped by i.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}850{"category":"single_table/or/having","domain":"sensor","family_id":"5f48f8dc1b3e95b9cbc1d6fb","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"718ff6708484544d3d7f639f824d3dde07a5d8144d1f441222edc0916d4a8c00","language":"en","license":"CC-BY-4.0","query":"Return the maximum of fs1_mean for hydraulic cycles where (valve equals 100 or vs1_mean is greater than 0.56377), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[100,0.56377,2],\\\"sql\\\":\\\"SELECT cooler, MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (valve = ? OR vs1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[100,0.56377,2],\\\"sql\\\":\\\"SELECT cooler, MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (valve = ? AND vs1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[100,0.56377,2],\\\"sql\\\":\\\"SELECT cooler, MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (valve = ? OR vs1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value ASC, cooler ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[100,0.56377,2],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (valve = ? OR vs1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[100,6.72271],[3,6.72056],[20,6.69124]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (valve = ? OR vs1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5","sql_parameters":"[100,0.56377,2]","state":"{\"question\":\"Return the maximum of fs1_mean for hydraulic cycles where (valve equals 100 or vs1_mean is greater than 0.56377), 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_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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}851{"category":"single_table/having","domain":"sensor","family_id":"d5a1f95d0e32d61c565a5679","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"62968aed0cbd10ab39d55028f2d310223f5434e85b210896190e9ad8695a11ec","language":"en","license":"CC-BY-4.0","query":"Return the maximum of fs1_mean for hydraulic cycles where (ts1_mean is greater than 56.73035), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[56.73035,2],\\\"sql\\\":\\\"SELECT valve, MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean > ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[56.73035,2],\\\"sql\\\":\\\"SELECT valve, MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean > ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[56.73035,2],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (ts1_mean > ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[56.73035,2],\\\"sql\\\":\\\"SELECT valve, SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean > ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[90,6.58935],[100,6.58899],[80,6.57272],[73,6.54535]]","source":"hydraulic","split":"dev","sql":"SELECT valve, MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean > ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 5","sql_parameters":"[56.73035,2]","state":"{\"question\":\"Return the maximum of fs1_mean for hydraulic cycles where (ts1_mean is greater than 56.73035), 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\":{\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}852{"category":"single_table/and/grouped","domain":"sensor","family_id":"7f562a5596d8f5f9d40a413b","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"ea33f17bd5d6fb03ad3a3b0e1db02d1f245c3af2b62b3f25933160e5d7676439","language":"en","license":"CC-BY-4.0","query":"Return the sum of ps2_mean for hydraulic cycles where (eps1_mean is at most 2544.76 and vs1_mean is at most 0.64278), grouped by valve, ordered by valve ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2544.76,0.64278],\\\"sql\\\":\\\"SELECT valve, SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ? OR vs1_mean <= ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2544.76,0.64278],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ? AND vs1_mean <= ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2544.76,0.64278],\\\"sql\\\":\\\"SELECT valve, AVG(ps2_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ? AND vs1_mean <= ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2544.76,0.64278],\\\"sql\\\":\\\"SELECT valve, SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ? AND vs1_mean <= ?) GROUP BY valve ORDER BY valve ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[73,16975.65587],[80,17972.64446],[90,19066.92881],[100,71051.1237]]","source":"hydraulic","split":"dev","sql":"SELECT valve, SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ? AND vs1_mean <= ?) GROUP BY valve ORDER BY valve ASC","sql_parameters":"[2544.76,0.64278]","state":"{\"question\":\"Return the sum of ps2_mean for hydraulic cycles where (eps1_mean is at most 2544.76 and vs1_mean is at most 0.64278), 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\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}853{"category":"join/distinct_invoice/or/having","domain":"commerce","family_id":"15c572ce3db4c7da06741036","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"619078774a1f5ff8fc506e26ea1c0ba404a2d416631c70162b652e67484db5d3","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.quantity is at most 25 or l.unit_price is at most 8.5), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[25,8.5,10],\\\"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 <= ? AND l.unit_price <= ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[25,8.5],\\\"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 <= ? OR l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[25,8.5,10],\\\"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 <= ? OR l.unit_price <= ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[25,8.5,10],\\\"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 <= ? OR l.unit_price <= ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-01-17\",3],[\"2010-02-07\",3],[\"2010-03-28\",3]]","source":"online_retail_ii","split":"dev","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 <= ? OR l.unit_price <= ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3","sql_parameters":"[25,8.5,10]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.quantity is at most 25 or l.unit_price is at most 8.5), 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_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}854{"category":"single_table/and/aggregate","domain":"commerce","family_id":"63c0a301e82ec12d83ee0613","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"d411952dabbf7437974f469063e4d1098716ee1b713bed4e4ed7ba78060095ed","language":"en","license":"CC-BY-4.0","query":"Return the minimum of quantity for retail invoice lines where (country equals 'Belgium' and quantity is greater than 92).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Belgium\\\",92],\\\"sql\\\":\\\"SELECT MIN(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Belgium\\\",92],\\\"sql\\\":\\\"SELECT MIN(quantity) AS value FROM retail_lines WHERE (country = ? AND quantity > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Belgium\\\",92],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (country = ? AND quantity > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Belgium\\\",92],\\\"sql\\\":\\\"SELECT SUM(quantity) AS value FROM retail_lines WHERE (country = ? AND quantity > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[108]]","source":"online_retail_ii","split":"dev","sql":"SELECT MIN(quantity) AS value FROM retail_lines WHERE (country = ? AND quantity > ?)","sql_parameters":"[\"Belgium\",92]","state":"{\"question\":\"Return the minimum of quantity for retail invoice lines where (country equals 'Belgium' and quantity is greater than 92).\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}855{"category":"join/date/and/having","domain":"commerce","family_id":"211772f0e8e64621bea3343d","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"a37912babf84b9802cf598d7b08a2f8261324390bca2fa7b681b55ab73ce910a","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail lines joined to their invoices where (i.customer_id equals '12346' and i.invoice_date is before '2011-05-10'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12346\\\",\\\"2011-05-10\\\",10],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR i.invoice_date < ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12346\\\",\\\"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.customer_id = ? AND i.invoice_date < ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12346\\\",\\\"2011-05-10\\\",10],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? AND i.invoice_date < ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[10],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","sql":"SELECT i.invoice_date, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? AND i.invoice_date < ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3","sql_parameters":"[\"12346\",\"2011-05-10\",10]","state":"{\"question\":\"Return the number of rows for retail lines joined to their invoices where (i.customer_id equals '12346' and i.invoice_date is before '2011-05-10'), 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_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}856{"category":"single_table/and/having","domain":"sensor","family_id":"fbc994b5a7d195369994d642","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"3944bab3540704b916cbd66a3215496993e42ca9053e07f44cf73f5f0422e219","language":"en","license":"CC-BY-4.0","query":"Return the minimum of fs1_mean for hydraulic cycles where (ts1_mean is at most 56.73035 and vs1_mean is greater than 0.61133), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[56.73035,0.61133,2],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(fs1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? OR vs1_mean > ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[56.73035,0.61133,2],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(fs1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? AND vs1_mean > ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value ASC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[56.73035,0.61133,2],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? AND vs1_mean > ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[56.73035,0.61133,2],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(fs1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? AND vs1_mean > ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,2.13327],[1,2.07884],[2,2.01857]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, MIN(fs1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? AND vs1_mean > ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 5","sql_parameters":"[56.73035,0.61133,2]","state":"{\"question\":\"Return the minimum of fs1_mean for hydraulic cycles where (ts1_mean is at most 56.73035 and vs1_mean is greater than 0.61133), 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\":{\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}857{"category":"single_table/and/grouped","domain":"sensor","family_id":"952bff774fd93c2f56bf4725","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"07df5e84b3f73e047a1111d4434dacb6d9004d61bb500cd73e5e3a5128ae2198","language":"en","license":"CC-BY-4.0","query":"Return the minimum of ps2_mean for hydraulic cycles where (ps1_mean is at most 172.56377 and ps2_mean is at most 109.23171), grouped by valve, ordered by valve ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[172.56377,109.23171],\\\"sql\\\":\\\"SELECT valve, MIN(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? AND ps2_mean <= ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[172.56377,109.23171],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? AND ps2_mean <= ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[172.56377,109.23171],\\\"sql\\\":\\\"SELECT valve, SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? AND ps2_mean <= ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[172.56377,109.23171],\\\"sql\\\":\\\"SELECT valve, AVG(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? AND ps2_mean <= ?) GROUP BY valve ORDER BY valve ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[73,104.40631],[80,104.58879],[90,104.79758],[100,104.9733]]","source":"hydraulic","split":"dev","sql":"SELECT valve, MIN(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? AND ps2_mean <= ?) GROUP BY valve ORDER BY valve ASC","sql_parameters":"[172.56377,109.23171]","state":"{\"question\":\"Return the minimum of ps2_mean for hydraulic cycles where (ps1_mean is at most 172.56377 and ps2_mean is at most 109.23171), 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\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}858{"category":"single_table/or/ranked","domain":"sensor","family_id":"afca6ff7d58e91daf77d98df","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"752a8ddbff4a041697c7ede4e3d6b0ddcd8b45b6d74ea834fec3c41458caa2b4","language":"en","license":"CC-BY-4.0","query":"Return the maximum of ps1_mean for hydraulic cycles where (ps1_mean is greater than 156.56746 or eps1_mean is greater than 2598.8769), grouped by cooler; return at most 5 groups ordered by aggregate value DESC, breaking ties by cooler ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[156.56746,2598.8769],\\\"sql\\\":\\\"SELECT cooler, MAX(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? AND eps1_mean > ?) GROUP BY cooler ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[156.56746,2598.8769],\\\"sql\\\":\\\"SELECT cooler, MAX(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? OR eps1_mean > ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[156.56746,2598.8769],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? OR eps1_mean > ?) GROUP BY cooler ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[156.56746,2598.8769],\\\"sql\\\":\\\"SELECT cooler, MAX(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? OR eps1_mean > ?) GROUP BY cooler ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[3,180.92271],[100,161.40794],[20,159.25179]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, MAX(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? OR eps1_mean > ?) GROUP BY cooler ORDER BY value DESC, cooler ASC LIMIT 5","sql_parameters":"[156.56746,2598.8769]","state":"{\"question\":\"Return the maximum of ps1_mean for hydraulic cycles where (ps1_mean is greater than 156.56746 or eps1_mean is greater than 2598.8769), 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_mean\":\"REAL\",\"fs1_mean\":\"REAL\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}859{"category":"single_table/and/aggregate","domain":"commerce","family_id":"d41d42205bc4f8837ebd37c6","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"54278e6633b9c5fd5e3078bd97189cabca40c83ea0b972ce0cbe7cad11342d3a","language":"en","license":"CC-BY-4.0","query":"Return the sum of unit_price for retail invoice lines where (quantity is greater than 92 and unit_price is greater than 4.77).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[92,4.77],\\\"sql\\\":\\\"SELECT SUM(unit_price) AS value FROM retail_lines WHERE (quantity > ? OR unit_price > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[92,4.77],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (quantity > ? AND unit_price > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[92,4.77],\\\"sql\\\":\\\"SELECT SUM(unit_price) AS value FROM retail_lines WHERE (quantity > ? AND unit_price > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[92,4.77],\\\"sql\\\":\\\"SELECT AVG(unit_price) AS value FROM retail_lines WHERE (quantity > ? AND unit_price > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[505.05]]","source":"online_retail_ii","split":"dev","sql":"SELECT SUM(unit_price) AS value FROM retail_lines WHERE (quantity > ? AND unit_price > ?)","sql_parameters":"[92,4.77]","state":"{\"question\":\"Return the sum of unit_price for retail invoice lines where (quantity is greater than 92 and unit_price is greater than 4.77).\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}860{"category":"single_table/or/aggregate","domain":"sensor","family_id":"bf4eb24999304b23d7f8dfb3","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"8e6dab19bf808e4b5af8e347b5656b3bb54c9824ceb1d67f0f569eb68289078c","language":"en","license":"CC-BY-4.0","query":"Return the sum of ts1_mean for hydraulic cycles where (ts1_mean is at most 35.56605 or vs1_mean is at most 0.61133).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[35.56605,0.61133],\\\"sql\\\":\\\"SELECT SUM(ts1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? AND vs1_mean <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[35.56605,0.61133],\\\"sql\\\":\\\"SELECT SUM(ts1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? OR vs1_mean <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[35.56605,0.61133],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? OR vs1_mean <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[35.56605,0.61133],\\\"sql\\\":\\\"SELECT AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? OR vs1_mean <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[44514.10291]]","source":"hydraulic","split":"dev","sql":"SELECT SUM(ts1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? OR vs1_mean <= ?)","sql_parameters":"[35.56605,0.61133]","state":"{\"question\":\"Return the sum of ts1_mean for hydraulic cycles where (ts1_mean is at most 35.56605 or vs1_mean is at most 0.61133).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}861{"category":"single_table/ranked","domain":"commerce","family_id":"97a530f33fa84bec731817cb","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"9fcb1fc407e841c55d03eded5ca284395530ed214777954432437a07e6434cd3","language":"en","license":"CC-BY-4.0","query":"Return the sum of product_related for shopping sessions where (month equals 'May'), grouped by visitor_type; return at most 5 groups ordered by aggregate value DESC, breaking ties by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"May\\\"],\\\"sql\\\":\\\"SELECT visitor_type, SUM(product_related) AS value FROM shopping_sessions WHERE (month = ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"May\\\"],\\\"sql\\\":\\\"SELECT visitor_type, SUM(product_related) AS value FROM shopping_sessions WHERE (month = ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"May\\\"],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (month = ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"May\\\"],\\\"sql\\\":\\\"SELECT visitor_type, AVG(product_related) AS value FROM shopping_sessions WHERE (month = ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Returning_Visitor\",83372],[\"New_Visitor\",5733]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, SUM(product_related) AS value FROM shopping_sessions WHERE (month = ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5","sql_parameters":"[\"May\"]","state":"{\"question\":\"Return the sum of product_related for shopping sessions where (month equals 'May'), 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\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}862{"category":"single_table/and/ranked","domain":"sensor","family_id":"eb60778024318a66a004b5ca","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"f88a2b04ec28cd6a9d28f6cdaf384bd320af8e52da8d9ef97224b20d797deafd","language":"en","license":"CC-BY-4.0","query":"Return the sum of vs1_mean for hydraulic cycles where (fs1_mean is at most 6.68926 and vs1_mean is greater than 0.64278), grouped by valve; return at most 3 groups ordered by aggregate value ASC, breaking ties by valve ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[6.68926,0.64278],\\\"sql\\\":\\\"SELECT valve, SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? AND vs1_mean > ?) GROUP BY valve ORDER BY value ASC, valve ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[6.68926,0.64278],\\\"sql\\\":\\\"SELECT valve, SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? OR vs1_mean > ?) GROUP BY valve ORDER BY value ASC, valve ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[6.68926,0.64278],\\\"sql\\\":\\\"SELECT valve, SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? AND vs1_mean > ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[6.68926,0.64278],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? AND vs1_mean > ?) GROUP BY valve ORDER BY value ASC, valve ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[90,71.7077],[80,78.51426],[73,84.18087]]","source":"hydraulic","split":"dev","sql":"SELECT valve, SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? AND vs1_mean > ?) GROUP BY valve ORDER BY value ASC, valve ASC LIMIT 3","sql_parameters":"[6.68926,0.64278]","state":"{\"question\":\"Return the sum of vs1_mean for hydraulic cycles where (fs1_mean is at most 6.68926 and vs1_mean is greater than 0.64278), 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\":\"REAL\",\"fs1_mean\":\"REAL\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}863{"category":"single_table/or/grouped","domain":"commerce","family_id":"cd779062bf0bdd1927610428","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"80574cd21fb71299545c2f0191efa5a50432346bb20463348022a97aefba2b5a","language":"en","license":"CC-BY-4.0","query":"Return the sum of quantity for retail invoice lines where (country equals 'Bahrain' or quantity is at most 25), grouped by country, ordered by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Bahrain\\\",25],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Bahrain\\\",25],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Bahrain\\\",25],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Bahrain\\\",25],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?) GROUP BY country ORDER BY country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",393],[\"Austria\",181],[\"Bahrain\",97],[\"Belgium\",422],[\"Canada\",52],[\"Channel Islands\",82],[\"Cyprus\",66],[\"Denmark\",53],[\"EIRE\",1184],[\"Finland\",338],[\"France\",1552],[\"Germany\",3611],[\"Israel\",34],[\"Italy\",108],[\"Japan\",123],[\"Netherlands\",438],[\"Norway\",114],[\"Poland\",73],[\"Portugal\",129],[\"Singapore\",6],[\"Spain\",549],[\"Sweden\",486],[\"Switzerland\",143],[\"USA\",36],[\"United Arab Emirates\",2],[\"United Kingdom\",168862]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?) GROUP BY country ORDER BY country ASC","sql_parameters":"[\"Bahrain\",25]","state":"{\"question\":\"Return the sum of quantity for retail invoice lines where (country equals 'Bahrain' or quantity is at most 25), 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\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}864{"category":"single_table/having","domain":"sensor","family_id":"4db772e72f45542e7c5a7340","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"8a53ffc5dc600e4a525f4f9fb8eaff23e2ac9fe243c261f84becf491450f3621","language":"en","license":"CC-BY-4.0","query":"Return the maximum of ps2_mean for hydraulic cycles where (eps1_mean is at most 2598.8769), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2598.8769,10],\\\"sql\\\":\\\"SELECT cooler, MAX(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\\\":[2598.8769,10],\\\"sql\\\":\\\"SELECT cooler, MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2598.8769,10],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2598.8769,10],\\\"sql\\\":\\\"SELECT cooler, SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[20,108.02486],[100,109.8156],[3,123.44625]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value ASC, cooler ASC LIMIT 3","sql_parameters":"[2598.8769,10]","state":"{\"question\":\"Return the maximum of ps2_mean for hydraulic cycles where (eps1_mean is at most 2598.8769), 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\":\"INTEGER\",\"cooler\":\"INTEGER\",\"cycle_id\":\"INTEGER\",\"eps1_mean\":\"REAL\",\"fs1_mean\":\"REAL\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}865{"category":"single_table/date/aggregate","domain":"commerce","family_id":"36ec2a2feb3dae26804b0ff3","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"c4a8d7a2c347648a36803750c6fb8dce75ba12bd81c309b0250dd4720c6fdc6b","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (invoice_date is before '2011-05-10').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (invoice_date < ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT SUM(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT MAX(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT AVG(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[2382.92]]","source":"online_retail_ii","split":"dev","sql":"SELECT MAX(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?)","sql_parameters":"[\"2011-05-10\"]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines where (invoice_date is before '2011-05-10').\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}866{"category":"single_table/and/grouped","domain":"commerce","family_id":"94636e0acf4880fbce14c818","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"b560099941aa1a9f6e1cb231ad759e9d8000dcfea243ae7a93dd511a8d51b21f","language":"en","license":"CC-BY-4.0","query":"Return the sum of product_related for shopping sessions where (region equals 5 and traffic_type equals 11), grouped by visitor_type, ordered by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[5,11],\\\"sql\\\":\\\"SELECT visitor_type, SUM(product_related) AS value FROM shopping_sessions WHERE (region = ? OR traffic_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[5,11],\\\"sql\\\":\\\"SELECT visitor_type, SUM(product_related) AS value FROM shopping_sessions WHERE (region = ? AND traffic_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[5,11],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (region = ? AND traffic_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[5,11],\\\"sql\\\":\\\"SELECT visitor_type, AVG(product_related) AS value FROM shopping_sessions WHERE (region = ? AND traffic_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Returning_Visitor\",45]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, SUM(product_related) AS value FROM shopping_sessions WHERE (region = ? AND traffic_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC","sql_parameters":"[5,11]","state":"{\"question\":\"Return the sum of product_related for shopping sessions where (region equals 5 and traffic_type equals 11), grouped by visitor_type, ordered by visitor_type ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}867{"category":"single_table/grouped","domain":"sensor","family_id":"f5cbf085211a40711cf28a33","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"cc103e4a992705b635cac9e5dc7c1bd53caedea2b35dfbfbfe8e128faa0854ce","language":"en","license":"CC-BY-4.0","query":"Return the sum of fs1_mean for hydraulic cycles where (ts1_mean is at most 52.59775), grouped by pump_leakage, ordered by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[52.59775],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[52.59775],\\\"sql\\\":\\\"SELECT pump_leakage, AVG(fs1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[52.59775],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[52.59775],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(fs1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,5932.28434],[1,2124.41129],[2,2092.40867]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC","sql_parameters":"[52.59775]","state":"{\"question\":\"Return the sum of fs1_mean for hydraulic cycles where (ts1_mean is at most 52.59775), 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_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}868{"category":"single_table/aggregate","domain":"sensor","family_id":"f947567bb6a2588c1a399a40","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"f42d244bf5c21eb1f7e9f11a932f50c7b9bf2bda41626c6a6285661f152b5dd5","language":"en","license":"CC-BY-4.0","query":"Return the minimum of eps1_mean for hydraulic cycles where (fs1_mean is at most 6.63763).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[6.63763],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[6.63763],\\\"sql\\\":\\\"SELECT SUM(eps1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[6.63763],\\\"sql\\\":\\\"SELECT AVG(eps1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[6.63763],\\\"sql\\\":\\\"SELECT MIN(eps1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[2361.74727]]","source":"hydraulic","split":"dev","sql":"SELECT MIN(eps1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ?)","sql_parameters":"[6.63763]","state":"{\"question\":\"Return the minimum of eps1_mean for hydraulic cycles where (fs1_mean is at most 6.63763).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}869{"category":"join/distinct_invoice/and/ranked","domain":"commerce","family_id":"f44f497dad95dee6e37a00d5","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"2fd6ac8d978d50e2be2ee109c032cc83b0b0087a6c2f2af07c494cf5853a8d2e","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.customer_id equals '12346' and l.quantity is greater than 229), grouped by i.invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12346\\\",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 (i.customer_id = ? OR l.quantity > ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12346\\\",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 (i.customer_id = ? AND l.quantity > ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12346\\\"],\\\"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.customer_id = ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","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.customer_id = ? AND l.quantity > ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3","sql_parameters":"[\"12346\",229]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.customer_id equals '12346' and l.quantity is greater than 229), grouped by i.invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}870{"category":"single_table/date/or/ranked","domain":"commerce","family_id":"3ea16e195e0b094699690e57","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"548cec5ae2006ebeaad33d010ad9c19a5cfc4589256ade2bdac1e3225cbfaa1c","language":"en","license":"CC-BY-4.0","query":"Return the sum of unit_price for retail invoice lines where (country equals 'Australia' or invoice_date is on or after '2010-12-02'), grouped by country; return at most 3 groups ordered by aggregate value ASC, breaking ties by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Australia\\\",\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Australia\\\",\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date >= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Australia\\\",\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date >= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Australia\\\",\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? OR invoice_date >= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Canada\",4.99],[\"Bahrain\",24.299999999999997],[\"Japan\",28.22]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date >= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3","sql_parameters":"[\"Australia\",\"2010-12-02\"]","state":"{\"question\":\"Return the sum of unit_price for retail invoice lines where (country equals 'Australia' or invoice_date is on or after '2010-12-02'), 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\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}871{"category":"single_table/aggregate","domain":"commerce","family_id":"07067afeba82875bf8ea7ce7","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"746be0aa555257deda32e4a10b181962126c7d086fa022e13b6a4b0077557f71","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail invoice lines where (country equals 'Canada').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Canada\\\"],\\\"sql\\\":\\\"SELECT SUM(quantity) AS value FROM retail_lines WHERE (country = ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Canada\\\"],\\\"sql\\\":\\\"SELECT AVG(quantity) AS value FROM retail_lines WHERE (country = ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Canada\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (country = ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Canada\\\"],\\\"sql\\\":\\\"SELECT MIN(quantity) AS value FROM retail_lines WHERE (country = ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[5]]","source":"online_retail_ii","split":"dev","sql":"SELECT COUNT(*) AS value FROM retail_lines WHERE (country = ?)","sql_parameters":"[\"Canada\"]","state":"{\"question\":\"Return the number of rows for retail invoice lines where (country equals 'Canada').\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}872{"category":"single_table/date/or/ranked","domain":"commerce","family_id":"4042f40483f6bdf5af73b62f","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"75e9fd2436644665ca6b8b44b13e0ec1e248f31eaeb065ef4cc5a4a8a86771d7","language":"en","license":"CC-BY-4.0","query":"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; return at most 5 groups ordered by aggregate value DESC, breaking ties by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[229,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (quantity > ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"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 value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[229,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (quantity > ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[229,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (quantity > ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-05-18\",2500],[\"2010-01-27\",1440],[\"2010-04-19\",1440],[\"2010-12-03\",1440],[\"2011-03-20\",1296]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (quantity > ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5","sql_parameters":"[229,\"2011-05-10\"]","state":"{\"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; return at most 5 groups ordered by aggregate value DESC, breaking ties by invoice_date ascending.\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}873{"category":"join/distinct_invoice/date/and/ranked","domain":"commerce","family_id":"d93321cf521306c3b7a28c9a","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"0e4088d3da6e89dce3d47fc9a355de2c60a2ac3455adca66b9f12509b34d4609","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.quantity is at most 229 and i.invoice_date is on or after '2011-05-10'), grouped by i.country; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[229,\\\"2011-05-10\\\"],\\\"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.quantity <= ? OR i.invoice_date >= ?) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[229,\\\"2011-05-10\\\"],\\\"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.quantity <= ? AND i.invoice_date >= ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[229,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) 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 ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[229,\\\"2011-05-10\\\"],\\\"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.quantity <= ? AND i.invoice_date >= ?) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"United Kingdom\",2033],[\"Germany\",58],[\"France\",29],[\"EIRE\",25],[\"Finland\",12]]","source":"online_retail_ii","split":"dev","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.quantity <= ? AND i.invoice_date >= ?) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 5","sql_parameters":"[229,\"2011-05-10\"]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.quantity is at most 229 and i.invoice_date is on or after '2011-05-10'), grouped by i.country; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}874{"category":"single_table/aggregate","domain":"commerce","family_id":"ad8f5ca2b828cc0a6d5273ea","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"7e0dc2a4faa08baaf3c4beee266a56a59660661a94e474b724b38e5ac0c9c020","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (unit_price is greater than 4.77).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[4.77],\\\"sql\\\":\\\"SELECT MAX(unit_price) AS value FROM retail_lines WHERE (unit_price > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[4.77],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (unit_price > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[4.77],\\\"sql\\\":\\\"SELECT SUM(unit_price) AS value FROM retail_lines WHERE (unit_price > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[4.77],\\\"sql\\\":\\\"SELECT AVG(unit_price) AS value FROM retail_lines WHERE (unit_price > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[3949.32]]","source":"online_retail_ii","split":"dev","sql":"SELECT MAX(unit_price) AS value FROM retail_lines WHERE (unit_price > ?)","sql_parameters":"[4.77]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines where (unit_price is greater than 4.77).\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}875{"category":"single_table/or/aggregate","domain":"sensor","family_id":"21cb08ac0f717e836d6a62c8","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"60206a785716cdb88c51fbd8d6193f4e3809e8aacb310b71dd56d74d1687e335","language":"en","license":"CC-BY-4.0","query":"Return the average of fs1_mean for hydraulic cycles where (eps1_mean is at most 2398.143 or fs1_mean is greater than 6.68926).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2398.143,6.68926],\\\"sql\\\":\\\"SELECT AVG(fs1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ? OR fs1_mean > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2398.143,6.68926],\\\"sql\\\":\\\"SELECT AVG(fs1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ? AND fs1_mean > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2398.143,6.68926],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ? OR fs1_mean > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2398.143,6.68926],\\\"sql\\\":\\\"SELECT SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ? OR fs1_mean > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[6.626478488888889]]","source":"hydraulic","split":"dev","sql":"SELECT AVG(fs1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ? OR fs1_mean > ?)","sql_parameters":"[2398.143,6.68926]","state":"{\"question\":\"Return the average of fs1_mean for hydraulic cycles where (eps1_mean is at most 2398.143 or fs1_mean is greater than 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_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}876{"category":"join/aggregate","domain":"commerce","family_id":"b0051033e88ecd15ca1876f8","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"72c63db54863683224c8ff1e628be2a64253c008b42a4285670ea21f0a1ed149","language":"en","license":"CC-BY-4.0","query":"Return the average of l.unit_price for retail lines joined to their invoices where (l.quantity is greater than 92).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[92],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[92],\\\"sql\\\":\\\"SELECT AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[92],\\\"sql\\\":\\\"SELECT SUM(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[92],\\\"sql\\\":\\\"SELECT MIN(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1.5113282442748093]]","source":"online_retail_ii","split":"dev","sql":"SELECT AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ?)","sql_parameters":"[92]","state":"{\"question\":\"Return the average of l.unit_price for retail lines joined to their invoices where (l.quantity is greater than 92).\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}877{"category":"join/distinct_invoice/or/ranked","domain":"commerce","family_id":"2093f158d0815653ad9a69ce","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"4c672deeae90a0a13080112a121826855d2903ce20ff8d20c369580e656a54fb","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.customer_id equals '12364' or l.unit_price is at most 49.95), grouped by i.invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12364\\\",49.95],\\\"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.customer_id = ? AND l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12364\\\",49.95],\\\"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.customer_id = ? OR l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12364\\\",49.95],\\\"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.customer_id = ? OR l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12364\\\",49.95],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) 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 value ASC, i.invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-01-06\",1],[\"2010-01-18\",1],[\"2010-07-11\",1]]","source":"online_retail_ii","split":"dev","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.customer_id = ? OR l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3","sql_parameters":"[\"12364\",49.95]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.customer_id equals '12364' or l.unit_price is at most 49.95), grouped by i.invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}878{"category":"join/distinct_invoice/or/having","domain":"commerce","family_id":"5f54afd115fa7419ad938b6a","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"dcd11ac1e31a0743d1cfa21946dee075d5972ec2cf6cd071eac28492afd9fc39","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.quantity is greater than 229 or l.unit_price is greater than 4.77), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[229,4.77,10],\\\"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 > ? AND l.unit_price > ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[229,4.77,10],\\\"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 > ? OR l.unit_price > ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[229,4.77],\\\"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 > ? OR l.unit_price > ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[229,4.77,10],\\\"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 > ? OR l.unit_price > ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-02-01\",3],[\"2011-01-18\",3],[\"2011-03-27\",3]]","source":"online_retail_ii","split":"dev","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 > ? OR l.unit_price > ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3","sql_parameters":"[229,4.77,10]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.quantity is greater than 229 or l.unit_price is greater than 4.77), 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_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}879{"category":"single_table/or/ranked","domain":"commerce","family_id":"c628e5993b3c052b708d3b37","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"52e294ee8a496b6a499dbbce2538f7b4af897233ceaffee1a32cf305ebd64b93","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (country equals 'Canada' or 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Canada\\\",0.55],\\\"sql\\\":\\\"SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Canada\\\",0.55],\\\"sql\\\":\\\"SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Canada\\\",0.55],\\\"sql\\\":\\\"SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Canada\\\",0.55],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Canada\",1.25],[\"Austria\",0.55],[\"Germany\",0.55],[\"Netherlands\",0.55],[\"Sweden\",0.55]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5","sql_parameters":"[\"Canada\",0.55]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines where (country equals 'Canada' or 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\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}880{"category":"single_table/or/grouped","domain":"commerce","family_id":"a8b05b2cd9f61e40cc365b38","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"60bbe3942161331259663de481254fa55805299d7955644e15e61f219a55128b","language":"en","license":"CC-BY-4.0","query":"Return the minimum of unit_price for retail invoice lines where (quantity is at most 25 or unit_price is greater than 0.55), grouped by invoice_date, ordered by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[25,0.55],\\\"sql\\\":\\\"SELECT invoice_date, MIN(unit_price) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[25,0.55],\\\"sql\\\":\\\"SELECT invoice_date, MIN(unit_price) AS value FROM retail_lines WHERE (quantity <= ? AND unit_price > ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[25,0.55],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[25,0.55],\\\"sql\\\":\\\"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-01\",0.42],[\"2009-12-02\",0.42],[\"2009-12-03\",0.32],[\"2009-12-04\",0.29],[\"2009-12-05\",0.85],[\"2009-12-06\",0.42],[\"2009-12-07\",0.42],[\"2009-12-08\",0.65],[\"2009-12-09\",0.19],[\"2009-12-10\",0.79],[\"2009-12-11\",0.42],[\"2009-12-13\",0.42],[\"2009-12-14\",0.19],[\"2009-12-15\",0.42],[\"2009-12-16\",0.42],[\"2009-12-17\",0.29],[\"2009-12-18\",0.42],[\"2009-12-20\",0.42],[\"2009-12-21\",0.79],[\"2009-12-22\",0.42],[\"2009-12-23\",0.19],[\"2010-01-04\",0.42],[\"2010-01-05\",0.85],[\"2010-01-06\",1.25],[\"2010-01-07\",0.85],[\"2010-01-08\",0.65],[\"2010-01-10\",0.85],[\"2010-01-11\",0.42],[\"2010-01-12\",0.65],[\"2010-01-13\",0.85],[\"2010-01-14\",0.42],[\"2010-01-15\",0.55],[\"2010-01-17\",1.25],[\"2010-01-18\",0.42],[\"2010-01-19\",0.42],[\"2010-01-20\",0.55],[\"2010-01-21\",0.55],[\"2010-01-22\",0.95],[\"2010-01-24\",0.85],[\"2010-01-25\",0.85],[\"2010-01-26\",0.3],[\"2010-01-27\",0.64],[\"2010-01-28\",0.85],[\"2010-01-29\",0.65],[\"2010-01-31\",0.42],[\"2010-02-01\",0.42],[\"2010-02-02\",1.06],[\"2010-02-03\",0.85],[\"2010-02-04\",0.65],[\"2010-02-05\",0.42],[\"2010-02-07\",0.19],[\"2010-02-08\",0.42],[\"2010-02-09\",0.95],[\"2010-02-10\",0.42],[\"2010-02-11\",0.72],[\"2010-02-12\",0.65],[\"2010-02-14\",0.42],[\"2010-02-15\",0.55],[\"2010-02-16\",0.64],[\"2010-02-17\",0.42],[\"2010-02-18\",0.42],[\"2010-02-19\",0.72],[\"2010-02-21\",0.65],[\"2010-02-22\",0.42],[\"2010-02-23\",1.69],[\"2010-02-24\",0.72],[\"2010-02-25\",0.55],[\"2010-02-26\",0.42],[\"2010-02-28\",0.65],[\"2010-03-01\",0.19],[\"2010-03-02\",0.85],[\"2010-03-03\",0.16],[\"2010-03-04\",0.85],[\"2010-03-05\",0.21],[\"2010-03-07\",1.45],[\"2010-03-08\",0.2],[\"2010-03-09\",0.42],[\"2010-03-10\",0.29],[\"2010-03-11\",0.42],[\"2010-03-12\",0.55],[\"2010-03-14\",1.06],[\"2010-03-15\",0.12],[\"2010-03-16\",0.85],[\"2010-03-17\",0.72],[\"2010-03-18\",0.42],[\"2010-03-19\",0.42],[\"2010-03-21\",0.64],[\"2010-03-22\",1.25],[\"2010-03-23\",0.42],[\"2010-03-24\",0.72],[\"2010-03-25\",0.42],[\"2010-03-26\",0.65],[\"2010-03-28\",0.85],[\"2010-03-29\",0.72],[\"2010-03-30\",0.6],[\"2010-03-31\",0.42],[\"2010-04-01\",0.42],[\"2010-04-06\",0.85],[\"2010-04-07\",0.72],[\"2010-04-08\",0.42],[\"2010-04-09\",0.72],[\"2010-04-11\",0.55],[\"2010-04-12\",0.42],[\"2010-04-13\",0.85],[\"2010-04-14\",0.64],[\"2010-04-15\",0.95],[\"2010-04-16\",0.55],[\"2010-04-18\",0.85],[\"2010-04-19\",0.85],[\"2010-04-20\",0.64],[\"2010-04-21\",0.42],[\"2010-04-22\",0.55],[\"2010-04-23\",0.42],[\"2010-04-25\",1.05],[\"2010-04-26\",0.42],[\"2010-04-27\",0.42],[\"2010-04-28\",0.42],[\"2010-04-29\",0.64],[\"2010-04-30\",0.85],[\"2010-05-02\",0.42],[\"2010-05-04\",1.25],[\"2010-05-05\",0.42],[\"2010-05-06\",0.42],[\"2010-05-07\",0.42],[\"2010-05-09\",0.42],[\"2010-05-10\",0.42],[\"2010-05-11\",0.42],[\"2010-05-12\",0.42],[\"2010-05-13\",0.29],[\"2010-05-14\",0.19],[\"2010-05-16\",0.65],[\"2010-05-17\",0.85],[\"2010-05-18\",0.42],[\"2010-05-19\",0.55],[\"2010-05-20\",0.85],[\"2010-05-21\",1.25],[\"2010-05-23\",0.42],[\"2010-05-24\",0.29],[\"2010-05-25\",0.64],[\"2010-05-26\",0.64],[\"2010-05-27\",0.19],[\"2010-05-28\",0.42],[\"2010-05-30\",0.85],[\"2010-06-01\",0.42],[\"2010-06-02\",0.75],[\"2010-06-03\",0.42],[\"2010-06-04\",0.64],[\"2010-06-06\",0.55],[\"2010-06-07\",0.64],[\"2010-06-08\",0.85],[\"2010-06-09\",0.65],[\"2010-06-10\",0.42],[\"2010-06-11\",0.4],[\"2010-06-13\",0.42],[\"2010-06-14\",0.55],[\"2010-06-15\",0.64],[\"2010-06-16\",0.42],[\"2010-06-17\",0.42],[\"2010-06-18\",0.42],[\"2010-06-20\",0.72],[\"2010-06-21\",1.25],[\"2010-06-22\",0.42],[\"2010-06-23\",0.21],[\"2010-06-24\",0.55],[\"2010-06-25\",0.42],[\"2010-06-27\",0.42],[\"2010-06-28\",0.42],[\"2010-06-29\",0.42],[\"2010-06-30\",0.42],[\"2010-07-01\",0.85],[\"2010-07-02\",0.55],[\"2010-07-04\",0.72],[\"2010-07-05\",0.42],[\"2010-07-06\",0.42],[\"2010-07-07\",0.42],[\"2010-07-08\",0.65],[\"2010-07-09\",1.65],[\"2010-07-11\",8.5],[\"2010-07-12\",0.55],[\"2010-07-13\",0.72],[\"2010-07-14\",0.42],[\"2010-07-15\",0.42],[\"2010-07-16\",0.21],[\"2010-07-18\",0.72],[\"2010-07-19\",0.65],[\"2010-07-20\",0.65],[\"2010-07-21\",0.65],[\"2010-07-22\",0.14],[\"2010-07-23\",0.42],[\"2010-07-25\",0.42],[\"2010-07-26\",0.55],[\"2010-07-27\",0.42],[\"2010-07-28\",0.42],[\"2010-07-29\",0.65],[\"2010-07-30\",0.42],[\"2010-08-01\",0.85],[\"2010-08-02\",0.42],[\"2010-08-03\",0.72],[\"2010-08-04\",0.19],[\"2010-08-05\",0.42],[\"2010-08-06\",0.72],[\"2010-08-08\",0.85],[\"2010-08-09\",0.38],[\"2010-08-10\",1.06],[\"2010-08-11\",0.14],[\"2010-08-12\",0.65],[\"2010-08-13\",0.42],[\"2010-08-15\",0.42],[\"2010-08-16\",1.25],[\"2010-08-17\",0.42],[\"2010-08-18\",0.16],[\"2010-08-19\",0.29],[\"2010-08-20\",0.85],[\"2010-08-22\",0.85],[\"2010-08-23\",0.42],[\"2010-08-24\",0.65],[\"2010-08-25\",0.19],[\"2010-08-26\",0.64],[\"2010-08-27\",0.42],[\"2010-08-29\",0.42],[\"2010-08-31\",0.38],[\"2010-09-01\",0.55],[\"2010-09-02\",0.55],[\"2010-09-03\",0.42],[\"2010-09-05\",0.55],[\"2010-09-06\",0.85],[\"2010-09-07\",0.42],[\"2010-09-08\",0.42],[\"2010-09-09\",0.85],[\"2010-09-10\",1.25],[\"2010-09-12\",0.85],[\"2010-09-13\",0.36],[\"2010-09-14\",0.29],[\"2010-09-15\",0.55],[\"2010-09-16\",0.42],[\"2010-09-17\",0.38],[\"2010-09-19\",0.85],[\"2010-09-20\",0.55],[\"2010-09-21\",0.55],[\"2010-09-22\",0.85],[\"2010-09-23\",1.25],[\"2010-09-24\",0.85],[\"2010-09-26\",0.29],[\"2010-09-27\",0.85],[\"2010-09-28\",0.42],[\"2010-09-29\",0.55],[\"2010-09-30\",0.42],[\"2010-10-01\",0.85],[\"2010-10-03\",0.85],[\"2010-10-04\",0.65],[\"2010-10-05\",0.19],[\"2010-10-06\",0.42],[\"2010-10-07\",0.85],[\"2010-10-08\",0.42],[\"2010-10-10\",0.42],[\"2010-10-11\",0.29],[\"2010-10-12\",0.32],[\"2010-10-13\",0.29],[\"2010-10-14\",0.29],[\"2010-10-15\",0.16],[\"2010-10-17\",1.69],[\"2010-10-18\",0.29],[\"2010-10-19\",0.19],[\"2010-10-20\",0.42],[\"2010-10-21\",0.55],[\"2010-10-22\",0.72],[\"2010-10-24\",0.3],[\"2010-10-25\",0.29],[\"2010-10-26\",0.42],[\"2010-10-27\",0.85],[\"2010-10-28\",0.55],[\"2010-10-29\",0.42],[\"2010-10-31\",0.85],[\"2010-11-01\",0.42],[\"2010-11-02\",0.42],[\"2010-11-03\",0.42],[\"2010-11-04\",0.29],[\"2010-11-05\",0.42],[\"2010-11-07\",0.42],[\"2010-11-08\",0.72],[\"2010-11-09\",0.42],[\"2010-11-10\",0.55],[\"2010-11-11\",0.65],[\"2010-11-12\",0.42],[\"2010-11-14\",0.85],[\"2010-11-15\",0.42],[\"2010-11-16\",0.29],[\"2010-11-17\",0.29],[\"2010-11-18\",0.42],[\"2010-11-19\",0.42],[\"2010-11-21\",0.85],[\"2010-11-22\",0.42],[\"2010-11-23\",0.21],[\"2010-11-24\",0.29],[\"2010-11-25\",0.42],[\"2010-11-26\",0.72],[\"2010-11-28\",0.29],[\"2010-11-29\",0.42],[\"2010-11-30\",0.42],[\"2010-12-01\",0.29],[\"2010-12-02\",0.42],[\"2010-12-03\",0.85],[\"2010-12-05\",0.65],[\"2010-12-06\",0.42],[\"2010-12-07\",0.65],[\"2010-12-08\",0.42],[\"2010-12-09\",0.42],[\"2010-12-10\",0.42],[\"2010-12-12\",0.85],[\"2010-12-13\",0.75],[\"2010-12-14\",0.42],[\"2010-12-15\",0.65],[\"2010-12-16\",0.29],[\"2010-12-17\",0.29],[\"2010-12-19\",0.85],[\"2010-12-20\",0.42],[\"2010-12-21\",0.85],[\"2010-12-22\",0.42],[\"2010-12-23\",1.05],[\"2011-01-04\",0.72],[\"2011-01-05\",0.42],[\"2011-01-06\",0.42],[\"2011-01-07\",0.72],[\"2011-01-09\",0.65],[\"2011-01-10\",1.06],[\"2011-01-11\",0.64],[\"2011-01-12\",0.36],[\"2011-01-13\",0.65],[\"2011-01-14\",0.85],[\"2011-01-16\",3.39],[\"2011-01-17\",0.42],[\"2011-01-18\",0.65],[\"2011-01-19\",1.06],[\"2011-01-20\",0.85],[\"2011-01-21\",0.64],[\"2011-01-23\",0.42],[\"2011-01-24\",0.42],[\"2011-01-25\",0.55],[\"2011-01-26\",0.55],[\"2011-01-27\",0.85],[\"2011-01-28\",0.42],[\"2011-01-30\",0.95],[\"2011-01-31\",0.65],[\"2011-02-01\",0.42],[\"2011-02-02\",0.42],[\"2011-02-03\",0.85],[\"2011-02-04\",0.65],[\"2011-02-07\",1.06],[\"2011-02-08\",0.85],[\"2011-02-09\",0.85],[\"2011-02-10\",0.64],[\"2011-02-11\",0.32],[\"2011-02-13\",1.69],[\"2011-02-14\",0.72],[\"2011-02-15\",0.42],[\"2011-02-16\",0.42],[\"2011-02-17\",0.65],[\"2011-02-18\",0.42],[\"2011-02-20\",1.65],[\"2011-02-21\",1.25],[\"2011-02-22\",0.42],[\"2011-02-23\",0.42],[\"2011-02-24\",0.42],[\"2011-02-25\",0.42],[\"2011-02-27\",0.65],[\"2011-02-28\",0.65],[\"2011-03-01\",0.42],[\"2011-03-02\",0.85],[\"2011-03-03\",0.42],[\"2011-03-04\",0.85],[\"2011-03-06\",0.42],[\"2011-03-07\",0.42],[\"2011-03-08\",1.06],[\"2011-03-09\",0.42],[\"2011-03-10\",0.39],[\"2011-03-11\",0.42],[\"2011-03-14\",0.72],[\"2011-03-15\",0.42],[\"2011-03-16\",0.85],[\"2011-03-17\",0.42],[\"2011-03-18\",0.42],[\"2011-03-20\",0.65],[\"2011-03-21\",0.42],[\"2011-03-22\",0.72],[\"2011-03-23\",0.65],[\"2011-03-24\",0.29],[\"2011-03-25\",0.65],[\"2011-03-27\",0.14],[\"2011-03-28\",0.21],[\"2011-03-29\",0.29],[\"2011-03-30\",0.42],[\"2011-03-31\",0.42],[\"2011-04-01\",0.42],[\"2011-04-03\",0.72],[\"2011-04-04\",0.21],[\"2011-04-05\",0.85],[\"2011-04-06\",0.65],[\"2011-04-07\",0.38],[\"2011-04-08\",0.39],[\"2011-04-10\",1.25],[\"2011-04-11\",0.72],[\"2011-04-12\",0.85],[\"2011-04-13\",0.65],[\"2011-04-14\",0.39],[\"2011-04-15\",1.25],[\"2011-04-17\",0.85],[\"2011-04-18\",0.42],[\"2011-04-19\",0.39],[\"2011-04-20\",0.36],[\"2011-04-21\",0.19],[\"2011-04-26\",0.55],[\"2011-04-27\",0.65],[\"2011-04-28\",0.42],[\"2011-05-01\",1.25],[\"2011-05-03\",0.42],[\"2011-05-04\",0.42],[\"2011-05-05\",0.55],[\"2011-05-06\",0.65],[\"2011-05-08\",0.55],[\"2011-05-09\",0.65],[\"2011-05-10\",0.14],[\"2011-05-11\",0.42],[\"2011-05-12\",0.65],[\"2011-05-13\",0.39],[\"2011-05-15\",1.06],[\"2011-05-16\",0.83],[\"2011-05-17\",0.42],[\"2011-05-18\",0.42],[\"2011-05-19\",0.55],[\"2011-05-20\",0.72],[\"2011-05-22\",0.39],[\"2011-05-23\",0.65],[\"2011-05-24\",0.42],[\"2011-05-25\",0.42],[\"2011-05-26\",0.42],[\"2011-05-27\",0.55],[\"2011-05-29\",0.21],[\"2011-05-31\",0.29],[\"2011-06-01\",0.19],[\"2011-06-02\",0.42],[\"2011-06-03\",0.39],[\"2011-06-05\",0.42],[\"2011-06-06\",0.42],[\"2011-06-07\",0.42],[\"2011-06-08\",0.32],[\"2011-06-09\",0.55],[\"2011-06-10\",0.83],[\"2011-06-12\",1.65],[\"2011-06-13\",0.14],[\"2011-06-14\",0.42],[\"2011-06-15\",0.75],[\"2011-06-16\",0.28],[\"2011-06-17\",0.42],[\"2011-06-19\",0.29],[\"2011-06-20\",0.42],[\"2011-06-21\",0.29],[\"2011-06-22\",0.39],[\"2011-06-23\",0.39],[\"2011-06-24\",0.39],[\"2011-06-26\",1.25],[\"2011-06-27\",0.29],[\"2011-06-28\",0.55],[\"2011-06-29\",0.19],[\"2011-06-30\",0.62],[\"2011-07-01\",0.55],[\"2011-07-03\",1.25],[\"2011-07-04\",0.42],[\"2011-07-05\",0.42],[\"2011-07-06\",0.29],[\"2011-07-07\",0.39],[\"2011-07-08\",1.25],[\"2011-07-10\",0.29],[\"2011-07-11\",0.29],[\"2011-07-12\",0.19],[\"2011-07-13\",0.19],[\"2011-07-14\",0.85],[\"2011-07-15\",0.19],[\"2011-07-17\",0.83],[\"2011-07-18\",0.42],[\"2011-07-19\",0.42],[\"2011-07-20\",0.35],[\"2011-07-21\",0.19],[\"2011-07-22\",0.39],[\"2011-07-24\",0.39],[\"2011-07-25\",0.21],[\"2011-07-26\",0.42],[\"2011-07-27\",0.65],[\"2011-07-28\",0.42],[\"2011-07-29\",0.39],[\"2011-07-31\",1.06],[\"2011-08-01\",0.42],[\"2011-08-02\",0.64],[\"2011-08-03\",0.65],[\"2011-08-04\",0.29],[\"2011-08-05\",0.42],[\"2011-08-07\",0.29],[\"2011-08-08\",0.42],[\"2011-08-09\",0.65],[\"2011-08-10\",0.29],[\"2011-08-11\",0.39],[\"2011-08-12\",0.72],[\"2011-08-14\",1.25],[\"2011-08-15\",0.42],[\"2011-08-16\",0.42],[\"2011-08-17\",0.55],[\"2011-08-18\",0.42],[\"2011-08-19\",0.42],[\"2011-08-21\",0.42],[\"2011-08-22\",0.65],[\"2011-08-23\",0.79],[\"2011-08-24\",0.29],[\"2011-08-25\",0.63],[\"2011-08-26\",0.79],[\"2011-08-28\",0.42],[\"2011-08-30\",0.42],[\"2011-08-31\",1.79],[\"2011-09-01\",0.72],[\"2011-09-02\",0.14],[\"2011-09-04\",0.55],[\"2011-09-05\",0.72],[\"2011-09-06\",0.63],[\"2011-09-07\",0.39],[\"2011-09-08\",0.39],[\"2011-09-09\",0.62],[\"2011-09-11\",0.65],[\"2011-09-12\",0.29],[\"2011-09-13\",0.65],[\"2011-09-14\",0.39],[\"2011-09-15\",0.65],[\"2011-09-16\",0.75],[\"2011-09-18\",0.39],[\"2011-09-19\",0.42],[\"2011-09-20\",0.29],[\"2011-09-21\",0.42],[\"2011-09-22\",0.42],[\"2011-09-23\",0.29],[\"2011-09-25\",1.06],[\"2011-09-26\",0.19],[\"2011-09-27\",0.39],[\"2011-09-28\",1.04],[\"2011-09-29\",0.42],[\"2011-09-30\",0.19],[\"2011-10-02\",1.25],[\"2011-10-03\",0.38],[\"2011-10-04\",0.65],[\"2011-10-05\",0.55],[\"2011-10-06\",0.39],[\"2011-10-07\",0.42],[\"2011-10-09\",1.45],[\"2011-10-10\",0.21],[\"2011-10-11\",0.19],[\"2011-10-12\",0.29],[\"2011-10-13\",0.39],[\"2011-10-14\",0.19],[\"2011-10-17\",0.55],[\"2011-10-18\",0.38],[\"2011-10-19\",0.39],[\"2011-10-20\",0.39],[\"2011-10-21\",0.65],[\"2011-10-23\",0.39],[\"2011-10-24\",0.12],[\"2011-10-25\",0.39],[\"2011-10-26\",0.42],[\"2011-10-27\",0.65],[\"2011-10-28\",0.29],[\"2011-10-30\",0.12],[\"2011-10-31\",0.39],[\"2011-11-01\",0.39],[\"2011-11-02\",0.58],[\"2011-11-03\",0.42],[\"2011-11-04\",0.29],[\"2011-11-06\",0.83],[\"2011-11-07\",0.39],[\"2011-11-08\",0.82],[\"2011-11-09\",0.29],[\"2011-11-10\",0.39],[\"2011-11-11\",0.39],[\"2011-11-13\",0.85],[\"2011-11-14\",0.29],[\"2011-11-15\",0.39],[\"2011-11-16\",0.29],[\"2011-11-17\",0.39],[\"2011-11-18\",0.42],[\"2011-11-20\",0.29],[\"2011-11-21\",0.29],[\"2011-11-22\",0.2],[\"2011-11-23\",0.42],[\"2011-11-24\",0.29],[\"2011-11-25\",0.65],[\"2011-11-27\",1.45],[\"2011-11-28\",0.42],[\"2011-11-29\",0.39],[\"2011-11-30\",0.29],[\"2011-12-01\",0.19],[\"2011-12-02\",0.19],[\"2011-12-04\",0.42],[\"2011-12-05\",0.39],[\"2011-12-06\",0.42],[\"2011-12-07\",0.42],[\"2011-12-08\",0.39],[\"2011-12-09\",0.72]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MIN(unit_price) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?) GROUP BY invoice_date ORDER BY invoice_date ASC","sql_parameters":"[25,0.55]","state":"{\"question\":\"Return the minimum of unit_price for retail invoice lines where (quantity is at most 25 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\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}881{"category":"single_table/grouped","domain":"sensor","family_id":"9704463a0cf055c718b666fe","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"c4d67cdc34d0dbd619083de34f790b4dd075d2e697226e422e9d2daa4a0bf058","language":"en","license":"CC-BY-4.0","query":"Return the maximum of fs1_mean for hydraulic cycles where (cooler equals 3), grouped by cooler, ordered by cooler ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[3],\\\"sql\\\":\\\"SELECT cooler, MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[3],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (cooler = ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[3],\\\"sql\\\":\\\"SELECT cooler, SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[3],\\\"sql\\\":\\\"SELECT cooler, AVG(fs1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[3,6.72056]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ?) GROUP BY cooler ORDER BY cooler ASC","sql_parameters":"[3]","state":"{\"question\":\"Return the maximum of fs1_mean for hydraulic cycles where (cooler equals 3), grouped by cooler, ordered by cooler ascending.\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}882{"category":"single_table/grouped","domain":"commerce","family_id":"7abd88a5efff5dfe7d0cea63","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"0b4ee65e0260ebea1b08024c71f3002372dfe51e2ff29cd120c92dd7b7b35f55","language":"en","license":"CC-BY-4.0","query":"Return the sum of product_duration for shopping sessions where (product_related is at most 93), grouped by month, ordered by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[93],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (product_related <= ?) GROUP BY month ORDER BY month ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[93],\\\"sql\\\":\\\"SELECT month, AVG(product_duration) AS value FROM shopping_sessions WHERE (product_related <= ?) GROUP BY month ORDER BY month ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[93],\\\"sql\\\":\\\"SELECT month, SUM(product_duration) AS value FROM shopping_sessions WHERE (product_related <= ?) GROUP BY month ORDER BY month ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[93],\\\"sql\\\":\\\"SELECT month, MIN(product_duration) AS value FROM shopping_sessions WHERE (product_related <= ?) GROUP BY month ORDER BY month ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Aug\",335606.46402546],[\"Dec\",1393618.6916675],[\"Feb\",81604.481343867],[\"Jul\",312098.0533072],[\"June\",181946.30811713001],[\"Mar\",1424659.207287353],[\"May\",2645065.648437513],[\"Nov\",2762414.80533042],[\"Oct\",441443.40002755],[\"Sep\",396129.86669564]]","source":"online_shoppers","split":"dev","sql":"SELECT month, SUM(product_duration) AS value FROM shopping_sessions WHERE (product_related <= ?) GROUP BY month ORDER BY month ASC","sql_parameters":"[93]","state":"{\"question\":\"Return the sum of product_duration for shopping sessions where (product_related is at most 93), grouped by month, ordered by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}883{"category":"join/distinct_invoice/and/ranked","domain":"commerce","family_id":"740c94a8bd2dfbc7b4b30d89","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"c616e59a86369a22aafd74495e6ed0e0d04bd55686e1f4e209240297ec68ef66","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.customer_id equals '12359' and l.quantity is greater than 1800), grouped by i.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12359\\\",1800],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR l.quantity > ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12359\\\",1800],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? AND l.quantity > ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12359\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? AND l.quantity > ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3","sql_parameters":"[\"12359\",1800]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.customer_id equals '12359' and l.quantity is greater than 1800), grouped by i.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}884{"category":"single_table/date/or/aggregate","domain":"commerce","family_id":"4fac18bc9b93c9cfe73adf65","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"a05157d416cbceca51e0e8c7287787dfaf44648113e1ce6f5289a9971b2539ee","language":"en","license":"CC-BY-4.0","query":"Return the sum of unit_price for retail invoice lines where (country equals 'EIRE' or invoice_date is before '2011-05-10').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"EIRE\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT SUM(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date < ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"EIRE\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"EIRE\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (country = ? OR invoice_date < ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"EIRE\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT AVG(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date < ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[86455.05]]","source":"online_retail_ii","split":"dev","sql":"SELECT SUM(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date < ?)","sql_parameters":"[\"EIRE\",\"2011-05-10\"]","state":"{\"question\":\"Return the sum of unit_price for retail invoice lines where (country equals 'EIRE' or invoice_date is before '2011-05-10').\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}885{"category":"single_table/grouped","domain":"commerce","family_id":"b7cbf5683362404cfa8694b4","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"664ddc4e1721598b143abbae86862305b061a91a433fd343c993df7266e476d3","language":"en","license":"CC-BY-4.0","query":"Return the minimum of product_duration for shopping sessions where (product_duration is at most 167.5), grouped by visitor_type, ordered by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[167.5],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (product_duration <= ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[167.5],\\\"sql\\\":\\\"SELECT visitor_type, SUM(product_duration) AS value FROM shopping_sessions WHERE (product_duration <= ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[167.5],\\\"sql\\\":\\\"SELECT visitor_type, MIN(product_duration) AS value FROM shopping_sessions WHERE (product_duration <= ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[167.5],\\\"sql\\\":\\\"SELECT visitor_type, AVG(product_duration) AS value FROM shopping_sessions WHERE (product_duration <= ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"New_Visitor\",0.0],[\"Other\",0.0],[\"Returning_Visitor\",0.0]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, MIN(product_duration) AS value FROM shopping_sessions WHERE (product_duration <= ?) GROUP BY visitor_type ORDER BY visitor_type ASC","sql_parameters":"[167.5]","state":"{\"question\":\"Return the minimum of product_duration for shopping sessions where (product_duration is at most 167.5), grouped by visitor_type, ordered by visitor_type ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}886{"category":"single_table/and/aggregate","domain":"commerce","family_id":"1f74ab2d4fe86f641627b5b4","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"b63271c7ecb7486c820b78cc2856eccf7bc45944f1456fcb17839ced5efbfe77","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (country equals 'Belgium' and unit_price is at most 8.5).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Belgium\\\",8.5],\\\"sql\\\":\\\"SELECT MAX(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Belgium\\\",8.5],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Belgium\\\",8.5],\\\"sql\\\":\\\"SELECT SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Belgium\\\",8.5],\\\"sql\\\":\\\"SELECT MAX(unit_price) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[8.5]]","source":"online_retail_ii","split":"dev","sql":"SELECT MAX(unit_price) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?)","sql_parameters":"[\"Belgium\",8.5]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines where (country equals 'Belgium' and unit_price is at most 8.5).\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}887{"category":"single_table/or/aggregate","domain":"sensor","family_id":"62f3dd0b69080a8ec123529a","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"795e7e44f6f099bba6edbf0655f1dae2a3cf379475a711ccc24ee1ac38fa8711","language":"en","license":"CC-BY-4.0","query":"Return the sum of fs1_mean for hydraulic cycles where (accumulator equals 90 or fs1_mean is greater than 6.57291).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[90,6.57291],\\\"sql\\\":\\\"SELECT SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ? OR fs1_mean > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[90,6.57291],\\\"sql\\\":\\\"SELECT SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ? AND fs1_mean > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[90,6.57291],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (accumulator = ? OR fs1_mean > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[90,6.57291],\\\"sql\\\":\\\"SELECT AVG(fs1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ? OR fs1_mean > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[9056.06113]]","source":"hydraulic","split":"dev","sql":"SELECT SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ? OR fs1_mean > ?)","sql_parameters":"[90,6.57291]","state":"{\"question\":\"Return the sum of fs1_mean for hydraulic cycles where (accumulator equals 90 or 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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}888{"category":"single_table/grouped","domain":"sensor","family_id":"db1272f622579f5173ea73bd","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"7ecfb1a5c4f682d911ebab93e04bc4beef899fd6cddb3c61bb3cde12d348118b","language":"en","license":"CC-BY-4.0","query":"Return the average of ts1_mean for hydraulic cycles where (ts1_mean is greater than 35.56605), grouped by valve, ordered by valve ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[35.56605],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (ts1_mean > ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[35.56605],\\\"sql\\\":\\\"SELECT valve, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean > ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[35.56605],\\\"sql\\\":\\\"SELECT valve, SUM(ts1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean > ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[35.56605],\\\"sql\\\":\\\"SELECT valve, MIN(ts1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean > ?) GROUP BY valve ORDER BY valve ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[73,45.74290452247191],[80,45.93679868571429],[90,45.96366005714286],[100,47.303350075593954]]","source":"hydraulic","split":"dev","sql":"SELECT valve, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean > ?) GROUP BY valve ORDER BY valve ASC","sql_parameters":"[35.56605]","state":"{\"question\":\"Return the average of ts1_mean for hydraulic cycles where (ts1_mean is greater than 35.56605), 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\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}889{"category":"single_table/or/aggregate","domain":"sensor","family_id":"d6bd3d4e9dfcefc7784be248","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"7e27c86220b675060246349dbc0ae52ae772e9aefdaaf4962f1a60180153c34f","language":"en","license":"CC-BY-4.0","query":"Return the maximum of ps2_mean for hydraulic cycles where (ps1_mean is greater than 172.56377 or ts1_mean is at most 56.73035).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[172.56377,56.73035],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? OR ts1_mean <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[172.56377,56.73035],\\\"sql\\\":\\\"SELECT SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? OR ts1_mean <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[172.56377,56.73035],\\\"sql\\\":\\\"SELECT MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? OR ts1_mean <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[172.56377,56.73035],\\\"sql\\\":\\\"SELECT AVG(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? OR ts1_mean <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[131.58909]]","source":"hydraulic","split":"dev","sql":"SELECT MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? OR ts1_mean <= ?)","sql_parameters":"[172.56377,56.73035]","state":"{\"question\":\"Return the maximum of ps2_mean for hydraulic cycles where (ps1_mean is greater than 172.56377 or ts1_mean is at most 56.73035).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}890{"category":"single_table/date/or/grouped","domain":"commerce","family_id":"361c8b1300effe1978266eed","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"9ea40681966b8ba10d7d32615003dcde0639d59954ad2e8f3bee9187cf774f8a","language":"en","license":"CC-BY-4.0","query":"Return the average of unit_price for retail invoice lines where (country equals 'EIRE' or invoice_date is before '2011-05-10'), grouped by country, ordered by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"EIRE\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"EIRE\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date < ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"EIRE\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? OR invoice_date < ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"EIRE\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date < ?) GROUP BY country ORDER BY country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",2.8239473684210528],[\"Austria\",11.071666666666665],[\"Bahrain\",3.25],[\"Belgium\",6.6814285714285715],[\"Channel Islands\",1.6833333333333333],[\"Cyprus\",3.615625],[\"Denmark\",7.1325],[\"EIRE\",22.518088235294115],[\"Finland\",10.538571428571428],[\"France\",4.249596774193549],[\"Germany\",6.289130434782609],[\"Israel\",5.625],[\"Italy\",6.055555555555555],[\"Japan\",3.8214285714285716],[\"Netherlands\",4.5408536585365855],[\"Norway\",65.27142857142857],[\"Poland\",1.6],[\"Portugal\",3.195294117647059],[\"Singapore\",1009.4425],[\"Spain\",8.703064516129032],[\"Sweden\",4.059722222222223],[\"Switzerland\",9.998529411764705],[\"USA\",2.55],[\"United Arab Emirates\",134.0],[\"United Kingdom\",4.127285106871984]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date < ?) GROUP BY country ORDER BY country ASC","sql_parameters":"[\"EIRE\",\"2011-05-10\"]","state":"{\"question\":\"Return the average of unit_price for retail invoice lines where (country equals 'EIRE' or invoice_date is before '2011-05-10'), 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\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}891{"category":"join/date/having","domain":"commerce","family_id":"a2e527755be836305d7cc608","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"d0ca801991d95ef8fb00a176ca984a17f93e3756149be3e17847f3e9c825dfec","language":"en","license":"CC-BY-4.0","query":"Return the average 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 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\",2],\\\"sql\\\":\\\"SELECT i.country, 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.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\",2],\\\"sql\\\":\\\"SELECT i.country, 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.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\",2],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) 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 DESC, i.country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\",2],\\\"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 HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"United Arab Emirates\",134.0],[\"Austria\",14.4],[\"Finland\",12.7225],[\"Spain\",12.646756756756757],[\"Denmark\",7.1325]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, 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.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5","sql_parameters":"[\"2010-12-02\",2]","state":"{\"question\":\"Return the average 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 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}892{"category":"join/or/aggregate","domain":"commerce","family_id":"5284011b86bb92a27b852922","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"f8d10e7cd9b4a958cca5c5016e95a4729770cf8662f2da36e91d8a5fc9d9c3ac","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.unit_price for retail lines joined to their invoices where (i.country equals 'Cyprus' or l.unit_price is at most 8.5).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",8.5],\\\"sql\\\":\\\"SELECT SUM(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR l.unit_price <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",8.5],\\\"sql\\\":\\\"SELECT SUM(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND l.unit_price <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",8.5],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR l.unit_price <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",8.5],\\\"sql\\\":\\\"SELECT AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR l.unit_price <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[69118.6]]","source":"online_retail_ii","split":"dev","sql":"SELECT SUM(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR l.unit_price <= ?)","sql_parameters":"[\"Cyprus\",8.5]","state":"{\"question\":\"Return the sum of l.unit_price for retail lines joined to their invoices where (i.country equals 'Cyprus' or l.unit_price is at most 8.5).\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}893{"category":"single_table/ranked","domain":"sensor","family_id":"a9cdafa23346dec37a7a8e53","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"4d9c68b3572ef2830f33aecb4b3623e77ebb7dcac3e7d1524af6d8271c61b7db","language":"en","license":"CC-BY-4.0","query":"Return the average of eps1_mean for hydraulic cycles where (ps2_mean is greater than 107.72581), grouped by pump_leakage; return at most 3 groups ordered by aggregate value ASC, breaking ties by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[107.72581],\\\"sql\\\":\\\"SELECT pump_leakage, AVG(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[107.72581],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps2_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[107.72581],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[107.72581],\\\"sql\\\":\\\"SELECT pump_leakage, AVG(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,2528.934664906015],[1,2568.361837638889],[2,2594.468844014085]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, AVG(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3","sql_parameters":"[107.72581]","state":"{\"question\":\"Return the average of eps1_mean for hydraulic cycles where (ps2_mean is greater than 107.72581), 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\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}894{"category":"single_table/and/having","domain":"sensor","family_id":"42f91a3c2354cce0fc3fd5f6","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"d4a147cb57a9bc38f4f1238339a90a1b9b5949daed9d492dda33b35c86c88bef","language":"en","license":"CC-BY-4.0","query":"Return the sum of ts1_mean for hydraulic cycles where (ps2_mean is greater than 105.7255 and fs1_mean is at most 6.57291), grouped by pump_leakage, keeping only groups with at least 10 matching rows; return at most 3 groups ordered by aggregate value ASC, breaking ties by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[105.7255,6.57291,10],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? OR fs1_mean <= ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[105.7255,6.57291,10],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? AND fs1_mean <= ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[105.7255,6.57291,10],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? AND fs1_mean <= ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[105.7255,6.57291,10],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? AND fs1_mean <= ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,1075.02107],[1,20061.8216],[2,20229.22104]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, SUM(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? AND fs1_mean <= ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value ASC, pump_leakage ASC LIMIT 3","sql_parameters":"[105.7255,6.57291,10]","state":"{\"question\":\"Return the sum of ts1_mean for hydraulic cycles where (ps2_mean is greater than 105.7255 and fs1_mean is at most 6.57291), grouped by pump_leakage, keeping only groups with at least 10 matching rows; 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\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}895{"category":"single_table/having","domain":"commerce","family_id":"296fefa341aa9825abba09c6","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"7374764ba32948cb18867aa98add57745169ccfd39e6059af8e2c607c9380624","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for shopping sessions where (visitor_type equals 'Other'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Other\\\",10],\\\"sql\\\":\\\"SELECT visitor_type, SUM(administrative) AS value FROM shopping_sessions WHERE (visitor_type = ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Other\\\",10],\\\"sql\\\":\\\"SELECT visitor_type, AVG(administrative) AS value FROM shopping_sessions WHERE (visitor_type = ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Other\\\",10],\\\"sql\\\":\\\"SELECT visitor_type, MIN(administrative) AS value FROM shopping_sessions WHERE (visitor_type = ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Other\\\",10],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (visitor_type = ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Other\",85]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (visitor_type = ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value ASC, visitor_type ASC LIMIT 3","sql_parameters":"[\"Other\",10]","state":"{\"question\":\"Return the number of rows for shopping sessions where (visitor_type equals 'Other'), 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_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}896{"category":"single_table/aggregate","domain":"commerce","family_id":"07067afeba82875bf8ea7ce7","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"241140dd5273d5338496b1e07cd40ff4a362a31f2aeededc17010e0081a29ea1","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail invoice lines where (country equals 'EIRE').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"EIRE\\\"],\\\"sql\\\":\\\"SELECT SUM(quantity) AS value FROM retail_lines WHERE (country = ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"EIRE\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (country = ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"EIRE\\\"],\\\"sql\\\":\\\"SELECT AVG(quantity) AS value FROM retail_lines WHERE (country = ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"EIRE\\\"],\\\"sql\\\":\\\"SELECT MIN(quantity) AS value FROM retail_lines WHERE (country = ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[204]]","source":"online_retail_ii","split":"dev","sql":"SELECT COUNT(*) AS value FROM retail_lines WHERE (country = ?)","sql_parameters":"[\"EIRE\"]","state":"{\"question\":\"Return the number of rows for retail invoice lines where (country equals 'EIRE').\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}897{"category":"single_table/or/ranked","domain":"sensor","family_id":"8a3bb94c3806cc9a5bac7861","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"d817873854632bb8cc0f8d13ae5de92e28bef6146389d1cd0bd7e6c91b9d39e4","language":"en","license":"CC-BY-4.0","query":"Return the minimum of ts1_mean for hydraulic cycles where (ps2_mean is greater than 122.4767 or fs1_mean is greater than 6.57291), grouped by pump_leakage; return at most 3 groups ordered by aggregate value ASC, breaking ties by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[122.4767,6.57291],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? OR fs1_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[122.4767,6.57291],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? AND fs1_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[122.4767,6.57291],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? OR fs1_mean > ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[122.4767,6.57291],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? OR fs1_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,35.31378],[2,54.1396],[1,56.56253]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, MIN(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? OR fs1_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3","sql_parameters":"[122.4767,6.57291]","state":"{\"question\":\"Return the minimum of ts1_mean for hydraulic cycles where (ps2_mean is greater than 122.4767 or fs1_mean is greater than 6.57291), 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\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}898{"category":"single_table/aggregate","domain":"commerce","family_id":"07067afeba82875bf8ea7ce7","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"cc09d64dbb7a76490ff51c487d5c0a7f15993a2f42fa7173aa4854951ae0c71d","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail invoice lines where (country equals 'Bahrain').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Bahrain\\\"],\\\"sql\\\":\\\"SELECT SUM(quantity) AS value FROM retail_lines WHERE (country = ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Bahrain\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (country = ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Bahrain\\\"],\\\"sql\\\":\\\"SELECT AVG(quantity) AS value FROM retail_lines WHERE (country = ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Bahrain\\\"],\\\"sql\\\":\\\"SELECT MIN(quantity) AS value FROM retail_lines WHERE (country = ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[11]]","source":"online_retail_ii","split":"dev","sql":"SELECT COUNT(*) AS value FROM retail_lines WHERE (country = ?)","sql_parameters":"[\"Bahrain\"]","state":"{\"question\":\"Return the number of rows for retail invoice lines where (country equals 'Bahrain').\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}899{"category":"single_table/aggregate","domain":"sensor","family_id":"6e9a7ddacec1c3a5364fe190","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"fcce005d99ce485082dd77d6a447bc2b83e01b0b4fabdf6dd69c122c2bdcdb92","language":"en","license":"CC-BY-4.0","query":"Return the average of vs1_mean for hydraulic cycles where (accumulator equals 130).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[130],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (accumulator = ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[130],\\\"sql\\\":\\\"SELECT AVG(vs1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[130],\\\"sql\\\":\\\"SELECT SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[130],\\\"sql\\\":\\\"SELECT MIN(vs1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0.6220879298831385]]","source":"hydraulic","split":"dev","sql":"SELECT AVG(vs1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ?)","sql_parameters":"[130]","state":"{\"question\":\"Return the average of vs1_mean for hydraulic cycles where (accumulator equals 130).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}900{"category":"single_table/ranked","domain":"sensor","family_id":"f022eec92ce6945de867d64b","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"30d21c183a64e4959febe0deee80d7362cdf393ed495f057cbb85c79f02554f6","language":"en","license":"CC-BY-4.0","query":"Return the average of ts1_mean for hydraulic cycles where (ps1_mean is greater than 158.96089), grouped by cooler; return at most 3 groups ordered by aggregate value ASC, breaking ties by cooler ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[158.96089],\\\"sql\\\":\\\"SELECT cooler, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[158.96089],\\\"sql\\\":\\\"SELECT cooler, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ?) GROUP BY cooler ORDER BY value DESC, cooler ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[158.96089],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps1_mean > ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[158.96089],\\\"sql\\\":\\\"SELECT cooler, SUM(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[100,35.95532211875844],[20,44.44809075471698],[3,55.86530403921569]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 3","sql_parameters":"[158.96089]","state":"{\"question\":\"Return the average of ts1_mean for hydraulic cycles where (ps1_mean is greater than 158.96089), 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\",\"cycle_id\":\"INTEGER\",\"eps1_mean\":\"REAL\",\"fs1_mean\":\"REAL\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}901{"category":"single_table/aggregate","domain":"commerce","family_id":"20c22ca09dd28be19fab54cb","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"c8a876f02a0d5b38f333010600fa2964f2550443c8a71cf5bd23a586efba5500","language":"en","license":"CC-BY-4.0","query":"Return the maximum of product_related for shopping sessions where (product_duration is at most 472.4166667).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[472.4166667],\\\"sql\\\":\\\"SELECT MAX(product_related) AS value FROM shopping_sessions WHERE (product_duration <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[472.4166667],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (product_duration <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[472.4166667],\\\"sql\\\":\\\"SELECT SUM(product_related) AS value FROM shopping_sessions WHERE (product_duration <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[472.4166667],\\\"sql\\\":\\\"SELECT AVG(product_related) AS value FROM shopping_sessions WHERE (product_duration <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[59]]","source":"online_shoppers","split":"dev","sql":"SELECT MAX(product_related) AS value FROM shopping_sessions WHERE (product_duration <= ?)","sql_parameters":"[472.4166667]","state":"{\"question\":\"Return the maximum of product_related for shopping sessions where (product_duration is at most 472.4166667).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}902{"category":"single_table/having","domain":"commerce","family_id":"fc63587d431820ce6597b6af","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"54f1a9d91cf48a0890c201d73682934b72e940ace5867cde7d396ba18d220344","language":"en","license":"CC-BY-4.0","query":"Return the maximum of product_related for shopping sessions where (product_duration is greater than 1564.0), grouped by month, keeping only groups with at least 10 matching rows; return at most 3 groups ordered by aggregate value ASC, breaking ties by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[1564.0,10],\\\"sql\\\":\\\"SELECT month, MAX(product_related) AS value FROM shopping_sessions WHERE (product_duration > ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[1564.0,10],\\\"sql\\\":\\\"SELECT month, MAX(product_related) AS value FROM shopping_sessions WHERE (product_duration > ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value ASC, month ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[1564.0,10],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (product_duration > ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value ASC, month ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[1564.0,10],\\\"sql\\\":\\\"SELECT month, SUM(product_related) AS value FROM shopping_sessions WHERE (product_duration > ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value ASC, month ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Feb\",128],[\"Mar\",328],[\"June\",358]]","source":"online_shoppers","split":"dev","sql":"SELECT month, MAX(product_related) AS value FROM shopping_sessions WHERE (product_duration > ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value ASC, month ASC LIMIT 3","sql_parameters":"[1564.0,10]","state":"{\"question\":\"Return the maximum of product_related for shopping sessions where (product_duration is greater than 1564.0), grouped by month, keeping only groups with at least 10 matching rows; return at most 3 groups ordered by aggregate value ASC, breaking ties by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}903{"category":"join/date/or/having","domain":"commerce","family_id":"466bbb494e537c89f4649e16","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"69bb522c874f1832b4833de9e473e2be7accebe35293487f7d5c3ba2ca6b4c2f","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.quantity for retail lines joined to their invoices where (l.unit_price is greater than 0.55 or i.invoice_date is on or after '2011-09-29'), grouped by i.country, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[0.55,\\\"2011-09-29\\\",2],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) 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 HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[0.55,\\\"2011-09-29\\\",2],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) 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 HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[0.55,\\\"2011-09-29\\\",2],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) 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 HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[0.55,\\\"2011-09-29\\\",2],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) 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 HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"United Kingdom\",834805],[\"Germany\",9152],[\"EIRE\",8363],[\"Netherlands\",7180],[\"Spain\",5587]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, SUM(l.quantity) 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 HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5","sql_parameters":"[0.55,\"2011-09-29\",2]","state":"{\"question\":\"Return the sum of l.quantity for retail lines joined to their invoices where (l.unit_price is greater than 0.55 or i.invoice_date is on or after '2011-09-29'), grouped by i.country, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}904{"category":"join/distinct_invoice/date/or/ranked","domain":"commerce","family_id":"d263de06b9716fdbca917c9e","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"e70e62f1fdb60dce65ca1e7ef6a528842b25ab8485915526c277c52bab5e5ec4","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.country equals 'Cyprus' or i.invoice_date is on or after '2011-05-10'), grouped by i.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND i.invoice_date >= ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR i.invoice_date >= ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR i.invoice_date >= ?) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR i.invoice_date >= ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Bahrain\",1],[\"Canada\",1],[\"Israel\",1]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR i.invoice_date >= ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3","sql_parameters":"[\"Cyprus\",\"2011-05-10\"]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.country equals 'Cyprus' or i.invoice_date is on or after '2011-05-10'), grouped by i.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}905{"category":"join/and/having","domain":"commerce","family_id":"2e62e80488c51e0ea6aea40a","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"e0c44ed6f01f5e92d4d41cf8c3ea2189f6400a12ddbf8b21bd55f6ac52890b75","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail lines joined to their invoices where (l.quantity is greater than 92 and l.unit_price is at most 49.95), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[92,49.95,10],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) 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 HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[92,49.95],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) 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 value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[92,49.95,10],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) 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 HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[92,49.95,10],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) 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 HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-04\",10],[\"2010-03-19\",10],[\"2010-04-14\",10]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.invoice_date, COUNT(*) 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 HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3","sql_parameters":"[92,49.95,10]","state":"{\"question\":\"Return the number of rows for retail lines joined to their invoices where (l.quantity is greater than 92 and l.unit_price is at most 49.95), 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_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}906{"category":"join/or/grouped","domain":"commerce","family_id":"457c1418fa3ecf6a08811f03","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"6170dab00c1fb9f64b70a868a4f2cd5e027bfeb1a449c6e56333c1de24bd55e8","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.quantity for retail lines joined to their invoices where (i.country equals 'Canada' or l.quantity is at most 25), grouped by i.invoice_date, ordered by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Canada\\\",25],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.quantity) 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 i.invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Canada\\\",25],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.quantity) 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 i.invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Canada\\\",25],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) 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 i.invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Canada\\\",25],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(l.quantity) 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 i.invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-01\",394],[\"2009-12-02\",755],[\"2009-12-03\",700],[\"2009-12-04\",403],[\"2009-12-05\",277],[\"2009-12-06\",166],[\"2009-12-07\",534],[\"2009-12-08\",501],[\"2009-12-09\",416],[\"2009-12-10\",427],[\"2009-12-11\",149],[\"2009-12-13\",195],[\"2009-12-14\",380],[\"2009-12-15\",525],[\"2009-12-16\",454],[\"2009-12-17\",667],[\"2009-12-18\",391],[\"2009-12-20\",176],[\"2009-12-21\",201],[\"2009-12-22\",160],[\"2009-12-23\",86],[\"2010-01-04\",81],[\"2010-01-05\",52],[\"2010-01-06\",19],[\"2010-01-07\",65],[\"2010-01-08\",270],[\"2010-01-10\",118],[\"2010-01-11\",305],[\"2010-01-12\",184],[\"2010-01-13\",107],[\"2010-01-14\",148],[\"2010-01-15\",224],[\"2010-01-17\",126],[\"2010-01-18\",36],[\"2010-01-19\",272],[\"2010-01-20\",197],[\"2010-01-21\",223],[\"2010-01-22\",114],[\"2010-01-24\",242],[\"2010-01-25\",145],[\"2010-01-26\",166],[\"2010-01-27\",336],[\"2010-01-28\",133],[\"2010-01-29\",128],[\"2010-01-31\",347],[\"2010-02-01\",242],[\"2010-02-02\",193],[\"2010-02-03\",328],[\"2010-02-04\",215],[\"2010-02-05\",289],[\"2010-02-07\",31],[\"2010-02-08\",305],[\"2010-02-09\",249],[\"2010-02-10\",248],[\"2010-02-11\",122],[\"2010-02-12\",194],[\"2010-02-14\",87],[\"2010-02-15\",232],[\"2010-02-16\",333],[\"2010-02-17\",239],[\"2010-02-18\",200],[\"2010-02-19\",72],[\"2010-02-21\",172],[\"2010-02-22\",356],[\"2010-02-23\",95],[\"2010-02-24\",213],[\"2010-02-25\",296],[\"2010-02-26\",49],[\"2010-02-28\",242],[\"2010-03-01\",480],[\"2010-03-02\",167],[\"2010-03-03\",443],[\"2010-03-04\",182],[\"2010-03-05\",371],[\"2010-03-07\",60],[\"2010-03-08\",504],[\"2010-03-09\",331],[\"2010-03-10\",123],[\"2010-03-11\",246],[\"2010-03-12\",289],[\"2010-03-14\",181],[\"2010-03-15\",184],[\"2010-03-16\",123],[\"2010-03-17\",110],[\"2010-03-18\",291],[\"2010-03-19\",88],[\"2010-03-21\",151],[\"2010-03-22\",146],[\"2010-03-23\",260],[\"2010-03-24\",282],[\"2010-03-25\",204],[\"2010-03-26\",199],[\"2010-03-28\",120],[\"2010-03-29\",142],[\"2010-03-30\",226],[\"2010-03-31\",216],[\"2010-04-01\",257],[\"2010-04-06\",272],[\"2010-04-07\",266],[\"2010-04-08\",299],[\"2010-04-09\",116],[\"2010-04-11\",216],[\"2010-04-12\",249],[\"2010-04-13\",122],[\"2010-04-14\",318],[\"2010-04-15\",133],[\"2010-04-16\",178],[\"2010-04-18\",82],[\"2010-04-19\",251],[\"2010-04-20\",264],[\"2010-04-21\",230],[\"2010-04-22\",359],[\"2010-04-23\",154],[\"2010-04-25\",285],[\"2010-04-26\",360],[\"2010-04-27\",324],[\"2010-04-28\",313],[\"2010-04-29\",330],[\"2010-04-30\",243],[\"2010-05-02\",286],[\"2010-05-04\",101],[\"2010-05-05\",620],[\"2010-05-06\",243],[\"2010-05-07\",558],[\"2010-05-09\",275],[\"2010-05-10\",479],[\"2010-05-11\",374],[\"2010-05-12\",304],[\"2010-05-13\",156],[\"2010-05-14\",103],[\"2010-05-16\",107],[\"2010-05-17\",57],[\"2010-05-18\",222],[\"2010-05-19\",286],[\"2010-05-20\",278],[\"2010-05-21\",137],[\"2010-05-23\",291],[\"2010-05-24\",451],[\"2010-05-25\",116],[\"2010-05-26\",369],[\"2010-05-27\",452],[\"2010-05-28\",214],[\"2010-05-30\",50],[\"2010-06-01\",137],[\"2010-06-02\",289],[\"2010-06-03\",437],[\"2010-06-04\",108],[\"2010-06-06\",198],[\"2010-06-07\",441],[\"2010-06-08\",362],[\"2010-06-09\",178],[\"2010-06-10\",250],[\"2010-06-11\",228],[\"2010-06-13\",621],[\"2010-06-14\",222],[\"2010-06-15\",90],[\"2010-06-16\",289],[\"2010-06-17\",172],[\"2010-06-18\",142],[\"2010-06-20\",83],[\"2010-06-21\",117],[\"2010-06-22\",156],[\"2010-06-23\",547],[\"2010-06-24\",314],[\"2010-06-25\",140],[\"2010-06-27\",360],[\"2010-06-28\",274],[\"2010-06-29\",240],[\"2010-06-30\",169],[\"2010-07-01\",262],[\"2010-07-02\",13],[\"2010-07-04\",46],[\"2010-07-05\",402],[\"2010-07-06\",234],[\"2010-07-07\",158],[\"2010-07-08\",316],[\"2010-07-09\",58],[\"2010-07-11\",4],[\"2010-07-12\",168],[\"2010-07-13\",251],[\"2010-07-14\",81],[\"2010-07-15\",257],[\"2010-07-16\",449],[\"2010-07-18\",191],[\"2010-07-19\",248],[\"2010-07-20\",361],[\"2010-07-21\",320],[\"2010-07-22\",385],[\"2010-07-23\",68],[\"2010-07-25\",67],[\"2010-07-26\",251],[\"2010-07-27\",339],[\"2010-07-28\",188],[\"2010-07-29\",194],[\"2010-07-30\",274],[\"2010-08-01\",55],[\"2010-08-02\",426],[\"2010-08-03\",289],[\"2010-08-04\",164],[\"2010-08-05\",440],[\"2010-08-06\",153],[\"2010-08-08\",177],[\"2010-08-09\",194],[\"2010-08-10\",77],[\"2010-08-11\",160],[\"2010-08-12\",188],[\"2010-08-13\",254],[\"2010-08-15\",256],[\"2010-08-16\",57],[\"2010-08-17\",332],[\"2010-08-18\",141],[\"2010-08-19\",253],[\"2010-08-20\",319],[\"2010-08-22\",178],[\"2010-08-23\",335],[\"2010-08-24\",19],[\"2010-08-25\",364],[\"2010-08-26\",286],[\"2010-08-27\",184],[\"2010-08-29\",166],[\"2010-08-31\",292],[\"2010-09-01\",287],[\"2010-09-02\",386],[\"2010-09-03\",364],[\"2010-09-05\",421],[\"2010-09-06\",156],[\"2010-09-07\",221],[\"2010-09-08\",78],[\"2010-09-09\",253],[\"2010-09-10\",146],[\"2010-09-12\",25],[\"2010-09-13\",299],[\"2010-09-14\",621],[\"2010-09-15\",120],[\"2010-09-16\",384],[\"2010-09-17\",259],[\"2010-09-19\",149],[\"2010-09-20\",405],[\"2010-09-21\",675],[\"2010-09-22\",358],[\"2010-09-23\",205],[\"2010-09-24\",142],[\"2010-09-26\",318],[\"2010-09-27\",259],[\"2010-09-28\",390],[\"2010-09-29\",525],[\"2010-09-30\",301],[\"2010-10-01\",303],[\"2010-10-03\",316],[\"2010-10-04\",346],[\"2010-10-05\",304],[\"2010-10-06\",321],[\"2010-10-07\",501],[\"2010-10-08\",208],[\"2010-10-10\",189],[\"2010-10-11\",420],[\"2010-10-12\",558],[\"2010-10-13\",258],[\"2010-10-14\",280],[\"2010-10-15\",505],[\"2010-10-17\",6],[\"2010-10-18\",692],[\"2010-10-19\",239],[\"2010-10-20\",551],[\"2010-10-21\",348],[\"2010-10-22\",513],[\"2010-10-24\",337],[\"2010-10-25\",213],[\"2010-10-26\",469],[\"2010-10-27\",523],[\"2010-10-28\",334],[\"2010-10-29\",526],[\"2010-10-31\",208],[\"2010-11-01\",146],[\"2010-11-02\",576],[\"2010-11-03\",536],[\"2010-11-04\",730],[\"2010-11-05\",148],[\"2010-11-07\",133],[\"2010-11-08\",225],[\"2010-11-09\",410],[\"2010-11-10\",643],[\"2010-11-11\",523],[\"2010-11-12\",682],[\"2010-11-14\",212],[\"2010-11-15\",409],[\"2010-11-16\",619],[\"2010-11-17\",756],[\"2010-11-18\",780],[\"2010-11-19\",295],[\"2010-11-21\",319],[\"2010-11-22\",565],[\"2010-11-23\",637],[\"2010-11-24\",603],[\"2010-11-25\",1078],[\"2010-11-26\",323],[\"2010-11-28\",332],[\"2010-11-29\",407],[\"2010-11-30\",921],[\"2010-12-01\",1188],[\"2010-12-02\",1860],[\"2010-12-03\",390],[\"2010-12-05\",276],[\"2010-12-06\",938],[\"2010-12-07\",662],[\"2010-12-08\",1236],[\"2010-12-09\",1310],[\"2010-12-10\",330],[\"2010-12-12\",39],[\"2010-12-13\",245],[\"2010-12-14\",776],[\"2010-12-15\",411],[\"2010-12-16\",864],[\"2010-12-17\",510],[\"2010-12-19\",20],[\"2010-12-20\",260],[\"2010-12-21\",240],[\"2010-12-22\",163],[\"2010-12-23\",98],[\"2011-01-04\",90],[\"2011-01-05\",180],[\"2011-01-06\",205],[\"2011-01-07\",63],[\"2011-01-09\",187],[\"2011-01-10\",8],[\"2011-01-11\",244],[\"2011-01-12\",155],[\"2011-01-13\",54],[\"2011-01-14\",403],[\"2011-01-16\",17],[\"2011-01-17\",357],[\"2011-01-18\",264],[\"2011-01-19\",80],[\"2011-01-20\",338],[\"2011-01-21\",174],[\"2011-01-23\",67],[\"2011-01-24\",224],[\"2011-01-25\",229],[\"2011-01-26\",307],[\"2011-01-27\",301],[\"2011-01-28\",90],[\"2011-01-30\",76],[\"2011-01-31\",243],[\"2011-02-01\",210],[\"2011-02-02\",370],[\"2011-02-03\",189],[\"2011-02-04\",166],[\"2011-02-07\",152],[\"2011-02-08\",37],[\"2011-02-09\",77],[\"2011-02-10\",154],[\"2011-02-11\",151],[\"2011-02-13\",40],[\"2011-02-14\",116],[\"2011-02-15\",184],[\"2011-02-16\",411],[\"2011-02-17\",453],[\"2011-02-18\",278],[\"2011-02-20\",46],[\"2011-02-21\",113],[\"2011-02-22\",205],[\"2011-02-23\",216],[\"2011-02-24\",207],[\"2011-02-25\",255],[\"2011-02-27\",172],[\"2011-02-28\",139],[\"2011-03-01\",277],[\"2011-03-02\",69],[\"2011-03-03\",305],[\"2011-03-04\",280],[\"2011-03-06\",121],[\"2011-03-07\",212],[\"2011-03-08\",265],[\"2011-03-09\",495],[\"2011-03-10\",330],[\"2011-03-11\",206],[\"2011-03-14\",199],[\"2011-03-15\",137],[\"2011-03-16\",251],[\"2011-03-17\",274],[\"2011-03-18\",320],[\"2011-03-20\",373],[\"2011-03-21\",379],[\"2011-03-22\",96],[\"2011-03-23\",107],[\"2011-03-24\",175],[\"2011-03-25\",170],[\"2011-03-27\",138],[\"2011-03-28\",276],[\"2011-03-29\",167],[\"2011-03-30\",332],[\"2011-03-31\",300],[\"2011-04-01\",357],[\"2011-04-03\",118],[\"2011-04-04\",49],[\"2011-04-05\",162],[\"2011-04-06\",185],[\"2011-04-07\",329],[\"2011-04-08\",574],[\"2011-04-10\",48],[\"2011-04-11\",231],[\"2011-04-12\",232],[\"2011-04-13\",233],[\"2011-04-14\",427],[\"2011-04-15\",129],[\"2011-04-17\",221],[\"2011-04-18\",216],[\"2011-04-19\",115],[\"2011-04-20\",434],[\"2011-04-21\",327],[\"2011-04-26\",438],[\"2011-04-27\",267],[\"2011-04-28\",370],[\"2011-05-01\",21],[\"2011-05-03\",312],[\"2011-05-04\",352],[\"2011-05-05\",561],[\"2011-05-06\",383],[\"2011-05-08\",295],[\"2011-05-09\",434],[\"2011-05-10\",421],[\"2011-05-11\",311],[\"2011-05-12\",419],[\"2011-05-13\",500],[\"2011-05-15\",49],[\"2011-05-16\",544],[\"2011-05-17\",399],[\"2011-05-18\",366],[\"2011-05-19\",531],[\"2011-05-20\",377],[\"2011-05-22\",306],[\"2011-05-23\",335],[\"2011-05-24\",453],[\"2011-05-25\",301],[\"2011-05-26\",458],[\"2011-05-27\",366],[\"2011-05-29\",56],[\"2011-05-31\",218],[\"2011-06-01\",174],[\"2011-06-02\",404],[\"2011-06-03\",171],[\"2011-06-05\",210],[\"2011-06-06\",240],[\"2011-06-07\",442],[\"2011-06-08\",585],[\"2011-06-09\",557],[\"2011-06-10\",151],[\"2011-06-12\",37],[\"2011-06-13\",226],[\"2011-06-14\",277],[\"2011-06-15\",96],[\"2011-06-16\",917],[\"2011-06-17\",251],[\"2011-06-19\",163],[\"2011-06-20\",172],[\"2011-06-21\",265],[\"2011-06-22\",250],[\"2011-06-23\",140],[\"2011-06-24\",245],[\"2011-06-26\",115],[\"2011-06-27\",56],[\"2011-06-28\",332],[\"2011-06-29\",267],[\"2011-06-30\",191],[\"2011-07-01\",95],[\"2011-07-03\",78],[\"2011-07-04\",208],[\"2011-07-05\",322],[\"2011-07-06\",319],[\"2011-07-07\",225],[\"2011-07-08\",49],[\"2011-07-10\",29],[\"2011-07-11\",215],[\"2011-07-12\",231],[\"2011-07-13\",413],[\"2011-07-14\",306],[\"2011-07-15\",348],[\"2011-07-17\",290],[\"2011-07-18\",89],[\"2011-07-19\",333],[\"2011-07-20\",284],[\"2011-07-21\",300],[\"2011-07-22\",279],[\"2011-07-24\",278],[\"2011-07-25\",466],[\"2011-07-26\",234],[\"2011-07-27\",80],[\"2011-07-28\",581],[\"2011-07-29\",303],[\"2011-07-31\",171],[\"2011-08-01\",143],[\"2011-08-02\",141],[\"2011-08-03\",230],[\"2011-08-04\",494],[\"2011-08-05\",226],[\"2011-08-07\",378],[\"2011-08-08\",104],[\"2011-08-09\",221],[\"2011-08-10\",295],[\"2011-08-11\",199],[\"2011-08-12\",136],[\"2011-08-14\",130],[\"2011-08-15\",325],[\"2011-08-16\",307],[\"2011-08-17\",84],[\"2011-08-18\",258],[\"2011-08-19\",339],[\"2011-08-21\",192],[\"2011-08-22\",420],[\"2011-08-23\",338],[\"2011-08-24\",546],[\"2011-08-25\",374],[\"2011-08-26\",125],[\"2011-08-28\",65],[\"2011-08-30\",92],[\"2011-08-31\",35],[\"2011-09-01\",376],[\"2011-09-02\",284],[\"2011-09-04\",276],[\"2011-09-05\",171],[\"2011-09-06\",357],[\"2011-09-07\",77],[\"2011-09-08\",399],[\"2011-09-09\",322],[\"2011-09-11\",310],[\"2011-09-12\",604],[\"2011-09-13\",114],[\"2011-09-14\",782],[\"2011-09-15\",238],[\"2011-09-16\",157],[\"2011-09-18\",7],[\"2011-09-19\",355],[\"2011-09-20\",427],[\"2011-09-21\",297],[\"2011-09-22\",535],[\"2011-09-23\",102],[\"2011-09-25\",223],[\"2011-09-26\",212],[\"2011-09-27\",324],[\"2011-09-28\",357],[\"2011-09-29\",338],[\"2011-09-30\",514],[\"2011-10-02\",48],[\"2011-10-03\",217],[\"2011-10-04\",215],[\"2011-10-05\",499],[\"2011-10-06\",446],[\"2011-10-07\",321],[\"2011-10-09\",53],[\"2011-10-10\",321],[\"2011-10-11\",551],[\"2011-10-12\",473],[\"2011-10-13\",403],[\"2011-10-14\",307],[\"2011-10-17\",446],[\"2011-10-18\",300],[\"2011-10-19\",481],[\"2011-10-20\",451],[\"2011-10-21\",326],[\"2011-10-23\",8],[\"2011-10-24\",423],[\"2011-10-25\",169],[\"2011-10-26\",533],[\"2011-10-27\",442],[\"2011-10-28\",335],[\"2011-10-30\",453],[\"2011-10-31\",361],[\"2011-11-01\",311],[\"2011-11-02\",249],[\"2011-11-03\",329],[\"2011-11-04\",278],[\"2011-11-06\",455],[\"2011-11-07\",559],[\"2011-11-08\",428],[\"2011-11-09\",994],[\"2011-11-10\",864],[\"2011-11-11\",196],[\"2011-11-13\",295],[\"2011-11-14\",252],[\"2011-11-15\",616],[\"2011-11-16\",781],[\"2011-11-17\",934],[\"2011-11-18\",599],[\"2011-11-20\",376],[\"2011-11-21\",451],[\"2011-11-22\",731],[\"2011-11-23\",755],[\"2011-11-24\",653],[\"2011-11-25\",475],[\"2011-11-27\",39],[\"2011-11-28\",511],[\"2011-11-29\",718],[\"2011-11-30\",352],[\"2011-12-01\",1072],[\"2011-12-02\",868],[\"2011-12-04\",428],[\"2011-12-05\",693],[\"2011-12-06\",704],[\"2011-12-07\",532],[\"2011-12-08\",559],[\"2011-12-09\",286]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.invoice_date, SUM(l.quantity) 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 i.invoice_date ASC","sql_parameters":"[\"Canada\",25]","state":"{\"question\":\"Return the sum of l.quantity for retail lines joined to their invoices where (i.country equals 'Canada' or l.quantity is at most 25), grouped by i.invoice_date, ordered by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}907{"category":"single_table/or/having","domain":"commerce","family_id":"62fc382ef75a937584964c60","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"19f0491cd2200def32a322eb231f000baf2a500e33df8d154e7f772ce01cebb5","language":"en","license":"CC-BY-4.0","query":"Return the minimum of product_related for shopping sessions where (administrative is greater than 7 or product_related is at most 226), grouped by month, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[7,226,2],\\\"sql\\\":\\\"SELECT month, MIN(product_related) AS value FROM shopping_sessions WHERE (administrative > ? OR product_related <= ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[7,226,2],\\\"sql\\\":\\\"SELECT month, MIN(product_related) AS value FROM shopping_sessions WHERE (administrative > ? AND product_related <= ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[7,226,2],\\\"sql\\\":\\\"SELECT month, MIN(product_related) AS value FROM shopping_sessions WHERE (administrative > ? OR product_related <= ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value ASC, month ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[7,226,2],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (administrative > ? OR product_related <= ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Jul\",1],[\"Aug\",0],[\"Dec\",0],[\"Feb\",0],[\"June\",0]]","source":"online_shoppers","split":"dev","sql":"SELECT month, MIN(product_related) AS value FROM shopping_sessions WHERE (administrative > ? OR product_related <= ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5","sql_parameters":"[7,226,2]","state":"{\"question\":\"Return the minimum of product_related for shopping sessions where (administrative is greater than 7 or product_related is at most 226), grouped by month, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}908{"category":"join/date/ranked","domain":"commerce","family_id":"3f7078e823bf17ee64bb2f2c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"fb819e6ee8dbad434914465ce7d1d424982374157d3e40e465e06e538bbc8561","language":"en","license":"CC-BY-4.0","query":"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; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.","questions":"{\"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 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) 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 DESC, i.country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"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 DESC, i.country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT i.country, 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.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"United Kingdom\",52426.67],[\"Germany\",924.72],[\"EIRE\",555.09],[\"Spain\",467.93],[\"Netherlands\",360.33]]","source":"online_retail_ii","split":"dev","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 DESC, i.country ASC LIMIT 5","sql_parameters":"[\"2010-12-02\"]","state":"{\"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; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}909{"category":"single_table/or/having","domain":"commerce","family_id":"93ac73d14e3d41044d903a42","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"fd04a20b02e2d597c48d6d1376466a9189104fb485b9b0598f17eb5d4cdc57f2","language":"en","license":"CC-BY-4.0","query":"Return the minimum of administrative for shopping sessions where (visitor_type equals 'Other' or product_duration is greater than 3395.729484), grouped by month, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Other\\\",3395.729484,2],\\\"sql\\\":\\\"SELECT month, MIN(administrative) AS value FROM shopping_sessions WHERE (visitor_type = ? AND product_duration > ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Other\\\",3395.729484,2],\\\"sql\\\":\\\"SELECT month, MIN(administrative) AS value FROM shopping_sessions WHERE (visitor_type = ? OR product_duration > ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value ASC, month ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Other\\\",3395.729484,2],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (visitor_type = ? OR product_duration > ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Other\\\",3395.729484,2],\\\"sql\\\":\\\"SELECT month, MIN(administrative) AS value FROM shopping_sessions WHERE (visitor_type = ? OR product_duration > ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Feb\",1],[\"Aug\",0],[\"Dec\",0],[\"Jul\",0],[\"June\",0]]","source":"online_shoppers","split":"dev","sql":"SELECT month, MIN(administrative) AS value FROM shopping_sessions WHERE (visitor_type = ? OR product_duration > ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5","sql_parameters":"[\"Other\",3395.729484,2]","state":"{\"question\":\"Return the minimum of administrative for shopping sessions where (visitor_type equals 'Other' or product_duration is greater than 3395.729484), grouped by month, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}910{"category":"join/date/and/ranked","domain":"commerce","family_id":"4bf8b45c1d4c2429b97f8101","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"89388645fd850265af17572fd7afc0ec9b5ce7e8d4d7c9cf245912de4db423a3","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.unit_price for retail lines joined to their invoices where (l.unit_price is at most 49.95 and i.invoice_date is before '2011-05-10'), grouped by i.invoice_date; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[49.95,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(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.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[49.95,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.unit_price) 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 value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[49.95,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.unit_price) 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 value ASC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[49.95,\\\"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 (l.unit_price <= ? AND i.invoice_date < ?) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-12-01\",829.6],[\"2010-12-08\",730.2],[\"2010-12-09\",708.18],[\"2010-12-02\",593.68],[\"2010-12-07\",586.52]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.invoice_date, SUM(l.unit_price) 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 value DESC, i.invoice_date ASC LIMIT 5","sql_parameters":"[49.95,\"2011-05-10\"]","state":"{\"question\":\"Return the sum of l.unit_price for retail lines joined to their invoices where (l.unit_price is at most 49.95 and i.invoice_date is before '2011-05-10'), 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_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}911{"category":"single_table/date/having","domain":"commerce","family_id":"f045cb6a86f4de7c3ff42088","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"284f5f5e7662531900f5082bc189d1817af309d62a9bac7537d0dada6ff41414","language":"en","license":"CC-BY-4.0","query":"Return the minimum of unit_price for retail invoice lines where (invoice_date is before '2010-12-02'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\",10],\\\"sql\\\":\\\"SELECT country, MIN(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\",10],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\",10],\\\"sql\\\":\\\"SELECT country, MIN(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\",10],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"United Kingdom\",0.06],[\"Sweden\",0.09],[\"Germany\",0.14]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, MIN(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3","sql_parameters":"[\"2010-12-02\",10]","state":"{\"question\":\"Return the minimum of unit_price for retail invoice lines where (invoice_date is before '2010-12-02'), 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\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}912{"category":"single_table/or/grouped","domain":"commerce","family_id":"53b344a36f5376d89538b28b","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"be5c766cbc04b74cfdf90cf2ffaa310a10883308e09a5234cf3900714024abc3","language":"en","license":"CC-BY-4.0","query":"Return the average of quantity for retail invoice lines where (country equals 'Channel Islands' or unit_price is greater than 49.95), grouped by country, ordered by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\",49.95],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (country = ? OR unit_price > ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\",49.95],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (country = ? AND unit_price > ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\",49.95],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? OR unit_price > ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\",49.95],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (country = ? OR unit_price > ?) GROUP BY country ORDER BY country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Channel Islands\",103.41666666666667],[\"EIRE\",1.0],[\"Germany\",1.0],[\"Norway\",1.0],[\"Singapore\",1.0],[\"Spain\",1.0],[\"United Arab Emirates\",1.0],[\"United Kingdom\",2.4714285714285715]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (country = ? OR unit_price > ?) GROUP BY country ORDER BY country ASC","sql_parameters":"[\"Channel Islands\",49.95]","state":"{\"question\":\"Return the average of quantity for retail invoice lines where (country equals 'Channel Islands' or unit_price is greater than 49.95), 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\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}913{"category":"single_table/or/ranked","domain":"sensor","family_id":"a9e4b1b2863b46c1728fb978","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"370bf3174641fc30ef2f74ec9d9aafd947a3e1299c119a19a68bfe74aab4e21f","language":"en","license":"CC-BY-4.0","query":"Return the sum of ps1_mean for hydraulic cycles where (valve equals 73 or ps2_mean is at most 109.23171), grouped by valve; return at most 5 groups ordered by aggregate value DESC, breaking ties by valve ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[73,109.23171],\\\"sql\\\":\\\"SELECT valve, SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (valve = ? AND ps2_mean <= ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[73,109.23171],\\\"sql\\\":\\\"SELECT valve, SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (valve = ? OR ps2_mean <= ?) GROUP BY valve ORDER BY value ASC, valve ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[73,109.23171],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (valve = ? OR ps2_mean <= ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[73,109.23171],\\\"sql\\\":\\\"SELECT valve, SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (valve = ? OR ps2_mean <= ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[100,114512.72294],[73,58106.94619],[80,43506.74107],[90,38346.60552]]","source":"hydraulic","split":"dev","sql":"SELECT valve, SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (valve = ? OR ps2_mean <= ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 5","sql_parameters":"[73,109.23171]","state":"{\"question\":\"Return the sum of ps1_mean for hydraulic cycles where (valve equals 73 or ps2_mean is at most 109.23171), grouped by valve; return at most 5 groups ordered by aggregate value DESC, breaking ties by valve ascending.\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}914{"category":"single_table/and/grouped","domain":"sensor","family_id":"c5ab6649c633cff4f3e6831e","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"1f57e8a0e811160161b68979515035f766e4d5070f9e469b1ffe112542b4a936","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for hydraulic cycles where (ps1_mean is greater than 158.27043 and vs1_mean is greater than 0.71948), grouped by valve, ordered by valve ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[158.27043,0.71948],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? AND vs1_mean > ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[158.27043,0.71948],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? OR vs1_mean > ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[158.27043,0.71948],\\\"sql\\\":\\\"SELECT valve, SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? AND vs1_mean > ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[158.27043,0.71948],\\\"sql\\\":\\\"SELECT valve, AVG(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? AND vs1_mean > ?) GROUP BY valve ORDER BY valve ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[73,50],[80,45],[90,49],[100,44]]","source":"hydraulic","split":"dev","sql":"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? AND vs1_mean > ?) GROUP BY valve ORDER BY valve ASC","sql_parameters":"[158.27043,0.71948]","state":"{\"question\":\"Return the number of rows for hydraulic cycles where (ps1_mean is greater than 158.27043 and vs1_mean is greater than 0.71948), 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\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}915{"category":"join/ranked","domain":"commerce","family_id":"e80d80cd1e6fd9c4d04ea4cd","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"6680d4acf228e5f88128485ff61b5168554a5d1ebe579e7c49cde92087ac2de8","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.quantity for retail lines joined to their invoices where (l.unit_price is at most 49.95), grouped by i.country; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[49.95],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price <= ?) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[49.95],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price <= ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[49.95],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price <= ?) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[49.95],\\\"sql\\\":\\\"SELECT i.country, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price <= ?) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"United Kingdom\",1171463],[\"EIRE\",13480],[\"Sweden\",10996],[\"Germany\",9967],[\"Netherlands\",7816]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price <= ?) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 5","sql_parameters":"[49.95]","state":"{\"question\":\"Return the sum of l.quantity for retail lines joined to their invoices where (l.unit_price is at most 49.95), grouped by i.country; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}916{"category":"single_table/ranked","domain":"sensor","family_id":"05ba8b79810d5a329b3c79f3","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"bada06ccf381e93a2d9c10906743957dc4811e6fd08ac35bc8a9239ebc6b495d","language":"en","license":"CC-BY-4.0","query":"Return the minimum of ts1_mean for hydraulic cycles where (ts1_mean is at most 44.84172), grouped by cooler; return at most 3 groups ordered by aggregate value ASC, breaking ties by cooler ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[44.84172],\\\"sql\\\":\\\"SELECT cooler, MIN(ts1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[44.84172],\\\"sql\\\":\\\"SELECT cooler, MIN(ts1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ?) GROUP BY cooler ORDER BY value DESC, cooler ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[44.84172],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[44.84172],\\\"sql\\\":\\\"SELECT cooler, SUM(ts1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[100,35.31378],[3,35.62198],[20,44.00265]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, MIN(ts1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 3","sql_parameters":"[44.84172]","state":"{\"question\":\"Return the minimum of ts1_mean for hydraulic cycles where (ts1_mean is at most 44.84172), 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\",\"cycle_id\":\"INTEGER\",\"eps1_mean\":\"REAL\",\"fs1_mean\":\"REAL\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}917{"category":"single_table/or/having","domain":"commerce","family_id":"a9ed5831578a5c8f6e8fd482","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"4b05798deac1ba873b28d03ee936020bede28ebf088a99a35b79110aa9c87e60","language":"en","license":"CC-BY-4.0","query":"Return the minimum of administrative for shopping sessions where (month equals 'Dec' or product_duration is at most 3395.729484), grouped by revenue, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by revenue ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Dec\\\",3395.729484,2],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (month = ? OR product_duration <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Dec\\\",3395.729484,2],\\\"sql\\\":\\\"SELECT revenue, MIN(administrative) AS value FROM shopping_sessions WHERE (month = ? OR product_duration <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Dec\\\",3395.729484,2],\\\"sql\\\":\\\"SELECT revenue, SUM(administrative) AS value FROM shopping_sessions WHERE (month = ? OR product_duration <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Dec\\\",3395.729484,2],\\\"sql\\\":\\\"SELECT revenue, AVG(administrative) AS value FROM shopping_sessions WHERE (month = ? OR product_duration <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,0],[1,0]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, MIN(administrative) AS value FROM shopping_sessions WHERE (month = ? OR product_duration <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 5","sql_parameters":"[\"Dec\",3395.729484,2]","state":"{\"question\":\"Return the minimum of administrative for shopping sessions where (month equals 'Dec' or product_duration is at most 3395.729484), grouped by revenue, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by revenue ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}918{"category":"single_table/aggregate","domain":"sensor","family_id":"f853460be01bc9371ae7cf86","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"b67becb84659bca913fe52bfb3a6e3091371fa1680372a3653752298e5e3be46","language":"en","license":"CC-BY-4.0","query":"Return the maximum of vs1_mean for hydraulic cycles where (fs1_mean is greater than 6.57291).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[6.57291],\\\"sql\\\":\\\"SELECT MAX(vs1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[6.57291],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (fs1_mean > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[6.57291],\\\"sql\\\":\\\"SELECT SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[6.57291],\\\"sql\\\":\\\"SELECT AVG(vs1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0.83907]]","source":"hydraulic","split":"dev","sql":"SELECT MAX(vs1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ?)","sql_parameters":"[6.57291]","state":"{\"question\":\"Return the maximum of vs1_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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}919{"category":"single_table/and/having","domain":"sensor","family_id":"6ecbbfd5dda7cbd31b3d50cb","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"2e000a16f81d33fbf7077f4b19bb353b1f74f8bfd93c5a3099586e23a7438b88","language":"en","license":"CC-BY-4.0","query":"Return the minimum of ts1_mean for hydraulic cycles where (cooler equals 100 and vs1_mean is greater than 0.71948), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[100,0.71948,2],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(ts1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? OR vs1_mean > ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(ts1_mean) AS value FROM hydraulic_cycles GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[100,0.71948,2],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(ts1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? AND vs1_mean > ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[100,2],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(ts1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, MIN(ts1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? AND vs1_mean > ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 5","sql_parameters":"[100,0.71948,2]","state":"{\"question\":\"Return the minimum of ts1_mean for hydraulic cycles where (cooler equals 100 and vs1_mean is greater than 0.71948), 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\":{\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}920{"category":"single_table/having","domain":"commerce","family_id":"800094a8bc218b2850c3843e","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"cf5818a5b8a2f6a538900a759d737489d83ba3ab2418e47384924fe525c0da98","language":"en","license":"CC-BY-4.0","query":"Return the minimum of quantity for retail invoice lines where (unit_price is at most 49.95), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[49.95,2],\\\"sql\\\":\\\"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (unit_price <= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[49.95,2],\\\"sql\\\":\\\"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (unit_price <= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[49.95,2],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (unit_price <= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[49.95,2],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (unit_price <= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-04-10\",24],[\"2010-03-28\",12],[\"2011-01-30\",12],[\"2011-08-17\",12],[\"2011-08-12\",8]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (unit_price <= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5","sql_parameters":"[49.95,2]","state":"{\"question\":\"Return the minimum of quantity for retail invoice lines where (unit_price is at most 49.95), 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\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}921{"category":"single_table/aggregate","domain":"commerce","family_id":"e6698656f5718fdc89e57581","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"58d5aba381a7e870130df7f1b8f27831c89b395fcf2e9723a571a8849e8de413","language":"en","license":"CC-BY-4.0","query":"Return the sum of quantity for retail invoice lines where (unit_price is greater than 49.95).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[49.95],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (unit_price > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[49.95],\\\"sql\\\":\\\"SELECT AVG(quantity) AS value FROM retail_lines WHERE (unit_price > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[49.95],\\\"sql\\\":\\\"SELECT MIN(quantity) AS value FROM retail_lines WHERE (unit_price > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[49.95],\\\"sql\\\":\\\"SELECT SUM(quantity) AS value FROM retail_lines WHERE (unit_price > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[201]]","source":"online_retail_ii","split":"dev","sql":"SELECT SUM(quantity) AS value FROM retail_lines WHERE (unit_price > ?)","sql_parameters":"[49.95]","state":"{\"question\":\"Return the sum of quantity for retail invoice lines where (unit_price is greater than 49.95).\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}922{"category":"single_table/date/and/ranked","domain":"commerce","family_id":"28b0bb981014a5a1e8f7acbe","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"25598efd5ecf7c020d742baab0638b9069bcbfb370855b6ac8d5892a8996cbda","language":"en","license":"CC-BY-4.0","query":"Return the average of quantity for retail invoice lines where (country equals 'Australia' and invoice_date is on or after '2010-12-02'), grouped by country; return at most 5 groups ordered by aggregate value DESC, breaking ties by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Australia\\\",\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (country = ? OR invoice_date >= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Australia\\\",\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Australia\\\",\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Australia\\\",\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",14.285714285714286]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5","sql_parameters":"[\"Australia\",\"2010-12-02\"]","state":"{\"question\":\"Return the average of quantity for retail invoice lines where (country equals 'Australia' and invoice_date is on or after '2010-12-02'), 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\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}923{"category":"single_table/date/and/ranked","domain":"commerce","family_id":"cc3ff931a099945672ec7933","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"5172108efb9af9fe0d462670af6f5565d76fe7b6d7fc89e158daf044cc39f240","language":"en","license":"CC-BY-4.0","query":"Return the average of unit_price for retail invoice lines where (quantity is at most 229 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[229,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date >= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[229,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[229,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[229,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Singapore\",3034.0299999999997],[\"Portugal\",20.9],[\"Germany\",13.985520000000001],[\"Belgium\",13.35],[\"Finland\",11.315263157894737]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5","sql_parameters":"[229,\"2011-09-29\"]","state":"{\"question\":\"Return the average of unit_price for retail invoice lines where (quantity is at most 229 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\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}924{"category":"single_table/aggregate","domain":"commerce","family_id":"48ca6709947f5611eb8d6205","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"fa2447db696b39e72548a9897dc7c67959ce9eab85801aea32ff651622855588","language":"en","license":"CC-BY-4.0","query":"Return the minimum of administrative for shopping sessions where (product_duration is greater than 167.5).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[167.5],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (product_duration > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[167.5],\\\"sql\\\":\\\"SELECT SUM(administrative) AS value FROM shopping_sessions WHERE (product_duration > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[167.5],\\\"sql\\\":\\\"SELECT AVG(administrative) AS value FROM shopping_sessions WHERE (product_duration > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[167.5],\\\"sql\\\":\\\"SELECT MIN(administrative) AS value FROM shopping_sessions WHERE (product_duration > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0]]","source":"online_shoppers","split":"dev","sql":"SELECT MIN(administrative) AS value FROM shopping_sessions WHERE (product_duration > ?)","sql_parameters":"[167.5]","state":"{\"question\":\"Return the minimum of administrative for shopping sessions where (product_duration is greater than 167.5).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}925{"category":"single_table/date/ranked","domain":"commerce","family_id":"415406d0409668b4771e028f","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"ef8ab71d88ca8ff8431e8512ea527beaaecba467bdf9d1923d12bc369c0a6d0c","language":"en","license":"CC-BY-4.0","query":"Return the sum of quantity for retail invoice lines where (invoice_date is before '2010-07-14'), grouped by invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\"],\\\"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\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-07-11\",4],[\"2010-07-02\",13],[\"2010-01-06\",19]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3","sql_parameters":"[\"2010-07-14\"]","state":"{\"question\":\"Return the sum of quantity for retail invoice lines where (invoice_date is before '2010-07-14'), grouped by invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by invoice_date ascending.\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}926{"category":"single_table/or/having","domain":"commerce","family_id":"fd493844ac7c6acb7de95bac","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"b6832d3d4b17cf20469f0ef2516b23d2890fb069f25a2499369b9e39f91eac16","language":"en","license":"CC-BY-4.0","query":"Return the sum of administrative for shopping sessions where (visitor_type equals 'Returning_Visitor' or traffic_type equals 16), grouped by month, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Returning_Visitor\\\",16,2],\\\"sql\\\":\\\"SELECT month, SUM(administrative) AS value FROM shopping_sessions WHERE (visitor_type = ? AND traffic_type = ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Returning_Visitor\\\",16,2],\\\"sql\\\":\\\"SELECT month, SUM(administrative) AS value FROM shopping_sessions WHERE (visitor_type = ? OR traffic_type = ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Returning_Visitor\\\",16,2],\\\"sql\\\":\\\"SELECT month, SUM(administrative) AS value FROM shopping_sessions WHERE (visitor_type = ? OR traffic_type = ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value ASC, month ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Returning_Visitor\\\",16,2],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (visitor_type = ? OR traffic_type = ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Nov\",6908],[\"May\",5795],[\"Dec\",3034],[\"Mar\",2881],[\"Oct\",1677]]","source":"online_shoppers","split":"dev","sql":"SELECT month, SUM(administrative) AS value FROM shopping_sessions WHERE (visitor_type = ? OR traffic_type = ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5","sql_parameters":"[\"Returning_Visitor\",16,2]","state":"{\"question\":\"Return the sum of administrative for shopping sessions where (visitor_type equals 'Returning_Visitor' or traffic_type equals 16), grouped by month, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}927{"category":"single_table/or/aggregate","domain":"sensor","family_id":"b54c89773e7baffe9a005ff9","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"960b1eb13177407e6d719b2fcb1491fa94d8367e16a7c04485fb9f7e143faec4","language":"en","license":"CC-BY-4.0","query":"Return the minimum of vs1_mean for hydraulic cycles where (ps1_mean is greater than 156.56746 or fs1_mean is at most 6.63763).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[156.56746,6.63763],\\\"sql\\\":\\\"SELECT MIN(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? AND fs1_mean <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[156.56746,6.63763],\\\"sql\\\":\\\"SELECT MIN(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? OR fs1_mean <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[156.56746,6.63763],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? OR fs1_mean <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[156.56746,6.63763],\\\"sql\\\":\\\"SELECT SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? OR fs1_mean <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0.52437]]","source":"hydraulic","split":"dev","sql":"SELECT MIN(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? OR fs1_mean <= ?)","sql_parameters":"[156.56746,6.63763]","state":"{\"question\":\"Return the minimum of vs1_mean for hydraulic cycles where (ps1_mean is greater than 156.56746 or fs1_mean is at most 6.63763).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}928{"category":"join/date/or/having","domain":"commerce","family_id":"68c0c091746b788ca525038e","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"75291824a98c0d0aeae323375c1f2036f9eb490f6b324b8389cdcb71289399cf","language":"en","license":"CC-BY-4.0","query":"Return the maximum of l.quantity for retail lines joined to their invoices where (l.unit_price is greater than 0.55 or i.invoice_date is on or after '2011-09-29'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[0.55,\\\"2011-09-29\\\",10],\\\"sql\\\":\\\"SELECT i.country, MAX(l.quantity) 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 HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[0.55,\\\"2011-09-29\\\",10],\\\"sql\\\":\\\"SELECT i.country, MAX(l.quantity) 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 HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[0.55,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT i.country, MAX(l.quantity) 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_4\":\"{\\\"parameters\\\":[0.55,\\\"2011-09-29\\\",10],\\\"sql\\\":\\\"SELECT i.country, MAX(l.quantity) 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 HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Bahrain\",24],[\"Norway\",24],[\"Austria\",48]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, MAX(l.quantity) 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 HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3","sql_parameters":"[0.55,\"2011-09-29\",10]","state":"{\"question\":\"Return the maximum of l.quantity for retail lines joined to their invoices where (l.unit_price is greater than 0.55 or i.invoice_date is on or after '2011-09-29'), 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_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}929{"category":"join/and/having","domain":"commerce","family_id":"3db0fefe2758dff5247018d9","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"c6aaaacda77d7ebec72b0c1d4b0eb71d21d0477aed2de5ad428ebdac4b432e21","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.unit_price for retail lines joined to their invoices where (l.quantity is greater than 92 and l.unit_price is at most 8.5), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[92,8.5,10],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.unit_price) 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 HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[92,8.5,10],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.unit_price) 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 HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[92,8.5],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.unit_price) 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 value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[92,8.5,10],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.unit_price) 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 HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-03-17\",7.87],[\"2010-09-26\",8.03],[\"2010-12-09\",8.28]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.invoice_date, SUM(l.unit_price) 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 HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3","sql_parameters":"[92,8.5,10]","state":"{\"question\":\"Return the sum of l.unit_price for retail lines joined to their invoices where (l.quantity is greater than 92 and l.unit_price is at most 8.5), 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_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}930{"category":"single_table/and/having","domain":"commerce","family_id":"acaa8232f8ddf9e340ee1e55","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"8eb67e81fa05cd0e4b8a381092aa801a02233e2aa1064a3a82fa7921d40adb21","language":"en","license":"CC-BY-4.0","query":"Return the average of unit_price for retail invoice lines where (quantity is greater than 1800 and unit_price is greater than 49.95), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[1800,49.95,2],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (quantity > ? OR unit_price > ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[1800,49.95,2],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (quantity > ? AND unit_price > ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[1800,2],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (quantity > ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (quantity > ? AND unit_price > ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5","sql_parameters":"[1800,49.95,2]","state":"{\"question\":\"Return the average of unit_price for retail invoice lines where (quantity is greater than 1800 and unit_price is greater than 49.95), 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\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}931{"category":"single_table/having","domain":"sensor","family_id":"7e054e2e1ab9b759ac60d556","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"5ab9e34f68906a519b5011891034f98ae8ae3b8c83c027858ee4e54d47eb5907","language":"en","license":"CC-BY-4.0","query":"Return the minimum of ps1_mean for hydraulic cycles where (ps2_mean is greater than 122.4767), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[122.4767,10],\\\"sql\\\":\\\"SELECT valve, MIN(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[122.4767,10],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps2_mean > ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[122.4767,10],\\\"sql\\\":\\\"SELECT valve, SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[122.4767,10],\\\"sql\\\":\\\"SELECT valve, MIN(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[100,172.51216],[90,172.58757],[80,172.76568]]","source":"hydraulic","split":"dev","sql":"SELECT valve, MIN(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 3","sql_parameters":"[122.4767,10]","state":"{\"question\":\"Return the minimum of ps1_mean for hydraulic cycles where (ps2_mean is greater than 122.4767), 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\",\"cooler\":\"INTEGER\",\"cycle_id\":\"INTEGER\",\"eps1_mean\":\"REAL\",\"fs1_mean\":\"REAL\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}932{"category":"join/and/aggregate","domain":"commerce","family_id":"afd6186e2557dfa5259ef349","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"083e3e358b88bf7aa9b7b6248257217c81441bbcedf2d1d1e2d0c6860cd3e55c","language":"en","license":"CC-BY-4.0","query":"Return the average of l.quantity for retail lines joined to their invoices where (i.country equals 'Finland' and l.quantity is greater than 92).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Finland\\\",92],\\\"sql\\\":\\\"SELECT AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR l.quantity > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Finland\\\",92],\\\"sql\\\":\\\"SELECT AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND l.quantity > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Finland\\\",92],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND l.quantity > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Finland\\\",92],\\\"sql\\\":\\\"SELECT SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND l.quantity > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[126.85714285714286]]","source":"online_retail_ii","split":"dev","sql":"SELECT AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND l.quantity > ?)","sql_parameters":"[\"Finland\",92]","state":"{\"question\":\"Return the average of l.quantity for retail lines joined to their invoices where (i.country equals 'Finland' and l.quantity is greater than 92).\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}933{"category":"single_table/and/having","domain":"commerce","family_id":"d254f410eb3dcd60b184748f","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"0ea2948d2457084dcc90bef8022a5d4dbe5d9970267f98d6429dbc693905c04a","language":"en","license":"CC-BY-4.0","query":"Return the average of product_related for shopping sessions where (month equals 'Jul' and product_duration is at most 1564.0), grouped by month, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Jul\\\",1564.0,2],\\\"sql\\\":\\\"SELECT month, AVG(product_related) AS value FROM shopping_sessions WHERE (month = ? OR product_duration <= ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Jul\\\",1564.0,2],\\\"sql\\\":\\\"SELECT month, AVG(product_related) AS value FROM shopping_sessions WHERE (month = ? AND product_duration <= ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Jul\\\",1564.0,2],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (month = ? AND product_duration <= ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Jul\\\",1564.0,2],\\\"sql\\\":\\\"SELECT month, SUM(product_related) AS value FROM shopping_sessions WHERE (month = ? AND product_duration <= ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Jul\",17.92749244712991]]","source":"online_shoppers","split":"dev","sql":"SELECT month, AVG(product_related) AS value FROM shopping_sessions WHERE (month = ? AND product_duration <= ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5","sql_parameters":"[\"Jul\",1564.0,2]","state":"{\"question\":\"Return the average of product_related for shopping sessions where (month equals 'Jul' and product_duration is at most 1564.0), grouped by month, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}934{"category":"single_table/and/having","domain":"commerce","family_id":"45986a9dda8644597e2aad09","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"54629234e4a4a60ab7d7311e574d84239ceab96db25bf0d84c03c6a2034c6923","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (country equals 'Austria' and quantity is at most 92), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Austria\\\",92,10],\\\"sql\\\":\\\"SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Austria\\\",92,10],\\\"sql\\\":\\\"SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Austria\\\",92,10],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Austria\\\",92,10],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Austria\",40.0]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3","sql_parameters":"[\"Austria\",92,10]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines where (country equals 'Austria' and quantity is at most 92), 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\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}935{"category":"single_table/and/aggregate","domain":"commerce","family_id":"1f74ab2d4fe86f641627b5b4","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"bd00ce26afb0c2d47dc861a0a2159e38c19c169db46facf8d94f5ba4bc99eff4","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (country equals 'Belgium' and unit_price is at most 2.25).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Belgium\\\",2.25],\\\"sql\\\":\\\"SELECT MAX(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Belgium\\\",2.25],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Belgium\\\",2.25],\\\"sql\\\":\\\"SELECT MAX(unit_price) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Belgium\\\",2.25],\\\"sql\\\":\\\"SELECT SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[2.08]]","source":"online_retail_ii","split":"dev","sql":"SELECT MAX(unit_price) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?)","sql_parameters":"[\"Belgium\",2.25]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines where (country equals 'Belgium' and unit_price is at most 2.25).\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}936{"category":"single_table/ranked","domain":"sensor","family_id":"afbb15176c28b389b0dd89e3","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"e2a7e010de18569306451430231940d70c03da658c29280e4f017c5a209f49bc","language":"en","license":"CC-BY-4.0","query":"Return the maximum of fs1_mean for hydraulic cycles where (ps2_mean is at most 105.7255), grouped by valve; return at most 5 groups ordered by aggregate value DESC, breaking ties by valve ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[105.7255],\\\"sql\\\":\\\"SELECT valve, MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[105.7255],\\\"sql\\\":\\\"SELECT valve, MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ?) GROUP BY valve ORDER BY value ASC, valve ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[105.7255],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[105.7255],\\\"sql\\\":\\\"SELECT valve, SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[100,6.60185],[90,6.59841],[80,6.58484],[73,6.56165]]","source":"hydraulic","split":"dev","sql":"SELECT valve, MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 5","sql_parameters":"[105.7255]","state":"{\"question\":\"Return the maximum of fs1_mean for hydraulic cycles where (ps2_mean is at most 105.7255), grouped by valve; return at most 5 groups ordered by aggregate value DESC, breaking ties by valve ascending.\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}937{"category":"single_table/or/having","domain":"commerce","family_id":"95b775f3a1796de6a9273527","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"f05bd76c4436f154973dd6d7a30736bf1d40441496c005282bc6f52203a5c53b","language":"en","license":"CC-BY-4.0","query":"Return the average of unit_price for retail invoice lines where (country equals 'Finland' or unit_price is greater than 0.55), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Finland\\\",0.55,10],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price > ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Finland\\\",0.55,10],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? AND unit_price > ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Finland\\\",0.55],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price > ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Finland\\\",0.55,10],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price > ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-08-17\",1.50875],[\"2010-03-28\",1.8291666666666666],[\"2009-12-23\",1.8409090909090908]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price > ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3","sql_parameters":"[\"Finland\",0.55,10]","state":"{\"question\":\"Return the average of unit_price for retail invoice lines where (country equals 'Finland' or unit_price is greater than 0.55), 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\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}938{"category":"single_table/or/aggregate","domain":"commerce","family_id":"892e076daa482f5b67388f05","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"66d001071f12017d4498b9b83865637ac4d133f3bf20c52c26b450fe63892071","language":"en","license":"CC-BY-4.0","query":"Return the average of quantity for retail invoice lines where (quantity is greater than 25 or unit_price is greater than 2.25).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[25,2.25],\\\"sql\\\":\\\"SELECT AVG(quantity) AS value FROM retail_lines WHERE (quantity > ? AND unit_price > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[25,2.25],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (quantity > ? OR unit_price > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[25,2.25],\\\"sql\\\":\\\"SELECT SUM(quantity) AS value FROM retail_lines WHERE (quantity > ? OR unit_price > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[25,2.25],\\\"sql\\\":\\\"SELECT AVG(quantity) AS value FROM retail_lines WHERE (quantity > ? OR unit_price > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[61.19897876914808]]","source":"online_retail_ii","split":"dev","sql":"SELECT AVG(quantity) AS value FROM retail_lines WHERE (quantity > ? OR unit_price > ?)","sql_parameters":"[25,2.25]","state":"{\"question\":\"Return the average of quantity for retail invoice lines where (quantity is greater than 25 or unit_price is greater than 2.25).\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}939{"category":"single_table/ranked","domain":"commerce","family_id":"4d757ae89813c2a751a93de5","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"9829edc23992cc6a51635d056e470bd1eaf29137a212c72799afcfc46bf11822","language":"en","license":"CC-BY-4.0","query":"Return the sum of administrative for shopping sessions where (weekend equals 1), grouped by visitor_type; return at most 3 groups ordered by aggregate value ASC, breaking ties by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[1],\\\"sql\\\":\\\"SELECT visitor_type, SUM(administrative) AS value FROM shopping_sessions WHERE (weekend = ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[1],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (weekend = ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[1],\\\"sql\\\":\\\"SELECT visitor_type, SUM(administrative) AS value FROM shopping_sessions WHERE (weekend = ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[1],\\\"sql\\\":\\\"SELECT visitor_type, AVG(administrative) AS value FROM shopping_sessions WHERE (weekend = ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Other\",8],[\"New_Visitor\",1226],[\"Returning_Visitor\",5863]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, SUM(administrative) AS value FROM shopping_sessions WHERE (weekend = ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3","sql_parameters":"[1]","state":"{\"question\":\"Return the sum of administrative for shopping sessions where (weekend equals 1), grouped by visitor_type; return at most 3 groups ordered by aggregate value ASC, breaking ties by visitor_type ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}940{"category":"join/date/and/grouped","domain":"commerce","family_id":"c1e2cf912e938a0698fcad19","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"c9551c0c1bfb25caa7363a47272ff1d4c3a9e78ac09731885185f2b10e6f84f4","language":"en","license":"CC-BY-4.0","query":"Return the minimum of l.unit_price for retail lines joined to their invoices where (l.quantity is at most 92 and i.invoice_date is on or after '2011-05-10'), grouped by i.country, ordered by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[92,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT i.country, MIN(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 ORDER BY i.country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[92,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT i.country, MIN(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 ORDER BY i.country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[92,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) 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 ORDER BY i.country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[92,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT i.country, SUM(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 ORDER BY i.country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",1.65],[\"Bahrain\",1.45],[\"Belgium\",0.65],[\"Canada\",0.83],[\"Channel Islands\",1.25],[\"Denmark\",0.83],[\"EIRE\",0.39],[\"Finland\",0.29],[\"France\",0.39],[\"Germany\",0.19],[\"Israel\",3.25],[\"Italy\",4.95],[\"Japan\",0.42],[\"Netherlands\",0.55],[\"Norway\",7.45],[\"Poland\",1.79],[\"Portugal\",10.95],[\"Singapore\",2118.74],[\"Spain\",0.83],[\"Sweden\",0.55],[\"Switzerland\",3.75],[\"United Kingdom\",0.06]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, MIN(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 ORDER BY i.country ASC","sql_parameters":"[92,\"2011-05-10\"]","state":"{\"question\":\"Return the minimum of l.unit_price for retail lines joined to their invoices where (l.quantity is at most 92 and i.invoice_date is on or after '2011-05-10'), grouped by i.country, ordered by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}941{"category":"single_table/grouped","domain":"commerce","family_id":"421c5b839c99a3ea61bf033c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"08b5d6ef90b2406a42cd4c218ac0d0f29f9d199634eaab92d9b40f36f872f70b","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail invoice lines where (country equals 'EIRE'), grouped by country, ordered by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"EIRE\\\"],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (country = ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"EIRE\\\"],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (country = ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"EIRE\\\"],\\\"sql\\\":\\\"SELECT country, MIN(quantity) AS value FROM retail_lines WHERE (country = ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"EIRE\\\"],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ?) GROUP BY country ORDER BY country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"EIRE\",204]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ?) GROUP BY country ORDER BY country ASC","sql_parameters":"[\"EIRE\"]","state":"{\"question\":\"Return the number of rows for retail invoice lines where (country equals 'EIRE'), 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\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}942{"category":"single_table/aggregate","domain":"commerce","family_id":"4d3949ee36c9065dab987ecd","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"eeff9d1c7da71353a3cc6fbf56eb2b0f0f44a37ab32b3d5f202564444eebcee1","language":"en","license":"CC-BY-4.0","query":"Return the average of product_duration for shopping sessions where (traffic_type equals 10).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[10],\\\"sql\\\":\\\"SELECT AVG(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[10],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (traffic_type = ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[10],\\\"sql\\\":\\\"SELECT SUM(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[10],\\\"sql\\\":\\\"SELECT MIN(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1258.3058536174]]","source":"online_shoppers","split":"dev","sql":"SELECT AVG(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ?)","sql_parameters":"[10]","state":"{\"question\":\"Return the average of product_duration for shopping sessions where (traffic_type equals 10).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}943{"category":"single_table/and/having","domain":"commerce","family_id":"43686eb7851f59314326a214","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"3f7bdc0aae8658cb51a01d44bd6e224ca833dc17fec0184db33f582a7456b6a1","language":"en","license":"CC-BY-4.0","query":"Return the minimum of product_duration for shopping sessions where (traffic_type equals 12 and product_related is greater than 31), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[12,31,10],\\\"sql\\\":\\\"SELECT revenue, MIN(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ? OR product_related > ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[10],\\\"sql\\\":\\\"SELECT revenue, MIN(product_duration) AS value FROM shopping_sessions GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[12,31,10],\\\"sql\\\":\\\"SELECT revenue, MIN(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ? AND product_related > ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[31,10],\\\"sql\\\":\\\"SELECT revenue, MIN(product_duration) AS value FROM shopping_sessions WHERE (product_related > ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, MIN(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ? AND product_related > ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3","sql_parameters":"[12,31,10]","state":"{\"question\":\"Return the minimum of product_duration for shopping sessions where (traffic_type equals 12 and product_related is greater than 31), 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\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}944{"category":"single_table/or/aggregate","domain":"sensor","family_id":"a6cccaa332b982820d0da215","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"1bf5656b9d5e03ce6385af9fda23e01b88c5f7fa14c30c12ab4465484d1a5c6a","language":"en","license":"CC-BY-4.0","query":"Return the sum of fs1_mean for hydraulic cycles where (ps1_mean is at most 156.56746 or ps2_mean is greater than 107.72581).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[156.56746,107.72581],\\\"sql\\\":\\\"SELECT SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? AND ps2_mean > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[156.56746,107.72581],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR ps2_mean > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[156.56746,107.72581],\\\"sql\\\":\\\"SELECT AVG(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR ps2_mean > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[156.56746,107.72581],\\\"sql\\\":\\\"SELECT SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR ps2_mean > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[7916.08378]]","source":"hydraulic","split":"dev","sql":"SELECT SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR ps2_mean > ?)","sql_parameters":"[156.56746,107.72581]","state":"{\"question\":\"Return the sum of fs1_mean for hydraulic cycles where (ps1_mean is at most 156.56746 or ps2_mean is greater than 107.72581).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}945{"category":"join/date/or/grouped","domain":"commerce","family_id":"68669ec71ea1bb56caa1e3c2","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"22112b4e697b0c2478e660de50fc54a4dd560468547cbe97183bd3572d076bab","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.quantity for retail lines joined to their invoices where (l.unit_price is at most 49.95 or i.invoice_date is before '2011-05-10'), grouped by i.invoice_date, ordered by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[49.95,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.quantity) 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\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[49.95,\\\"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 (l.unit_price <= ? OR i.invoice_date < ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[49.95,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.quantity) 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_4\":\"{\\\"parameters\\\":[49.95,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(l.quantity) 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\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-01\",1222],[\"2009-12-02\",4011],[\"2009-12-03\",21466],[\"2009-12-04\",2360],[\"2009-12-05\",613],[\"2009-12-06\",319],[\"2009-12-07\",2230],[\"2009-12-08\",4695],[\"2009-12-09\",1624],[\"2009-12-10\",2335],[\"2009-12-11\",261],[\"2009-12-13\",555],[\"2009-12-14\",644],[\"2009-12-15\",4506],[\"2009-12-16\",1384],[\"2009-12-17\",1747],[\"2009-12-18\",1267],[\"2009-12-20\",612],[\"2009-12-21\",817],[\"2009-12-22\",1474],[\"2009-12-23\",794],[\"2010-01-04\",997],[\"2010-01-05\",956],[\"2010-01-06\",19],[\"2010-01-07\",2121],[\"2010-01-08\",5574],[\"2010-01-10\",1825],[\"2010-01-11\",1695],[\"2010-01-12\",1602],[\"2010-01-13\",1155],[\"2010-01-14\",420],[\"2010-01-15\",646],[\"2010-01-17\",631],[\"2010-01-18\",84],[\"2010-01-19\",662],[\"2010-01-20\",1569],[\"2010-01-21\",1079],[\"2010-01-22\",194],[\"2010-01-24\",370],[\"2010-01-25\",241],[\"2010-01-26\",166],[\"2010-01-27\",3658],[\"2010-01-28\",451],[\"2010-01-29\",1372],[\"2010-01-31\",667],[\"2010-02-01\",818],[\"2010-02-02\",433],[\"2010-02-03\",460],[\"2010-02-04\",1795],[\"2010-02-05\",1805],[\"2010-02-07\",1207],[\"2010-02-08\",503],[\"2010-02-09\",715],[\"2010-02-10\",452],[\"2010-02-11\",1226],[\"2010-02-12\",2736],[\"2010-02-14\",763],[\"2010-02-15\",1680],[\"2010-02-16\",1733],[\"2010-02-17\",2813],[\"2010-02-18\",896],[\"2010-02-19\",4028],[\"2010-02-21\",676],[\"2010-02-22\",1056],[\"2010-02-23\",317],[\"2010-02-24\",2327],[\"2010-02-25\",4622],[\"2010-02-26\",689],[\"2010-02-28\",1089],[\"2010-03-01\",2072],[\"2010-03-02\",586],[\"2010-03-03\",585],[\"2010-03-04\",1156],[\"2010-03-05\",2273],[\"2010-03-07\",156],[\"2010-03-08\",3230],[\"2010-03-09\",1403],[\"2010-03-10\",2485],[\"2010-03-11\",722],[\"2010-03-12\",589],[\"2010-03-14\",457],[\"2010-03-15\",2242],[\"2010-03-16\",527],[\"2010-03-17\",4258],[\"2010-03-18\",4923],[\"2010-03-19\",3168],[\"2010-03-21\",779],[\"2010-03-22\",1604],[\"2010-03-23\",45554],[\"2010-03-24\",952],[\"2010-03-25\",570],[\"2010-03-26\",459],[\"2010-03-28\",326],[\"2010-03-29\",4580],[\"2010-03-30\",958],[\"2010-03-31\",876],[\"2010-04-01\",2478],[\"2010-04-06\",3228],[\"2010-04-07\",1138],[\"2010-04-08\",2883],[\"2010-04-09\",516],[\"2010-04-11\",1592],[\"2010-04-12\",1388],[\"2010-04-13\",606],[\"2010-04-14\",1778],[\"2010-04-15\",397],[\"2010-04-16\",2176],[\"2010-04-18\",882],[\"2010-04-19\",2425],[\"2010-04-20\",1726],[\"2010-04-21\",702],[\"2010-04-22\",5372],[\"2010-04-23\",394],[\"2010-04-25\",1563],[\"2010-04-26\",2444],[\"2010-04-27\",1369],[\"2010-04-28\",1461],[\"2010-04-29\",2136],[\"2010-04-30\",511],[\"2010-05-02\",832],[\"2010-05-04\",661],[\"2010-05-05\",2546],[\"2010-05-06\",1587],[\"2010-05-07\",3590],[\"2010-05-09\",383],[\"2010-05-10\",3803],[\"2010-05-11\",574],[\"2010-05-12\",8734],[\"2010-05-13\",818],[\"2010-05-14\",2549],[\"2010-05-16\",587],[\"2010-05-17\",751],[\"2010-05-18\",13759],[\"2010-05-19\",1950],[\"2010-05-20\",518],[\"2010-05-21\",489],[\"2010-05-23\",675],[\"2010-05-24\",771],[\"2010-05-25\",3320],[\"2010-05-26\",2139],[\"2010-05-27\",1332],[\"2010-05-28\",1322],[\"2010-05-30\",290],[\"2010-06-01\",613],[\"2010-06-02\",417],[\"2010-06-03\",2499],[\"2010-06-04\",804],[\"2010-06-06\",246],[\"2010-06-07\",10427],[\"2010-06-08\",5376],[\"2010-06-09\",2054],[\"2010-06-10\",390],[\"2010-06-11\",1754],[\"2010-06-13\",1118],[\"2010-06-14\",834],[\"2010-06-15\",1422],[\"2010-06-16\",2035],[\"2010-06-17\",474],[\"2010-06-18\",370],[\"2010-06-20\",1133],[\"2010-06-21\",117],[\"2010-06-22\",250],[\"2010-06-23\",3515],[\"2010-06-24\",1308],[\"2010-06-25\",236],[\"2010-06-27\",1686],[\"2010-06-28\",3098],[\"2010-06-29\",2484],[\"2010-06-30\",1765],[\"2010-07-01\",990],[\"2010-07-02\",13],[\"2010-07-04\",350],[\"2010-07-05\",1536],[\"2010-07-06\",2914],[\"2010-07-07\",1292],[\"2010-07-08\",987],[\"2010-07-09\",58],[\"2010-07-11\",4],[\"2010-07-12\",1160],[\"2010-07-13\",1313],[\"2010-07-14\",363],[\"2010-07-15\",3511],[\"2010-07-16\",1613],[\"2010-07-18\",1519],[\"2010-07-19\",686],[\"2010-07-20\",679],[\"2010-07-21\",1064],[\"2010-07-22\",679],[\"2010-07-23\",1344],[\"2010-07-25\",963],[\"2010-07-26\",2149],[\"2010-07-27\",5421],[\"2010-07-28\",908],[\"2010-07-29\",736],[\"2010-07-30\",1762],[\"2010-08-01\",55],[\"2010-08-02\",1308],[\"2010-08-03\",4923],[\"2010-08-04\",164],[\"2010-08-05\",3364],[\"2010-08-06\",457],[\"2010-08-08\",1033],[\"2010-08-09\",3351],[\"2010-08-10\",655],[\"2010-08-11\",1256],[\"2010-08-12\",452],[\"2010-08-13\",1040],[\"2010-08-15\",6212],[\"2010-08-16\",1987],[\"2010-08-17\",2036],[\"2010-08-18\",231],[\"2010-08-19\",2951],[\"2010-08-20\",1367],[\"2010-08-22\",654],[\"2010-08-23\",631],[\"2010-08-24\",2561],[\"2010-08-25\",2334],[\"2010-08-26\",3038],[\"2010-08-27\",184],[\"2010-08-29\",214],[\"2010-08-31\",2020],[\"2010-09-01\",484],[\"2010-09-02\",1810],[\"2010-09-03\",18286],[\"2010-09-05\",1251],[\"2010-09-06\",624],[\"2010-09-07\",2037],[\"2010-09-08\",310],[\"2010-09-09\",489],[\"2010-09-10\",534],[\"2010-09-12\",857],[\"2010-09-13\",6381],[\"2010-09-14\",1025],[\"2010-09-15\",412],[\"2010-09-16\",944],[\"2010-09-17\",1385],[\"2010-09-19\",951],[\"2010-09-20\",4109],[\"2010-09-21\",4667],[\"2010-09-22\",826],[\"2010-09-23\",289],[\"2010-09-24\",680],[\"2010-09-26\",2568],[\"2010-09-27\",4073],[\"2010-09-28\",1394],[\"2010-09-29\",1187],[\"2010-09-30\",1187],[\"2010-10-01\",593],[\"2010-10-03\",454],[\"2010-10-04\",1860],[\"2010-10-05\",2028],[\"2010-10-06\",6565],[\"2010-10-07\",1871],[\"2010-10-08\",16670],[\"2010-10-10\",451],[\"2010-10-11\",956],[\"2010-10-12\",2948],[\"2010-10-13\",2122],[\"2010-10-14\",4006],[\"2010-10-15\",1779],[\"2010-10-17\",6],[\"2010-10-18\",2888],[\"2010-10-19\",407],[\"2010-10-20\",3650],[\"2010-10-21\",1260],[\"2010-10-22\",3281],[\"2010-10-24\",885],[\"2010-10-25\",533],[\"2010-10-26\",4098],[\"2010-10-27\",559],[\"2010-10-28\",762],[\"2010-10-29\",1223],[\"2010-10-31\",692],[\"2010-11-01\",1130],[\"2010-11-02\",1214],[\"2010-11-03\",2250],[\"2010-11-04\",28498],[\"2010-11-05\",3860],[\"2010-11-07\",305],[\"2010-11-08\",905],[\"2010-11-09\",2398],[\"2010-11-10\",5639],[\"2010-11-11\",5461],[\"2010-11-12\",4516],[\"2010-11-14\",436],[\"2010-11-15\",2595],[\"2010-11-16\",4676],[\"2010-11-17\",2523],[\"2010-11-18\",2392],[\"2010-11-19\",2521],[\"2010-11-21\",479],[\"2010-11-22\",1109],[\"2010-11-23\",2081],[\"2010-11-24\",2533],[\"2010-11-25\",4122],[\"2010-11-26\",1265],[\"2010-11-28\",828],[\"2010-11-29\",2928],[\"2010-11-30\",1971],[\"2010-12-01\",10028],[\"2010-12-02\",16460],[\"2010-12-03\",5548],[\"2010-12-05\",1604],[\"2010-12-06\",4586],[\"2010-12-07\",10470],[\"2010-12-08\",4500],[\"2010-12-09\",6962],[\"2010-12-10\",944],[\"2010-12-12\",221],[\"2010-12-13\",2501],[\"2010-12-14\",2506],[\"2010-12-15\",627],[\"2010-12-16\",4054],[\"2010-12-17\",1110],[\"2010-12-19\",20],[\"2010-12-20\",4438],[\"2010-12-21\",440],[\"2010-12-22\",361],[\"2010-12-23\",224],[\"2011-01-04\",486],[\"2011-01-05\",2316],[\"2011-01-06\",1723],[\"2011-01-07\",1743],[\"2011-01-09\",755],[\"2011-01-10\",248],[\"2011-01-11\",16112],[\"2011-01-12\",569],[\"2011-01-13\",886],[\"2011-01-14\",559],[\"2011-01-16\",17],[\"2011-01-17\",1449],[\"2011-01-18\",542],[\"2011-01-19\",360],[\"2011-01-20\",990],[\"2011-01-21\",1230],[\"2011-01-23\",99],[\"2011-01-24\",492],[\"2011-01-25\",2111],[\"2011-01-26\",1931],[\"2011-01-27\",373],[\"2011-01-28\",138],[\"2011-01-30\",76],[\"2011-01-31\",1085],[\"2011-02-01\",1119],[\"2011-02-02\",1234],[\"2011-02-03\",3777],[\"2011-02-04\",2702],[\"2011-02-07\",2862],[\"2011-02-08\",1261],[\"2011-02-09\",77],[\"2011-02-10\",6330],[\"2011-02-11\",929],[\"2011-02-13\",40],[\"2011-02-14\",1206],[\"2011-02-15\",3476],[\"2011-02-16\",2209],[\"2011-02-17\",1363],[\"2011-02-18\",874],[\"2011-02-20\",492],[\"2011-02-21\",497],[\"2011-02-22\",817],[\"2011-02-23\",698],[\"2011-02-24\",439],[\"2011-02-25\",1217],[\"2011-02-27\",212],[\"2011-02-28\",283],[\"2011-03-01\",1550],[\"2011-03-02\",1047],[\"2011-03-03\",1038],[\"2011-03-04\",3808],[\"2011-03-06\",407],[\"2011-03-07\",2064],[\"2011-03-08\",2206],[\"2011-03-09\",2289],[\"2011-03-10\",1310],[\"2011-03-11\",1536],[\"2011-03-14\",861],[\"2011-03-15\",425],[\"2011-03-16\",2287],[\"2011-03-17\",2680],[\"2011-03-18\",1628],[\"2011-03-20\",4879],[\"2011-03-21\",1053],[\"2011-03-22\",590],[\"2011-03-23\",2219],[\"2011-03-24\",1419],[\"2011-03-25\",3108],[\"2011-03-27\",376],[\"2011-03-28\",1112],[\"2011-03-29\",358],[\"2011-03-30\",2348],[\"2011-03-31\",1548],[\"2011-04-01\",6523],[\"2011-04-03\",746],[\"2011-04-04\",557],[\"2011-04-05\",4592],[\"2011-04-06\",305],[\"2011-04-07\",893],[\"2011-04-08\",2106],[\"2011-04-10\",48],[\"2011-04-11\",1159],[\"2011-04-12\",928],[\"2011-04-13\",3193],[\"2011-04-14\",4185],[\"2011-04-15\",229],[\"2011-04-17\",261],[\"2011-04-18\",9538],[\"2011-04-19\",523],[\"2011-04-20\",6442],[\"2011-04-21\",2849],[\"2011-04-26\",3409],[\"2011-04-27\",4593],[\"2011-04-28\",894],[\"2011-05-01\",69],[\"2011-05-03\",1685],[\"2011-05-04\",2084],[\"2011-05-05\",4525],[\"2011-05-06\",819],[\"2011-05-08\",455],[\"2011-05-09\",960],[\"2011-05-10\",821],[\"2011-05-11\",1555],[\"2011-05-12\",865],[\"2011-05-13\",2558],[\"2011-05-15\",289],[\"2011-05-16\",1562],[\"2011-05-17\",2529],[\"2011-05-18\",2314],[\"2011-05-19\",2419],[\"2011-05-20\",4455],[\"2011-05-22\",500],[\"2011-05-23\",6036],[\"2011-05-24\",4923],[\"2011-05-25\",764],[\"2011-05-26\",2724],[\"2011-05-27\",1812],[\"2011-05-29\",456],[\"2011-05-31\",2240],[\"2011-06-01\",512],[\"2011-06-02\",1370],[\"2011-06-03\",475],[\"2011-06-05\",1052],[\"2011-06-06\",1112],[\"2011-06-07\",1118],[\"2011-06-08\",3452],[\"2011-06-09\",857],[\"2011-06-10\",1031],[\"2011-06-12\",37],[\"2011-06-13\",1762],[\"2011-06-14\",1899],[\"2011-06-15\",480],[\"2011-06-16\",3043],[\"2011-06-17\",1485],[\"2011-06-19\",999],[\"2011-06-20\",2660],[\"2011-06-21\",469],[\"2011-06-22\",2744],[\"2011-06-23\",256],[\"2011-06-24\",989],[\"2011-06-26\",115],[\"2011-06-27\",1208],[\"2011-06-28\",2308],[\"2011-06-29\",971],[\"2011-06-30\",3170],[\"2011-07-01\",562],[\"2011-07-03\",168],[\"2011-07-04\",3336],[\"2011-07-05\",5312],[\"2011-07-06\",2867],[\"2011-07-07\",4035],[\"2011-07-08\",896],[\"2011-07-10\",29],[\"2011-07-11\",2423],[\"2011-07-12\",2205],[\"2011-07-13\",788],[\"2011-07-14\",1418],[\"2011-07-15\",734],[\"2011-07-17\",1400],[\"2011-07-18\",305],[\"2011-07-19\",3440],[\"2011-07-20\",1960],[\"2011-07-21\",1340],[\"2011-07-22\",859],[\"2011-07-24\",3446],[\"2011-07-25\",1488],[\"2011-07-26\",734],[\"2011-07-27\",1232],[\"2011-07-28\",4157],[\"2011-07-29\",769],[\"2011-07-31\",603],[\"2011-08-01\",1311],[\"2011-08-02\",3265],[\"2011-08-03\",1930],[\"2011-08-04\",3954],[\"2011-08-05\",2020],[\"2011-08-07\",1011],[\"2011-08-08\",1236],[\"2011-08-09\",349],[\"2011-08-10\",403],[\"2011-08-11\",1583],[\"2011-08-12\",840],[\"2011-08-14\",196],[\"2011-08-15\",793],[\"2011-08-16\",391],[\"2011-08-17\",2760],[\"2011-08-18\",5010],[\"2011-08-19\",799],[\"2011-08-21\",1568],[\"2011-08-22\",2464],[\"2011-08-23\",2374],[\"2011-08-24\",5870],[\"2011-08-25\",998],[\"2011-08-26\",933],[\"2011-08-28\",521],[\"2011-08-30\",236],[\"2011-08-31\",203],[\"2011-09-01\",4354],[\"2011-09-02\",5932],[\"2011-09-04\",1604],[\"2011-09-05\",2246],[\"2011-09-06\",1657],[\"2011-09-07\",749],[\"2011-09-08\",2267],[\"2011-09-09\",430],[\"2011-09-11\",1122],[\"2011-09-12\",1596],[\"2011-09-13\",1294],[\"2011-09-14\",2514],[\"2011-09-15\",3203],[\"2011-09-16\",1775],[\"2011-09-18\",407],[\"2011-09-19\",711],[\"2011-09-20\",2427],[\"2011-09-21\",2449],[\"2011-09-22\",2271],[\"2011-09-23\",630],[\"2011-09-25\",895],[\"2011-09-26\",834],[\"2011-09-27\",3442],[\"2011-09-28\",2655],[\"2011-09-29\",1774],[\"2011-09-30\",1033],[\"2011-10-02\",384],[\"2011-10-03\",2295],[\"2011-10-04\",4581],[\"2011-10-05\",1347],[\"2011-10-06\",4536],[\"2011-10-07\",5337],[\"2011-10-09\",53],[\"2011-10-10\",1405],[\"2011-10-11\",804],[\"2011-10-12\",777],[\"2011-10-13\",1257],[\"2011-10-14\",623],[\"2011-10-17\",3588],[\"2011-10-18\",1268],[\"2011-10-19\",2559],[\"2011-10-20\",1091],[\"2011-10-21\",505],[\"2011-10-23\",8],[\"2011-10-24\",4121],[\"2011-10-25\",3227],[\"2011-10-26\",3331],[\"2011-10-27\",2110],[\"2011-10-28\",2141],[\"2011-10-30\",951],[\"2011-10-31\",1511],[\"2011-11-01\",1207],[\"2011-11-02\",2165],[\"2011-11-03\",6577],[\"2011-11-04\",1086],[\"2011-11-06\",777],[\"2011-11-07\",1586],[\"2011-11-08\",1944],[\"2011-11-09\",6634],[\"2011-11-10\",1329],[\"2011-11-11\",2275],[\"2011-11-13\",655],[\"2011-11-14\",1278],[\"2011-11-15\",2700],[\"2011-11-16\",3728],[\"2011-11-17\",3706],[\"2011-11-18\",2929],[\"2011-11-20\",1092],[\"2011-11-21\",1311],[\"2011-11-22\",5811],[\"2011-11-23\",3107],[\"2011-11-24\",3689],[\"2011-11-25\",2101],[\"2011-11-27\",39],[\"2011-11-28\",5736],[\"2011-11-29\",1952],[\"2011-11-30\",918],[\"2011-12-01\",4298],[\"2011-12-02\",1990],[\"2011-12-04\",1007],[\"2011-12-05\",3774],[\"2011-12-06\",3190],[\"2011-12-07\",1877],[\"2011-12-08\",1341],[\"2011-12-09\",842]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.invoice_date, SUM(l.quantity) 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","sql_parameters":"[49.95,\"2011-05-10\"]","state":"{\"question\":\"Return the sum of l.quantity for retail lines joined to their invoices where (l.unit_price is at most 49.95 or i.invoice_date is before '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\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}946{"category":"single_table/or/ranked","domain":"commerce","family_id":"8e673ae16516e5331133882e","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"e454348069f28154d8fcfaa8d455ea0f6065fc95f7912b9b54efc721c7161421","language":"en","license":"CC-BY-4.0","query":"Return the minimum of unit_price for retail invoice lines where (quantity is greater than 229 or unit_price is greater than 4.77), grouped by invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[229,4.77],\\\"sql\\\":\\\"SELECT invoice_date, MIN(unit_price) AS value FROM retail_lines WHERE (quantity > ? OR unit_price > ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[229,4.77],\\\"sql\\\":\\\"SELECT invoice_date, MIN(unit_price) AS value FROM retail_lines WHERE (quantity > ? AND unit_price > ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[229,4.77],\\\"sql\\\":\\\"SELECT invoice_date, MIN(unit_price) AS value FROM retail_lines WHERE (quantity > ? OR unit_price > ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[229,4.77],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (quantity > ? OR unit_price > ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-09-16\",0.04],[\"2010-02-19\",0.09],[\"2010-04-19\",0.09]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MIN(unit_price) AS value FROM retail_lines WHERE (quantity > ? OR unit_price > ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3","sql_parameters":"[229,4.77]","state":"{\"question\":\"Return the minimum of unit_price for retail invoice lines where (quantity is greater than 229 or unit_price is greater than 4.77), grouped by invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by invoice_date ascending.\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}947{"category":"join/date/and/aggregate","domain":"commerce","family_id":"fce4596635cbe86e1cfbe7ae","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"0a6417ef8f7b5097c04713dbdab85687f2bb1d1b6b0d96cebd2e368bcaeaf1c9","language":"en","license":"CC-BY-4.0","query":"Return the minimum of l.unit_price 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').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[8.5,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT MIN(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\\\":[8.5,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ? AND i.invoice_date >= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[8.5,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT SUM(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ? AND i.invoice_date >= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[8.5,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT MIN(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ? AND i.invoice_date >= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[8.95]]","source":"online_retail_ii","split":"dev","sql":"SELECT MIN(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ? AND i.invoice_date >= ?)","sql_parameters":"[8.5,\"2011-09-29\"]","state":"{\"question\":\"Return the minimum of l.unit_price 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').\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}948{"category":"single_table/ranked","domain":"commerce","family_id":"59abac8e7e7822119b65abec","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"ecc4b4c90b3c08968f86022aaaa368ad786b74977ff355daba8c4bd62f69fdd8","language":"en","license":"CC-BY-4.0","query":"Return the maximum of product_duration for shopping sessions where (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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[340],\\\"sql\\\":\\\"SELECT visitor_type, MAX(product_duration) AS value FROM shopping_sessions WHERE (product_related <= ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[340],\\\"sql\\\":\\\"SELECT visitor_type, MAX(product_duration) AS value FROM shopping_sessions WHERE (product_related <= ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[340],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (product_related <= ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[340],\\\"sql\\\":\\\"SELECT visitor_type, SUM(product_duration) AS value FROM shopping_sessions WHERE (product_related <= ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Returning_Visitor\",18171.79454],[\"New_Visitor\",12983.78771],[\"Other\",9630.209524]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, MAX(product_duration) AS value FROM shopping_sessions WHERE (product_related <= ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5","sql_parameters":"[340]","state":"{\"question\":\"Return the maximum of product_duration for shopping sessions where (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\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}949{"category":"single_table/or/ranked","domain":"sensor","family_id":"a868c30a980b9c39035c1f40","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"306cef55dd3545866eea7d5f7eae018bb41ad34b937fd790dc7117b3e529eca8","language":"en","license":"CC-BY-4.0","query":"Return the average of ts1_mean for hydraulic cycles where (ps2_mean is greater than 105.7255 or fs1_mean is at most 6.57291), grouped by valve; return at most 5 groups ordered by aggregate value DESC, breaking ties by valve ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[105.7255,6.57291],\\\"sql\\\":\\\"SELECT valve, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? AND fs1_mean <= ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[105.7255,6.57291],\\\"sql\\\":\\\"SELECT valve, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? OR fs1_mean <= ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[105.7255,6.57291],\\\"sql\\\":\\\"SELECT valve, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? OR fs1_mean <= ?) GROUP BY valve ORDER BY value ASC, valve ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[105.7255,6.57291],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? OR fs1_mean <= ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[73,45.62974452777778],[80,45.372573732193736],[100,44.95844649090909],[90,44.943519109792284]]","source":"hydraulic","split":"dev","sql":"SELECT valve, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? OR fs1_mean <= ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 5","sql_parameters":"[105.7255,6.57291]","state":"{\"question\":\"Return the average of ts1_mean for hydraulic cycles where (ps2_mean is greater than 105.7255 or fs1_mean is at most 6.57291), grouped by valve; return at most 5 groups ordered by aggregate value DESC, breaking ties by valve ascending.\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}950{"category":"join/having","domain":"commerce","family_id":"3da7743ad2688dce935716ec","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"68b3a671b290bdb0b0ee84d3feeb16565fea45157db02813c606afea84e28e35","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.quantity for retail lines joined to their invoices where (i.customer_id equals '12356'), grouped by i.country, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12356\\\",2],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12356\\\",2],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12356\\\",2],\\\"sql\\\":\\\"SELECT i.country, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12356\\\",2],\\\"sql\\\":\\\"SELECT i.country, MIN(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Portugal\",5]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5","sql_parameters":"[\"12356\",2]","state":"{\"question\":\"Return the sum of l.quantity for retail lines joined to their invoices where (i.customer_id equals '12356'), grouped by i.country, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}951{"category":"single_table/or/ranked","domain":"sensor","family_id":"c4cfe5ff7e12d031210e3095","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"43cdee78b9487beec5a4e0708abe0a413fafc6baee6732ac2b9638a651018d12","language":"en","license":"CC-BY-4.0","query":"Return the minimum of fs1_mean for hydraulic cycles where (fs1_mean is at most 6.63763 or ts1_mean is greater than 52.59775), grouped by pump_leakage; return at most 3 groups ordered by aggregate value ASC, breaking ties by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[6.63763,52.59775],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(fs1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? OR ts1_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[6.63763,52.59775],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(fs1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? OR ts1_mean > ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[6.63763,52.59775],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? OR ts1_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[6.63763,52.59775],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? OR ts1_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[2,2.01857],[1,2.07884],[0,2.12356]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, MIN(fs1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? OR ts1_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3","sql_parameters":"[6.63763,52.59775]","state":"{\"question\":\"Return the minimum of fs1_mean for hydraulic cycles where (fs1_mean is at most 6.63763 or ts1_mean is greater than 52.59775), 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\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}952{"category":"single_table/ranked","domain":"commerce","family_id":"0ae72fd7e74091bc0484855d","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"82dc2033f95c808eeb7be36016f1597ae1ec33128ef7653da34bd48e46fd115a","language":"en","license":"CC-BY-4.0","query":"Return the average of product_duration for shopping sessions where (revenue equals 0), grouped by visitor_type; return at most 5 groups ordered by aggregate value DESC, breaking ties by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[0],\\\"sql\\\":\\\"SELECT visitor_type, AVG(product_duration) AS value FROM shopping_sessions WHERE (revenue = ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[0],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (revenue = ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[0],\\\"sql\\\":\\\"SELECT visitor_type, SUM(product_duration) AS value FROM shopping_sessions WHERE (revenue = ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[0],\\\"sql\\\":\\\"SELECT visitor_type, AVG(product_duration) AS value FROM shopping_sessions WHERE (revenue = ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Returning_Visitor\",1146.7827971809197],[\"New_Visitor\",557.4907448864229],[\"Other\",410.8715697411594]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, AVG(product_duration) AS value FROM shopping_sessions WHERE (revenue = ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5","sql_parameters":"[0]","state":"{\"question\":\"Return the average of product_duration for shopping sessions where (revenue equals 0), 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\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}953{"category":"join/null/and/ranked","domain":"commerce","family_id":"39dfa7ea267983466bbfd860","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"769a337e03d2f274605902266b02d49032a396b41a44d88c32ef36a14fdd7283","language":"en","license":"CC-BY-4.0","query":"Return the maximum of l.unit_price for retail lines joined to their invoices where (i.country equals 'Austria' and i.customer_id is present), grouped by i.invoice_date; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Austria\\\"],\\\"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 = ? OR i.customer_id IS NOT NULL) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Austria\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) 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 ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Austria\\\"],\\\"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 ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Austria\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(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 ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-03-25\",40.0],[\"2011-03-03\",40.0],[\"2011-04-26\",40.0],[\"2011-05-06\",40.0]]","source":"online_retail_ii","split":"dev","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 ORDER BY value DESC, i.invoice_date ASC LIMIT 5","sql_parameters":"[\"Austria\"]","state":"{\"question\":\"Return the maximum of l.unit_price for retail lines joined to their invoices where (i.country equals 'Austria' and i.customer_id is present), 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_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}954{"category":"join/null/and/ranked","domain":"commerce","family_id":"78a13d8d61b7fa171e76c36c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"52c2bcb8044b1f26b04e1c7f852086eeb6393c918a9da160a995092841fe06cc","language":"en","license":"CC-BY-4.0","query":"Return the average of l.quantity for retail lines joined to their invoices where (l.quantity is at most 25 and i.customer_id is present), grouped by i.invoice_date; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[25],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? AND i.customer_id IS NOT NULL) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[25],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? OR i.customer_id IS NOT NULL) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[25],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? AND i.customer_id IS NOT NULL) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[25],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? AND i.customer_id IS NOT NULL) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-02-07\",24.0],[\"2011-04-10\",24.0],[\"2010-12-22\",19.75],[\"2010-07-09\",18.0],[\"2011-04-03\",17.666666666666668]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.invoice_date, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? AND i.customer_id IS NOT NULL) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5","sql_parameters":"[25]","state":"{\"question\":\"Return the average of l.quantity for retail lines joined to their invoices where (l.quantity is at most 25 and i.customer_id is present), 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_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}955{"category":"single_table/or/having","domain":"sensor","family_id":"2a009189e20d3dc495e7ba8f","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"efd72c3a8d9e1334b11ea6957e415ef1e29facac3ba99ffd2097100bb01b1422","language":"en","license":"CC-BY-4.0","query":"Return the sum of ps1_mean for hydraulic cycles where (ts1_mean is at most 36.33327 or vs1_mean is at most 0.71948), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[36.33327,0.71948,2],\\\"sql\\\":\\\"SELECT valve, SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? AND vs1_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[36.33327,0.71948,2],\\\"sql\\\":\\\"SELECT valve, SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? OR vs1_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[36.33327,0.71948,2],\\\"sql\\\":\\\"SELECT valve, SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? OR vs1_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[36.33327,0.71948,2],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? OR vs1_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[100,171122.67718],[80,49925.0779],[90,49397.90123],[73,48812.70505]]","source":"hydraulic","split":"dev","sql":"SELECT valve, SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? OR vs1_mean <= ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 5","sql_parameters":"[36.33327,0.71948,2]","state":"{\"question\":\"Return the sum of ps1_mean for hydraulic cycles where (ts1_mean is at most 36.33327 or vs1_mean is at most 0.71948), 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\":{\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}956{"category":"single_table/or/aggregate","domain":"commerce","family_id":"0c4b6cd164d7067a0d939c1b","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"280f47d3a51e7e38f72307a578598e0ff97e877c35c6d4d4f5b061bf408fb7e0","language":"en","license":"CC-BY-4.0","query":"Return the minimum of unit_price for retail invoice lines where (quantity is at most 25 or unit_price is greater than 0.55).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[25,0.55],\\\"sql\\\":\\\"SELECT MIN(unit_price) AS value FROM retail_lines WHERE (quantity <= ? AND unit_price > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[25,0.55],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[25,0.55],\\\"sql\\\":\\\"SELECT SUM(unit_price) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[25,0.55],\\\"sql\\\":\\\"SELECT MIN(unit_price) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0.12]]","source":"online_retail_ii","split":"dev","sql":"SELECT MIN(unit_price) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?)","sql_parameters":"[25,0.55]","state":"{\"question\":\"Return the minimum of unit_price for retail invoice lines where (quantity is at most 25 or unit_price is greater than 0.55).\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}957{"category":"single_table/or/aggregate","domain":"commerce","family_id":"8082eac3f88ccee14151399a","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"1fe008dcdda90747f35cf93a29be50285701cd597b89c8a78aeee38fd3ec5d31","language":"en","license":"CC-BY-4.0","query":"Return the sum of unit_price for retail invoice lines where (country equals 'EIRE' or unit_price is at most 49.95).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"EIRE\\\",49.95],\\\"sql\\\":\\\"SELECT SUM(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"EIRE\\\",49.95],\\\"sql\\\":\\\"SELECT SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"EIRE\\\",49.95],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"EIRE\\\",49.95],\\\"sql\\\":\\\"SELECT AVG(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[102956.98]]","source":"online_retail_ii","split":"dev","sql":"SELECT SUM(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?)","sql_parameters":"[\"EIRE\",49.95]","state":"{\"question\":\"Return the sum of unit_price for retail invoice lines where (country equals 'EIRE' or unit_price is at most 49.95).\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}958{"category":"join/distinct_invoice/grouped","domain":"commerce","family_id":"d810d6f3bf8b64646104452c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"9c5e7ae284067446e5db4fdea16a79c1d0414f0040243b3369dfbdeb6e41eb56","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.quantity is greater than 25), grouped by i.country, ordered by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[25],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[25],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[25],\\\"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.quantity > ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[25],\\\"sql\\\":\\\"SELECT i.country, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",3],[\"Austria\",1],[\"Belgium\",3],[\"Channel Islands\",4],[\"Cyprus\",3],[\"Denmark\",3],[\"EIRE\",31],[\"Finland\",16],[\"France\",30],[\"Germany\",39],[\"Italy\",1],[\"Japan\",3],[\"Netherlands\",27],[\"Poland\",2],[\"Portugal\",2],[\"Spain\",11],[\"Sweden\",19],[\"Switzerland\",8],[\"United Kingdom\",3041]]","source":"online_retail_ii","split":"dev","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.quantity > ?) GROUP BY i.country ORDER BY i.country ASC","sql_parameters":"[25]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.quantity is greater than 25), grouped by i.country, ordered by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}959{"category":"single_table/aggregate","domain":"commerce","family_id":"e6698656f5718fdc89e57581","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"06aeb25d0057ebf513afedaccd74f11a0ca12bceee6f3e11759ee01beb77f1e9","language":"en","license":"CC-BY-4.0","query":"Return the sum of quantity for retail invoice lines where (unit_price is greater than 2.25).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2.25],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (unit_price > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2.25],\\\"sql\\\":\\\"SELECT SUM(quantity) AS value FROM retail_lines WHERE (unit_price > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2.25],\\\"sql\\\":\\\"SELECT AVG(quantity) AS value FROM retail_lines WHERE (unit_price > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2.25],\\\"sql\\\":\\\"SELECT MIN(quantity) AS value FROM retail_lines WHERE (unit_price > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[264507]]","source":"online_retail_ii","split":"dev","sql":"SELECT SUM(quantity) AS value FROM retail_lines WHERE (unit_price > ?)","sql_parameters":"[2.25]","state":"{\"question\":\"Return the sum of quantity for retail invoice lines where (unit_price is greater than 2.25).\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}960{"category":"single_table/aggregate","domain":"sensor","family_id":"2b234a01af2a1132fcfdb5db","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"5b4d7f2e7c7ba389c8d3a2b56a05ef62b695bbe4d63ddd45d1bdc92ad24fc4d3","language":"en","license":"CC-BY-4.0","query":"Return the average of vs1_mean for hydraulic cycles where (ps2_mean is greater than 107.72581).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[107.72581],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (ps2_mean > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[107.72581],\\\"sql\\\":\\\"SELECT SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[107.72581],\\\"sql\\\":\\\"SELECT AVG(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[107.72581],\\\"sql\\\":\\\"SELECT MIN(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0.595519972826087]]","source":"hydraulic","split":"dev","sql":"SELECT AVG(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ?)","sql_parameters":"[107.72581]","state":"{\"question\":\"Return the average of vs1_mean for hydraulic cycles where (ps2_mean is greater than 107.72581).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}961{"category":"single_table/aggregate","domain":"sensor","family_id":"8a5af1e75a6d0884ff229897","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"9e5d8f191cde6df2750beabe69fd3ca74b47231bf10a3f3477b37355584a9057","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for hydraulic cycles where (vs1_mean is greater than 0.56377).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[0.56377],\\\"sql\\\":\\\"SELECT SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (vs1_mean > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[0.56377],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (vs1_mean > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[0.56377],\\\"sql\\\":\\\"SELECT AVG(ps1_mean) AS value FROM hydraulic_cycles WHERE (vs1_mean > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[0.56377],\\\"sql\\\":\\\"SELECT MIN(ps1_mean) AS value FROM hydraulic_cycles WHERE (vs1_mean > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1513]]","source":"hydraulic","split":"dev","sql":"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (vs1_mean > ?)","sql_parameters":"[0.56377]","state":"{\"question\":\"Return the number of rows for hydraulic cycles where (vs1_mean is greater than 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_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}962{"category":"join/distinct_invoice/date/and/having","domain":"commerce","family_id":"d023a471ea43000aa07c64c7","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"ddbaa95160fc536fb907ba0006fd1269262669fb0c61e5de2f4c336ceee68128","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.customer_id equals '12359' and i.invoice_date is before '2010-02-18'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12359\\\",\\\"2010-02-18\\\",10],\\\"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.customer_id = ? OR i.invoice_date < ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12359\\\",\\\"2010-02-18\\\",10],\\\"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.customer_id = ? AND i.invoice_date < ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12359\\\",\\\"2010-02-18\\\"],\\\"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.customer_id = ? AND i.invoice_date < ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[10],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","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.customer_id = ? AND i.invoice_date < ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3","sql_parameters":"[\"12359\",\"2010-02-18\",10]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.customer_id equals '12359' and i.invoice_date is before '2010-02-18'), 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_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}963{"category":"single_table/or/aggregate","domain":"commerce","family_id":"0c4b6cd164d7067a0d939c1b","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"8952deae472fc0a276d9840021e1057bdd908bdd008d07cae833fd2f61a642e1","language":"en","license":"CC-BY-4.0","query":"Return the minimum of unit_price for retail invoice lines where (quantity is at most 1800 or unit_price is greater than 2.25).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[1800,2.25],\\\"sql\\\":\\\"SELECT MIN(unit_price) AS value FROM retail_lines WHERE (quantity <= ? AND unit_price > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[1800,2.25],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[1800,2.25],\\\"sql\\\":\\\"SELECT MIN(unit_price) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[1800,2.25],\\\"sql\\\":\\\"SELECT SUM(unit_price) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0.04]]","source":"online_retail_ii","split":"dev","sql":"SELECT MIN(unit_price) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?)","sql_parameters":"[1800,2.25]","state":"{\"question\":\"Return the minimum of unit_price for retail invoice lines where (quantity is at most 1800 or unit_price is greater than 2.25).\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}964{"category":"single_table/date/or/ranked","domain":"commerce","family_id":"e1311b3776c20051cacb1a98","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"0b29272a16118f9dd1ddcc685c3890e43d9637a43408980ff28b60a9541067b8","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (country equals 'EIRE' or invoice_date is before '2011-05-10'), grouped by invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"EIRE\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"EIRE\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date < ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"EIRE\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date < ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"EIRE\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? OR invoice_date < ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-06-24\",1.45],[\"2011-07-19\",1.45],[\"2010-01-18\",2.25]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date < ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3","sql_parameters":"[\"EIRE\",\"2011-05-10\"]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines where (country equals 'EIRE' or invoice_date is before '2011-05-10'), grouped by invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by invoice_date ascending.\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}965{"category":"single_table/and/ranked","domain":"commerce","family_id":"4a481270bed2d1a0725ef2de","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"8569bd70bca0de0e29cc0f4574e5caafa5c4f3d5a6fc59f93a6b98ad985d9555","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail invoice lines where (country equals 'Canada' and quantity is greater than 92), grouped by country; return at most 3 groups ordered by aggregate value ASC, breaking ties by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Canada\\\",92],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND quantity > ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Canada\\\",92],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? OR quantity > ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Canada\\\"],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","sql":"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND quantity > ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3","sql_parameters":"[\"Canada\",92]","state":"{\"question\":\"Return the number of rows for retail invoice lines where (country equals 'Canada' and quantity is greater than 92), 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\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}966{"category":"single_table/date/or/ranked","domain":"commerce","family_id":"2a1bc5639ea4bdabcda88205","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"cc19e4dbd9c723869855dba693c46e6c76481058b981baf6a6203e448bb57352","language":"en","license":"CC-BY-4.0","query":"Return the average of unit_price for retail invoice lines where (quantity is greater than 229 or invoice_date is on or after '2011-05-10'), grouped by invoice_date; return at most 5 groups ordered by aggregate value DESC, breaking ties by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[229,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) 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\\\":[229,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (quantity > ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[229,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (quantity > ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[229,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (quantity > ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-10-19\",83.71802631578947],[\"2011-06-20\",68.40395833333334],[\"2011-11-10\",15.689545454545454],[\"2011-10-03\",11.823823529411765],[\"2011-06-30\",11.425142857142857]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (quantity > ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5","sql_parameters":"[229,\"2011-05-10\"]","state":"{\"question\":\"Return the average of unit_price for retail invoice lines where (quantity is greater than 229 or invoice_date is on or after '2011-05-10'), 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\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}967{"category":"single_table/and/having","domain":"commerce","family_id":"fbd641e60b0777cfeba2bf1b","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"ea366701ad455dabd4a909b4065d09748f51d24a96442d03fcd39b30e8c588f4","language":"en","license":"CC-BY-4.0","query":"Return the average of quantity for retail invoice lines where (country equals 'EIRE' and unit_price is at most 4.77), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"EIRE\\\",4.77,10],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"EIRE\\\",4.77,10],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"EIRE\\\",4.77,10],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"EIRE\\\",4.77,10],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"EIRE\",87.4895104895105]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3","sql_parameters":"[\"EIRE\",4.77,10]","state":"{\"question\":\"Return the average of quantity for retail invoice lines where (country equals 'EIRE' and unit_price is at most 4.77), 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\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}968{"category":"single_table/ranked","domain":"sensor","family_id":"3f4eac772aaab9605e16c78f","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"3e59a59e314a6bc2e4c577c950f3cac65723567f3fd8693151ac59e36887b80e","language":"en","license":"CC-BY-4.0","query":"Return the average of ts1_mean for hydraulic cycles where (vs1_mean is at most 0.64278), grouped by valve; return at most 5 groups ordered by aggregate value DESC, breaking ties by valve ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[0.64278],\\\"sql\\\":\\\"SELECT valve, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (vs1_mean <= ?) GROUP BY valve ORDER BY value ASC, valve ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[0.64278],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (vs1_mean <= ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[0.64278],\\\"sql\\\":\\\"SELECT valve, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (vs1_mean <= ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[0.64278],\\\"sql\\\":\\\"SELECT valve, SUM(ts1_mean) AS value FROM hydraulic_cycles WHERE (vs1_mean <= ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[100,41.962820630952386],[90,41.48934205426356],[80,40.9753435483871],[73,40.55915788381743]]","source":"hydraulic","split":"dev","sql":"SELECT valve, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (vs1_mean <= ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 5","sql_parameters":"[0.64278]","state":"{\"question\":\"Return the average of ts1_mean for hydraulic cycles where (vs1_mean is at most 0.64278), grouped by valve; return at most 5 groups ordered by aggregate value DESC, breaking ties by valve ascending.\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}969{"category":"single_table/ranked","domain":"commerce","family_id":"47aced5ca6a26fd0996a7641","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"470aca4ba0706bf7d62bd793b77f123edab162765bb17b5df24f1ee4d6f01308","language":"en","license":"CC-BY-4.0","query":"Return the sum of unit_price for retail invoice lines where (country equals 'Belgium'), grouped by invoice_date; return at most 5 groups ordered by aggregate value DESC, breaking ties by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Belgium\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (country = ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Belgium\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Belgium\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (country = ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Belgium\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (country = ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-05-23\",68.45],[\"2011-02-03\",64.45],[\"2011-11-29\",61.9],[\"2011-08-25\",53.4],[\"2011-06-08\",49.6]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (country = ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5","sql_parameters":"[\"Belgium\"]","state":"{\"question\":\"Return the sum of unit_price for retail invoice lines where (country equals 'Belgium'), 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\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}970{"category":"join/or/grouped","domain":"commerce","family_id":"3e7db10410690ce0d53fbc29","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"49e8b0f5fd510c748311af8d2011d71098db550830589251bd6f5d2ebf9d28ce","language":"en","license":"CC-BY-4.0","query":"Return the average of l.quantity for retail lines joined to their invoices where (i.country equals 'Denmark' or i.customer_id equals '12356'), grouped by i.invoice_date, ordered by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Denmark\\\",\\\"12356\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND i.customer_id = ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Denmark\\\",\\\"12356\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR i.customer_id = ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Denmark\\\",\\\"12356\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR i.customer_id = ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Denmark\\\",\\\"12356\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR i.customer_id = ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-07-06\",41.0],[\"2011-10-07\",106.16666666666667],[\"2011-10-21\",19.2],[\"2011-11-17\",2.5]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.invoice_date, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR i.customer_id = ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC","sql_parameters":"[\"Denmark\",\"12356\"]","state":"{\"question\":\"Return the average of l.quantity for retail lines joined to their invoices where (i.country equals 'Denmark' or i.customer_id equals '12356'), grouped by i.invoice_date, ordered by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}971{"category":"single_table/date/or/grouped","domain":"commerce","family_id":"541c0a6193d750b65be11986","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"c7a3fd072c0e34fe2ca0ecf3ab580787272646807a3799fdc4eaa2608e18d83a","language":"en","license":"CC-BY-4.0","query":"Return the sum of unit_price for retail invoice lines where (unit_price is at most 4.77 or invoice_date is before '2011-09-29'), grouped by invoice_date, ordered by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[4.77,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (unit_price <= ? AND invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[4.77,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (unit_price <= ? OR invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[4.77,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (unit_price <= ? OR invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[4.77,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (unit_price <= ? OR invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-01\",141.08],[\"2009-12-02\",323.13],[\"2009-12-03\",442.63],[\"2009-12-04\",190.89000000000001],[\"2009-12-05\",126.13],[\"2009-12-06\",138.70000000000002],[\"2009-12-07\",259.49],[\"2009-12-08\",257.1],[\"2009-12-09\",479.06],[\"2009-12-10\",286.39],[\"2009-12-11\",140.9],[\"2009-12-13\",154.19],[\"2009-12-14\",259.18],[\"2009-12-15\",328.57],[\"2009-12-16\",246.16],[\"2009-12-17\",327.24],[\"2009-12-18\",185.55],[\"2009-12-20\",77.91],[\"2009-12-21\",135.68],[\"2009-12-22\",181.95],[\"2009-12-23\",42.21],[\"2010-01-04\",44.77],[\"2010-01-05\",120.75],[\"2010-01-06\",10.45],[\"2010-01-07\",186.59],[\"2010-01-08\",173.84],[\"2010-01-10\",62.230000000000004],[\"2010-01-11\",131.0],[\"2010-01-12\",187.63],[\"2010-01-13\",57.19],[\"2010-01-14\",59.36],[\"2010-01-15\",153.57],[\"2010-01-17\",38.97],[\"2010-01-18\",6.88],[\"2010-01-19\",109.2],[\"2010-01-20\",131.6],[\"2010-01-21\",145.2],[\"2010-01-22\",179.35],[\"2010-01-24\",139.01],[\"2010-01-25\",187.83],[\"2010-01-26\",146.33],[\"2010-01-27\",176.59],[\"2010-01-28\",70.3],[\"2010-01-29\",163.35999999999999],[\"2010-01-31\",122.81],[\"2010-02-01\",156.33],[\"2010-02-02\",266.95],[\"2010-02-03\",210.14000000000001],[\"2010-02-04\",153.71],[\"2010-02-05\",162.09],[\"2010-02-07\",12.17],[\"2010-02-08\",181.85],[\"2010-02-09\",111.87],[\"2010-02-10\",147.46],[\"2010-02-11\",84.06],[\"2010-02-12\",55.18],[\"2010-02-14\",75.44],[\"2010-02-15\",81.56],[\"2010-02-16\",318.23],[\"2010-02-17\",98.68],[\"2010-02-18\",115.9],[\"2010-02-19\",118.49],[\"2010-02-21\",49.26],[\"2010-02-22\",584.97],[\"2010-02-23\",206.51],[\"2010-02-24\",173.2],[\"2010-02-25\",194.48],[\"2010-02-26\",102.08],[\"2010-02-28\",194.66],[\"2010-03-01\",166.58],[\"2010-03-02\",99.24],[\"2010-03-03\",217.4],[\"2010-03-04\",128.68],[\"2010-03-05\",261.63],[\"2010-03-07\",65.5],[\"2010-03-08\",270.65],[\"2010-03-09\",159.07],[\"2010-03-10\",85.11],[\"2010-03-11\",107.32],[\"2010-03-12\",115.72],[\"2010-03-14\",79.31],[\"2010-03-15\",101.76],[\"2010-03-16\",89.98],[\"2010-03-17\",80.06],[\"2010-03-18\",275.37],[\"2010-03-19\",117.88],[\"2010-03-21\",105.2],[\"2010-03-22\",142.83],[\"2010-03-23\",159.64],[\"2010-03-24\",1032.8799999999999],[\"2010-03-25\",150.36],[\"2010-03-26\",141.88],[\"2010-03-28\",22.24],[\"2010-03-29\",128.07999999999998],[\"2010-03-30\",170.98],[\"2010-03-31\",185.15],[\"2010-04-01\",91.81],[\"2010-04-06\",182.47],[\"2010-04-07\",110.33],[\"2010-04-08\",226.8],[\"2010-04-09\",75.24],[\"2010-04-11\",68.98],[\"2010-04-12\",179.17000000000002],[\"2010-04-13\",78.96],[\"2010-04-14\",129.97],[\"2010-04-15\",105.49000000000001],[\"2010-04-16\",114.16],[\"2010-04-18\",65.6],[\"2010-04-19\",275.21],[\"2010-04-20\",143.88],[\"2010-04-21\",309.59],[\"2010-04-22\",208.37],[\"2010-04-23\",230.78],[\"2010-04-25\",131.3],[\"2010-04-26\",207.38],[\"2010-04-27\",224.82],[\"2010-04-28\",109.2],[\"2010-04-29\",231.26],[\"2010-04-30\",187.32999999999998],[\"2010-05-02\",77.35],[\"2010-05-04\",338.49],[\"2010-05-05\",313.73],[\"2010-05-06\",242.60999999999999],[\"2010-05-07\",205.46],[\"2010-05-09\",198.89],[\"2010-05-10\",274.13],[\"2010-05-11\",118.28],[\"2010-05-12\",195.45],[\"2010-05-13\",97.51],[\"2010-05-14\",202.76],[\"2010-05-16\",46.04],[\"2010-05-17\",74.0],[\"2010-05-18\",166.59],[\"2010-05-19\",467.40000000000003],[\"2010-05-20\",156.72],[\"2010-05-21\",211.6],[\"2010-05-23\",68.88],[\"2010-05-24\",222.19],[\"2010-05-25\",147.23],[\"2010-05-26\",246.32],[\"2010-05-27\",190.29],[\"2010-05-28\",117.06],[\"2010-05-30\",61.3],[\"2010-06-01\",99.25],[\"2010-06-02\",156.2],[\"2010-06-03\",222.73],[\"2010-06-04\",210.02],[\"2010-06-06\",50.08],[\"2010-06-07\",232.65],[\"2010-06-08\",161.64],[\"2010-06-09\",189.22],[\"2010-06-10\",167.87],[\"2010-06-11\",195.66],[\"2010-06-13\",183.67],[\"2010-06-14\",173.78],[\"2010-06-15\",94.87],[\"2010-06-16\",249.21],[\"2010-06-17\",193.44],[\"2010-06-18\",83.04],[\"2010-06-20\",114.41],[\"2010-06-21\",74.0],[\"2010-06-22\",68.4],[\"2010-06-23\",223.98],[\"2010-06-24\",205.91],[\"2010-06-25\",63.82],[\"2010-06-27\",151.19],[\"2010-06-28\",187.3],[\"2010-06-29\",265.41],[\"2010-06-30\",139.77],[\"2010-07-01\",126.64],[\"2010-07-02\",17.15],[\"2010-07-04\",90.19],[\"2010-07-05\",259.23],[\"2010-07-06\",173.37],[\"2010-07-07\",173.91],[\"2010-07-08\",374.17],[\"2010-07-09\",39.23],[\"2010-07-11\",37.2],[\"2010-07-12\",749.18],[\"2010-07-13\",240.62],[\"2010-07-14\",66.77],[\"2010-07-15\",233.48],[\"2010-07-16\",234.46],[\"2010-07-18\",53.89],[\"2010-07-19\",119.9],[\"2010-07-20\",197.4],[\"2010-07-21\",195.05],[\"2010-07-22\",111.7],[\"2010-07-23\",71.92],[\"2010-07-25\",39.08],[\"2010-07-26\",117.25],[\"2010-07-27\",270.78],[\"2010-07-28\",112.65],[\"2010-07-29\",85.7],[\"2010-07-30\",215.59],[\"2010-08-01\",47.8],[\"2010-08-02\",548.82],[\"2010-08-03\",715.07],[\"2010-08-04\",88.26],[\"2010-08-05\",177.35],[\"2010-08-06\",71.13],[\"2010-08-08\",102.97],[\"2010-08-09\",99.53],[\"2010-08-10\",41.160000000000004],[\"2010-08-11\",106.99],[\"2010-08-12\",174.82999999999998],[\"2010-08-13\",155.5],[\"2010-08-15\",147.9],[\"2010-08-16\",82.55],[\"2010-08-17\",132.11],[\"2010-08-18\",100.36],[\"2010-08-19\",211.51],[\"2010-08-20\",167.24],[\"2010-08-22\",58.75],[\"2010-08-23\",110.21],[\"2010-08-24\",357.66],[\"2010-08-25\",132.87],[\"2010-08-26\",102.91],[\"2010-08-27\",86.96000000000001],[\"2010-08-29\",82.06],[\"2010-08-31\",88.8],[\"2010-09-01\",211.17000000000002],[\"2010-09-02\",339.54],[\"2010-09-03\",213.18],[\"2010-09-05\",134.04999999999998],[\"2010-09-06\",83.7],[\"2010-09-07\",105.16],[\"2010-09-08\",14.08],[\"2010-09-09\",334.04],[\"2010-09-10\",40.64],[\"2010-09-12\",70.69],[\"2010-09-13\",216.37],[\"2010-09-14\",209.35999999999999],[\"2010-09-15\",64.65],[\"2010-09-16\",188.48],[\"2010-09-17\",183.93],[\"2010-09-19\",82.07],[\"2010-09-20\",389.15],[\"2010-09-21\",214.12],[\"2010-09-22\",94.67],[\"2010-09-23\",177.2],[\"2010-09-24\",133.24],[\"2010-09-26\",188.85],[\"2010-09-27\",192.13],[\"2010-09-28\",322.94],[\"2010-09-29\",270.89],[\"2010-09-30\",200.53],[\"2010-10-01\",200.17000000000002],[\"2010-10-03\",47.06],[\"2010-10-04\",159.88],[\"2010-10-05\",143.92],[\"2010-10-06\",186.54],[\"2010-10-07\",198.82],[\"2010-10-08\",148.29],[\"2010-10-10\",107.38],[\"2010-10-11\",252.51000000000002],[\"2010-10-12\",212.33],[\"2010-10-13\",121.8],[\"2010-10-14\",233.06],[\"2010-10-15\",271.88],[\"2010-10-17\",31.39],[\"2010-10-18\",430.89],[\"2010-10-19\",180.12],[\"2010-10-20\",280.26],[\"2010-10-21\",579.04],[\"2010-10-22\",387.68],[\"2010-10-24\",252.72],[\"2010-10-25\",112.32],[\"2010-10-26\",295.3],[\"2010-10-27\",222.25],[\"2010-10-28\",153.67],[\"2010-10-29\",266.48],[\"2010-10-31\",178.8],[\"2010-11-01\",69.48],[\"2010-11-02\",224.05],[\"2010-11-03\",496.14],[\"2010-11-04\",387.17],[\"2010-11-05\",137.0],[\"2010-11-07\",95.93],[\"2010-11-08\",155.7],[\"2010-11-09\",307.74],[\"2010-11-10\",423.29],[\"2010-11-11\",327.05],[\"2010-11-12\",249.36],[\"2010-11-14\",149.1],[\"2010-11-15\",268.8],[\"2010-11-16\",410.27],[\"2010-11-17\",777.18],[\"2010-11-18\",343.09],[\"2010-11-19\",555.46],[\"2010-11-21\",151.25],[\"2010-11-22\",248.12],[\"2010-11-23\",238.08],[\"2010-11-24\",473.65],[\"2010-11-25\",482.85],[\"2010-11-26\",131.96],[\"2010-11-28\",402.85],[\"2010-11-29\",235.95],[\"2010-11-30\",243.18],[\"2010-12-01\",829.6],[\"2010-12-02\",593.68],[\"2010-12-03\",330.42],[\"2010-12-05\",368.74],[\"2010-12-06\",385.56],[\"2010-12-07\",586.52],[\"2010-12-08\",730.2],[\"2010-12-09\",708.18],[\"2010-12-10\",171.0],[\"2010-12-12\",109.75999999999999],[\"2010-12-13\",164.56],[\"2010-12-14\",293.63],[\"2010-12-15\",236.28],[\"2010-12-16\",538.01],[\"2010-12-17\",232.06],[\"2010-12-19\",38.7],[\"2010-12-20\",122.03],[\"2010-12-21\",140.08],[\"2010-12-22\",40.44],[\"2010-12-23\",69.48],[\"2011-01-04\",38.24],[\"2011-01-05\",141.31],[\"2011-01-06\",66.95],[\"2011-01-07\",137.41],[\"2011-01-09\",104.35],[\"2011-01-10\",38.26],[\"2011-01-11\",196.56],[\"2011-01-12\",331.91],[\"2011-01-13\",40.47],[\"2011-01-14\",157.75],[\"2011-01-16\",7.34],[\"2011-01-17\",118.69],[\"2011-01-18\",97.8],[\"2011-01-19\",32.35],[\"2011-01-20\",136.28],[\"2011-01-21\",198.48],[\"2011-01-23\",77.72],[\"2011-01-24\",138.27],[\"2011-01-25\",168.76],[\"2011-01-26\",139.05],[\"2011-01-27\",160.9],[\"2011-01-28\",53.67],[\"2011-01-30\",11.05],[\"2011-01-31\",149.93],[\"2011-02-01\",177.32],[\"2011-02-02\",113.52],[\"2011-02-03\",124.41],[\"2011-02-04\",451.0],[\"2011-02-07\",136.94],[\"2011-02-08\",46.11],[\"2011-02-09\",66.99],[\"2011-02-10\",278.08],[\"2011-02-11\",274.56],[\"2011-02-13\",17.23],[\"2011-02-14\",111.39999999999999],[\"2011-02-15\",108.51],[\"2011-02-16\",147.88],[\"2011-02-17\",178.47],[\"2011-02-18\",91.51],[\"2011-02-20\",39.66],[\"2011-02-21\",70.12],[\"2011-02-22\",78.51],[\"2011-02-23\",120.56],[\"2011-02-24\",98.89],[\"2011-02-25\",142.83],[\"2011-02-27\",39.44],[\"2011-02-28\",326.72],[\"2011-03-01\",1041.49],[\"2011-03-02\",52.69],[\"2011-03-03\",217.42],[\"2011-03-04\",177.4],[\"2011-03-06\",65.14],[\"2011-03-07\",501.45],[\"2011-03-08\",150.07],[\"2011-03-09\",205.69],[\"2011-03-10\",183.10999999999999],[\"2011-03-11\",234.35],[\"2011-03-14\",118.17],[\"2011-03-15\",83.92],[\"2011-03-16\",155.37],[\"2011-03-17\",140.37],[\"2011-03-18\",226.65],[\"2011-03-20\",285.16],[\"2011-03-21\",116.04],[\"2011-03-22\",40.63],[\"2011-03-23\",182.02],[\"2011-03-24\",64.27],[\"2011-03-25\",104.45],[\"2011-03-27\",114.01],[\"2011-03-28\",374.75],[\"2011-03-29\",69.89],[\"2011-03-30\",159.55],[\"2011-03-31\",293.62],[\"2011-04-01\",275.0],[\"2011-04-03\",56.89],[\"2011-04-04\",4072.28],[\"2011-04-05\",294.42],[\"2011-04-06\",66.7],[\"2011-04-07\",210.95],[\"2011-04-08\",275.42],[\"2011-04-10\",12.2],[\"2011-04-11\",140.81],[\"2011-04-12\",109.13],[\"2011-04-13\",170.17],[\"2011-04-14\",245.72],[\"2011-04-15\",105.33],[\"2011-04-17\",66.39],[\"2011-04-18\",100.86],[\"2011-04-19\",44.97],[\"2011-04-20\",174.45],[\"2011-04-21\",220.72],[\"2011-04-26\",236.45],[\"2011-04-27\",222.54],[\"2011-04-28\",642.67],[\"2011-05-01\",20.95],[\"2011-05-03\",311.61],[\"2011-05-04\",205.37],[\"2011-05-05\",454.16],[\"2011-05-06\",287.91],[\"2011-05-08\",85.02],[\"2011-05-09\",191.64000000000001],[\"2011-05-10\",203.02],[\"2011-05-11\",214.9],[\"2011-05-12\",252.79],[\"2011-05-13\",258.01],[\"2011-05-15\",64.77],[\"2011-05-16\",194.84],[\"2011-05-17\",265.79],[\"2011-05-18\",219.99],[\"2011-05-19\",309.74],[\"2011-05-20\",297.33],[\"2011-05-22\",166.03],[\"2011-05-23\",269.56],[\"2011-05-24\",372.37],[\"2011-05-25\",115.1],[\"2011-05-26\",457.11],[\"2011-05-27\",175.31],[\"2011-05-29\",31.51],[\"2011-05-31\",152.22],[\"2011-06-01\",122.51],[\"2011-06-02\",174.27],[\"2011-06-03\",130.94],[\"2011-06-05\",157.84],[\"2011-06-06\",109.12],[\"2011-06-07\",173.93],[\"2011-06-08\",231.05],[\"2011-06-09\",233.74],[\"2011-06-10\",128.47],[\"2011-06-12\",88.35],[\"2011-06-13\",140.77],[\"2011-06-14\",96.12],[\"2011-06-15\",104.67],[\"2011-06-16\",271.5],[\"2011-06-17\",115.97],[\"2011-06-19\",65.47],[\"2011-06-20\",3283.39],[\"2011-06-21\",147.41],[\"2011-06-22\",112.94],[\"2011-06-23\",59.63],[\"2011-06-24\",128.35999999999999],[\"2011-06-26\",147.99],[\"2011-06-27\",45.94],[\"2011-06-28\",148.55],[\"2011-06-29\",134.42],[\"2011-06-30\",399.88],[\"2011-07-01\",177.71],[\"2011-07-03\",39.59],[\"2011-07-04\",128.77],[\"2011-07-05\",183.84],[\"2011-07-06\",144.43],[\"2011-07-07\",220.48],[\"2011-07-08\",182.58],[\"2011-07-10\",5.79],[\"2011-07-11\",113.25],[\"2011-07-12\",77.19],[\"2011-07-13\",207.11],[\"2011-07-14\",213.1],[\"2011-07-15\",154.16],[\"2011-07-17\",176.41],[\"2011-07-18\",125.2],[\"2011-07-19\",129.72],[\"2011-07-20\",133.5],[\"2011-07-21\",107.2],[\"2011-07-22\",108.26],[\"2011-07-24\",230.62],[\"2011-07-25\",274.94],[\"2011-07-26\",131.09],[\"2011-07-27\",76.35000000000001],[\"2011-07-28\",298.06],[\"2011-07-29\",121.42999999999999],[\"2011-07-31\",78.05],[\"2011-08-01\",41.72],[\"2011-08-02\",67.54],[\"2011-08-03\",133.52],[\"2011-08-04\",305.19],[\"2011-08-05\",176.28],[\"2011-08-07\",96.17],[\"2011-08-08\",96.06],[\"2011-08-09\",138.59],[\"2011-08-10\",111.71],[\"2011-08-11\",191.77],[\"2011-08-12\",48.17],[\"2011-08-14\",173.87],[\"2011-08-15\",51.65],[\"2011-08-16\",130.51],[\"2011-08-17\",24.69],[\"2011-08-18\",125.0],[\"2011-08-19\",132.89],[\"2011-08-21\",85.5],[\"2011-08-22\",173.82],[\"2011-08-23\",103.34],[\"2011-08-24\",175.23],[\"2011-08-25\",317.61],[\"2011-08-26\",128.76],[\"2011-08-28\",41.59],[\"2011-08-30\",117.97],[\"2011-08-31\",69.27],[\"2011-09-01\",173.61],[\"2011-09-02\",125.66],[\"2011-09-04\",112.08],[\"2011-09-05\",73.13],[\"2011-09-06\",235.53],[\"2011-09-07\",66.63],[\"2011-09-08\",239.63],[\"2011-09-09\",206.25],[\"2011-09-11\",81.0],[\"2011-09-12\",113.76],[\"2011-09-13\",118.0],[\"2011-09-14\",217.17000000000002],[\"2011-09-15\",197.04],[\"2011-09-16\",70.96],[\"2011-09-18\",17.5],[\"2011-09-19\",124.02],[\"2011-09-20\",175.82],[\"2011-09-21\",143.96],[\"2011-09-22\",269.06],[\"2011-09-23\",97.77],[\"2011-09-25\",139.79],[\"2011-09-26\",79.93],[\"2011-09-27\",172.28],[\"2011-09-28\",148.01],[\"2011-09-29\",48.92],[\"2011-09-30\",47.94],[\"2011-10-02\",15.59],[\"2011-10-03\",47.63],[\"2011-10-04\",59.89],[\"2011-10-05\",91.5],[\"2011-10-06\",128.08],[\"2011-10-07\",98.65],[\"2011-10-09\",9.45],[\"2011-10-10\",76.61],[\"2011-10-11\",94.78],[\"2011-10-12\",98.73],[\"2011-10-13\",72.13],[\"2011-10-14\",40.410000000000004],[\"2011-10-17\",100.92],[\"2011-10-18\",44.22],[\"2011-10-19\",99.08],[\"2011-10-20\",83.85],[\"2011-10-21\",73.92],[\"2011-10-23\",4.04],[\"2011-10-24\",75.26],[\"2011-10-25\",44.65],[\"2011-10-26\",110.11],[\"2011-10-27\",93.32],[\"2011-10-28\",82.51],[\"2011-10-30\",68.85000000000001],[\"2011-10-31\",83.15],[\"2011-11-01\",70.44],[\"2011-11-02\",45.42],[\"2011-11-03\",96.15],[\"2011-11-04\",74.1],[\"2011-11-06\",100.23],[\"2011-11-07\",89.96],[\"2011-11-08\",114.16],[\"2011-11-09\",180.87],[\"2011-11-10\",145.12],[\"2011-11-11\",56.51],[\"2011-11-13\",48.82],[\"2011-11-14\",72.39],[\"2011-11-15\",123.41],[\"2011-11-16\",146.29],[\"2011-11-17\",127.6],[\"2011-11-18\",146.41],[\"2011-11-20\",52.5],[\"2011-11-21\",78.71000000000001],[\"2011-11-22\",125.12],[\"2011-11-23\",134.34],[\"2011-11-24\",132.77],[\"2011-11-25\",140.42],[\"2011-11-27\",14.16],[\"2011-11-28\",132.67],[\"2011-11-29\",131.68],[\"2011-11-30\",84.07000000000001],[\"2011-12-01\",200.67000000000002],[\"2011-12-02\",172.66],[\"2011-12-04\",61.0],[\"2011-12-05\",167.95000000000002],[\"2011-12-06\",173.98],[\"2011-12-07\",89.78],[\"2011-12-08\",130.44],[\"2011-12-09\",40.370000000000005]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (unit_price <= ? OR invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC","sql_parameters":"[4.77,\"2011-09-29\"]","state":"{\"question\":\"Return the sum of unit_price for retail invoice lines where (unit_price is at most 4.77 or invoice_date is before '2011-09-29'), 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\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}972{"category":"join/null/or/grouped","domain":"commerce","family_id":"e2632a7078134d954e12a6eb","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"a0418a9833d67b060aed58c307f43731217ff0a1e89b45a27f94537b13e3d82a","language":"en","license":"CC-BY-4.0","query":"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, ordered by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Australia\\\"],\\\"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 = ? OR i.customer_id IS NOT NULL) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Australia\\\"],\\\"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 ORDER BY i.invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Australia\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) 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 ORDER BY i.invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Australia\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(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 ORDER BY i.invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-01\",5.95],[\"2009-12-02\",34.95],[\"2009-12-03\",79.95],[\"2009-12-04\",12.75],[\"2009-12-05\",12.75],[\"2009-12-06\",49.95],[\"2009-12-07\",19.95],[\"2009-12-08\",15.95],[\"2009-12-09\",79.95],[\"2009-12-10\",49.95],[\"2009-12-11\",16.95],[\"2009-12-13\",40.0],[\"2009-12-14\",14.95],[\"2009-12-15\",35.95],[\"2009-12-16\",39.95],[\"2009-12-17\",12.75],[\"2009-12-18\",10.95],[\"2009-12-20\",9.95],[\"2009-12-21\",8.5],[\"2009-12-22\",12.75],[\"2009-12-23\",1.95],[\"2010-01-04\",6.95],[\"2010-01-05\",12.75],[\"2010-01-06\",7.95],[\"2010-01-07\",18.0],[\"2010-01-08\",16.95],[\"2010-01-10\",7.95],[\"2010-01-11\",34.95],[\"2010-01-12\",21.95],[\"2010-01-13\",8.5],[\"2010-01-14\",9.95],[\"2010-01-15\",39.95],[\"2010-01-17\",4.95],[\"2010-01-18\",2.25],[\"2010-01-19\",14.95],[\"2010-01-20\",12.75],[\"2010-01-21\",12.75],[\"2010-01-22\",35.95],[\"2010-01-24\",12.75],[\"2010-01-25\",7.95],[\"2010-01-26\",39.95],[\"2010-01-27\",9.95],[\"2010-01-28\",12.75],[\"2010-01-29\",28.0],[\"2010-01-31\",9.95],[\"2010-02-01\",45.95],[\"2010-02-02\",9.95],[\"2010-02-03\",79.95],[\"2010-02-04\",16.95],[\"2010-02-05\",21.95],[\"2010-02-07\",4.95],[\"2010-02-08\",14.95],[\"2010-02-09\",10.95],[\"2010-02-10\",40.0],[\"2010-02-11\",6.95],[\"2010-02-12\",8.49],[\"2010-02-14\",26.95],[\"2010-02-15\",12.75],[\"2010-02-16\",45.95],[\"2010-02-17\",8.5],[\"2010-02-18\",12.75],[\"2010-02-19\",9.95],[\"2010-02-21\",12.75],[\"2010-02-22\",79.95],[\"2010-02-23\",45.95],[\"2010-02-24\",10.95],[\"2010-02-25\",18.0],[\"2010-02-26\",45.95],[\"2010-02-28\",12.75],[\"2010-03-01\",12.75],[\"2010-03-02\",12.75],[\"2010-03-03\",45.95],[\"2010-03-04\",26.95],[\"2010-03-05\",18.0],[\"2010-03-07\",6.75],[\"2010-03-08\",39.95],[\"2010-03-09\",12.75],[\"2010-03-10\",10.95],[\"2010-03-11\",12.75],[\"2010-03-12\",9.95],[\"2010-03-14\",16.95],[\"2010-03-15\",12.75],[\"2010-03-16\",18.0],[\"2010-03-17\",9.95],[\"2010-03-18\",29.95],[\"2010-03-19\",14.95],[\"2010-03-21\",12.75],[\"2010-03-22\",12.75],[\"2010-03-23\",12.75],[\"2010-03-24\",39.95],[\"2010-03-25\",40.0],[\"2010-03-26\",16.95],[\"2010-03-28\",4.95],[\"2010-03-29\",8.5],[\"2010-03-30\",18.95],[\"2010-03-31\",34.95],[\"2010-04-01\",10.95],[\"2010-04-06\",15.95],[\"2010-04-07\",10.95],[\"2010-04-08\",12.75],[\"2010-04-09\",9.95],[\"2010-04-11\",7.95],[\"2010-04-12\",12.75],[\"2010-04-13\",9.95],[\"2010-04-14\",12.75],[\"2010-04-15\",12.75],[\"2010-04-16\",12.75],[\"2010-04-18\",14.95],[\"2010-04-19\",26.95],[\"2010-04-20\",10.75],[\"2010-04-21\",125.0],[\"2010-04-22\",18.0],[\"2010-04-23\",45.95],[\"2010-04-25\",12.75],[\"2010-04-26\",39.95],[\"2010-04-27\",12.75],[\"2010-04-28\",7.65],[\"2010-04-29\",12.75],[\"2010-04-30\",14.95],[\"2010-05-02\",15.0],[\"2010-05-04\",230.0],[\"2010-05-05\",12.75],[\"2010-05-06\",19.95],[\"2010-05-07\",15.95],[\"2010-05-09\",16.95],[\"2010-05-10\",29.95],[\"2010-05-11\",16.95],[\"2010-05-12\",12.75],[\"2010-05-13\",12.75],[\"2010-05-14\",15.95],[\"2010-05-16\",8.5],[\"2010-05-17\",12.75],[\"2010-05-18\",18.95],[\"2010-05-19\",79.95],[\"2010-05-20\",12.75],[\"2010-05-21\",12.75],[\"2010-05-23\",12.75],[\"2010-05-24\",9.95],[\"2010-05-25\",19.95],[\"2010-05-26\",12.75],[\"2010-05-27\",12.75],[\"2010-05-28\",7.49],[\"2010-05-30\",12.75],[\"2010-06-01\",15.95],[\"2010-06-02\",9.95],[\"2010-06-03\",12.75],[\"2010-06-04\",6.36],[\"2010-06-06\",9.95],[\"2010-06-07\",18.0],[\"2010-06-08\",12.75],[\"2010-06-09\",40.0],[\"2010-06-10\",12.75],[\"2010-06-11\",39.95],[\"2010-06-13\",16.95],[\"2010-06-14\",16.95],[\"2010-06-15\",12.75],[\"2010-06-16\",19.95],[\"2010-06-17\",12.75],[\"2010-06-18\",10.95],[\"2010-06-20\",12.75],[\"2010-06-21\",12.75],[\"2010-06-22\",19.95],[\"2010-06-23\",19.95],[\"2010-06-24\",9.95],[\"2010-06-25\",12.75],[\"2010-06-27\",12.75],[\"2010-06-28\",14.95],[\"2010-06-29\",125.0],[\"2010-06-30\",19.95],[\"2010-07-01\",18.95],[\"2010-07-02\",2.95],[\"2010-07-04\",24.95],[\"2010-07-05\",18.0],[\"2010-07-06\",19.95],[\"2010-07-07\",12.75],[\"2010-07-08\",125.0],[\"2010-07-09\",3.81],[\"2010-07-11\",15.95],[\"2010-07-12\",295.0],[\"2010-07-13\",40.0],[\"2010-07-14\",12.75],[\"2010-07-15\",18.0],[\"2010-07-16\",34.95],[\"2010-07-18\",4.95],[\"2010-07-19\",10.95],[\"2010-07-20\",12.75],[\"2010-07-21\",15.95],[\"2010-07-22\",28.0],[\"2010-07-23\",10.95],[\"2010-07-25\",15.0],[\"2010-07-26\",18.0],[\"2010-07-27\",19.95],[\"2010-07-28\",10.95],[\"2010-07-29\",10.95],[\"2010-07-30\",12.75],[\"2010-08-01\",12.75],[\"2010-08-02\",295.0],[\"2010-08-03\",295.0],[\"2010-08-04\",12.75],[\"2010-08-05\",12.95],[\"2010-08-06\",5.95],[\"2010-08-08\",34.95],[\"2010-08-09\",6.68],[\"2010-08-10\",5.95],[\"2010-08-11\",18.0],[\"2010-08-12\",16.95],[\"2010-08-13\",10.65],[\"2010-08-15\",12.75],[\"2010-08-16\",12.75],[\"2010-08-17\",9.95],[\"2010-08-18\",12.75],[\"2010-08-19\",12.75],[\"2010-08-20\",15.0],[\"2010-08-22\",8.5],[\"2010-08-23\",14.95],[\"2010-08-24\",295.0],[\"2010-08-25\",12.75],[\"2010-08-26\",7.95],[\"2010-08-27\",7.49],[\"2010-08-29\",8.5],[\"2010-08-31\",9.95],[\"2010-09-01\",79.95],[\"2010-09-02\",39.95],[\"2010-09-03\",15.0],[\"2010-09-05\",10.95],[\"2010-09-06\",18.0],[\"2010-09-07\",10.95],[\"2010-09-08\",2.55],[\"2010-09-09\",110.0],[\"2010-09-10\",6.75],[\"2010-09-12\",16.95],[\"2010-09-13\",12.75],[\"2010-09-14\",12.75],[\"2010-09-15\",16.95],[\"2010-09-16\",18.0],[\"2010-09-17\",8.5],[\"2010-09-19\",14.95],[\"2010-09-20\",129.95],[\"2010-09-21\",9.95],[\"2010-09-22\",7.95],[\"2010-09-23\",18.95],[\"2010-09-24\",14.95],[\"2010-09-26\",12.75],[\"2010-09-27\",16.95],[\"2010-09-28\",16.95],[\"2010-09-29\",50.0],[\"2010-09-30\",12.75],[\"2010-10-01\",18.95],[\"2010-10-03\",5.45],[\"2010-10-04\",29.95],[\"2010-10-05\",12.75],[\"2010-10-06\",50.0],[\"2010-10-07\",12.75],[\"2010-10-08\",16.95],[\"2010-10-10\",14.95],[\"2010-10-11\",79.95],[\"2010-10-12\",10.95],[\"2010-10-13\",16.95],[\"2010-10-14\",52.78],[\"2010-10-15\",12.75],[\"2010-10-17\",14.95],[\"2010-10-18\",18.0],[\"2010-10-19\",21.95],[\"2010-10-20\",34.95],[\"2010-10-21\",145.0],[\"2010-10-22\",145.0],[\"2010-10-24\",39.95],[\"2010-10-25\",14.95],[\"2010-10-26\",9.95],[\"2010-10-27\",14.95],[\"2010-10-28\",12.75],[\"2010-10-29\",39.95],[\"2010-10-31\",18.0],[\"2010-11-01\",9.95],[\"2010-11-02\",40.0],[\"2010-11-03\",165.0],[\"2010-11-04\",14.95],[\"2010-11-05\",14.95],[\"2010-11-07\",8.95],[\"2010-11-08\",32.69],[\"2010-11-09\",50.0],[\"2010-11-10\",16.95],[\"2010-11-11\",14.95],[\"2010-11-12\",15.0],[\"2010-11-14\",28.0],[\"2010-11-15\",40.0],[\"2010-11-16\",24.95],[\"2010-11-17\",295.0],[\"2010-11-18\",34.95],[\"2010-11-19\",253.0],[\"2010-11-21\",14.95],[\"2010-11-22\",12.75],[\"2010-11-23\",12.75],[\"2010-11-24\",79.95],[\"2010-11-25\",65.0],[\"2010-11-26\",8.5],[\"2010-11-28\",110.0],[\"2010-11-29\",18.0],[\"2010-11-30\",24.95],[\"2010-12-01\",16.95],[\"2010-12-02\",10.95],[\"2010-12-03\",40.0],[\"2010-12-05\",18.0],[\"2010-12-06\",14.95],[\"2010-12-07\",19.84],[\"2010-12-08\",21.95],[\"2010-12-09\",18.0],[\"2010-12-10\",16.95],[\"2010-12-12\",19.95],[\"2010-12-13\",12.75],[\"2010-12-14\",29.95],[\"2010-12-15\",12.75],[\"2010-12-16\",39.95],[\"2010-12-17\",18.0],[\"2010-12-20\",10.95],[\"2010-12-21\",18.0],[\"2010-12-22\",4.25],[\"2010-12-23\",5.95],[\"2011-01-04\",8.5],[\"2011-01-05\",12.75],[\"2011-01-06\",8.5],[\"2011-01-07\",39.95],[\"2011-01-09\",12.75],[\"2011-01-10\",18.0],[\"2011-01-11\",18.0],[\"2011-01-12\",165.0],[\"2011-01-13\",8.5],[\"2011-01-14\",18.0],[\"2011-01-16\",3.95],[\"2011-01-17\",12.75],[\"2011-01-18\",6.95],[\"2011-01-19\",18.0],[\"2011-01-20\",8.95],[\"2011-01-21\",40.0],[\"2011-01-23\",14.95],[\"2011-01-24\",12.75],[\"2011-01-25\",40.0],[\"2011-01-26\",12.75],[\"2011-01-27\",18.0],[\"2011-01-28\",7.95],[\"2011-01-30\",2.95],[\"2011-01-31\",14.95],[\"2011-02-01\",14.95],[\"2011-02-02\",12.75],[\"2011-02-03\",15.0],[\"2011-02-04\",295.0],[\"2011-02-07\",12.75],[\"2011-02-08\",4.95],[\"2011-02-09\",15.0],[\"2011-02-10\",165.0],[\"2011-02-11\",145.0],[\"2011-02-13\",5.95],[\"2011-02-14\",16.95],[\"2011-02-15\",10.95],[\"2011-02-16\",8.5],[\"2011-02-17\",18.0],[\"2011-02-18\",14.95],[\"2011-02-20\",10.95],[\"2011-02-21\",12.75],[\"2011-02-22\",10.95],[\"2011-02-23\",34.95],[\"2011-02-24\",10.95],[\"2011-02-25\",40.0],[\"2011-02-27\",18.0],[\"2011-02-28\",125.0],[\"2011-03-01\",376.5],[\"2011-03-02\",10.95],[\"2011-03-03\",40.0],[\"2011-03-04\",28.0],[\"2011-03-06\",10.95],[\"2011-03-07\",125.0],[\"2011-03-08\",10.95],[\"2011-03-09\",40.0],[\"2011-03-10\",14.95],[\"2011-03-11\",16.95],[\"2011-03-14\",10.95],[\"2011-03-15\",9.95],[\"2011-03-16\",10.95],[\"2011-03-17\",10.95],[\"2011-03-18\",18.0],[\"2011-03-20\",18.0],[\"2011-03-21\",10.95],[\"2011-03-22\",9.95],[\"2011-03-23\",12.75],[\"2011-03-24\",8.5],[\"2011-03-25\",18.0],[\"2011-03-27\",12.75],[\"2011-03-28\",150.0],[\"2011-03-29\",10.65],[\"2011-03-30\",12.75],[\"2011-03-31\",18.0],[\"2011-04-01\",16.95],[\"2011-04-03\",10.95],[\"2011-04-04\",2382.92],[\"2011-04-05\",125.0],[\"2011-04-06\",8.15],[\"2011-04-07\",12.75],[\"2011-04-08\",18.0],[\"2011-04-10\",10.95],[\"2011-04-11\",8.5],[\"2011-04-12\",10.95],[\"2011-04-13\",12.75],[\"2011-04-14\",18.0],[\"2011-04-15\",40.0],[\"2011-04-17\",9.95],[\"2011-04-18\",12.75],[\"2011-04-19\",5.95],[\"2011-04-20\",14.95],[\"2011-04-21\",40.0],[\"2011-04-26\",40.0],[\"2011-04-27\",50.0],[\"2011-04-28\",295.0],[\"2011-05-01\",9.95],[\"2011-05-03\",110.0],[\"2011-05-04\",9.95],[\"2011-05-05\",39.95],[\"2011-05-06\",40.0],[\"2011-05-08\",16.95],[\"2011-05-09\",12.75],[\"2011-05-10\",16.95],[\"2011-05-11\",18.0],[\"2011-05-12\",12.5],[\"2011-05-13\",34.95],[\"2011-05-15\",16.95],[\"2011-05-16\",10.4],[\"2011-05-17\",12.5],[\"2011-05-18\",40.0],[\"2011-05-19\",39.95],[\"2011-05-20\",16.95],[\"2011-05-22\",9.95],[\"2011-05-23\",18.0],[\"2011-05-24\",29.95],[\"2011-05-25\",8.5],[\"2011-05-26\",125.0],[\"2011-05-27\",10.95],[\"2011-05-29\",5.45],[\"2011-05-31\",12.75],[\"2011-06-01\",16.95],[\"2011-06-02\",40.0],[\"2011-06-03\",18.0],[\"2011-06-05\",34.95],[\"2011-06-06\",12.75],[\"2011-06-07\",12.75],[\"2011-06-08\",15.0],[\"2011-06-09\",18.0],[\"2011-06-10\",18.0],[\"2011-06-12\",15.95],[\"2011-06-13\",15.0],[\"2011-06-14\",15.0],[\"2011-06-15\",12.75],[\"2011-06-16\",25.0],[\"2011-06-17\",16.95],[\"2011-06-19\",7.95],[\"2011-06-20\",18.0],[\"2011-06-21\",25.0],[\"2011-06-22\",15.0],[\"2011-06-23\",9.95],[\"2011-06-24\",16.95],[\"2011-06-26\",28.0],[\"2011-06-27\",4.95],[\"2011-06-28\",12.75],[\"2011-06-29\",24.95],[\"2011-06-30\",165.0],[\"2011-07-01\",50.0],[\"2011-07-03\",10.95],[\"2011-07-04\",12.75],[\"2011-07-05\",15.0],[\"2011-07-06\",12.75],[\"2011-07-07\",15.0],[\"2011-07-08\",85.0],[\"2011-07-10\",2.55],[\"2011-07-11\",18.0],[\"2011-07-12\",10.95],[\"2011-07-13\",85.0],[\"2011-07-14\",14.95],[\"2011-07-15\",16.95],[\"2011-07-17\",18.0],[\"2011-07-18\",16.95],[\"2011-07-19\",18.0],[\"2011-07-20\",28.0],[\"2011-07-21\",14.95],[\"2011-07-22\",8.5],[\"2011-07-24\",24.95],[\"2011-07-25\",15.0],[\"2011-07-26\",16.95],[\"2011-07-27\",7.65],[\"2011-07-28\",15.0],[\"2011-07-29\",12.75],[\"2011-07-31\",12.5],[\"2011-08-01\",4.95],[\"2011-08-02\",8.5],[\"2011-08-03\",12.75],[\"2011-08-04\",49.95],[\"2011-08-05\",18.0],[\"2011-08-07\",8.5],[\"2011-08-08\",40.0],[\"2011-08-09\",18.0],[\"2011-08-10\",12.75],[\"2011-08-11\",15.0],[\"2011-08-12\",6.75],[\"2011-08-14\",39.95],[\"2011-08-15\",5.95],[\"2011-08-16\",18.0],[\"2011-08-17\",3.39],[\"2011-08-18\",12.75],[\"2011-08-19\",14.95],[\"2011-08-21\",8.5],[\"2011-08-22\",10.95],[\"2011-08-23\",7.65],[\"2011-08-24\",18.0],[\"2011-08-25\",34.95],[\"2011-08-26\",85.0],[\"2011-08-28\",5.95],[\"2011-08-30\",40.0],[\"2011-08-31\",18.0],[\"2011-09-01\",12.75],[\"2011-09-02\",10.95],[\"2011-09-04\",18.0],[\"2011-09-05\",6.35],[\"2011-09-06\",18.0],[\"2011-09-07\",10.75],[\"2011-09-08\",18.0],[\"2011-09-09\",15.0],[\"2011-09-11\",7.5],[\"2011-09-12\",9.95],[\"2011-09-13\",40.0],[\"2011-09-14\",9.95],[\"2011-09-15\",50.0],[\"2011-09-16\",18.0],[\"2011-09-18\",9.95],[\"2011-09-19\",8.5],[\"2011-09-20\",9.95],[\"2011-09-21\",12.75],[\"2011-09-22\",18.0],[\"2011-09-23\",49.95],[\"2011-09-25\",40.0],[\"2011-09-26\",12.5],[\"2011-09-27\",12.5],[\"2011-09-28\",15.0],[\"2011-09-29\",10.95],[\"2011-09-30\",50.0],[\"2011-10-02\",8.25],[\"2011-10-03\",152.78],[\"2011-10-04\",40.0],[\"2011-10-05\",39.95],[\"2011-10-06\",18.0],[\"2011-10-07\",18.0],[\"2011-10-09\",7.08],[\"2011-10-10\",12.75],[\"2011-10-11\",50.0],[\"2011-10-12\",18.0],[\"2011-10-13\",12.75],[\"2011-10-14\",12.75],[\"2011-10-17\",9.95],[\"2011-10-18\",39.95],[\"2011-10-19\",3949.32],[\"2011-10-20\",18.0],[\"2011-10-21\",20.8],[\"2011-10-23\",12.75],[\"2011-10-24\",25.0],[\"2011-10-25\",250.0],[\"2011-10-26\",25.0],[\"2011-10-27\",18.0],[\"2011-10-28\",12.5],[\"2011-10-30\",29.95],[\"2011-10-31\",18.0],[\"2011-11-01\",10.4],[\"2011-11-02\",7.65],[\"2011-11-03\",25.0],[\"2011-11-04\",18.0],[\"2011-11-06\",16.65],[\"2011-11-07\",50.0],[\"2011-11-08\",12.5],[\"2011-11-09\",24.95],[\"2011-11-10\",549.34],[\"2011-11-11\",18.0],[\"2011-11-13\",16.65],[\"2011-11-14\",12.75],[\"2011-11-15\",10.95],[\"2011-11-16\",145.0],[\"2011-11-17\",40.0],[\"2011-11-18\",39.95],[\"2011-11-20\",9.95],[\"2011-11-21\",15.0],[\"2011-11-22\",40.0],[\"2011-11-23\",40.0],[\"2011-11-24\",14.95],[\"2011-11-25\",50.0],[\"2011-11-27\",9.95],[\"2011-11-28\",15.0],[\"2011-11-29\",40.0],[\"2011-11-30\",18.0],[\"2011-12-01\",40.0],[\"2011-12-02\",40.0],[\"2011-12-04\",18.0],[\"2011-12-05\",219.5],[\"2011-12-06\",25.0],[\"2011-12-07\",18.0],[\"2011-12-08\",18.0],[\"2011-12-09\",12.75]]","source":"online_retail_ii","split":"dev","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 = ? OR i.customer_id IS NOT NULL) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC","sql_parameters":"[\"Australia\"]","state":"{\"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, ordered by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}973{"category":"single_table/aggregate","domain":"sensor","family_id":"372caa9d5a129acc02559ec7","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"83dcb2a0c4ec58d1c1b5e99f5f3150993c33b44e8760c0df6277af830413b74f","language":"en","license":"CC-BY-4.0","query":"Return the sum of fs1_mean for hydraulic cycles where (vs1_mean is at most 0.64278).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[0.64278],\\\"sql\\\":\\\"SELECT SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (vs1_mean <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[0.64278],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (vs1_mean <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[0.64278],\\\"sql\\\":\\\"SELECT AVG(fs1_mean) AS value FROM hydraulic_cycles WHERE (vs1_mean <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[0.64278],\\\"sql\\\":\\\"SELECT MIN(fs1_mean) AS value FROM hydraulic_cycles WHERE (vs1_mean <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[10416.60682]]","source":"hydraulic","split":"dev","sql":"SELECT SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (vs1_mean <= ?)","sql_parameters":"[0.64278]","state":"{\"question\":\"Return the sum of fs1_mean for hydraulic cycles where (vs1_mean is at most 0.64278).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}974{"category":"single_table/grouped","domain":"sensor","family_id":"8a6c77439de5fb699da42289","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"c2e92d5ebb09bdc5729c495a22dd6adbac07892c9756817356b4cae6fa1c5377","language":"en","license":"CC-BY-4.0","query":"Return the sum of ps2_mean for hydraulic cycles where (ts1_mean is at most 35.56605), grouped by pump_leakage, ordered by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[35.56605],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[35.56605],\\\"sql\\\":\\\"SELECT pump_leakage, AVG(ps2_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[35.56605],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[35.56605],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(ps2_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,23561.73314],[1,765.85666],[2,108.68061]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC","sql_parameters":"[35.56605]","state":"{\"question\":\"Return the sum of ps2_mean for hydraulic cycles where (ts1_mean is at most 35.56605), 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_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}975{"category":"join/distinct_invoice/and/ranked","domain":"commerce","family_id":"019902a75e1a535ef114ae12","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"5f3421e48361e0c6c36851c36d723ef02d7c10449d061e7a03c6cdfbc8b2da67","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.customer_id equals '12364' and l.unit_price is greater than 0.55), grouped by i.country; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12364\\\",0.55],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? AND l.unit_price > ?) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12364\\\",0.55],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) 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.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[0.55],\\\"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 > ?) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Belgium\",1]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? AND l.unit_price > ?) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 5","sql_parameters":"[\"12364\",0.55]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.customer_id equals '12364' and l.unit_price is greater than 0.55), grouped by i.country; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}976{"category":"single_table/or/aggregate","domain":"commerce","family_id":"8082eac3f88ccee14151399a","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"4cf96a0e8b8d4b620550738ed91e68aa2dbfbe48da3ffd75dc2fdeabcd0a9b1b","language":"en","license":"CC-BY-4.0","query":"Return the sum of unit_price for retail invoice lines where (country equals 'Denmark' or unit_price is at most 2.25).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Denmark\\\",2.25],\\\"sql\\\":\\\"SELECT SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Denmark\\\",2.25],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Denmark\\\",2.25],\\\"sql\\\":\\\"SELECT SUM(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Denmark\\\",2.25],\\\"sql\\\":\\\"SELECT AVG(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[17726.97]]","source":"online_retail_ii","split":"dev","sql":"SELECT SUM(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?)","sql_parameters":"[\"Denmark\",2.25]","state":"{\"question\":\"Return the sum of unit_price for retail invoice lines where (country equals 'Denmark' or unit_price is at most 2.25).\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}977{"category":"single_table/grouped","domain":"commerce","family_id":"d6b618cd2a3ced44ec47d250","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"a941be48b20c65911a98360b9285832a44212dedc0b4f51d9efcfadf735d1ee9","language":"en","license":"CC-BY-4.0","query":"Return the average of product_duration for shopping sessions where (product_duration is at most 167.5), grouped by revenue, ordered by revenue ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[167.5],\\\"sql\\\":\\\"SELECT revenue, AVG(product_duration) AS value FROM shopping_sessions WHERE (product_duration <= ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[167.5],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (product_duration <= ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[167.5],\\\"sql\\\":\\\"SELECT revenue, SUM(product_duration) AS value FROM shopping_sessions WHERE (product_duration <= ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[167.5],\\\"sql\\\":\\\"SELECT revenue, MIN(product_duration) AS value FROM shopping_sessions WHERE (product_duration <= ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,59.017900512254045],[1,79.01682955887217]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, AVG(product_duration) AS value FROM shopping_sessions WHERE (product_duration <= ?) GROUP BY revenue ORDER BY revenue ASC","sql_parameters":"[167.5]","state":"{\"question\":\"Return the average of product_duration for shopping sessions where (product_duration is at most 167.5), grouped by revenue, ordered by revenue ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}978{"category":"single_table/or/aggregate","domain":"commerce","family_id":"90d367864b8b6bdd4e63532a","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"db93d3a3424aa2b19bffa15c44cc1bd3279e45c4807782d3b1214b1eb4e9393f","language":"en","license":"CC-BY-4.0","query":"Return the average of product_duration for shopping sessions where (region equals 4 or product_related is greater than 93).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[4,93],\\\"sql\\\":\\\"SELECT AVG(product_duration) AS value FROM shopping_sessions WHERE (region = ? AND product_related > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[4,93],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (region = ? OR product_related > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[4,93],\\\"sql\\\":\\\"SELECT SUM(product_duration) AS value FROM shopping_sessions WHERE (region = ? OR product_related > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[4,93],\\\"sql\\\":\\\"SELECT AVG(product_duration) AS value FROM shopping_sessions WHERE (region = ? OR product_related > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[2929.5940891818277]]","source":"online_shoppers","split":"dev","sql":"SELECT AVG(product_duration) AS value FROM shopping_sessions WHERE (region = ? OR product_related > ?)","sql_parameters":"[4,93]","state":"{\"question\":\"Return the average of product_duration for shopping sessions where (region equals 4 or product_related is greater than 93).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}979{"category":"join/and/having","domain":"commerce","family_id":"c95b3387c11dba89a48e49c5","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"8d09df707179531b3a79cd22b2a4d8a11fbfe379b576c72d54ee586abbcd1771","language":"en","license":"CC-BY-4.0","query":"Return the maximum of l.quantity for retail lines joined to their invoices where (l.quantity is greater than 1800 and l.unit_price is at most 8.5), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[1800,8.5,10],\\\"sql\\\":\\\"SELECT i.country, 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.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[1800,8.5,10],\\\"sql\\\":\\\"SELECT i.country, 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.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[1800,8.5,10],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) 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.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[1800,8.5,10],\\\"sql\\\":\\\"SELECT i.country, SUM(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.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"United Kingdom\",10000]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, 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.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3","sql_parameters":"[1800,8.5,10]","state":"{\"question\":\"Return the maximum of l.quantity for retail lines joined to their invoices where (l.quantity is greater than 1800 and l.unit_price is at most 8.5), 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_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}980{"category":"single_table/or/having","domain":"commerce","family_id":"f016d8a5bedc1ba8fbe56863","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"a99c46442335e25eac0783553e70f95c83f7208c8ba5fc09072f011b8228efb8","language":"en","license":"CC-BY-4.0","query":"Return the sum of quantity for retail invoice lines where (country equals 'Belgium' or unit_price is at most 2.25), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Belgium\\\",2.25,10],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Belgium\\\",2.25,10],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Belgium\\\",2.25],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Belgium\\\",2.25,10],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Portugal\",202],[\"Australia\",490],[\"Switzerland\",814]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3","sql_parameters":"[\"Belgium\",2.25,10]","state":"{\"question\":\"Return the sum of quantity for retail invoice lines where (country equals 'Belgium' or unit_price is at most 2.25), 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\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}981{"category":"join/having","domain":"commerce","family_id":"a672937565edfe09855b6683","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"5323ec1e612b34d82bb7f6b61e5816dd10c33e857d3f87611435e0662a05a18c","language":"en","license":"CC-BY-4.0","query":"Return the average of l.quantity for retail lines joined to their invoices where (i.customer_id equals '12346'), grouped by i.country, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12346\\\",2],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12346\\\",2],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12346\\\",2],\\\"sql\\\":\\\"SELECT i.country, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2],\\\"sql\\\":\\\"SELECT i.country, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"United Kingdom\",1.0]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5","sql_parameters":"[\"12346\",2]","state":"{\"question\":\"Return the average of l.quantity for retail lines joined to their invoices where (i.customer_id equals '12346'), grouped by i.country, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}982{"category":"single_table/or/ranked","domain":"commerce","family_id":"9a180a0cff8aaba414f86923","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"d0202f1b67712f4db3d6f048636b567ea904c50aed0c12d4ee710cd01f3eff5f","language":"en","license":"CC-BY-4.0","query":"Return the sum of administrative for shopping sessions where (administrative is at most 7 or product_duration is at most 472.4166667), grouped by visitor_type; return at most 3 groups ordered by aggregate value ASC, breaking ties by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[7,472.4166667],\\\"sql\\\":\\\"SELECT visitor_type, SUM(administrative) AS value FROM shopping_sessions WHERE (administrative <= ? AND product_duration <= ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[7,472.4166667],\\\"sql\\\":\\\"SELECT visitor_type, SUM(administrative) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_duration <= ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[7,472.4166667],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_duration <= ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[7,472.4166667],\\\"sql\\\":\\\"SELECT visitor_type, SUM(administrative) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_duration <= ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Other\",125],[\"New_Visitor\",3740],[\"Returning_Visitor\",14498]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, SUM(administrative) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_duration <= ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3","sql_parameters":"[7,472.4166667]","state":"{\"question\":\"Return the sum of administrative for shopping sessions where (administrative is at most 7 or product_duration is at most 472.4166667), grouped by visitor_type; return at most 3 groups ordered by aggregate value ASC, breaking ties by visitor_type ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}983{"category":"single_table/or/ranked","domain":"sensor","family_id":"8ec17a708209531056ee399e","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"ed109fdb1d8aa8bf0dcc9b86a6c984ed970b911dfb2ad9453cf741994d65b951","language":"en","license":"CC-BY-4.0","query":"Return the maximum of fs1_mean for hydraulic cycles where (ps2_mean is at most 122.4767 or ts1_mean is at most 52.59775), grouped by pump_leakage; return at most 5 groups ordered by aggregate value DESC, breaking ties by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[122.4767,52.59775],\\\"sql\\\":\\\"SELECT pump_leakage, MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND ts1_mean <= ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[122.4767,52.59775],\\\"sql\\\":\\\"SELECT pump_leakage, MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR ts1_mean <= ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[122.4767,52.59775],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR ts1_mean <= ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[122.4767,52.59775],\\\"sql\\\":\\\"SELECT pump_leakage, MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR ts1_mean <= ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,6.72271],[1,6.53533],[2,6.47057]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR ts1_mean <= ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 5","sql_parameters":"[122.4767,52.59775]","state":"{\"question\":\"Return the maximum of fs1_mean for hydraulic cycles where (ps2_mean is at most 122.4767 or ts1_mean is at most 52.59775), 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\",\"eps1_mean\":\"REAL\",\"fs1_mean\":\"REAL\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}984{"category":"join/null/and/having","domain":"commerce","family_id":"8058314470175bc09b79f477","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"031cc70adbe60d5f7eb4cfab8c1307608077cdd44b5ada9b2e470d34329a9e09","language":"en","license":"CC-BY-4.0","query":"Return the average of l.quantity for retail lines joined to their invoices where (i.country equals 'Austria' and 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Austria\\\",10],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(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\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Austria\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(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 ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Austria\\\",10],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(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_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[10],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","sql":"SELECT i.invoice_date, AVG(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_date ASC LIMIT 3","sql_parameters":"[\"Austria\",10]","state":"{\"question\":\"Return the average of l.quantity for retail lines joined to their invoices where (i.country equals 'Austria' and 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.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}985{"category":"single_table/date/and/ranked","domain":"commerce","family_id":"6a986577fe214fc8582b02e9","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"682dd666accbe447f605c0d29b5947f018b85e3394f570020fc957b93776dada","language":"en","license":"CC-BY-4.0","query":"Return the maximum of quantity for retail invoice lines where (quantity is greater than 1800 and invoice_date is on or after '2010-12-02'), grouped by invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[1800,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MAX(quantity) AS value FROM retail_lines WHERE (quantity > ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[1800,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MAX(quantity) AS value FROM retail_lines WHERE (quantity > ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[1800,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MAX(quantity) AS value FROM retail_lines WHERE (quantity > ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[1800,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (quantity > ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-11-03\",2100],[\"2011-03-20\",2160],[\"2011-02-03\",2592]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MAX(quantity) AS value FROM retail_lines WHERE (quantity > ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3","sql_parameters":"[1800,\"2010-12-02\"]","state":"{\"question\":\"Return the maximum of quantity for retail invoice lines where (quantity is greater than 1800 and invoice_date is on or after '2010-12-02'), grouped by invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by invoice_date ascending.\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}986{"category":"single_table/or/ranked","domain":"sensor","family_id":"0673d5fb113aa600449c267c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"79537e47861f3149e01979563b23891cec42412645c2d46225ebe5277287b2ce","language":"en","license":"CC-BY-4.0","query":"Return the sum of fs1_mean for hydraulic cycles where (eps1_mean is greater than 2598.8769 or ts1_mean is greater than 35.56605), grouped by valve; return at most 3 groups ordered by aggregate value ASC, breaking ties by valve ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2598.8769,35.56605],\\\"sql\\\":\\\"SELECT valve, SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ? AND ts1_mean > ?) GROUP BY valve ORDER BY value ASC, valve ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2598.8769,35.56605],\\\"sql\\\":\\\"SELECT valve, SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ? OR ts1_mean > ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2598.8769,35.56605],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (eps1_mean > ? OR ts1_mean > ?) GROUP BY valve ORDER BY value ASC, valve ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2598.8769,35.56605],\\\"sql\\\":\\\"SELECT valve, SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ? OR ts1_mean > ?) GROUP BY valve ORDER BY value ASC, valve ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[90,2089.65609],[80,2091.09842],[73,2116.20248]]","source":"hydraulic","split":"dev","sql":"SELECT valve, SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ? OR ts1_mean > ?) GROUP BY valve ORDER BY value ASC, valve ASC LIMIT 3","sql_parameters":"[2598.8769,35.56605]","state":"{\"question\":\"Return the sum of fs1_mean for hydraulic cycles where (eps1_mean is greater than 2598.8769 or ts1_mean is greater than 35.56605), 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\":\"REAL\",\"fs1_mean\":\"REAL\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}987{"category":"single_table/date/or/grouped","domain":"commerce","family_id":"5f30edfeba5a756e158806d8","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"3d2352ba6822cca88eb843cf92aacaf8433d2285af2481adac0538109dc3ec2a","language":"en","license":"CC-BY-4.0","query":"Return the average of unit_price for retail invoice lines where (unit_price is greater than 49.95 or invoice_date is before '2010-12-02'), grouped by country, ordered by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[49.95,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (unit_price > ? AND invoice_date < ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[49.95,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date < ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[49.95,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date < ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[49.95,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date < ?) GROUP BY country ORDER BY country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",1.9821052631578946],[\"Austria\",14.4],[\"Bahrain\",3.25],[\"Belgium\",4.452941176470588],[\"Channel Islands\",1.6833333333333333],[\"Cyprus\",3.615625],[\"Denmark\",7.1325],[\"EIRE\",45.93494382022472],[\"Finland\",12.7225],[\"France\",3.3586206896551727],[\"Germany\",11.86325],[\"Italy\",6.055555555555555],[\"Japan\",2.3],[\"Netherlands\",4.8693243243243245],[\"Norway\",94.75],[\"Poland\",1.6],[\"Portugal\",3.195294117647059],[\"Singapore\",1684.305],[\"Spain\",12.646756756756757],[\"Sweden\",4.059722222222223],[\"Switzerland\",6.2612499999999995],[\"USA\",2.55],[\"United Arab Emirates\",134.0],[\"United Kingdom\",4.470006346184356]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date < ?) GROUP BY country ORDER BY country ASC","sql_parameters":"[49.95,\"2010-12-02\"]","state":"{\"question\":\"Return the average of unit_price for retail invoice lines where (unit_price is greater than 49.95 or invoice_date is before '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\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}988{"category":"single_table/and/ranked","domain":"sensor","family_id":"b7f35066ee1dd5b5468aeea7","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"ecccc8825571457ffc5584b87f1bc909495c8df98a27071c57918fdb864dcf89","language":"en","license":"CC-BY-4.0","query":"Return the maximum of ts1_mean for hydraulic cycles where (ps2_mean is greater than 109.23171 and fs1_mean is greater than 3.36184), grouped by pump_leakage; return at most 3 groups ordered by aggregate value ASC, breaking ties by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[109.23171,3.36184],\\\"sql\\\":\\\"SELECT pump_leakage, MAX(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? OR fs1_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[109.23171,3.36184],\\\"sql\\\":\\\"SELECT pump_leakage, MAX(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? AND fs1_mean > ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[109.23171,3.36184],\\\"sql\\\":\\\"SELECT pump_leakage, MAX(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? AND fs1_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[109.23171,3.36184],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? AND fs1_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[2,57.15915],[1,57.63635],[0,57.68345]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, MAX(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? AND fs1_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3","sql_parameters":"[109.23171,3.36184]","state":"{\"question\":\"Return the maximum of ts1_mean for hydraulic cycles where (ps2_mean is greater than 109.23171 and fs1_mean is greater than 3.36184), 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\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}989{"category":"single_table/grouped","domain":"commerce","family_id":"6cb11e3c89880e352290c32b","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"b5eb994673829656313b8719268477176fb6f7b59d44230830a0b8161d1942ca","language":"en","license":"CC-BY-4.0","query":"Return the sum of product_related for shopping sessions where (administrative is at most 18), grouped by revenue, ordered by revenue ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[18],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (administrative <= ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[18],\\\"sql\\\":\\\"SELECT revenue, AVG(product_related) AS value FROM shopping_sessions WHERE (administrative <= ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[18],\\\"sql\\\":\\\"SELECT revenue, SUM(product_related) AS value FROM shopping_sessions WHERE (administrative <= ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[18],\\\"sql\\\":\\\"SELECT revenue, MIN(product_related) AS value FROM shopping_sessions WHERE (administrative <= ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,295556],[1,90951]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, SUM(product_related) AS value FROM shopping_sessions WHERE (administrative <= ?) GROUP BY revenue ORDER BY revenue ASC","sql_parameters":"[18]","state":"{\"question\":\"Return the sum of product_related for shopping sessions where (administrative is at most 18), grouped by revenue, ordered by revenue ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}990{"category":"single_table/date/or/ranked","domain":"commerce","family_id":"174a8a6e570e643be0a7359a","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"6628d609815603df007409aa890050a60cf0d87784550b409002af9eeaee3400","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (country equals 'EIRE' or invoice_date is on or after '2011-05-10'), grouped by invoice_date; return at most 5 groups ordered by aggregate value DESC, breaking ties by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"EIRE\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"EIRE\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"EIRE\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"EIRE\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-10-19\",3949.32],[\"2011-06-20\",1917.0],[\"2011-11-10\",549.34],[\"2011-10-25\",250.0],[\"2011-12-05\",219.5]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5","sql_parameters":"[\"EIRE\",\"2011-05-10\"]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines where (country equals 'EIRE' or invoice_date is on or after '2011-05-10'), 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\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}991{"category":"join/or/grouped","domain":"commerce","family_id":"95f26531f42024593fa1065f","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"47a59dbe134673a767d3bde6fbf815df6fe4358f89692e2411c0fc530f96decb","language":"en","license":"CC-BY-4.0","query":"Return the maximum of l.quantity for retail lines joined to their invoices where (i.customer_id equals '12370' or l.unit_price is greater than 0.55), grouped by i.invoice_date, ordered by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12370\\\",0.55],\\\"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.customer_id = ? AND l.unit_price > ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12370\\\",0.55],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) 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_3\":\"{\\\"parameters\\\":[\\\"12370\\\",0.55],\\\"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.customer_id = ? OR l.unit_price > ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12370\\\",0.55],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.quantity) 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\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"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],[\"2009-12-20\",96],[\"2009-12-21\",200],[\"2009-12-22\",336],[\"2009-12-23\",96],[\"2010-01-04\",300],[\"2010-01-05\",200],[\"2010-01-06\",12],[\"2010-01-07\",832],[\"2010-01-08\",600],[\"2010-01-10\",300],[\"2010-01-11\",288],[\"2010-01-12\",200],[\"2010-01-13\",200],[\"2010-01-14\",32],[\"2010-01-15\",100],[\"2010-01-17\",192],[\"2010-01-18\",12],[\"2010-01-19\",100],[\"2010-01-20\",72],[\"2010-01-21\",144],[\"2010-01-22\",80],[\"2010-01-24\",48],[\"2010-01-25\",60],[\"2010-01-26\",24],[\"2010-01-27\",200],[\"2010-01-28\",96],[\"2010-01-29\",288],[\"2010-01-31\",96],[\"2010-02-01\",144],[\"2010-02-02\",144],[\"2010-02-03\",96],[\"2010-02-04\",252],[\"2010-02-05\",200],[\"2010-02-07\",96],[\"2010-02-08\",96],[\"2010-02-09\",60],[\"2010-02-10\",48],[\"2010-02-11\",192],[\"2010-02-12\",100],[\"2010-02-14\",192],[\"2010-02-15\",100],[\"2010-02-16\",288],[\"2010-02-17\",288],[\"2010-02-18\",96],[\"2010-02-19\",250],[\"2010-02-21\",24],[\"2010-02-22\",208],[\"2010-02-23\",100],[\"2010-02-24\",300],[\"2010-02-25\",480],[\"2010-02-26\",300],[\"2010-02-28\",120],[\"2010-03-01\",144],[\"2010-03-02\",48],[\"2010-03-03\",64],[\"2010-03-04\",240],[\"2010-03-05\",160],[\"2010-03-07\",48],[\"2010-03-08\",400],[\"2010-03-09\",144],[\"2010-03-10\",216],[\"2010-03-11\",96],[\"2010-03-12\",24],[\"2010-03-14\",96],[\"2010-03-15\",450],[\"2010-03-16\",104],[\"2010-03-17\",120],[\"2010-03-18\",200],[\"2010-03-19\",144],[\"2010-03-21\",72],[\"2010-03-22\",480],[\"2010-03-23\",192],[\"2010-03-24\",384],[\"2010-03-25\",96],[\"2010-03-26\",48],[\"2010-03-28\",96],[\"2010-03-29\",816],[\"2010-03-30\",360],[\"2010-03-31\",144],[\"2010-04-01\",600],[\"2010-04-06\",200],[\"2010-04-07\",144],[\"2010-04-08\",288],[\"2010-04-09\",300],[\"2010-04-11\",320],[\"2010-04-12\",126],[\"2010-04-13\",96],[\"2010-04-14\",192],[\"2010-04-15\",150],[\"2010-04-16\",288],[\"2010-04-18\",100],[\"2010-04-19\",200],[\"2010-04-20\",200],[\"2010-04-21\",144],[\"2010-04-22\",600],[\"2010-04-23\",72],[\"2010-04-25\",144],[\"2010-04-26\",300],[\"2010-04-27\",144],[\"2010-04-28\",150],[\"2010-04-29\",144],[\"2010-04-30\",90],[\"2010-05-02\",250],[\"2010-05-04\",560],[\"2010-05-05\",288],[\"2010-05-06\",96],[\"2010-05-07\",816],[\"2010-05-09\",72],[\"2010-05-10\",612],[\"2010-05-11\",80],[\"2010-05-12\",400],[\"2010-05-13\",108],[\"2010-05-14\",144],[\"2010-05-16\",48],[\"2010-05-17\",200],[\"2010-05-18\",216],[\"2010-05-19\",288],[\"2010-05-20\",72],[\"2010-05-21\",100],[\"2010-05-23\",36],[\"2010-05-24\",84],[\"2010-05-25\",144],[\"2010-05-26\",96],[\"2010-05-27\",144],[\"2010-05-28\",144],[\"2010-05-30\",48],[\"2010-06-01\",144],[\"2010-06-02\",60],[\"2010-06-03\",432],[\"2010-06-04\",144],[\"2010-06-06\",48],[\"2010-06-07\",830],[\"2010-06-08\",3500],[\"2010-06-09\",384],[\"2010-06-10\",108],[\"2010-06-11\",216],[\"2010-06-13\",96],[\"2010-06-14\",120],[\"2010-06-15\",192],[\"2010-06-16\",192],[\"2010-06-17\",102],[\"2010-06-18\",60],[\"2010-06-20\",400],[\"2010-06-21\",24],[\"2010-06-22\",64],[\"2010-06-23\",200],[\"2010-06-24\",100],[\"2010-06-25\",24],[\"2010-06-27\",600],[\"2010-06-28\",720],[\"2010-06-29\",400],[\"2010-06-30\",126],[\"2010-07-01\",108],[\"2010-07-02\",3],[\"2010-07-04\",96],[\"2010-07-05\",200],[\"2010-07-06\",240],[\"2010-07-07\",144],[\"2010-07-08\",192],[\"2010-07-09\",18],[\"2010-07-11\",2],[\"2010-07-12\",100],[\"2010-07-13\",128],[\"2010-07-14\",72],[\"2010-07-15\",816],[\"2010-07-16\",144],[\"2010-07-18\",288],[\"2010-07-19\",120],[\"2010-07-20\",96],[\"2010-07-21\",100],[\"2010-07-22\",72],[\"2010-07-23\",504],[\"2010-07-25\",120],[\"2010-07-26\",288],[\"2010-07-27\",432],[\"2010-07-28\",48],[\"2010-07-29\",124],[\"2010-07-30\",324],[\"2010-08-01\",12],[\"2010-08-02\",300],[\"2010-08-03\",1120],[\"2010-08-04\",18],[\"2010-08-05\",200],[\"2010-08-06\",192],[\"2010-08-08\",72],[\"2010-08-09\",200],[\"2010-08-10\",200],[\"2010-08-11\",327],[\"2010-08-12\",72],[\"2010-08-13\",312],[\"2010-08-15\",400],[\"2010-08-16\",254],[\"2010-08-17\",240],[\"2010-08-18\",60],[\"2010-08-19\",600],[\"2010-08-20\",200],[\"2010-08-22\",100],[\"2010-08-23\",100],[\"2010-08-24\",576],[\"2010-08-25\",288],[\"2010-08-26\",400],[\"2010-08-27\",24],[\"2010-08-29\",48],[\"2010-08-31\",432],[\"2010-09-01\",72],[\"2010-09-02\",192],[\"2010-09-03\",1920],[\"2010-09-05\",144],[\"2010-09-06\",120],[\"2010-09-07\",288],[\"2010-09-08\",160],[\"2010-09-09\",60],[\"2010-09-10\",100],[\"2010-09-12\",100],[\"2010-09-13\",876],[\"2010-09-14\",60],[\"2010-09-15\",96],[\"2010-09-16\",192],[\"2010-09-17\",288],[\"2010-09-19\",144],[\"2010-09-20\",768],[\"2010-09-21\",504],[\"2010-09-22\",216],[\"2010-09-23\",48],[\"2010-09-24\",60],[\"2010-09-26\",192],[\"2010-09-27\",360],[\"2010-09-28\",240],[\"2010-09-29\",100],[\"2010-09-30\",200],[\"2010-10-01\",96],[\"2010-10-03\",48],[\"2010-10-04\",144],[\"2010-10-05\",288],[\"2010-10-06\",150],[\"2010-10-07\",200],[\"2010-10-08\",3120],[\"2010-10-10\",100],[\"2010-10-11\",192],[\"2010-10-12\",240],[\"2010-10-13\",216],[\"2010-10-14\",200],[\"2010-10-15\",144],[\"2010-10-17\",1],[\"2010-10-18\",200],[\"2010-10-19\",36],[\"2010-10-20\",192],[\"2010-10-21\",168],[\"2010-10-22\",1240],[\"2010-10-24\",144],[\"2010-10-25\",144],[\"2010-10-26\",600],[\"2010-10-27\",36],[\"2010-10-28\",144],[\"2010-10-29\",96],[\"2010-10-31\",96],[\"2010-11-01\",288],[\"2010-11-02\",160],[\"2010-11-03\",384],[\"2010-11-04\",9360],[\"2010-11-05\",1152],[\"2010-11-07\",100],[\"2010-11-08\",144],[\"2010-11-09\",360],[\"2010-11-10\",1000],[\"2010-11-11\",800],[\"2010-11-12\",800],[\"2010-11-14\",40],[\"2010-11-15\",240],[\"2010-11-16\",250],[\"2010-11-17\",200],[\"2010-11-18\",200],[\"2010-11-19\",96],[\"2010-11-21\",100],[\"2010-11-22\",144],[\"2010-11-23\",204],[\"2010-11-24\",280],[\"2010-11-25\",200],[\"2010-11-26\",192],[\"2010-11-28\",144],[\"2010-11-29\",256],[\"2010-11-30\",384],[\"2010-12-01\",432],[\"2010-12-02\",1400],[\"2010-12-03\",120],[\"2010-12-05\",144],[\"2010-12-06\",324],[\"2010-12-07\",972],[\"2010-12-08\",384],[\"2010-12-09\",250],[\"2010-12-10\",216],[\"2010-12-12\",48],[\"2010-12-13\",288],[\"2010-12-14\",288],[\"2010-12-15\",72],[\"2010-12-16\",500],[\"2010-12-17\",144],[\"2010-12-19\",6],[\"2010-12-20\",120],[\"2010-12-21\",100],[\"2010-12-22\",72],[\"2010-12-23\",48],[\"2011-01-04\",144],[\"2011-01-05\",600],[\"2011-01-06\",96],[\"2011-01-07\",100],[\"2011-01-09\",192],[\"2011-01-10\",144],[\"2011-01-11\",3114],[\"2011-01-12\",100],[\"2011-01-13\",288],[\"2011-01-14\",60],[\"2011-01-16\",16],[\"2011-01-17\",200],[\"2011-01-18\",50],[\"2011-01-19\",216],[\"2011-01-20\",144],[\"2011-01-21\",288],[\"2011-01-23\",32],[\"2011-01-24\",100],[\"2011-01-25\",192],[\"2011-01-26\",120],[\"2011-01-27\",72],[\"2011-01-28\",48],[\"2011-01-30\",20],[\"2011-01-31\",108],[\"2011-02-01\",130],[\"2011-02-02\",100],[\"2011-02-03\",480],[\"2011-02-04\",192],[\"2011-02-07\",504],[\"2011-02-08\",216],[\"2011-02-09\",12],[\"2011-02-10\",288],[\"2011-02-11\",120],[\"2011-02-13\",16],[\"2011-02-14\",288],[\"2011-02-15\",600],[\"2011-02-16\",200],[\"2011-02-17\",288],[\"2011-02-18\",200],[\"2011-02-20\",100],[\"2011-02-21\",144],[\"2011-02-22\",96],[\"2011-02-23\",144],[\"2011-02-24\",72],[\"2011-02-25\",198],[\"2011-02-27\",40],[\"2011-02-28\",36],[\"2011-03-01\",192],[\"2011-03-02\",72],[\"2011-03-03\",288],[\"2011-03-04\",576],[\"2011-03-06\",96],[\"2011-03-07\",240],[\"2011-03-08\",81],[\"2011-03-09\",600],[\"2011-03-10\",216],[\"2011-03-11\",300],[\"2011-03-14\",100],[\"2011-03-15\",160],[\"2011-03-16\",144],[\"2011-03-17\",600],[\"2011-03-18\",144],[\"2011-03-20\",128],[\"2011-03-21\",100],[\"2011-03-22\",100],[\"2011-03-23\",200],[\"2011-03-24\",600],[\"2011-03-25\",432],[\"2011-03-27\",90],[\"2011-03-28\",150],[\"2011-03-29\",100],[\"2011-03-30\",600],[\"2011-03-31\",160],[\"2011-04-01\",392],[\"2011-04-03\",108],[\"2011-04-04\",100],[\"2011-04-05\",500],[\"2011-04-06\",120],[\"2011-04-07\",96],[\"2011-04-08\",72],[\"2011-04-10\",24],[\"2011-04-11\",200],[\"2011-04-12\",100],[\"2011-04-13\",504],[\"2011-04-14\",600],[\"2011-04-15\",100],[\"2011-04-17\",40],[\"2011-04-18\",3114],[\"2011-04-19\",60],[\"2011-04-20\",192],[\"2011-04-21\",216],[\"2011-04-26\",600],[\"2011-04-27\",280],[\"2011-04-28\",108],[\"2011-05-01\",48],[\"2011-05-03\",240],[\"2011-05-04\",216],[\"2011-05-05\",600],[\"2011-05-06\",60],[\"2011-05-08\",80],[\"2011-05-09\",128],[\"2011-05-10\",200],[\"2011-05-11\",240],[\"2011-05-12\",100],[\"2011-05-13\",200],[\"2011-05-15\",96],[\"2011-05-16\",144],[\"2011-05-17\",288],[\"2011-05-18\",144],[\"2011-05-19\",60],[\"2011-05-20\",576],[\"2011-05-22\",50],[\"2011-05-23\",300],[\"2011-05-24\",888],[\"2011-05-25\",144],[\"2011-05-26\",200],[\"2011-05-27\",108],[\"2011-05-29\",130],[\"2011-05-31\",288],[\"2011-06-01\",72],[\"2011-06-02\",320],[\"2011-06-03\",60],[\"2011-06-05\",288],[\"2011-06-06\",100],[\"2011-06-07\",216],[\"2011-06-08\",600],[\"2011-06-09\",144],[\"2011-06-10\",144],[\"2011-06-12\",10],[\"2011-06-13\",360],[\"2011-06-14\",660],[\"2011-06-15\",144],[\"2011-06-16\",288],[\"2011-06-17\",100],[\"2011-06-19\",150],[\"2011-06-20\",400],[\"2011-06-21\",72],[\"2011-06-22\",576],[\"2011-06-23\",48],[\"2011-06-24\",100],[\"2011-06-26\",24],[\"2011-06-27\",120],[\"2011-06-28\",320],[\"2011-06-29\",120],[\"2011-06-30\",828],[\"2011-07-01\",144],[\"2011-07-03\",90],[\"2011-07-04\",300],[\"2011-07-05\",600],[\"2011-07-06\",192],[\"2011-07-07\",144],[\"2011-07-08\",200],[\"2011-07-10\",1],[\"2011-07-11\",320],[\"2011-07-12\",240],[\"2011-07-13\",192],[\"2011-07-14\",144],[\"2011-07-15\",160],[\"2011-07-17\",50],[\"2011-07-18\",60],[\"2011-07-19\",240],[\"2011-07-20\",144],[\"2011-07-21\",720],[\"2011-07-22\",144],[\"2011-07-24\",288],[\"2011-07-25\",192],[\"2011-07-26\",100],[\"2011-07-27\",576],[\"2011-07-28\",480],[\"2011-07-29\",100],[\"2011-07-31\",144],[\"2011-08-01\",360],[\"2011-08-02\",1000],[\"2011-08-03\",144],[\"2011-08-04\",720],[\"2011-08-05\",240],[\"2011-08-07\",144],[\"2011-08-08\",700],[\"2011-08-09\",32],[\"2011-08-10\",60],[\"2011-08-11\",144],[\"2011-08-12\",144],[\"2011-08-14\",36],[\"2011-08-15\",72],[\"2011-08-16\",36],[\"2011-08-17\",824],[\"2011-08-18\",504],[\"2011-08-19\",160],[\"2011-08-21\",200],[\"2011-08-22\",400],[\"2011-08-23\",360],[\"2011-08-24\",400],[\"2011-08-25\",96],[\"2011-08-26\",288],[\"2011-08-28\",96],[\"2011-08-30\",96],[\"2011-08-31\",120],[\"2011-09-01\",216],[\"2011-09-02\",840],[\"2011-09-04\",120],[\"2011-09-05\",192],[\"2011-09-06\",96],[\"2011-09-07\",100],[\"2011-09-08\",576],[\"2011-09-09\",36],[\"2011-09-11\",144],[\"2011-09-12\",216],[\"2011-09-13\",300],[\"2011-09-14\",100],[\"2011-09-15\",600],[\"2011-09-16\",120],[\"2011-09-18\",100],[\"2011-09-19\",100],[\"2011-09-20\",500],[\"2011-09-21\",200],[\"2011-09-22\",144],[\"2011-09-23\",288],[\"2011-09-25\",120],[\"2011-09-26\",144],[\"2011-09-27\",200],[\"2011-09-28\",500],[\"2011-09-29\",200],[\"2011-09-30\",216],[\"2011-10-02\",48],[\"2011-10-03\",960],[\"2011-10-04\",1540],[\"2011-10-05\",100],[\"2011-10-06\",400],[\"2011-10-07\",1296],[\"2011-10-09\",24],[\"2011-10-10\",240],[\"2011-10-11\",50],[\"2011-10-12\",72],[\"2011-10-13\",96],[\"2011-10-14\",96],[\"2011-10-17\",500],[\"2011-10-18\",100],[\"2011-10-19\",288],[\"2011-10-20\",100],[\"2011-10-21\",48],[\"2011-10-23\",2],[\"2011-10-24\",456],[\"2011-10-25\",400],[\"2011-10-26\",384],[\"2011-10-27\",200],[\"2011-10-28\",144],[\"2011-10-30\",50],[\"2011-10-31\",120],[\"2011-11-01\",144],[\"2011-11-02\",288],[\"2011-11-03\",2100],[\"2011-11-04\",100],[\"2011-11-06\",48],[\"2011-11-07\",240],[\"2011-11-08\",144],[\"2011-11-09\",480],[\"2011-11-10\",144],[\"2011-11-11\",192],[\"2011-11-13\",144],[\"2011-11-14\",150],[\"2011-11-15\",216],[\"2011-11-16\",200],[\"2011-11-17\",456],[\"2011-11-18\",300],[\"2011-11-20\",288],[\"2011-11-21\",192],[\"2011-11-22\",144],[\"2011-11-23\",360],[\"2011-11-24\",192],[\"2011-11-25\",160],[\"2011-11-27\",12],[\"2011-11-28\",760],[\"2011-11-29\",288],[\"2011-11-30\",100],[\"2011-12-01\",288],[\"2011-12-02\",100],[\"2011-12-04\",120],[\"2011-12-05\",800],[\"2011-12-06\",200],[\"2011-12-07\",200],[\"2011-12-08\",144],[\"2011-12-09\",96]]","source":"online_retail_ii","split":"dev","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.customer_id = ? OR l.unit_price > ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC","sql_parameters":"[\"12370\",0.55]","state":"{\"question\":\"Return the maximum of l.quantity for retail lines joined to their invoices where (i.customer_id equals '12370' or l.unit_price is greater than 0.55), grouped by i.invoice_date, ordered by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}992{"category":"single_table/and/having","domain":"commerce","family_id":"4fe87b7a41c8ce2a76bed9ea","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"cfb44197f2d922b178a3116e6863bf9fd68faecc05d60cfc5f5ca051a441555b","language":"en","license":"CC-BY-4.0","query":"Return the sum of unit_price for retail invoice lines where (country equals 'EIRE' and quantity is at most 25), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"EIRE\\\",25,10],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"EIRE\\\",25,10],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"EIRE\\\",25,10],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"EIRE\\\",25,10],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"EIRE\",4400.83]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3","sql_parameters":"[\"EIRE\",25,10]","state":"{\"question\":\"Return the sum of unit_price for retail invoice lines where (country equals 'EIRE' and quantity is at most 25), 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\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}993{"category":"single_table/and/ranked","domain":"commerce","family_id":"b83fee22e62a6f6270bf0e4d","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"8eb26bfce3d180f8198d3699584c584af3bec29e7817b37cace90c5519ebf704","language":"en","license":"CC-BY-4.0","query":"Return the average of quantity for retail invoice lines where (quantity is at most 648 and 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[648,4.77],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (quantity <= ? AND unit_price > ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[648,4.77],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[648,4.77],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (quantity <= ? AND unit_price > ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[648,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\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"EIRE\",16.131147540983605],[\"Netherlands\",11.235294117647058],[\"United Kingdom\",9.369808306709265],[\"Channel Islands\",8.666666666666666],[\"Austria\",5.444444444444445]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (quantity <= ? AND unit_price > ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5","sql_parameters":"[648,4.77]","state":"{\"question\":\"Return the average of quantity for retail invoice lines where (quantity is at most 648 and 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\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}994{"category":"single_table/or/ranked","domain":"commerce","family_id":"2cfe88f2120ff893b7ab4ae5","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"2d91ffa74ea9c52186780b3e713e66e652cd41ba34e42c6989149c5f563e1d91","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail invoice lines where (country equals 'Finland' or unit_price is at most 49.95), grouped by country; return at most 5 groups ordered by aggregate value DESC, breaking ties by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Finland\\\",49.95],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Finland\\\",49.95],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Finland\\\",49.95],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Finland\\\",49.95],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"United Kingdom\",25273],[\"Germany\",517],[\"France\",238],[\"EIRE\",189],[\"Netherlands\",118]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5","sql_parameters":"[\"Finland\",49.95]","state":"{\"question\":\"Return the number of rows for retail invoice lines where (country equals 'Finland' or unit_price is at most 49.95), 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\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}995{"category":"single_table/or/having","domain":"commerce","family_id":"082a8f77c1b92235ad70a03f","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"f0cb6d637669d459669a5f6bc214013cae619835921da588b8ab6f2130fb1b36","language":"en","license":"CC-BY-4.0","query":"Return the sum of product_duration for shopping sessions where (administrative is at most 23 or product_related is at most 340), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[23,340,10],\\\"sql\\\":\\\"SELECT revenue, SUM(product_duration) AS value FROM shopping_sessions WHERE (administrative <= ? AND product_related <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[23,340,10],\\\"sql\\\":\\\"SELECT revenue, SUM(product_duration) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_related <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[23,340,10],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_related <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[23,340,10],\\\"sql\\\":\\\"SELECT revenue, SUM(product_duration) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_related <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1,3579807.94520803],[0,11126568.790807603]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, SUM(product_duration) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_related <= ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3","sql_parameters":"[23,340,10]","state":"{\"question\":\"Return the sum of product_duration for shopping sessions where (administrative is at most 23 or product_related is at most 340), 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\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}996{"category":"single_table/and/having","domain":"commerce","family_id":"b342be1a969f6731caea532a","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"359553f46e11449d416a6aeaf0e832fa77c2a31820d566a6ebc597f456ed88dd","language":"en","license":"CC-BY-4.0","query":"Return the sum of product_duration for shopping sessions where (administrative is greater than 13 and product_related is at most 155), grouped by month, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[13,155,2],\\\"sql\\\":\\\"SELECT month, SUM(product_duration) AS value FROM shopping_sessions WHERE (administrative > ? AND product_related <= ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[13,155,2],\\\"sql\\\":\\\"SELECT month, SUM(product_duration) AS value FROM shopping_sessions WHERE (administrative > ? OR product_related <= ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[13,155,2],\\\"sql\\\":\\\"SELECT month, SUM(product_duration) AS value FROM shopping_sessions WHERE (administrative > ? AND product_related <= ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value ASC, month ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[13,155,2],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (administrative > ? AND product_related <= ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Nov\",102332.2742537],[\"May\",62280.3576141],[\"Dec\",49817.23911977],[\"Oct\",33150.668028],[\"Mar\",21638.728806]]","source":"online_shoppers","split":"dev","sql":"SELECT month, SUM(product_duration) AS value FROM shopping_sessions WHERE (administrative > ? AND product_related <= ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5","sql_parameters":"[13,155,2]","state":"{\"question\":\"Return the sum of product_duration for shopping sessions where (administrative is greater than 13 and product_related is at most 155), grouped by month, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}997{"category":"single_table/and/having","domain":"sensor","family_id":"3a5622c61b23611cefb96ef1","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"5c868954906f92132084bfe2c77aa75a1f4341582a3cd2a0fd599d24f18ee828","language":"en","license":"CC-BY-4.0","query":"Return the maximum of ps2_mean for hydraulic cycles where (fs1_mean is at most 6.41875 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[6.41875,52.59775,10],\\\"sql\\\":\\\"SELECT cooler, MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? AND ts1_mean <= ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[6.41875,52.59775,10],\\\"sql\\\":\\\"SELECT cooler, MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? OR ts1_mean <= ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[6.41875,52.59775,10],\\\"sql\\\":\\\"SELECT cooler, MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? AND ts1_mean <= ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[6.41875,52.59775,10],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? AND ts1_mean <= ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[20,107.60725],[100,109.21543]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? AND ts1_mean <= ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value ASC, cooler ASC LIMIT 3","sql_parameters":"[6.41875,52.59775,10]","state":"{\"question\":\"Return the maximum of ps2_mean for hydraulic cycles where (fs1_mean is at most 6.41875 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_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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}998{"category":"single_table/or/having","domain":"commerce","family_id":"6dcdbf5f986b54863b37c3be","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"607c978ba6972dc4d5185fa7931e2defe4b1c06baf91f53b593a5c0feb64eb07","language":"en","license":"CC-BY-4.0","query":"Return the minimum of unit_price for retail invoice lines where (country equals 'Finland' or unit_price is greater than 0.55), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Finland\\\",0.55,10],\\\"sql\\\":\\\"SELECT country, MIN(unit_price) AS value FROM retail_lines WHERE (country = ? AND unit_price > ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Finland\\\",0.55,10],\\\"sql\\\":\\\"SELECT country, MIN(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price > ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Finland\\\",0.55,10],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? OR unit_price > ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Finland\\\",0.55,10],\\\"sql\\\":\\\"SELECT country, MIN(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price > ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Finland\",0.29],[\"United Kingdom\",0.58],[\"EIRE\",0.64]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, MIN(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price > ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3","sql_parameters":"[\"Finland\",0.55,10]","state":"{\"question\":\"Return the minimum of unit_price for retail invoice lines where (country equals 'Finland' or unit_price is greater than 0.55), 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\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}999{"category":"single_table/or/having","domain":"sensor","family_id":"df83eb029f68a390ca65e5ca","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"138c9ddb9e521ef1d6d8ab8ba96f57a025a2cd33350a3ae4ee76de87fec7f663","language":"en","license":"CC-BY-4.0","query":"Return the average of ps1_mean for hydraulic cycles where (valve equals 73 or fs1_mean is greater than 6.63763), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[73,6.63763,2],\\\"sql\\\":\\\"SELECT cooler, AVG(ps1_mean) AS value FROM hydraulic_cycles WHERE (valve = ? AND fs1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[73,6.63763,2],\\\"sql\\\":\\\"SELECT cooler, AVG(ps1_mean) AS value FROM hydraulic_cycles WHERE (valve = ? OR fs1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value ASC, cooler ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[73,6.63763,2],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (valve = ? OR fs1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[73,6.63763,2],\\\"sql\\\":\\\"SELECT cooler, AVG(ps1_mean) AS value FROM hydraulic_cycles WHERE (valve = ? OR fs1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[3,163.46367198675495],[100,160.97320505070994],[20,158.71062659025787]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, AVG(ps1_mean) AS value FROM hydraulic_cycles WHERE (valve = ? OR fs1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5","sql_parameters":"[73,6.63763,2]","state":"{\"question\":\"Return the average of ps1_mean for hydraulic cycles where (valve equals 73 or fs1_mean is greater than 6.63763), 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_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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1000{"category":"join/or/having","domain":"commerce","family_id":"ffc0ae7c6a8fceb8697c71d2","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"4f50feff76da61513dd7d2b4aa6be6f567a757e36df36ea5c9b982025d7c3367","language":"en","license":"CC-BY-4.0","query":"Return the minimum of l.unit_price for retail lines joined to their invoices where (l.quantity is at most 25 or l.unit_price is at most 8.5), grouped by i.country, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[25,8.5,2],\\\"sql\\\":\\\"SELECT i.country, MIN(l.unit_price) 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.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[25,8.5,2],\\\"sql\\\":\\\"SELECT i.country, MIN(l.unit_price) 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.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[25,8.5,2],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) 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.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[25,8.5,2],\\\"sql\\\":\\\"SELECT i.country, MIN(l.unit_price) 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.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Singapore\",162.6],[\"United Arab Emirates\",15.0],[\"USA\",2.55],[\"Channel Islands\",1.25],[\"Israel\",1.25]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, MIN(l.unit_price) 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.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5","sql_parameters":"[25,8.5,2]","state":"{\"question\":\"Return the minimum of l.unit_price for retail lines joined to their invoices where (l.quantity is at most 25 or l.unit_price is at most 8.5), grouped by i.country, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1001{"category":"single_table/and/having","domain":"commerce","family_id":"bb671e7bade9ffc16a471cbb","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"de01c112a49e6f91b3c733f4218a8c2d1b575ecf2d1b2aa5b70b285a379b6dd5","language":"en","license":"CC-BY-4.0","query":"Return the minimum of quantity for retail invoice lines where (quantity is greater than 648 and unit_price is at most 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[648,2.25,2],\\\"sql\\\":\\\"SELECT country, MIN(quantity) AS value FROM retail_lines WHERE (quantity > ? OR unit_price <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[648,2.25,2],\\\"sql\\\":\\\"SELECT country, MIN(quantity) AS value FROM retail_lines WHERE (quantity > ? AND unit_price <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[648,2.25,2],\\\"sql\\\":\\\"SELECT country, MIN(quantity) AS value FROM retail_lines WHERE (quantity > ? AND unit_price <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[648,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\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"EIRE\",960],[\"Sweden\",720],[\"United Kingdom\",672]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, MIN(quantity) AS value FROM retail_lines WHERE (quantity > ? AND unit_price <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5","sql_parameters":"[648,2.25,2]","state":"{\"question\":\"Return the minimum of quantity for retail invoice lines where (quantity is greater than 648 and unit_price is at most 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_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1002{"category":"single_table/and/ranked","domain":"sensor","family_id":"7aeb279e3f5f06a40e137a65","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"93f124e0c62f13b17c1d293764158519fde1542c1520fe31ae5c577a809b53ca","language":"en","license":"CC-BY-4.0","query":"Return the sum of ps2_mean for hydraulic cycles where (accumulator equals 90 and fs1_mean is greater than 6.57291), grouped by valve; return at most 3 groups ordered by aggregate value ASC, breaking ties by valve ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[90,6.57291],\\\"sql\\\":\\\"SELECT valve, SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ? AND fs1_mean > ?) GROUP BY valve ORDER BY value ASC, valve ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[90,6.57291],\\\"sql\\\":\\\"SELECT valve, SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ? OR fs1_mean > ?) GROUP BY valve ORDER BY value ASC, valve ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[90,6.57291],\\\"sql\\\":\\\"SELECT valve, SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ? AND fs1_mean > ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[90,6.57291],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (accumulator = ? AND fs1_mean > ?) GROUP BY valve ORDER BY value ASC, valve ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[73,2164.78039],[80,2169.97536],[90,3018.09834]]","source":"hydraulic","split":"dev","sql":"SELECT valve, SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ? AND fs1_mean > ?) GROUP BY valve ORDER BY value ASC, valve ASC LIMIT 3","sql_parameters":"[90,6.57291]","state":"{\"question\":\"Return the sum of ps2_mean for hydraulic cycles where (accumulator equals 90 and fs1_mean is greater than 6.57291), 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\":\"REAL\",\"fs1_mean\":\"REAL\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1003{"category":"single_table/and/grouped","domain":"sensor","family_id":"988477ff78e035f175ef19f4","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"5791f142227f781a8e9e429a35176000111e7800d78e2c1e9291f4fef5c6b55f","language":"en","license":"CC-BY-4.0","query":"Return the average of vs1_mean for hydraulic cycles where (ps1_mean is at most 158.27043 and ps2_mean is at most 122.4767), grouped by valve, ordered by valve ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[158.27043,122.4767],\\\"sql\\\":\\\"SELECT valve, AVG(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR ps2_mean <= ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[158.27043,122.4767],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? AND ps2_mean <= ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[158.27043,122.4767],\\\"sql\\\":\\\"SELECT valve, AVG(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? AND ps2_mean <= ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[158.27043,122.4767],\\\"sql\\\":\\\"SELECT valve, SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? AND ps2_mean <= ?) GROUP BY valve ORDER BY valve ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[73,0.6672868055555555],[80,0.6520290361445783],[90,0.6416784269662922],[100,0.6376318138424821]]","source":"hydraulic","split":"dev","sql":"SELECT valve, AVG(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? AND ps2_mean <= ?) GROUP BY valve ORDER BY valve ASC","sql_parameters":"[158.27043,122.4767]","state":"{\"question\":\"Return the average of vs1_mean for hydraulic cycles where (ps1_mean is at most 158.27043 and ps2_mean is at most 122.4767), 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\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1004{"category":"join/null/or/having","domain":"commerce","family_id":"1ff56f54a6a3bb979f5a276c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"83de8831bdfe64dff80c0065c28b5c7f41092f528ae3874820e8fac605b420fc","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.quantity for retail lines joined to their invoices where (l.unit_price is greater than 0.55 or i.customer_id is present), grouped by i.country, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[0.55,2],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ? AND i.customer_id IS NOT NULL) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[0.55,2],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ? OR i.customer_id IS NOT NULL) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[0.55,2],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ? OR i.customer_id IS NOT NULL) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[0.55,2],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ? OR i.customer_id IS NOT NULL) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"United Kingdom\",1170837],[\"EIRE\",13495],[\"Sweden\",10996],[\"Germany\",9969],[\"Netherlands\",7816]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ? OR i.customer_id IS NOT NULL) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5","sql_parameters":"[0.55,2]","state":"{\"question\":\"Return the sum of l.quantity for retail lines joined to their invoices where (l.unit_price is greater than 0.55 or i.customer_id is present), grouped by i.country, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1005{"category":"single_table/or/ranked","domain":"commerce","family_id":"93258c3a69416b8597b912af","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"e6feee09860bc80dc871e75dfecc6c75a2dd198bb5b5155aae268071c5787e4e","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (quantity is at most 25 or 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[25,4.77],\\\"sql\\\":\\\"SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (quantity <= ? AND unit_price > ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[25,4.77],\\\"sql\\\":\\\"SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[25,4.77],\\\"sql\\\":\\\"SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[25,4.77],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Canada\",1.25],[\"USA\",2.55],[\"Cyprus\",7.95]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3","sql_parameters":"[25,4.77]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines where (quantity is at most 25 or 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\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1006{"category":"join/grouped","domain":"commerce","family_id":"40dbf083f7f300c572766563","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"77232ec74a96fa41fbc3e0166f7e1ac35cb909804b22063428a014b88e5b685a","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.quantity for retail lines joined to their invoices, grouped by i.country, ordered by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT i.country, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT i.country, MIN(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice GROUP BY i.country ORDER BY i.country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",711],[\"Austria\",229],[\"Bahrain\",97],[\"Belgium\",982],[\"Canada\",52],[\"Channel Islands\",2482],[\"Cyprus\",754],[\"Denmark\",897],[\"EIRE\",13495],[\"Finland\",2800],[\"France\",5960],[\"Germany\",9969],[\"Israel\",34],[\"Italy\",276],[\"Japan\",2571],[\"Netherlands\",7816],[\"Norway\",114],[\"Poland\",157],[\"Portugal\",219],[\"Singapore\",6],[\"Spain\",5587],[\"Sweden\",10996],[\"Switzerland\",951],[\"USA\",36],[\"United Arab Emirates\",2],[\"United Kingdom\",1171636]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice GROUP BY i.country ORDER BY i.country ASC","sql_parameters":"[]","state":"{\"question\":\"Return the sum of l.quantity for retail lines joined to their invoices, grouped by i.country, ordered by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1007{"category":"single_table/having","domain":"commerce","family_id":"cfd7bde81a17d7b1ec4e6ca4","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"a75711dd57c2b8a3f10c7345fe3c704c31c0d48f8dfb5d74b14747e51712bda3","language":"en","license":"CC-BY-4.0","query":"Return the average of product_related for shopping sessions where (product_related is at most 226), grouped by visitor_type, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[226,2],\\\"sql\\\":\\\"SELECT visitor_type, AVG(product_related) AS value FROM shopping_sessions WHERE (product_related <= ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value ASC, visitor_type ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[226,2],\\\"sql\\\":\\\"SELECT visitor_type, AVG(product_related) AS value FROM shopping_sessions WHERE (product_related <= ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[226,2],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (product_related <= ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[226,2],\\\"sql\\\":\\\"SELECT visitor_type, SUM(product_related) AS value FROM shopping_sessions WHERE (product_related <= ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Returning_Visitor\",31.012165916275507],[\"New_Visitor\",17.896042528056704],[\"Other\",12.470588235294118]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, AVG(product_related) AS value FROM shopping_sessions WHERE (product_related <= ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value DESC, visitor_type ASC LIMIT 5","sql_parameters":"[226,2]","state":"{\"question\":\"Return the average of product_related for shopping sessions where (product_related is at most 226), grouped by visitor_type, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by visitor_type ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}1008{"category":"single_table/date/and/ranked","domain":"commerce","family_id":"824ca90e038b0d94d31544de","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"89dc15bd2a1b7c70dfa46f81c19856a79899f103839c6d2041c32cb98e06174e","language":"en","license":"CC-BY-4.0","query":"Return the maximum of quantity for retail invoice lines where (quantity is at most 229 and 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[229,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT country, MAX(quantity) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date >= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[229,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT country, MAX(quantity) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[229,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT country, MAX(quantity) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[229,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Singapore\",1],[\"United Arab Emirates\",1],[\"Portugal\",4]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, MAX(quantity) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3","sql_parameters":"[229,\"2010-07-14\"]","state":"{\"question\":\"Return the maximum of quantity for retail invoice lines where (quantity is at most 229 and 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\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1009{"category":"join/distinct_invoice/date/and/ranked","domain":"commerce","family_id":"63316ba1816ec53961142e0b","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"d07412acc5c7f38b33e7989a8d8b94fc900ef3ecc5d369c034b71aab4f58e625","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.unit_price is greater than 2.25 and i.invoice_date is before '2011-09-29'), grouped by i.invoice_date; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2.25,\\\"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 > ? AND i.invoice_date < ?) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2.25,\\\"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 value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2.25,\\\"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 > ? AND i.invoice_date < ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2.25,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) 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 value DESC, i.invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-12-01\",46],[\"2010-12-08\",40],[\"2010-12-09\",38],[\"2010-12-02\",34],[\"2010-12-07\",28]]","source":"online_retail_ii","split":"dev","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 > ? AND i.invoice_date < ?) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5","sql_parameters":"[2.25,\"2011-09-29\"]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.unit_price is greater than 2.25 and i.invoice_date is before '2011-09-29'), 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_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1010{"category":"join/distinct_invoice/and/having","domain":"commerce","family_id":"79311742777b4f65ad71c305","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"6249699de7ab50314b73e34416a4c59fe99fc47a9b5006b17b304cebd31826aa","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.customer_id equals '12353' and l.quantity is greater than 25), grouped by i.invoice_date, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12353\\\",25,2],\\\"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.customer_id = ? OR l.quantity > ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12353\\\",25,2],\\\"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.customer_id = ? AND l.quantity > ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12353\\\",2],\\\"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.customer_id = ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","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.customer_id = ? AND l.quantity > ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5","sql_parameters":"[\"12353\",25,2]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.customer_id equals '12353' and l.quantity is greater than 25), grouped by i.invoice_date, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1011{"category":"single_table/ranked","domain":"sensor","family_id":"68657ba943171feb0d078311","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"5e3b4e24f30498f327fe1f95ce64ae015ed62a586b226150d4c6ac9bbfeb9cf1","language":"en","license":"CC-BY-4.0","query":"Return the sum of vs1_mean for hydraulic cycles where (accumulator equals 130), grouped by pump_leakage; return at most 3 groups ordered by aggregate value ASC, breaking ties by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[130],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[130],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[130],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (accumulator = ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[130],\\\"sql\\\":\\\"SELECT pump_leakage, AVG(vs1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1,75.07251],[2,75.49927],[0,222.05889]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3","sql_parameters":"[130]","state":"{\"question\":\"Return the sum of vs1_mean for hydraulic cycles where (accumulator equals 130), 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\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1012{"category":"join/distinct_invoice/and/ranked","domain":"commerce","family_id":"f44f497dad95dee6e37a00d5","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"8cb060bd60f4ec8d0c4ef15df661ca3aeae65950ff25b47b635b3716a3984cea","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.customer_id equals '12353' and l.quantity is greater than 25), grouped by i.invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12353\\\",25],\\\"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.customer_id = ? OR l.quantity > ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12353\\\",25],\\\"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.customer_id = ? AND l.quantity > ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12353\\\"],\\\"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.customer_id = ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","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.customer_id = ? AND l.quantity > ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3","sql_parameters":"[\"12353\",25]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.customer_id equals '12353' and l.quantity is greater than 25), grouped by i.invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1013{"category":"single_table/and/having","domain":"commerce","family_id":"de3f8a6d5cd5f9e249127cda","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"b9028b7dcd4fced14a02ede63c1bdc5b49210eaf6410d5de2c1890fab6781a90","language":"en","license":"CC-BY-4.0","query":"Return the average of product_duration for shopping sessions where (traffic_type equals 18 and product_related is at most 226), grouped by month, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[18,226,2],\\\"sql\\\":\\\"SELECT month, AVG(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ? OR product_related <= ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[18,226,2],\\\"sql\\\":\\\"SELECT month, AVG(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ? AND product_related <= ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[18,226,2],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (traffic_type = ? AND product_related <= ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[18,226,2],\\\"sql\\\":\\\"SELECT month, SUM(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ? AND product_related <= ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"May\",503.22611989999996]]","source":"online_shoppers","split":"dev","sql":"SELECT month, AVG(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ? AND product_related <= ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5","sql_parameters":"[18,226,2]","state":"{\"question\":\"Return the average of product_duration for shopping sessions where (traffic_type equals 18 and product_related is at most 226), grouped by month, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}1014{"category":"single_table/date/and/aggregate","domain":"commerce","family_id":"703a64886a64179d55274c94","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"ffa4b13c35933f85eab8dd25ce6373b6381615575af0bd7adb24e8c98b448376","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (country equals 'Bahrain' and invoice_date is on or after '2011-09-29').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Bahrain\\\",\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT MAX(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Bahrain\\\",\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT MAX(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date >= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Bahrain\\\",\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT MAX(unit_price) AS value FROM retail_lines\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[null]]","source":"online_retail_ii","split":"dev","sql":"SELECT MAX(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?)","sql_parameters":"[\"Bahrain\",\"2011-09-29\"]","state":"{\"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').\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1015{"category":"single_table/or/ranked","domain":"sensor","family_id":"54ee7987d78900c82c9dfd51","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"af3fe49aa06b0d56a944777181c6a4e953b003b1dcccf9a01e4dce7639d69c0c","language":"en","license":"CC-BY-4.0","query":"Return the average of ps2_mean for hydraulic cycles where (eps1_mean is at most 2449.13677 or vs1_mean is greater than 0.64278), grouped by pump_leakage; return at most 3 groups ordered by aggregate value ASC, breaking ties by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2449.13677,0.64278],\\\"sql\\\":\\\"SELECT pump_leakage, AVG(ps2_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ? AND vs1_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2449.13677,0.64278],\\\"sql\\\":\\\"SELECT pump_leakage, AVG(ps2_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ? OR vs1_mean > ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2449.13677,0.64278],\\\"sql\\\":\\\"SELECT pump_leakage, AVG(ps2_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ? OR vs1_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2449.13677,0.64278],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ? OR vs1_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,106.89870229166667],[1,116.39065311377246],[2,118.22621487804878]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, AVG(ps2_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ? OR vs1_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3","sql_parameters":"[2449.13677,0.64278]","state":"{\"question\":\"Return the average of ps2_mean for hydraulic cycles where (eps1_mean is at most 2449.13677 or vs1_mean is greater than 0.64278), 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\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1016{"category":"single_table/having","domain":"commerce","family_id":"f9eb87093fc71243c4767186","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"405884f149050b8ba91c58988a02bb9d8fd61ea6a85dfbe98edfd58fd34b5d57","language":"en","license":"CC-BY-4.0","query":"Return the sum of quantity for retail invoice lines where (quantity is at most 648), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[648],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (quantity <= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[648,10],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (quantity <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[648,10],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (quantity <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[648,10],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (quantity <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Bahrain\",97],[\"Norway\",114],[\"Portugal\",219]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (quantity <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3","sql_parameters":"[648,10]","state":"{\"question\":\"Return the sum of quantity for retail invoice lines where (quantity is at most 648), 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\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1017{"category":"join/null/ranked","domain":"commerce","family_id":"fa5c11545ca981e1911b5238","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"8e73664905d63a38d6753f5a7ae980432ab09c02e19f46d0dbfd96b99ccbf9a1","language":"en","license":"CC-BY-4.0","query":"Return the minimum of l.unit_price for retail lines joined to their invoices where (i.customer_id is present), grouped by i.invoice_date; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[],\\\"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 IS NOT NULL) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[],\\\"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 IS NOT NULL) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id IS NOT NULL) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id IS NOT NULL) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-07-11\",8.5],[\"2010-07-09\",3.81],[\"2011-01-16\",3.39],[\"2011-08-31\",1.79],[\"2010-02-23\",1.69]]","source":"online_retail_ii","split":"dev","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 IS NOT NULL) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5","sql_parameters":"[]","state":"{\"question\":\"Return the minimum of l.unit_price for retail lines joined to their invoices where (i.customer_id is present), 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_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1018{"category":"single_table/or/grouped","domain":"commerce","family_id":"814bf9f1c7344c0236beec1e","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"e5f455b298b497ea7436c65d6b7287b4b9a62a1a9b86179cf7228a0a584fa93c","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (country equals 'Denmark' or unit_price is at most 2.25), grouped by invoice_date, ordered by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Denmark\\\",2.25],\\\"sql\\\":\\\"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Denmark\\\",2.25],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Denmark\\\",2.25],\\\"sql\\\":\\\"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Denmark\\\",2.25],\\\"sql\\\":\\\"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-01\",2.12],[\"2009-12-02\",2.25],[\"2009-12-03\",2.1],[\"2009-12-04\",2.1],[\"2009-12-05\",2.1],[\"2009-12-06\",2.1],[\"2009-12-07\",2.1],[\"2009-12-08\",2.1],[\"2009-12-09\",2.1],[\"2009-12-10\",2.1],[\"2009-12-11\",1.95],[\"2009-12-13\",1.25],[\"2009-12-14\",2.1],[\"2009-12-15\",2.1],[\"2009-12-16\",2.1],[\"2009-12-17\",2.25],[\"2009-12-18\",2.25],[\"2009-12-20\",1.25],[\"2009-12-21\",2.1],[\"2009-12-22\",2.1],[\"2009-12-23\",1.95],[\"2010-01-04\",2.1],[\"2010-01-05\",2.1],[\"2010-01-06\",1.25],[\"2010-01-07\",1.55],[\"2010-01-08\",1.69],[\"2010-01-10\",2.1],[\"2010-01-11\",2.1],[\"2010-01-12\",1.95],[\"2010-01-13\",2.1],[\"2010-01-14\",1.95],[\"2010-01-15\",2.1],[\"2010-01-17\",2.1],[\"2010-01-18\",2.25],[\"2010-01-19\",1.95],[\"2010-01-20\",2.1],[\"2010-01-21\",2.1],[\"2010-01-22\",1.95],[\"2010-01-24\",2.1],[\"2010-01-25\",2.1],[\"2010-01-26\",2.1],[\"2010-01-27\",2.1],[\"2010-01-28\",1.69],[\"2010-01-29\",2.1],[\"2010-01-31\",2.1],[\"2010-02-01\",1.95],[\"2010-02-02\",2.1],[\"2010-02-03\",2.1],[\"2010-02-04\",2.1],[\"2010-02-05\",2.1],[\"2010-02-07\",2.1],[\"2010-02-08\",2.1],[\"2010-02-09\",2.1],[\"2010-02-10\",1.69],[\"2010-02-11\",2.1],[\"2010-02-12\",2.1],[\"2010-02-14\",1.65],[\"2010-02-15\",2.1],[\"2010-02-16\",2.1],[\"2010-02-17\",2.1],[\"2010-02-18\",1.95],[\"2010-02-19\",2.1],[\"2010-02-21\",2.1],[\"2010-02-22\",2.1],[\"2010-02-23\",2.1],[\"2010-02-24\",1.95],[\"2010-02-25\",2.1],[\"2010-02-26\",2.1],[\"2010-02-28\",1.95],[\"2010-03-01\",2.1],[\"2010-03-02\",2.1],[\"2010-03-03\",2.1],[\"2010-03-04\",2.1],[\"2010-03-05\",2.1],[\"2010-03-07\",2.1],[\"2010-03-08\",2.25],[\"2010-03-09\",2.1],[\"2010-03-10\",2.1],[\"2010-03-11\",1.69],[\"2010-03-12\",2.1],[\"2010-03-14\",1.85],[\"2010-03-15\",1.8],[\"2010-03-16\",1.95],[\"2010-03-17\",1.85],[\"2010-03-18\",1.95],[\"2010-03-19\",1.85],[\"2010-03-21\",2.1],[\"2010-03-22\",2.1],[\"2010-03-23\",2.1],[\"2010-03-24\",2.1],[\"2010-03-25\",2.1],[\"2010-03-26\",2.1],[\"2010-03-28\",1.65],[\"2010-03-29\",1.85],[\"2010-03-30\",1.95],[\"2010-03-31\",2.25],[\"2010-04-01\",2.1],[\"2010-04-06\",2.1],[\"2010-04-07\",2.1],[\"2010-04-08\",2.1],[\"2010-04-09\",1.65],[\"2010-04-11\",2.1],[\"2010-04-12\",1.69],[\"2010-04-13\",2.1],[\"2010-04-14\",2.1],[\"2010-04-15\",2.1],[\"2010-04-16\",2.1],[\"2010-04-18\",2.1],[\"2010-04-19\",2.1],[\"2010-04-20\",2.1],[\"2010-04-21\",2.1],[\"2010-04-22\",2.1],[\"2010-04-23\",2.1],[\"2010-04-25\",2.1],[\"2010-04-26\",2.1],[\"2010-04-27\",2.1],[\"2010-04-28\",2.1],[\"2010-04-29\",2.1],[\"2010-04-30\",2.1],[\"2010-05-02\",2.1],[\"2010-05-04\",1.95],[\"2010-05-05\",2.1],[\"2010-05-06\",1.95],[\"2010-05-07\",2.1],[\"2010-05-09\",2.1],[\"2010-05-10\",1.65],[\"2010-05-11\",2.1],[\"2010-05-12\",2.1],[\"2010-05-13\",1.85],[\"2010-05-14\",1.45],[\"2010-05-16\",2.1],[\"2010-05-17\",2.1],[\"2010-05-18\",2.1],[\"2010-05-19\",2.1],[\"2010-05-20\",2.1],[\"2010-05-21\",2.1],[\"2010-05-23\",1.69],[\"2010-05-24\",2.1],[\"2010-05-25\",1.65],[\"2010-05-26\",2.1],[\"2010-05-27\",2.1],[\"2010-05-28\",2.1],[\"2010-05-30\",2.1],[\"2010-06-01\",2.1],[\"2010-06-02\",2.1],[\"2010-06-03\",1.95],[\"2010-06-04\",2.1],[\"2010-06-06\",1.95],[\"2010-06-07\",2.1],[\"2010-06-08\",2.1],[\"2010-06-09\",2.1],[\"2010-06-10\",2.1],[\"2010-06-11\",2.1],[\"2010-06-13\",2.1],[\"2010-06-14\",1.69],[\"2010-06-15\",2.1],[\"2010-06-16\",2.1],[\"2010-06-17\",2.1],[\"2010-06-18\",1.95],[\"2010-06-20\",1.45],[\"2010-06-21\",1.25],[\"2010-06-22\",2.1],[\"2010-06-23\",2.1],[\"2010-06-24\",1.85],[\"2010-06-25\",2.1],[\"2010-06-27\",2.1],[\"2010-06-28\",2.1],[\"2010-06-29\",2.1],[\"2010-06-30\",2.1],[\"2010-07-01\",2.1],[\"2010-07-02\",1.95],[\"2010-07-04\",1.65],[\"2010-07-05\",2.25],[\"2010-07-06\",18.0],[\"2010-07-07\",2.1],[\"2010-07-08\",1.95],[\"2010-07-09\",1.65],[\"2010-07-12\",2.12],[\"2010-07-13\",2.1],[\"2010-07-14\",2.1],[\"2010-07-15\",2.2],[\"2010-07-16\",2.1],[\"2010-07-18\",1.95],[\"2010-07-19\",1.69],[\"2010-07-20\",2.1],[\"2010-07-21\",2.1],[\"2010-07-22\",1.95],[\"2010-07-23\",1.95],[\"2010-07-25\",1.65],[\"2010-07-26\",1.95],[\"2010-07-27\",2.1],[\"2010-07-28\",1.95],[\"2010-07-29\",2.1],[\"2010-07-30\",1.95],[\"2010-08-01\",1.95],[\"2010-08-02\",2.1],[\"2010-08-03\",1.95],[\"2010-08-04\",2.1],[\"2010-08-05\",2.1],[\"2010-08-06\",1.95],[\"2010-08-08\",2.1],[\"2010-08-09\",2.1],[\"2010-08-10\",2.1],[\"2010-08-11\",1.95],[\"2010-08-12\",1.95],[\"2010-08-13\",1.95],[\"2010-08-15\",2.1],[\"2010-08-16\",1.65],[\"2010-08-17\",2.1],[\"2010-08-18\",2.1],[\"2010-08-19\",2.1],[\"2010-08-20\",2.1],[\"2010-08-22\",1.95],[\"2010-08-23\",2.1],[\"2010-08-24\",2.1],[\"2010-08-25\",1.95],[\"2010-08-26\",2.1],[\"2010-08-27\",1.65],[\"2010-08-29\",1.95],[\"2010-08-31\",2.1],[\"2010-09-01\",2.1],[\"2010-09-02\",2.1],[\"2010-09-03\",1.95],[\"2010-09-05\",2.1],[\"2010-09-06\",2.1],[\"2010-09-07\",2.1],[\"2010-09-08\",2.1],[\"2010-09-09\",2.1],[\"2010-09-10\",2.1],[\"2010-09-12\",1.5],[\"2010-09-13\",2.1],[\"2010-09-14\",2.1],[\"2010-09-15\",1.95],[\"2010-09-16\",2.1],[\"2010-09-17\",2.1],[\"2010-09-19\",1.95],[\"2010-09-20\",2.1],[\"2010-09-21\",2.1],[\"2010-09-22\",2.1],[\"2010-09-23\",2.1],[\"2010-09-24\",2.1],[\"2010-09-26\",2.1],[\"2010-09-27\",1.95],[\"2010-09-28\",2.1],[\"2010-09-29\",2.1],[\"2010-09-30\",2.1],[\"2010-10-01\",2.1],[\"2010-10-03\",1.69],[\"2010-10-04\",1.95],[\"2010-10-05\",2.1],[\"2010-10-06\",2.1],[\"2010-10-07\",2.1],[\"2010-10-08\",1.85],[\"2010-10-10\",2.1],[\"2010-10-11\",2.1],[\"2010-10-12\",2.1],[\"2010-10-13\",2.1],[\"2010-10-14\",2.1],[\"2010-10-15\",2.1],[\"2010-10-17\",2.1],[\"2010-10-18\",2.1],[\"2010-10-19\",2.1],[\"2010-10-20\",2.1],[\"2010-10-21\",1.95],[\"2010-10-22\",2.1],[\"2010-10-24\",2.1],[\"2010-10-25\",2.1],[\"2010-10-26\",2.1],[\"2010-10-27\",2.1],[\"2010-10-28\",2.1],[\"2010-10-29\",2.1],[\"2010-10-31\",2.1],[\"2010-11-01\",1.25],[\"2010-11-02\",2.1],[\"2010-11-03\",2.1],[\"2010-11-04\",2.1],[\"2010-11-05\",1.95],[\"2010-11-07\",2.1],[\"2010-11-08\",1.65],[\"2010-11-09\",2.1],[\"2010-11-10\",2.1],[\"2010-11-11\",2.1],[\"2010-11-12\",2.1],[\"2010-11-14\",2.1],[\"2010-11-15\",2.1],[\"2010-11-16\",2.1],[\"2010-11-17\",2.1],[\"2010-11-18\",2.1],[\"2010-11-19\",2.1],[\"2010-11-21\",1.65],[\"2010-11-22\",2.1],[\"2010-11-23\",2.1],[\"2010-11-24\",2.1],[\"2010-11-25\",2.1],[\"2010-11-26\",2.1],[\"2010-11-28\",2.1],[\"2010-11-29\",2.1],[\"2010-11-30\",2.1],[\"2010-12-01\",2.1],[\"2010-12-02\",2.1],[\"2010-12-03\",1.95],[\"2010-12-05\",2.1],[\"2010-12-06\",2.1],[\"2010-12-07\",2.1],[\"2010-12-08\",2.1],[\"2010-12-09\",2.1],[\"2010-12-10\",2.1],[\"2010-12-12\",1.95],[\"2010-12-13\",2.1],[\"2010-12-14\",2.1],[\"2010-12-15\",2.1],[\"2010-12-16\",2.1],[\"2010-12-17\",2.1],[\"2010-12-19\",2.1],[\"2010-12-20\",2.1],[\"2010-12-21\",1.69],[\"2010-12-22\",2.12],[\"2010-12-23\",2.1],[\"2011-01-04\",2.1],[\"2011-01-05\",2.1],[\"2011-01-06\",2.1],[\"2011-01-07\",1.65],[\"2011-01-09\",2.25],[\"2011-01-10\",2.1],[\"2011-01-11\",2.1],[\"2011-01-12\",2.1],[\"2011-01-13\",1.95],[\"2011-01-14\",2.1],[\"2011-01-17\",1.95],[\"2011-01-18\",1.95],[\"2011-01-19\",1.65],[\"2011-01-20\",2.1],[\"2011-01-21\",2.1],[\"2011-01-23\",1.25],[\"2011-01-24\",2.1],[\"2011-01-25\",2.1],[\"2011-01-26\",1.45],[\"2011-01-27\",2.1],[\"2011-01-28\",1.45],[\"2011-01-30\",2.1],[\"2011-01-31\",2.1],[\"2011-02-01\",2.1],[\"2011-02-02\",2.1],[\"2011-02-03\",2.1],[\"2011-02-04\",1.85],[\"2011-02-07\",1.65],[\"2011-02-08\",1.85],[\"2011-02-09\",2.1],[\"2011-02-10\",2.1],[\"2011-02-11\",2.1],[\"2011-02-13\",1.95],[\"2011-02-14\",1.65],[\"2011-02-15\",2.1],[\"2011-02-16\",2.25],[\"2011-02-17\",2.1],[\"2011-02-18\",2.1],[\"2011-02-20\",1.85],[\"2011-02-21\",2.1],[\"2011-02-22\",2.1],[\"2011-02-23\",1.95],[\"2011-02-24\",2.1],[\"2011-02-25\",2.1],[\"2011-02-27\",2.1],[\"2011-02-28\",2.1],[\"2011-03-01\",2.1],[\"2011-03-02\",1.06],[\"2011-03-03\",2.1],[\"2011-03-04\",1.95],[\"2011-03-06\",2.1],[\"2011-03-07\",2.25],[\"2011-03-08\",2.1],[\"2011-03-09\",1.93],[\"2011-03-10\",2.1],[\"2011-03-11\",2.25],[\"2011-03-14\",2.1],[\"2011-03-15\",1.65],[\"2011-03-16\",2.1],[\"2011-03-17\",2.25],[\"2011-03-18\",2.25],[\"2011-03-20\",2.1],[\"2011-03-21\",2.08],[\"2011-03-22\",2.1],[\"2011-03-23\",1.65],[\"2011-03-24\",2.1],[\"2011-03-25\",1.95],[\"2011-03-27\",1.25],[\"2011-03-28\",2.1],[\"2011-03-29\",2.1],[\"2011-03-30\",2.25],[\"2011-03-31\",2.1],[\"2011-04-01\",2.1],[\"2011-04-03\",2.1],[\"2011-04-04\",1.95],[\"2011-04-05\",1.79],[\"2011-04-06\",2.1],[\"2011-04-07\",2.08],[\"2011-04-08\",1.69],[\"2011-04-10\",1.25],[\"2011-04-11\",2.1],[\"2011-04-12\",2.1],[\"2011-04-13\",2.1],[\"2011-04-14\",2.1],[\"2011-04-15\",1.79],[\"2011-04-17\",2.08],[\"2011-04-18\",2.1],[\"2011-04-19\",2.08],[\"2011-04-20\",2.1],[\"2011-04-21\",2.1],[\"2011-04-26\",2.1],[\"2011-04-27\",2.1],[\"2011-04-28\",2.1],[\"2011-05-01\",1.85],[\"2011-05-03\",2.1],[\"2011-05-04\",2.1],[\"2011-05-05\",2.08],[\"2011-05-06\",2.1],[\"2011-05-08\",2.1],[\"2011-05-09\",2.1],[\"2011-05-10\",2.1],[\"2011-05-11\",2.08],[\"2011-05-12\",2.1],[\"2011-05-13\",2.1],[\"2011-05-15\",1.65],[\"2011-05-16\",2.25],[\"2011-05-17\",2.1],[\"2011-05-18\",2.1],[\"2011-05-19\",2.1],[\"2011-05-20\",2.1],[\"2011-05-22\",2.1],[\"2011-05-23\",2.1],[\"2011-05-24\",2.1],[\"2011-05-25\",2.1],[\"2011-05-26\",2.1],[\"2011-05-27\",2.1],[\"2011-05-29\",2.1],[\"2011-05-31\",2.1],[\"2011-06-01\",2.1],[\"2011-06-02\",2.1],[\"2011-06-03\",2.1],[\"2011-06-05\",2.1],[\"2011-06-06\",2.1],[\"2011-06-07\",2.08],[\"2011-06-08\",2.1],[\"2011-06-09\",2.25],[\"2011-06-10\",2.1],[\"2011-06-12\",1.65],[\"2011-06-13\",2.1],[\"2011-06-14\",1.95],[\"2011-06-15\",1.79],[\"2011-06-16\",2.1],[\"2011-06-17\",2.1],[\"2011-06-19\",2.1],[\"2011-06-20\",2.08],[\"2011-06-21\",2.1],[\"2011-06-22\",2.1],[\"2011-06-23\",1.95],[\"2011-06-24\",2.08],[\"2011-06-26\",1.79],[\"2011-06-27\",1.79],[\"2011-06-28\",2.1],[\"2011-06-29\",1.85],[\"2011-06-30\",2.08],[\"2011-07-01\",2.1],[\"2011-07-03\",1.95],[\"2011-07-04\",1.65],[\"2011-07-05\",2.1],[\"2011-07-06\",2.1],[\"2011-07-07\",2.1],[\"2011-07-08\",1.74],[\"2011-07-10\",1.45],[\"2011-07-11\",2.1],[\"2011-07-12\",1.93],[\"2011-07-13\",2.25],[\"2011-07-14\",2.1],[\"2011-07-15\",1.25],[\"2011-07-17\",2.08],[\"2011-07-18\",2.08],[\"2011-07-19\",2.1],[\"2011-07-20\",2.1],[\"2011-07-21\",1.65],[\"2011-07-22\",2.1],[\"2011-07-24\",2.1],[\"2011-07-25\",2.1],[\"2011-07-26\",1.79],[\"2011-07-27\",1.65],[\"2011-07-28\",2.1],[\"2011-07-29\",1.79],[\"2011-07-31\",2.08],[\"2011-08-01\",2.08],[\"2011-08-02\",1.69],[\"2011-08-03\",2.1],[\"2011-08-04\",2.1],[\"2011-08-05\",2.1],[\"2011-08-07\",2.08],[\"2011-08-08\",1.65],[\"2011-08-09\",2.1],[\"2011-08-10\",2.08],[\"2011-08-11\",2.1],[\"2011-08-12\",1.65],[\"2011-08-14\",2.1],[\"2011-08-15\",2.08],[\"2011-08-16\",2.1],[\"2011-08-17\",1.74],[\"2011-08-18\",2.1],[\"2011-08-19\",2.08],[\"2011-08-21\",1.95],[\"2011-08-22\",2.1],[\"2011-08-23\",2.1],[\"2011-08-24\",2.08],[\"2011-08-25\",2.08],[\"2011-08-26\",2.1],[\"2011-08-28\",2.08],[\"2011-08-30\",1.79],[\"2011-08-31\",2.08],[\"2011-09-01\",2.1],[\"2011-09-02\",2.1],[\"2011-09-04\",2.25],[\"2011-09-05\",2.1],[\"2011-09-06\",2.25],[\"2011-09-07\",2.1],[\"2011-09-08\",2.1],[\"2011-09-09\",2.08],[\"2011-09-11\",2.1],[\"2011-09-12\",2.1],[\"2011-09-13\",1.79],[\"2011-09-14\",2.1],[\"2011-09-15\",2.1],[\"2011-09-16\",2.08],[\"2011-09-18\",1.79],[\"2011-09-19\",2.08],[\"2011-09-20\",2.1],[\"2011-09-21\",2.1],[\"2011-09-22\",2.1],[\"2011-09-23\",2.1],[\"2011-09-25\",2.1],[\"2011-09-26\",2.1],[\"2011-09-27\",2.08],[\"2011-09-28\",2.08],[\"2011-09-29\",2.1],[\"2011-09-30\",2.1],[\"2011-10-02\",1.25],[\"2011-10-03\",2.1],[\"2011-10-04\",2.1],[\"2011-10-05\",2.1],[\"2011-10-06\",2.1],[\"2011-10-07\",18.0],[\"2011-10-09\",1.45],[\"2011-10-10\",2.1],[\"2011-10-11\",2.25],[\"2011-10-12\",2.1],[\"2011-10-13\",2.1],[\"2011-10-14\",1.95],[\"2011-10-17\",2.1],[\"2011-10-18\",2.1],[\"2011-10-19\",2.1],[\"2011-10-20\",2.1],[\"2011-10-21\",18.0],[\"2011-10-23\",1.65],[\"2011-10-24\",2.1],[\"2011-10-25\",2.1],[\"2011-10-26\",2.1],[\"2011-10-27\",2.08],[\"2011-10-28\",2.1],[\"2011-10-30\",2.1],[\"2011-10-31\",2.1],[\"2011-11-01\",2.1],[\"2011-11-02\",2.1],[\"2011-11-03\",2.1],[\"2011-11-04\",2.1],[\"2011-11-06\",2.1],[\"2011-11-07\",2.1],[\"2011-11-08\",2.1],[\"2011-11-09\",2.1],[\"2011-11-10\",2.1],[\"2011-11-11\",2.1],[\"2011-11-13\",2.08],[\"2011-11-14\",2.08],[\"2011-11-15\",2.08],[\"2011-11-16\",2.25],[\"2011-11-17\",2.1],[\"2011-11-18\",2.1],[\"2011-11-20\",2.1],[\"2011-11-21\",2.1],[\"2011-11-22\",2.25],[\"2011-11-23\",2.1],[\"2011-11-24\",2.1],[\"2011-11-25\",2.1],[\"2011-11-27\",2.08],[\"2011-11-28\",2.1],[\"2011-11-29\",2.1],[\"2011-11-30\",2.25],[\"2011-12-01\",2.1],[\"2011-12-02\",2.1],[\"2011-12-04\",2.1],[\"2011-12-05\",2.1],[\"2011-12-06\",2.1],[\"2011-12-07\",2.1],[\"2011-12-08\",2.25],[\"2011-12-09\",2.08]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY invoice_date ORDER BY invoice_date ASC","sql_parameters":"[\"Denmark\",2.25]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines where (country equals 'Denmark' or unit_price is at most 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\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1019{"category":"single_table/and/ranked","domain":"commerce","family_id":"685efb384ca5f8b1be19435e","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"05e9a741c6595b35a45530af0d21155063e2b29c088eca38f3b6290124dd6f22","language":"en","license":"CC-BY-4.0","query":"Return the average of unit_price for retail invoice lines where (country equals 'Canada' and quantity is greater than 92), grouped by invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Canada\\\",92],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? OR quantity > ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Canada\\\",92],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? AND quantity > ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Canada\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (country = ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? AND quantity > ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3","sql_parameters":"[\"Canada\",92]","state":"{\"question\":\"Return the average of unit_price for retail invoice lines where (country equals 'Canada' and quantity is greater than 92), grouped by invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by invoice_date ascending.\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1020{"category":"single_table/aggregate","domain":"commerce","family_id":"93cb3ddc79bc10308232ec9f","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"05555c2243ed11cb73527b4d0a5b1877c382b84e13d669245f1e9af1ad14fb26","language":"en","license":"CC-BY-4.0","query":"Return the average of product_duration for shopping sessions where (product_related is at most 31).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[31],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (product_related <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[31],\\\"sql\\\":\\\"SELECT SUM(product_duration) AS value FROM shopping_sessions WHERE (product_related <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[31],\\\"sql\\\":\\\"SELECT AVG(product_duration) AS value FROM shopping_sessions WHERE (product_related <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[31],\\\"sql\\\":\\\"SELECT MIN(product_duration) AS value FROM shopping_sessions WHERE (product_related <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[495.53342903208994]]","source":"online_shoppers","split":"dev","sql":"SELECT AVG(product_duration) AS value FROM shopping_sessions WHERE (product_related <= ?)","sql_parameters":"[31]","state":"{\"question\":\"Return the average of product_duration for shopping sessions where (product_related is at most 31).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}1021{"category":"single_table/date/or/having","domain":"commerce","family_id":"15e296dc73b494a3c8240ee9","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"33132d066942dd7811c6f2d15f49c1186bb3902df8ce1ca2fc06bd6e030c7b56","language":"en","license":"CC-BY-4.0","query":"Return the minimum of quantity for retail invoice lines where (unit_price is greater than 4.77 or invoice_date is on or after '2011-05-10'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[4.77,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT country, MIN(quantity) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date >= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[4.77,\\\"2011-05-10\\\",10],\\\"sql\\\":\\\"SELECT country, MIN(quantity) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[4.77,\\\"2011-05-10\\\",10],\\\"sql\\\":\\\"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\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[4.77,\\\"2011-05-10\\\",10],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Belgium\",1],[\"EIRE\",1],[\"Finland\",1]]","source":"online_retail_ii","split":"dev","sql":"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","sql_parameters":"[4.77,\"2011-05-10\",10]","state":"{\"question\":\"Return the minimum of quantity for retail invoice lines where (unit_price is greater than 4.77 or invoice_date is on or after '2011-05-10'), 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\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1022{"category":"join/and/aggregate","domain":"commerce","family_id":"db96fe2539b3b5f4350e2743","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"c6d254ceca5b72f9b5d4bd91d280733d1f52b2e053f6c3d9b05209d571b2bb92","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.unit_price for retail lines joined to their invoices where (i.customer_id equals '12353' and l.unit_price is greater than 2.25).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12353\\\",2.25],\\\"sql\\\":\\\"SELECT SUM(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 > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12353\\\",2.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.unit_price > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12353\\\",2.25],\\\"sql\\\":\\\"SELECT SUM(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_4\":\"{\\\"parameters\\\":[\\\"12353\\\",2.25],\\\"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 > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[22.849999999999998]]","source":"online_retail_ii","split":"dev","sql":"SELECT SUM(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 > ?)","sql_parameters":"[\"12353\",2.25]","state":"{\"question\":\"Return the sum of l.unit_price for retail lines joined to their invoices where (i.customer_id equals '12353' and l.unit_price is greater than 2.25).\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1023{"category":"single_table/or/grouped","domain":"commerce","family_id":"df74ae84be136c3618a4308c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"15dd25a044471d904e6c93895b4016ed665b0b55594105141f3bf0b89aa2ebdd","language":"en","license":"CC-BY-4.0","query":"Return the minimum of administrative for shopping sessions where (visitor_type equals 'Other' or traffic_type equals 10), grouped by month, ordered by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Other\\\",10],\\\"sql\\\":\\\"SELECT month, MIN(administrative) AS value FROM shopping_sessions WHERE (visitor_type = ? OR traffic_type = ?) GROUP BY month ORDER BY month ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Other\\\",10],\\\"sql\\\":\\\"SELECT month, MIN(administrative) AS value FROM shopping_sessions WHERE (visitor_type = ? AND traffic_type = ?) GROUP BY month ORDER BY month ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Other\\\",10],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (visitor_type = ? OR traffic_type = ?) GROUP BY month ORDER BY month ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Other\\\",10],\\\"sql\\\":\\\"SELECT month, SUM(administrative) AS value FROM shopping_sessions WHERE (visitor_type = ? OR traffic_type = ?) GROUP BY month ORDER BY month ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Dec\",0],[\"June\",0],[\"Mar\",0],[\"Nov\",0]]","source":"online_shoppers","split":"dev","sql":"SELECT month, MIN(administrative) AS value FROM shopping_sessions WHERE (visitor_type = ? OR traffic_type = ?) GROUP BY month ORDER BY month ASC","sql_parameters":"[\"Other\",10]","state":"{\"question\":\"Return the minimum of administrative for shopping sessions where (visitor_type equals 'Other' or traffic_type equals 10), grouped by month, ordered by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}1024{"category":"join/or/having","domain":"commerce","family_id":"1dc598f65d537663406c97c0","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"631124a3a55b2af1b51092cfe0c1a0a22657b3f7d70dabe2ad220f609b83fa2f","language":"en","license":"CC-BY-4.0","query":"Return the maximum of l.unit_price for retail lines joined to their invoices where (i.customer_id equals '12359' or l.unit_price is greater than 4.77), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12359\\\",4.77,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.customer_id = ? AND l.unit_price > ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12359\\\",4.77],\\\"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 = ? OR l.unit_price > ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12359\\\",4.77,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.customer_id = ? OR l.unit_price > ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12359\\\",4.77,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.customer_id = ? OR l.unit_price > ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-01-18\",6.95],[\"2010-03-29\",8.5],[\"2010-08-29\",8.5]]","source":"online_retail_ii","split":"dev","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 = ? OR l.unit_price > ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3","sql_parameters":"[\"12359\",4.77,10]","state":"{\"question\":\"Return the maximum of l.unit_price for retail lines joined to their invoices where (i.customer_id equals '12359' or l.unit_price is greater than 4.77), 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_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1025{"category":"join/or/aggregate","domain":"commerce","family_id":"55d563026df9630d0588f253","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"c5b2365f18ce006b1b5a9a02160398c46d6db86f1b8b34a046ec978c6f6cb168","language":"en","license":"CC-BY-4.0","query":"Return the minimum of l.unit_price for retail lines joined to their invoices where (l.quantity is greater than 92 or l.unit_price is at most 8.5).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[92,8.5],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ? OR l.unit_price <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[92,8.5],\\\"sql\\\":\\\"SELECT SUM(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ? OR l.unit_price <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[92,8.5],\\\"sql\\\":\\\"SELECT AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ? OR l.unit_price <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[92,8.5],\\\"sql\\\":\\\"SELECT MIN(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ? OR l.unit_price <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0.04]]","source":"online_retail_ii","split":"dev","sql":"SELECT MIN(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ? OR l.unit_price <= ?)","sql_parameters":"[92,8.5]","state":"{\"question\":\"Return the minimum of l.unit_price for retail lines joined to their invoices where (l.quantity is greater than 92 or l.unit_price is at most 8.5).\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1026{"category":"single_table/or/ranked","domain":"commerce","family_id":"db34912d82a74a6c55a9038b","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"b65b1a7c9c6a4a7bd9b49d8c5191f7ab794ab814773dee16fe6649ea8d38bb3c","language":"en","license":"CC-BY-4.0","query":"Return the average of quantity for retail invoice lines where (country equals 'Canada' or quantity is greater than 92), grouped by invoice_date; return at most 5 groups ordered by aggregate value DESC, breaking ties by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Canada\\\",92],\\\"sql\\\":\\\"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity > ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Canada\\\",92],\\\"sql\\\":\\\"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (country = ? AND quantity > ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Canada\\\",92],\\\"sql\\\":\\\"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity > ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Canada\\\",92],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? OR quantity > ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-03-23\",2985.6],[\"2010-05-18\",1894.2857142857142],[\"2009-12-03\",1855.2727272727273],[\"2011-04-18\",1519.0],[\"2010-11-04\",1424.842105263158]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity > ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5","sql_parameters":"[\"Canada\",92]","state":"{\"question\":\"Return the average of quantity for retail invoice lines where (country equals 'Canada' or quantity is greater than 92), 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\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1027{"category":"join/aggregate","domain":"commerce","family_id":"76dc60f99f4d73729f9b90f8","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"8097cd10a78cf4102b2b806306f8321ea23c0de419f82a86b2ec9e6bb31606dd","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.quantity for retail lines joined to their invoices where (i.country equals 'Austria').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Austria\\\"],\\\"sql\\\":\\\"SELECT SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Austria\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Austria\\\"],\\\"sql\\\":\\\"SELECT AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Austria\\\"],\\\"sql\\\":\\\"SELECT MIN(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[229]]","source":"online_retail_ii","split":"dev","sql":"SELECT SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?)","sql_parameters":"[\"Austria\"]","state":"{\"question\":\"Return the sum of l.quantity for retail lines joined to their invoices where (i.country equals 'Austria').\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1028{"category":"single_table/or/ranked","domain":"commerce","family_id":"49b7a0aa2310743bf71d875e","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"75cf90af4262c9a4f375618753937616b839b6d5197d1c52540cd574c56b8d8f","language":"en","license":"CC-BY-4.0","query":"Return the maximum of product_duration for shopping sessions where (month equals 'Sep' or product_duration is greater than 876.3), grouped by visitor_type; return at most 5 groups ordered by aggregate value DESC, breaking ties by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Sep\\\",876.3],\\\"sql\\\":\\\"SELECT visitor_type, MAX(product_duration) AS value FROM shopping_sessions WHERE (month = ? AND product_duration > ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Sep\\\",876.3],\\\"sql\\\":\\\"SELECT visitor_type, MAX(product_duration) AS value FROM shopping_sessions WHERE (month = ? OR product_duration > ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Sep\\\",876.3],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (month = ? OR product_duration > ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Sep\\\",876.3],\\\"sql\\\":\\\"SELECT visitor_type, MAX(product_duration) AS value FROM shopping_sessions WHERE (month = ? OR product_duration > ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Returning_Visitor\",63973.52223],[\"New_Visitor\",12983.78771],[\"Other\",9630.209524]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, MAX(product_duration) AS value FROM shopping_sessions WHERE (month = ? OR product_duration > ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5","sql_parameters":"[\"Sep\",876.3]","state":"{\"question\":\"Return the maximum of product_duration for shopping sessions where (month equals 'Sep' or product_duration is greater than 876.3), 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\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}1029{"category":"single_table/ranked","domain":"commerce","family_id":"677602994e94cbffc74b1ef2","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"678e08113620b8f64d68a3e055551d9b062bd4274d2f9feb0783d5b081455662","language":"en","license":"CC-BY-4.0","query":"Return the minimum of product_duration for shopping sessions where (traffic_type equals 18), grouped by visitor_type; return at most 3 groups ordered by aggregate value ASC, breaking ties by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[18],\\\"sql\\\":\\\"SELECT visitor_type, MIN(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[18],\\\"sql\\\":\\\"SELECT visitor_type, MIN(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[18],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (traffic_type = ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[18],\\\"sql\\\":\\\"SELECT visitor_type, SUM(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Returning_Visitor\",0.0],[\"New_Visitor\",519.9166667]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, MIN(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3","sql_parameters":"[18]","state":"{\"question\":\"Return the minimum of product_duration for shopping sessions where (traffic_type equals 18), grouped by visitor_type; return at most 3 groups ordered by aggregate value ASC, breaking ties by visitor_type ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}1030{"category":"join/distinct_invoice/or/ranked","domain":"commerce","family_id":"1bf0d82e2635527c668482f8","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"726a093e8266c52d3edfdc87c24867428374b3c95e1cbbae53770ea9849e682f","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.customer_id equals '12353' or l.quantity is at most 1800), grouped by i.invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12353\\\",1800],\\\"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.customer_id = ? AND l.quantity <= ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12353\\\",1800],\\\"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.customer_id = ? OR l.quantity <= ?) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12353\\\",1800],\\\"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.customer_id = ? OR l.quantity <= ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12353\\\",1800],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR l.quantity <= ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-01-06\",1],[\"2010-01-18\",1],[\"2010-07-11\",1]]","source":"online_retail_ii","split":"dev","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.customer_id = ? OR l.quantity <= ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3","sql_parameters":"[\"12353\",1800]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.customer_id equals '12353' or l.quantity is at most 1800), grouped by i.invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1031{"category":"single_table/and/aggregate","domain":"commerce","family_id":"7e6614919a26f1d9cc98c175","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"dca6e609386cbf7e54f8128e49c65631a4cc41da7e19e39fe4818b5027d907f6","language":"en","license":"CC-BY-4.0","query":"Return the average of quantity for retail invoice lines where (quantity is at most 229 and unit_price is greater than 4.77).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[229,4.77],\\\"sql\\\":\\\"SELECT AVG(quantity) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[229,4.77],\\\"sql\\\":\\\"SELECT AVG(quantity) AS value FROM retail_lines WHERE (quantity <= ? AND unit_price > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[229,4.77],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (quantity <= ? AND unit_price > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[229,4.77],\\\"sql\\\":\\\"SELECT SUM(quantity) AS value FROM retail_lines WHERE (quantity <= ? AND unit_price > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[8.329558823529412]]","source":"online_retail_ii","split":"dev","sql":"SELECT AVG(quantity) AS value FROM retail_lines WHERE (quantity <= ? AND unit_price > ?)","sql_parameters":"[229,4.77]","state":"{\"question\":\"Return the average of quantity for retail invoice lines where (quantity is at most 229 and unit_price is greater than 4.77).\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1032{"category":"single_table/or/grouped","domain":"commerce","family_id":"e0eb9cba7170d65c0974a555","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"7c15b0d9a897917f8cf76d7c9c5a4a1140b2e543653fbc1e569b6f9c357282c8","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail invoice lines where (quantity is at most 648 or unit_price is greater than 4.77), grouped by country, ordered by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[648,4.77],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (quantity <= ? AND unit_price > ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[648,4.77],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[648,4.77],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[648,4.77],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?) GROUP BY country ORDER BY country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",47],[\"Austria\",18],[\"Bahrain\",11],[\"Belgium\",76],[\"Canada\",5],[\"Channel Islands\",24],[\"Cyprus\",16],[\"Denmark\",15],[\"EIRE\",201],[\"Finland\",73],[\"France\",238],[\"Germany\",519],[\"Israel\",8],[\"Italy\",15],[\"Japan\",19],[\"Netherlands\",118],[\"Norway\",16],[\"Poland\",6],[\"Portugal\",21],[\"Singapore\",6],[\"Spain\",102],[\"Sweden\",89],[\"Switzerland\",37],[\"USA\",3],[\"United Arab Emirates\",2],[\"United Kingdom\",25149]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?) GROUP BY country ORDER BY country ASC","sql_parameters":"[648,4.77]","state":"{\"question\":\"Return the number of rows for retail invoice lines where (quantity is at most 648 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_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1033{"category":"join/date/having","domain":"commerce","family_id":"04835d026f6ab5e2cfe4ffd9","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"d778c900b0740ec90b9abaf3faed8cd17c38d4b50340efa381034f950d934b67","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.quantity for retail lines joined to their invoices where (i.invoice_date is before '2010-07-14'), grouped by i.invoice_date, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\",2],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.invoice_date < ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\",2],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.invoice_date < ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\",2],\\\"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 HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\",2],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.invoice_date < ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-03-23\",45554],[\"2009-12-03\",21466],[\"2010-05-18\",13759],[\"2010-06-07\",10427],[\"2010-05-12\",8734]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.invoice_date, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.invoice_date < ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5","sql_parameters":"[\"2010-07-14\",2]","state":"{\"question\":\"Return the sum of l.quantity for retail lines joined to their invoices where (i.invoice_date is before '2010-07-14'), grouped by i.invoice_date, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1034{"category":"join/distinct_invoice/date/and/having","domain":"commerce","family_id":"569a5ad3114a5aca324719f8","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"66303bef6d3215b1289cccbfeeaa45e6aa20d4c92686f75aa7086a6f9382bc43","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.unit_price is at most 8.5 and i.invoice_date is on or after '2010-07-14'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[8.5,\\\"2010-07-14\\\",10],\\\"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 HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[8.5,\\\"2010-07-14\\\"],\\\"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 <= ? AND i.invoice_date >= ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[8.5,\\\"2010-07-14\\\",10],\\\"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 <= ? AND i.invoice_date >= ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[8.5,\\\"2010-07-14\\\",10],\\\"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 <= ? AND i.invoice_date >= ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Austria\",3],[\"Italy\",3],[\"Norway\",3]]","source":"online_retail_ii","split":"dev","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 <= ? AND i.invoice_date >= ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3","sql_parameters":"[8.5,\"2010-07-14\",10]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.unit_price is at most 8.5 and i.invoice_date is on or after '2010-07-14'), 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_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1035{"category":"join/date/having","domain":"commerce","family_id":"a2e527755be836305d7cc608","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"822a4670a9077f842aa2515d49060521fdc8a81fbccc1ed229dafafffcb11298","language":"en","license":"CC-BY-4.0","query":"Return the average of l.unit_price for retail lines joined to their invoices where (i.invoice_date is before '2010-02-18'), grouped by i.country, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\",2],\\\"sql\\\":\\\"SELECT i.country, 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.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\",2],\\\"sql\\\":\\\"SELECT i.country, 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.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\",2],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) 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 DESC, i.country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\",2],\\\"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 HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Finland\",12.7225],[\"Spain\",7.884],[\"Portugal\",7.53],[\"Sweden\",7.5200000000000005],[\"EIRE\",7.007777777777778]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, 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.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5","sql_parameters":"[\"2010-02-18\",2]","state":"{\"question\":\"Return the average of l.unit_price for retail lines joined to their invoices where (i.invoice_date is before '2010-02-18'), grouped by i.country, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1036{"category":"single_table/date/grouped","domain":"commerce","family_id":"eccee99f73ace4cc8a5d3449","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"f1047d8f0b6f10ec9767560f891990cd191d071c1b083bdbeb26dd816dc635ef","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail invoice lines where (invoice_date is on or after '2011-09-29'), grouped by country, ordered by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT country, MIN(quantity) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY country ORDER BY country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",5],[\"Belgium\",8],[\"Channel Islands\",8],[\"Denmark\",11],[\"EIRE\",43],[\"Finland\",38],[\"France\",49],[\"Germany\",126],[\"Israel\",2],[\"Netherlands\",22],[\"Norway\",2],[\"Portugal\",4],[\"Singapore\",2],[\"Spain\",8],[\"Sweden\",6],[\"Switzerland\",3],[\"United Kingdom\",3391]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY country ORDER BY country ASC","sql_parameters":"[\"2011-09-29\"]","state":"{\"question\":\"Return the number of rows for retail invoice lines where (invoice_date is on or after '2011-09-29'), 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\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1037{"category":"single_table/and/grouped","domain":"sensor","family_id":"98ccec743ff23c0c8d57290d","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"0e76af6b47eee6d73807c0d0308e72f823fad046765aedf3e755e37e984c734b","language":"en","license":"CC-BY-4.0","query":"Return the minimum of ts1_mean for hydraulic cycles where (ps2_mean is at most 105.7255 and vs1_mean is greater than 0.56377), grouped by valve, ordered by valve ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[105.7255,0.56377],\\\"sql\\\":\\\"SELECT valve, MIN(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR vs1_mean > ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[105.7255,0.56377],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND vs1_mean > ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[105.7255,0.56377],\\\"sql\\\":\\\"SELECT valve, SUM(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND vs1_mean > ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[105.7255,0.56377],\\\"sql\\\":\\\"SELECT valve, MIN(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND vs1_mean > ?) GROUP BY valve ORDER BY valve ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[73,54.16153],[80,54.17312],[90,54.1816],[100,54.2562]]","source":"hydraulic","split":"dev","sql":"SELECT valve, MIN(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND vs1_mean > ?) GROUP BY valve ORDER BY valve ASC","sql_parameters":"[105.7255,0.56377]","state":"{\"question\":\"Return the minimum of ts1_mean for hydraulic cycles where (ps2_mean is at most 105.7255 and vs1_mean is greater than 0.56377), 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\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1038{"category":"single_table/date/and/having","domain":"commerce","family_id":"1ea2878e2c85a8a05bf6ac2b","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"9e999dcb9c5694b1c2f35a491c1b5144905050cd5141d0c35355ada982f9e752","language":"en","license":"CC-BY-4.0","query":"Return the minimum of quantity for retail invoice lines where (country equals 'Austria' and invoice_date is before '2011-09-29'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Austria\\\",\\\"2011-09-29\\\",2],\\\"sql\\\":\\\"SELECT country, MIN(quantity) AS value FROM retail_lines WHERE (country = ? OR invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Austria\\\",\\\"2011-09-29\\\",2],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Austria\\\",\\\"2011-09-29\\\",2],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Austria\\\",\\\"2011-09-29\\\",2],\\\"sql\\\":\\\"SELECT country, MIN(quantity) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Austria\",1]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, MIN(quantity) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5","sql_parameters":"[\"Austria\",\"2011-09-29\",2]","state":"{\"question\":\"Return the minimum of quantity for retail invoice lines where (country equals 'Austria' and invoice_date is before '2011-09-29'), 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_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1039{"category":"single_table/and/grouped","domain":"sensor","family_id":"30ef2570e9f7b7b74f6a53c8","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"2a80a8a4e8e7eb21967bf486dd91ccb5c0330f34036ef0dba89ec04d10d17cef","language":"en","license":"CC-BY-4.0","query":"Return the sum of ps1_mean for hydraulic cycles where (pump_leakage equals 1 and vs1_mean is greater than 0.71948), grouped by valve, ordered by valve ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[1,0.71948],\\\"sql\\\":\\\"SELECT valve, SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? AND vs1_mean > ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[1,0.71948],\\\"sql\\\":\\\"SELECT valve, SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? OR vs1_mean > ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[1,0.71948],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? AND vs1_mean > ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[1,0.71948],\\\"sql\\\":\\\"SELECT valve, AVG(ps1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? AND vs1_mean > ?) GROUP BY valve ORDER BY valve ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[73,2776.20682],[80,2601.91232],[90,3636.37417],[100,3438.60595]]","source":"hydraulic","split":"dev","sql":"SELECT valve, SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? AND vs1_mean > ?) GROUP BY valve ORDER BY valve ASC","sql_parameters":"[1,0.71948]","state":"{\"question\":\"Return the sum of ps1_mean for hydraulic cycles where (pump_leakage equals 1 and vs1_mean is greater than 0.71948), 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\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1040{"category":"single_table/and/having","domain":"commerce","family_id":"59b98bb7484591536b888897","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"a9cecedc1702131f514cf7cf2f5057f73e360ce98afdd8bfaea77eb33d8c209c","language":"en","license":"CC-BY-4.0","query":"Return the average of product_related for shopping sessions where (month equals 'June' and product_duration is greater than 1564.0), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"June\\\",1564.0,10],\\\"sql\\\":\\\"SELECT visitor_type, AVG(product_related) AS value FROM shopping_sessions WHERE (month = ? AND product_duration > ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"June\\\",1564.0,10],\\\"sql\\\":\\\"SELECT visitor_type, AVG(product_related) AS value FROM shopping_sessions WHERE (month = ? OR product_duration > ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"June\\\",1564.0],\\\"sql\\\":\\\"SELECT visitor_type, AVG(product_related) AS value FROM shopping_sessions WHERE (month = ? AND product_duration > ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"June\\\",1564.0,10],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (month = ? AND product_duration > ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Returning_Visitor\",97.328125]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, AVG(product_related) AS value FROM shopping_sessions WHERE (month = ? AND product_duration > ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value ASC, visitor_type ASC LIMIT 3","sql_parameters":"[\"June\",1564.0,10]","state":"{\"question\":\"Return the average of product_related for shopping sessions where (month equals 'June' and product_duration is greater than 1564.0), 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_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}1041{"category":"join/or/grouped","domain":"commerce","family_id":"b7da8da8b1cc9bcb9e68b69f","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"40089747c43b7031728b372127520d1dc4d6a5be597dbb2677ffbb6f219b7fc2","language":"en","license":"CC-BY-4.0","query":"Return the minimum of l.quantity for retail lines joined to their invoices where (l.quantity is greater than 229 or l.unit_price is greater than 4.77), grouped by i.country, ordered by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[229,4.77],\\\"sql\\\":\\\"SELECT i.country, MIN(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.country ORDER BY i.country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[229,4.77],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) 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.country ORDER BY i.country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[229,4.77],\\\"sql\\\":\\\"SELECT i.country, SUM(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.country ORDER BY i.country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[229,4.77],\\\"sql\\\":\\\"SELECT i.country, MIN(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.country ORDER BY i.country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",2],[\"Austria\",1],[\"Bahrain\",2],[\"Belgium\",1],[\"Channel Islands\",2],[\"Cyprus\",2],[\"Denmark\",2],[\"EIRE\",1],[\"Finland\",1],[\"France\",1],[\"Germany\",1],[\"Israel\",1],[\"Italy\",1],[\"Japan\",1],[\"Netherlands\",1],[\"Norway\",1],[\"Poland\",1],[\"Portugal\",1],[\"Singapore\",1],[\"Spain\",1],[\"Sweden\",1],[\"Switzerland\",1],[\"United Arab Emirates\",1],[\"United Kingdom\",1]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, MIN(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.country ORDER BY i.country ASC","sql_parameters":"[229,4.77]","state":"{\"question\":\"Return the minimum of l.quantity for retail lines joined to their invoices where (l.quantity is greater than 229 or l.unit_price is greater than 4.77), grouped by i.country, ordered by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1042{"category":"single_table/and/grouped","domain":"sensor","family_id":"8c393ea6583a515bff63a615","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"968ae3bafd60bc5222a39254d8bc758c9a188658f8b1b938fef9d599061e232b","language":"en","license":"CC-BY-4.0","query":"Return the minimum of ps2_mean for hydraulic cycles where (ps2_mean is greater than 107.17314 and vs1_mean is greater than 0.71948), grouped by valve, ordered by valve ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[107.17314,0.71948],\\\"sql\\\":\\\"SELECT valve, MIN(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? OR vs1_mean > ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[107.17314,0.71948],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? AND vs1_mean > ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[107.17314,0.71948],\\\"sql\\\":\\\"SELECT valve, MIN(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? AND vs1_mean > ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[107.17314,0.71948],\\\"sql\\\":\\\"SELECT valve, SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? AND vs1_mean > ?) GROUP BY valve ORDER BY valve ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[73,116.61782],[80,122.62966],[90,116.60307],[100,122.94271]]","source":"hydraulic","split":"dev","sql":"SELECT valve, MIN(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? AND vs1_mean > ?) GROUP BY valve ORDER BY valve ASC","sql_parameters":"[107.17314,0.71948]","state":"{\"question\":\"Return the minimum of ps2_mean for hydraulic cycles where (ps2_mean is greater than 107.17314 and vs1_mean is greater than 0.71948), 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\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1043{"category":"join/distinct_invoice/date/or/ranked","domain":"commerce","family_id":"d263de06b9716fdbca917c9e","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"48a704217f0faf037be6320a4f49a3256a4aa0d2e15f71c805ab03fb0dcb5216","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.country equals 'Australia' or i.invoice_date is on or after '2010-02-18'), grouped by i.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Australia\\\",\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND i.invoice_date >= ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Australia\\\",\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR i.invoice_date >= ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Australia\\\",\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR i.invoice_date >= ?) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Australia\\\",\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR i.invoice_date >= ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Canada\",1],[\"USA\",1],[\"United Arab Emirates\",1]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR i.invoice_date >= ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3","sql_parameters":"[\"Australia\",\"2010-02-18\"]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.country equals 'Australia' or i.invoice_date is on or after '2010-02-18'), grouped by i.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1044{"category":"single_table/and/ranked","domain":"sensor","family_id":"abbcdbe0efa55fc973c1c798","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"7a93042230c90aca6bc722822938038d2a1893b2a15cb2a68c4fd4a373a7f18f","language":"en","license":"CC-BY-4.0","query":"Return the average of eps1_mean for hydraulic cycles where (ps1_mean is greater than 158.27043 and vs1_mean is greater than 0.71948), grouped by cooler; return at most 3 groups ordered by aggregate value ASC, breaking ties by cooler ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[158.27043,0.71948],\\\"sql\\\":\\\"SELECT cooler, AVG(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? OR vs1_mean > ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[158.27043,0.71948],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? AND vs1_mean > ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[158.27043,0.71948],\\\"sql\\\":\\\"SELECT cooler, AVG(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? AND vs1_mean > ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[158.27043,0.71948],\\\"sql\\\":\\\"SELECT cooler, SUM(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? AND vs1_mean > ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[3,2627.6791428723404]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, AVG(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? AND vs1_mean > ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 3","sql_parameters":"[158.27043,0.71948]","state":"{\"question\":\"Return the average of eps1_mean for hydraulic cycles where (ps1_mean is greater than 158.27043 and vs1_mean is greater than 0.71948), 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\",\"cycle_id\":\"INTEGER\",\"eps1_mean\":\"REAL\",\"fs1_mean\":\"REAL\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1045{"category":"single_table/grouped","domain":"commerce","family_id":"b2bcf0a57c87975922291266","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"3663fe478d53745ed842ee3e00b9ce5bf309373bf37f74f56d044412eeef4469","language":"en","license":"CC-BY-4.0","query":"Return the minimum of product_duration for shopping sessions where (traffic_type equals 16), grouped by month, ordered by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[16],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (traffic_type = ?) GROUP BY month ORDER BY month ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[16],\\\"sql\\\":\\\"SELECT month, SUM(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ?) GROUP BY month ORDER BY month ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[16],\\\"sql\\\":\\\"SELECT month, AVG(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ?) GROUP BY month ORDER BY month ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[16],\\\"sql\\\":\\\"SELECT month, MIN(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ?) GROUP BY month ORDER BY month ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"June\",1229.466667],[\"May\",220.3333333]]","source":"online_shoppers","split":"dev","sql":"SELECT month, MIN(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ?) GROUP BY month ORDER BY month ASC","sql_parameters":"[16]","state":"{\"question\":\"Return the minimum of product_duration for shopping sessions where (traffic_type equals 16), grouped by month, ordered by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}1046{"category":"join/ranked","domain":"commerce","family_id":"f5e5baa3b1508cc7fca092cb","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"131216f4d502f630f616bd41807faf06e5eed8702e5252d187fc1a1429270175","language":"en","license":"CC-BY-4.0","query":"Return the average of l.unit_price for retail lines joined to their invoices where (i.customer_id equals '12356'), grouped by i.invoice_date; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12356\\\"],\\\"sql\\\":\\\"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.customer_id = ?) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12356\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12356\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12356\\\"],\\\"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 = ?) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-11-17\",11.85]]","source":"online_retail_ii","split":"dev","sql":"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.customer_id = ?) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5","sql_parameters":"[\"12356\"]","state":"{\"question\":\"Return the average of l.unit_price for retail lines joined to their invoices where (i.customer_id equals '12356'), 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_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1047{"category":"single_table/date/ranked","domain":"commerce","family_id":"415406d0409668b4771e028f","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"b1ef5036e0c52782310969eb2cf60e11a352b27705725e8ce7eabd00171a914d","language":"en","license":"CC-BY-4.0","query":"Return the sum of quantity for retail invoice lines where (invoice_date is before '2010-02-18'), grouped by invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\"],\\\"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\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-01-06\",19],[\"2010-01-18\",84],[\"2010-01-26\",166]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3","sql_parameters":"[\"2010-02-18\"]","state":"{\"question\":\"Return the sum of quantity for retail invoice lines where (invoice_date is before '2010-02-18'), grouped by invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by invoice_date ascending.\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1048{"category":"join/or/grouped","domain":"commerce","family_id":"b6a76e2dd246f6cf5efae46d","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"acbdb1cafda5bdfd65142eee014b535a98641bd00aaf756b7a07d42f309cd81c","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.quantity for retail lines joined to their invoices where (i.country equals 'Canada' or l.quantity is at most 229), grouped by i.country, ordered by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Canada\\\",229],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND l.quantity <= ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Canada\\\",229],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR l.quantity <= ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Canada\\\",229],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR l.quantity <= ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Canada\\\",229],\\\"sql\\\":\\\"SELECT i.country, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR l.quantity <= ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",711],[\"Austria\",229],[\"Bahrain\",97],[\"Belgium\",710],[\"Canada\",52],[\"Channel Islands\",2482],[\"Cyprus\",754],[\"Denmark\",385],[\"EIRE\",6395],[\"Finland\",2800],[\"France\",5384],[\"Germany\",9393],[\"Israel\",34],[\"Italy\",276],[\"Japan\",411],[\"Netherlands\",5808],[\"Norway\",114],[\"Poland\",157],[\"Portugal\",219],[\"Singapore\",6],[\"Spain\",3659],[\"Sweden\",4348],[\"Switzerland\",951],[\"USA\",36],[\"United Arab Emirates\",2],[\"United Kingdom\",641643]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR l.quantity <= ?) GROUP BY i.country ORDER BY i.country ASC","sql_parameters":"[\"Canada\",229]","state":"{\"question\":\"Return the sum of l.quantity for retail lines joined to their invoices where (i.country equals 'Canada' or l.quantity is at most 229), grouped by i.country, ordered by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1049{"category":"join/date/or/having","domain":"commerce","family_id":"df8267c657a204b3152f8014","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"d91d44991873e2a8d6df7550605c9ba5f36dc2c4865cbbd32fdbee433925db10","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.unit_price for retail lines joined to their invoices where (l.quantity is at most 1800 or i.invoice_date is before '2011-05-10'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[1800,\\\"2011-05-10\\\",10],\\\"sql\\\":\\\"SELECT i.country, SUM(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\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[1800,\\\"2011-05-10\\\",10],\\\"sql\\\":\\\"SELECT i.country, SUM(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\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[1800,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT i.country, SUM(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 ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[1800,\\\"2011-05-10\\\",10],\\\"sql\\\":\\\"SELECT i.country, SUM(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 DESC, i.country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Japan\",37.42],[\"Bahrain\",47.05],[\"Cyprus\",57.85]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, SUM(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","sql_parameters":"[1800,\"2011-05-10\",10]","state":"{\"question\":\"Return the sum of l.unit_price for retail lines joined to their invoices where (l.quantity is at most 1800 or i.invoice_date is before '2011-05-10'), 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_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1050{"category":"single_table/date/grouped","domain":"commerce","family_id":"11cec58df06f3a8727740b65","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"9c2d8b933bddf73874d6da0983e1948e577494524c808d535761ac6e14517014","language":"en","license":"CC-BY-4.0","query":"Return the average of quantity for retail invoice lines where (invoice_date is on or after '2010-12-02'), grouped by invoice_date, ordered by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-12-02\",72.83185840707965],[\"2010-12-03\",77.05555555555556],[\"2010-12-05\",20.564102564102566],[\"2010-12-06\",39.53448275862069],[\"2010-12-07\",72.70833333333333],[\"2010-12-08\",25.280898876404493],[\"2010-12-09\",35.88659793814433],[\"2010-12-10\",20.977777777777778],[\"2010-12-12\",11.631578947368421],[\"2010-12-13\",45.472727272727276],[\"2010-12-14\",31.325],[\"2010-12-15\",11.196428571428571],[\"2010-12-16\",34.64957264957265],[\"2010-12-17\",19.473684210526315],[\"2010-12-19\",1.6666666666666667],[\"2010-12-20\",113.7948717948718],[\"2010-12-21\",12.571428571428571],[\"2010-12-22\",21.235294117647058],[\"2010-12-23\",8.615384615384615],[\"2011-01-04\",44.18181818181818],[\"2011-01-05\",59.38461538461539],[\"2011-01-06\",57.43333333333333],[\"2011-01-07\",62.25],[\"2011-01-09\",29.03846153846154],[\"2011-01-10\",27.555555555555557],[\"2011-01-11\",309.84615384615387],[\"2011-01-12\",19.620689655172413],[\"2011-01-13\",59.06666666666667],[\"2011-01-14\",15.108108108108109],[\"2011-01-16\",8.5],[\"2011-01-17\",36.225],[\"2011-01-18\",19.357142857142858],[\"2011-01-19\",40.0],[\"2011-01-20\",22.0],[\"2011-01-21\",29.285714285714285],[\"2011-01-23\",9.9],[\"2011-01-24\",13.297297297297296],[\"2011-01-25\",40.59615384615385],[\"2011-01-26\",53.638888888888886],[\"2011-01-27\",10.08108108108108],[\"2011-01-28\",13.8],[\"2011-01-30\",15.2],[\"2011-01-31\",31.0],[\"2011-02-01\",26.642857142857142],[\"2011-02-02\",25.708333333333332],[\"2011-02-03\",139.88888888888889],[\"2011-02-04\",64.33333333333333],[\"2011-02-07\",92.3225806451613],[\"2011-02-08\",78.8125],[\"2011-02-09\",5.923076923076923],[\"2011-02-10\",186.1764705882353],[\"2011-02-11\",32.03448275862069],[\"2011-02-13\",8.0],[\"2011-02-14\",48.24],[\"2011-02-15\",102.23529411764706],[\"2011-02-16\",40.163636363636364],[\"2011-02-17\",23.912280701754387],[\"2011-02-18\",27.3125],[\"2011-02-20\",54.666666666666664],[\"2011-02-21\",27.61111111111111],[\"2011-02-22\",28.17241379310345],[\"2011-02-23\",25.85185185185185],[\"2011-02-24\",17.56],[\"2011-02-25\",30.425],[\"2011-02-27\",16.307692307692307],[\"2011-02-28\",11.791666666666666],[\"2011-03-01\",28.181818181818183],[\"2011-03-02\",61.588235294117645],[\"2011-03-03\",26.615384615384617],[\"2011-03-04\",88.55813953488372],[\"2011-03-06\",25.4375],[\"2011-03-07\",40.470588235294116],[\"2011-03-08\",66.84848484848484],[\"2011-03-09\",50.86666666666667],[\"2011-03-10\",30.46511627906977],[\"2011-03-11\",31.346938775510203],[\"2011-03-14\",24.6],[\"2011-03-15\",22.36842105263158],[\"2011-03-16\",49.71739130434783],[\"2011-03-17\",52.549019607843135],[\"2011-03-18\",28.06896551724138],[\"2011-03-20\",75.06153846153846],[\"2011-03-21\",22.404255319148938],[\"2011-03-22\",36.875],[\"2011-03-23\",50.43181818181818],[\"2011-03-24\",59.125],[\"2011-03-25\",79.6923076923077],[\"2011-03-27\",17.904761904761905],[\"2011-03-28\",25.86046511627907],[\"2011-03-29\",18.842105263157894],[\"2011-03-30\",46.96],[\"2011-03-31\",26.689655172413794],[\"2011-04-01\",88.14864864864865],[\"2011-04-03\",39.26315789473684],[\"2011-04-04\",26.523809523809526],[\"2011-04-05\",99.82608695652173],[\"2011-04-06\",15.25],[\"2011-04-07\",16.849056603773583],[\"2011-04-08\",31.432835820895523],[\"2011-04-10\",24.0],[\"2011-04-11\",25.195652173913043],[\"2011-04-12\",29.0],[\"2011-04-13\",74.25581395348837],[\"2011-04-14\",54.35064935064935],[\"2011-04-15\",12.722222222222221],[\"2011-04-17\",12.428571428571429],[\"2011-04-18\",298.0625],[\"2011-04-19\",26.15],[\"2011-04-20\",123.88461538461539],[\"2011-04-21\",46.704918032786885],[\"2011-04-26\",58.775862068965516],[\"2011-04-27\",82.01785714285714],[\"2011-04-28\",15.68421052631579],[\"2011-05-01\",13.8],[\"2011-05-03\",30.636363636363637],[\"2011-05-04\",35.32203389830509],[\"2011-05-05\",46.649484536082475],[\"2011-05-06\",13.88135593220339],[\"2011-05-08\",14.21875],[\"2011-05-09\",18.46153846153846],[\"2011-05-10\",18.65909090909091],[\"2011-05-11\",27.280701754385966],[\"2011-05-12\",13.106060606060606],[\"2011-05-13\",35.52777777777778],[\"2011-05-15\",19.266666666666666],[\"2011-05-16\",24.40625],[\"2011-05-17\",35.61971830985915],[\"2011-05-18\",39.220338983050844],[\"2011-05-19\",32.25333333333333],[\"2011-05-20\",54.329268292682926],[\"2011-05-22\",11.904761904761905],[\"2011-05-23\",92.86153846153846],[\"2011-05-24\",69.33802816901408],[\"2011-05-25\",18.19047619047619],[\"2011-05-26\",37.861111111111114],[\"2011-05-27\",33.55555555555556],[\"2011-05-29\",38.0],[\"2011-05-31\",58.94736842105263],[\"2011-06-01\",16.516129032258064],[\"2011-06-02\",30.444444444444443],[\"2011-06-03\",14.84375],[\"2011-06-05\",29.22222222222222],[\"2011-06-06\",33.696969696969695],[\"2011-06-07\",20.327272727272728],[\"2011-06-08\",51.52238805970149],[\"2011-06-09\",15.581818181818182],[\"2011-06-10\",39.65384615384615],[\"2011-06-12\",3.7],[\"2011-06-13\",41.95238095238095],[\"2011-06-14\",63.3],[\"2011-06-15\",20.869565217391305],[\"2011-06-16\",32.03157894736842],[\"2011-06-17\",41.25],[\"2011-06-19\",35.67857142857143],[\"2011-06-20\",55.458333333333336],[\"2011-06-21\",14.212121212121213],[\"2011-06-22\",68.6],[\"2011-06-23\",11.130434782608695],[\"2011-06-24\",23.547619047619047],[\"2011-06-26\",5.476190476190476],[\"2011-06-27\",52.52173913043478],[\"2011-06-28\",48.083333333333336],[\"2011-06-29\",31.322580645161292],[\"2011-06-30\",90.62857142857143],[\"2011-07-01\",20.85185185185185],[\"2011-07-03\",18.666666666666668],[\"2011-07-04\",98.11764705882354],[\"2011-07-05\",91.58620689655173],[\"2011-07-06\",48.59322033898305],[\"2011-07-07\",69.56896551724138],[\"2011-07-08\",47.21052631578947],[\"2011-07-10\",5.8],[\"2011-07-11\",63.76315789473684],[\"2011-07-12\",61.25],[\"2011-07-13\",17.931818181818183],[\"2011-07-14\",30.170212765957448],[\"2011-07-15\",17.476190476190474],[\"2011-07-17\",31.818181818181817],[\"2011-07-18\",15.25],[\"2011-07-19\",66.15384615384616],[\"2011-07-20\",51.578947368421055],[\"2011-07-21\",44.666666666666664],[\"2011-07-22\",21.475],[\"2011-07-24\",53.01538461538462],[\"2011-07-25\",22.892307692307693],[\"2011-07-26\",22.242424242424242],[\"2011-07-27\",58.666666666666664],[\"2011-07-28\",47.7816091954023],[\"2011-07-29\",20.236842105263158],[\"2011-07-31\",27.40909090909091],[\"2011-08-01\",54.625],[\"2011-08-02\",102.03125],[\"2011-08-03\",48.25],[\"2011-08-04\",55.690140845070424],[\"2011-08-05\",40.4],[\"2011-08-07\",25.275],[\"2011-08-08\",68.66666666666667],[\"2011-08-09\",12.464285714285714],[\"2011-08-10\",13.0],[\"2011-08-11\",34.41304347826087],[\"2011-08-12\",52.5],[\"2011-08-14\",8.521739130434783],[\"2011-08-15\",27.344827586206897],[\"2011-08-16\",9.536585365853659],[\"2011-08-17\",162.35294117647058],[\"2011-08-18\",128.46153846153845],[\"2011-08-19\",19.023809523809526],[\"2011-08-21\",47.515151515151516],[\"2011-08-22\",43.228070175438596],[\"2011-08-23\",57.90243902439025],[\"2011-08-24\",86.32352941176471],[\"2011-08-25\",17.50877192982456],[\"2011-08-26\",51.94444444444444],[\"2011-08-28\",30.647058823529413],[\"2011-08-30\",10.26086956521739],[\"2011-08-31\",20.3],[\"2011-09-01\",64.98507462686567],[\"2011-09-02\",100.54237288135593],[\"2011-09-04\",45.82857142857143],[\"2011-09-05\",74.86666666666666],[\"2011-09-06\",28.084745762711865],[\"2011-09-07\",39.421052631578945],[\"2011-09-08\",38.42372881355932],[\"2011-09-09\",10.487804878048781],[\"2011-09-11\",33.0],[\"2011-09-12\",32.57142857142857],[\"2011-09-13\",61.61904761904762],[\"2011-09-14\",33.972972972972975],[\"2011-09-15\",82.15384615384616],[\"2011-09-16\",77.17391304347827],[\"2011-09-18\",67.83333333333333],[\"2011-09-19\",15.127659574468085],[\"2011-09-20\",48.54],[\"2011-09-21\",51.020833333333336],[\"2011-09-22\",31.985915492957748],[\"2011-09-23\",30.0],[\"2011-09-25\",27.96875],[\"2011-09-26\",26.903225806451612],[\"2011-09-27\",61.464285714285715],[\"2011-09-28\",60.34090909090909],[\"2011-09-29\",46.68421052631579],[\"2011-09-30\",22.977777777777778],[\"2011-10-02\",29.53846153846154],[\"2011-10-03\",67.55882352941177],[\"2011-10-04\",111.73170731707317],[\"2011-10-05\",20.723076923076924],[\"2011-10-06\",52.74418604651163],[\"2011-10-07\",90.45762711864407],[\"2011-10-09\",8.833333333333334],[\"2011-10-10\",26.50943396226415],[\"2011-10-11\",13.416666666666666],[\"2011-10-12\",13.169491525423728],[\"2011-10-13\",24.173076923076923],[\"2011-10-14\",18.323529411764707],[\"2011-10-17\",55.2],[\"2011-10-18\",33.36842105263158],[\"2011-10-19\",33.69736842105263],[\"2011-10-20\",21.392156862745097],[\"2011-10-21\",12.023809523809524],[\"2011-10-23\",1.6],[\"2011-10-24\",64.390625],[\"2011-10-25\",107.6],[\"2011-10-26\",41.6375],[\"2011-10-27\",31.029411764705884],[\"2011-10-28\",35.68333333333333],[\"2011-10-30\",18.28846153846154],[\"2011-10-31\",32.148936170212764],[\"2011-11-01\",27.431818181818183],[\"2011-11-02\",74.65517241379311],[\"2011-11-03\",119.58181818181818],[\"2011-11-04\",21.294117647058822],[\"2011-11-06\",12.737704918032787],[\"2011-11-07\",22.35211267605634],[\"2011-11-08\",27.380281690140844],[\"2011-11-09\",54.377049180327866],[\"2011-11-10\",15.159090909090908],[\"2011-11-11\",50.55555555555556],[\"2011-11-13\",21.129032258064516],[\"2011-11-14\",29.72093023255814],[\"2011-11-15\",34.61538461538461],[\"2011-11-16\",36.57843137254902],[\"2011-11-17\",33.69090909090909],[\"2011-11-18\",34.86904761904762],[\"2011-11-20\",26.0],[\"2011-11-21\",23.836363636363636],[\"2011-11-22\",66.0340909090909],[\"2011-11-23\",33.77173913043478],[\"2011-11-24\",40.98888888888889],[\"2011-11-25\",29.194444444444443],[\"2011-11-27\",5.571428571428571],[\"2011-11-28\",75.47368421052632],[\"2011-11-29\",20.333333333333332],[\"2011-11-30\",18.36],[\"2011-12-01\",33.578125],[\"2011-12-02\",19.50980392156863],[\"2011-12-04\",21.425531914893618],[\"2011-12-05\",38.91752577319588],[\"2011-12-06\",29.0],[\"2011-12-07\",31.8135593220339],[\"2011-12-08\",17.88],[\"2011-12-09\",24.764705882352942]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC","sql_parameters":"[\"2010-12-02\"]","state":"{\"question\":\"Return the average of quantity for retail invoice lines where (invoice_date is on or after '2010-12-02'), 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\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1051{"category":"join/null/and/having","domain":"commerce","family_id":"2c2735b0b92a4d095f7f98d0","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"d1776ef4fef921a05c5fd1897c4f8d22741419a37087ff1e2e860407ca5b710a","language":"en","license":"CC-BY-4.0","query":"Return the minimum of l.unit_price for retail lines joined to their invoices where (l.quantity is greater than 648 and i.customer_id is missing), grouped by i.country, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[648,2],\\\"sql\\\":\\\"SELECT i.country, MIN(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ? AND i.customer_id IS NULL) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[648,2],\\\"sql\\\":\\\"SELECT i.country, MIN(l.unit_price) 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 DESC, i.country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2],\\\"sql\\\":\\\"SELECT i.country, MIN(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[648,2],\\\"sql\\\":\\\"SELECT i.country, MIN(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, MIN(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ? AND i.customer_id IS NULL) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5","sql_parameters":"[648,2]","state":"{\"question\":\"Return the minimum of l.unit_price for retail lines joined to their invoices where (l.quantity is greater than 648 and i.customer_id is missing), grouped by i.country, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1052{"category":"single_table/date/and/having","domain":"commerce","family_id":"f403f5a557ccb4a4ca99b4c2","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"146e731f0f7426f195dec7660f419b8c942ecfbd59f87266e2e674913f560ecb","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail invoice lines where (country equals 'Austria' and invoice_date is before '2011-09-29'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Austria\\\",\\\"2011-09-29\\\",2],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? OR invoice_date < ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Austria\\\",\\\"2011-09-29\\\",2],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Austria\\\",\\\"2011-09-29\\\",2],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Austria\\\",\\\"2011-09-29\\\",2],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-05-06\",6],[\"2011-04-26\",5],[\"2011-03-03\",4],[\"2010-03-25\",3]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5","sql_parameters":"[\"Austria\",\"2011-09-29\",2]","state":"{\"question\":\"Return the number of rows for retail invoice lines where (country equals 'Austria' and invoice_date is before '2011-09-29'), 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\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1053{"category":"single_table/having","domain":"commerce","family_id":"304d0e4519767e0560f2c430","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"3aa049f4c323083a9cec58361b63327107792df5bbeb0ec9f97ecb1ebeec4a8a","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (country equals 'Austria'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Austria\\\",2],\\\"sql\\\":\\\"SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (country = ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Austria\\\",2],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Austria\\\",2],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (country = ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Austria\\\",2],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (country = ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Austria\",40.0]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (country = ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5","sql_parameters":"[\"Austria\",2]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines where (country equals 'Austria'), 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_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1054{"category":"single_table/or/ranked","domain":"commerce","family_id":"2279701afe6a8e4ed2d97058","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"51a9689564b519de7c557d19fd3b775d937bdf22c748ae2ecd88f1a4812d029c","language":"en","license":"CC-BY-4.0","query":"Return the average of product_duration for shopping sessions where (product_related is greater than 31 or product_duration is greater than 1564.0), grouped by month; return at most 3 groups ordered by aggregate value ASC, breaking ties by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[31,1564.0],\\\"sql\\\":\\\"SELECT month, AVG(product_duration) AS value FROM shopping_sessions WHERE (product_related > ? AND product_duration > ?) GROUP BY month ORDER BY value ASC, month ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[31,1564.0],\\\"sql\\\":\\\"SELECT month, AVG(product_duration) AS value FROM shopping_sessions WHERE (product_related > ? OR product_duration > ?) GROUP BY month ORDER BY value ASC, month ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[31,1564.0],\\\"sql\\\":\\\"SELECT month, AVG(product_duration) AS value FROM shopping_sessions WHERE (product_related > ? OR product_duration > ?) GROUP BY month ORDER BY value DESC, month ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[31,1564.0],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (product_related > ? OR product_duration > ?) GROUP BY month ORDER BY value ASC, month ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Mar\",2193.86090546],[\"May\",2308.46564116368],[\"Oct\",2347.8951995009757]]","source":"online_shoppers","split":"dev","sql":"SELECT month, AVG(product_duration) AS value FROM shopping_sessions WHERE (product_related > ? OR product_duration > ?) GROUP BY month ORDER BY value ASC, month ASC LIMIT 3","sql_parameters":"[31,1564.0]","state":"{\"question\":\"Return the average of product_duration for shopping sessions where (product_related is greater than 31 or product_duration is greater than 1564.0), grouped by month; return at most 3 groups ordered by aggregate value ASC, breaking ties by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}1055{"category":"join/distinct_invoice/null/or/having","domain":"commerce","family_id":"a0c26009bf6b883b095e2ef0","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"00d1e8cc2c9fc4e17f44517d73d0e554c721f9b654a2964533c419745ae343f2","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.quantity is at most 25 or i.customer_id is present), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[25,10],\\\"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.quantity <= ? OR i.customer_id IS NOT NULL) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[25,10],\\\"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.quantity <= ? AND i.customer_id IS NOT NULL) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[25],\\\"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.quantity <= ? OR i.customer_id IS NOT NULL) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[25,10],\\\"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.quantity <= ? OR i.customer_id IS NOT NULL) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Bahrain\",3],[\"Denmark\",3],[\"Italy\",3]]","source":"online_retail_ii","split":"dev","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.quantity <= ? OR i.customer_id IS NOT NULL) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3","sql_parameters":"[25,10]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.quantity is at most 25 or i.customer_id is present), 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_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1056{"category":"single_table/date/having","domain":"commerce","family_id":"d651e01f7daf5a760641b9e4","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"4a4024e6e555bb7df3a6f056abbad9191b31ec0fe8e3aefcb12acadbc2d7ce3f","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail invoice lines where (invoice_date is on or after '2010-07-14'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\",2],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\",2],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\",2],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\",2],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"United Kingdom\",18540],[\"Germany\",431],[\"France\",207],[\"EIRE\",160],[\"Netherlands\",88]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5","sql_parameters":"[\"2010-07-14\",2]","state":"{\"question\":\"Return the number of rows for retail invoice lines where (invoice_date is on or after '2010-07-14'), 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_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1057{"category":"single_table/date/or/grouped","domain":"commerce","family_id":"5cc7148a7f620832180b1fd7","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"7cdfc6b02fe17b514fe786ab0c2a6ac950c852e0581aca8933a729da2330ea82","language":"en","license":"CC-BY-4.0","query":"Return the average of unit_price for retail invoice lines where (quantity is at most 25 or invoice_date is on or after '2010-12-02'), grouped by invoice_date, ordered by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[25,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[25,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[25,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[25,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-01\",2.72051282051282],[\"2009-12-02\",3.96203125],[\"2009-12-03\",5.5301351351351355],[\"2009-12-04\",3.4517391304347824],[\"2009-12-05\",5.177083333333333],[\"2009-12-06\",4.808571428571429],[\"2009-12-07\",4.810217391304348],[\"2009-12-08\",3.4964150943396226],[\"2009-12-09\",6.528656716417911],[\"2009-12-10\",5.3875],[\"2009-12-11\",5.33],[\"2009-12-13\",6.779999999999999],[\"2009-12-14\",3.92875],[\"2009-12-15\",4.311034482758621],[\"2009-12-16\",5.2171111111111115],[\"2009-12-17\",3.5878048780487806],[\"2009-12-18\",3.283023255813953],[\"2009-12-20\",4.69625],[\"2009-12-21\",3.503888888888889],[\"2009-12-22\",4.194594594594594],[\"2009-12-23\",1.7484210526315789],[\"2010-01-04\",2.852],[\"2010-01-05\",8.850000000000001],[\"2010-01-06\",3.483333333333333],[\"2010-01-07\",6.5613636363636365],[\"2010-01-08\",5.127999999999999],[\"2010-01-10\",3.492857142857143],[\"2010-01-11\",4.8264000000000005],[\"2010-01-12\",5.051176470588236],[\"2010-01-13\",3.1278571428571427],[\"2010-01-14\",3.1959999999999997],[\"2010-01-15\",4.786666666666666],[\"2010-01-17\",3.111111111111111],[\"2010-01-18\",1.318],[\"2010-01-19\",3.4444444444444446],[\"2010-01-20\",5.0256],[\"2010-01-21\",4.346333333333334],[\"2010-01-22\",7.420833333333333],[\"2010-01-24\",5.001481481481481],[\"2010-01-25\",5.774375],[\"2010-01-26\",6.3621739130434785],[\"2010-01-27\",3.857837837837838],[\"2010-01-28\",3.8642857142857143],[\"2010-01-29\",7.6421052631578945],[\"2010-01-31\",3.187777777777778],[\"2010-02-01\",4.891333333333334],[\"2010-02-02\",11.034583333333332],[\"2010-02-03\",7.993846153846154],[\"2010-02-04\",3.9166666666666665],[\"2010-02-05\",4.460769230769231],[\"2010-02-07\",1.366],[\"2010-02-08\",3.673958333333333],[\"2010-02-09\",3.363793103448276],[\"2010-02-10\",6.09608695652174],[\"2010-02-11\",3.4494999999999996],[\"2010-02-12\",2.6993333333333336],[\"2010-02-14\",6.1054545454545455],[\"2010-02-15\",3.461875],[\"2010-02-16\",7.7615384615384615],[\"2010-02-17\",3.2269565217391305],[\"2010-02-18\",4.14],[\"2010-02-19\",4.845714285714286],[\"2010-02-21\",3.2026666666666666],[\"2010-02-22\",13.505238095238095],[\"2010-02-23\",12.165000000000001],[\"2010-02-24\",4.5725],[\"2010-02-25\",5.078064516129031],[\"2010-02-26\",7.701666666666667],[\"2010-02-28\",6.396206896551725],[\"2010-03-01\",3.619761904761905],[\"2010-03-02\",3.9239130434782608],[\"2010-03-03\",4.941395348837209],[\"2010-03-04\",5.484],[\"2010-03-05\",4.3011864406779665],[\"2010-03-07\",4.392857142857143],[\"2010-03-08\",4.163018867924529],[\"2010-03-09\",4.233333333333333],[\"2010-03-10\",3.7800000000000002],[\"2010-03-11\",3.4],[\"2010-03-12\",3.9075862068965517],[\"2010-03-14\",4.085294117647059],[\"2010-03-15\",3.6954166666666666],[\"2010-03-16\",4.573529411764706],[\"2010-03-17\",5.29],[\"2010-03-18\",6.467037037037038],[\"2010-03-19\",5.763125],[\"2010-03-21\",5.262631578947368],[\"2010-03-22\",5.7272727272727275],[\"2010-03-23\",4.846071428571428],[\"2010-03-24\",27.79594594594595],[\"2010-03-25\",4.896896551724137],[\"2010-03-26\",4.722068965517241],[\"2010-03-28\",1.661111111111111],[\"2010-03-29\",5.4],[\"2010-03-30\",5.106875],[\"2010-03-31\",5.798666666666667],[\"2010-04-01\",3.6376190476190478],[\"2010-04-06\",6.061785714285714],[\"2010-04-07\",3.580952380952381],[\"2010-04-08\",3.633953488372093],[\"2010-04-09\",4.0811111111111105],[\"2010-04-11\",3.5352941176470587],[\"2010-04-12\",5.9048],[\"2010-04-13\",3.9758823529411766],[\"2010-04-14\",3.5275],[\"2010-04-15\",4.343478260869565],[\"2010-04-16\",3.2424999999999997],[\"2010-04-18\",6.4625],[\"2010-04-19\",5.490227272727273],[\"2010-04-20\",3.8612121212121213],[\"2010-04-21\",11.093333333333332],[\"2010-04-22\",3.8691666666666666],[\"2010-04-23\",7.0396875],[\"2010-04-25\",4.1832],[\"2010-04-26\",4.458333333333333],[\"2010-04-27\",4.788684210526315],[\"2010-04-28\",2.6676470588235297],[\"2010-04-29\",3.8294545454545457],[\"2010-04-30\",5.287272727272727],[\"2010-05-02\",3.3495454545454546],[\"2010-05-04\",21.055625],[\"2010-05-05\",4.58515625],[\"2010-05-06\",6.181842105263158],[\"2010-05-07\",4.078181818181818],[\"2010-05-09\",4.551860465116278],[\"2010-05-10\",5.192666666666667],[\"2010-05-11\",3.3394117647058823],[\"2010-05-12\",3.4294736842105262],[\"2010-05-13\",4.153333333333333],[\"2010-05-14\",5.752903225806452],[\"2010-05-16\",3.8899999999999997],[\"2010-05-17\",4.241666666666666],[\"2010-05-18\",4.688999999999999],[\"2010-05-19\",12.598571428571429],[\"2010-05-20\",5.417857142857143],[\"2010-05-21\",5.433333333333334],[\"2010-05-23\",2.7254166666666664],[\"2010-05-24\",3.6191666666666666],[\"2010-05-25\",6.318181818181818],[\"2010-05-26\",5.191428571428571],[\"2010-05-27\",3.364042553191489],[\"2010-05-28\",3.3024137931034483],[\"2010-05-30\",6.472222222222222],[\"2010-06-01\",3.218518518518519],[\"2010-06-02\",3.5166666666666666],[\"2010-06-03\",3.8751020408163264],[\"2010-06-04\",8.564583333333333],[\"2010-06-06\",2.895882352941176],[\"2010-06-07\",5.835428571428571],[\"2010-06-08\",4.426666666666667],[\"2010-06-09\",7.806818181818182],[\"2010-06-10\",4.289729729729729],[\"2010-06-11\",5.700357142857143],[\"2010-06-13\",3.3592156862745095],[\"2010-06-14\",4.9799999999999995],[\"2010-06-15\",4.775],[\"2010-06-16\",5.226153846153846],[\"2010-06-17\",5.282285714285714],[\"2010-06-18\",2.2765384615384616],[\"2010-06-20\",7.154166666666666],[\"2010-06-21\",4.625],[\"2010-06-22\",4.502666666666666],[\"2010-06-23\",4.193829787234042],[\"2010-06-24\",5.2316666666666665],[\"2010-06-25\",3.522222222222222],[\"2010-06-27\",3.5029729729729726],[\"2010-06-28\",5.163333333333333],[\"2010-06-29\",7.650967741935484],[\"2010-06-30\",4.4184],[\"2010-07-01\",3.708275862068965],[\"2010-07-02\",2.4499999999999997],[\"2010-07-04\",7.665000000000001],[\"2010-07-05\",4.878541666666666],[\"2010-07-06\",5.9747619047619045],[\"2010-07-07\",5.3003448275862075],[\"2010-07-08\",7.1911764705882355],[\"2010-07-09\",5.604285714285714],[\"2010-07-11\",12.4],[\"2010-07-12\",28.193076923076923],[\"2010-07-13\",5.596842105263158],[\"2010-07-14\",3.8015384615384615],[\"2010-07-15\",5.2702857142857145],[\"2010-07-16\",4.779148936170213],[\"2010-07-18\",2.4194117647058824],[\"2010-07-19\",4.682608695652174],[\"2010-07-20\",3.9695652173913043],[\"2010-07-21\",3.8663636363636367],[\"2010-07-22\",3.393103448275862],[\"2010-07-23\",2.9805555555555556],[\"2010-07-25\",4.3100000000000005],[\"2010-07-26\",3.9],[\"2010-07-27\",4.418292682926829],[\"2010-07-28\",4.186153846153847],[\"2010-07-29\",4.052105263157895],[\"2010-07-30\",4.6095],[\"2010-08-01\",3.983333333333333],[\"2010-08-02\",11.287173913043478],[\"2010-08-03\",25.232499999999998],[\"2010-08-04\",5.51625],[\"2010-08-05\",3.879166666666667],[\"2010-08-06\",3.2333333333333334],[\"2010-08-08\",4.884705882352941],[\"2010-08-09\",2.2314285714285713],[\"2010-08-10\",3.0818181818181816],[\"2010-08-11\",4.26],[\"2010-08-12\",4.825714285714286],[\"2010-08-13\",3.16093023255814],[\"2010-08-15\",3.749090909090909],[\"2010-08-16\",7.47],[\"2010-08-17\",3.806206896551724],[\"2010-08-18\",4.0213636363636365],[\"2010-08-19\",4.783714285714286],[\"2010-08-20\",4.779333333333333],[\"2010-08-22\",2.4925],[\"2010-08-23\",4.1744],[\"2010-08-24\",40.65625],[\"2010-08-25\",3.4246875],[\"2010-08-26\",2.8737037037037036],[\"2010-08-27\",4.576842105263158],[\"2010-08-29\",3.8671428571428574],[\"2010-08-31\",2.2382142857142857],[\"2010-09-01\",6.202424242424243],[\"2010-09-02\",5.824150943396226],[\"2010-09-03\",4.013333333333334],[\"2010-09-05\",3.8125806451612902],[\"2010-09-06\",3.4647058823529413],[\"2010-09-07\",3.478],[\"2010-09-08\",1.6528571428571428],[\"2010-09-09\",12.028518518518517],[\"2010-09-10\",2.8230769230769233],[\"2010-09-12\",7.59375],[\"2010-09-13\",3.6585454545454543],[\"2010-09-14\",3.79875],[\"2010-09-15\",3.71],[\"2010-09-16\",4.523684210526316],[\"2010-09-17\",6.2069230769230765],[\"2010-09-19\",4.126],[\"2010-09-20\",9.115526315789474],[\"2010-09-21\",2.5664615384615383],[\"2010-09-22\",2.1905],[\"2010-09-23\",5.944827586206896],[\"2010-09-24\",4.404166666666667],[\"2010-09-26\",3.726888888888889],[\"2010-09-27\",4.11448275862069],[\"2010-09-28\",4.348529411764706],[\"2010-09-29\",5.823095238095238],[\"2010-09-30\",4.247674418604651],[\"2010-10-01\",5.532285714285714],[\"2010-10-03\",2.175],[\"2010-10-04\",4.127096774193548],[\"2010-10-05\",4.2282142857142855],[\"2010-10-06\",5.329615384615384],[\"2010-10-07\",3.7468888888888894],[\"2010-10-08\",4.9185],[\"2010-10-10\",3.600740740740741],[\"2010-10-11\",5.312173913043479],[\"2010-10-12\",3.3680000000000003],[\"2010-10-13\",3.7789655172413794],[\"2010-10-14\",4.197857142857143],[\"2010-10-15\",3.644328358208955],[\"2010-10-17\",5.2316666666666665],[\"2010-10-18\",5.610746268656716],[\"2010-10-19\",4.564871794871795],[\"2010-10-20\",4.635],[\"2010-10-21\",9.578571428571427],[\"2010-10-22\",7.627446808510639],[\"2010-10-24\",6.59],[\"2010-10-25\",3.4874193548387096],[\"2010-10-26\",5.002083333333333],[\"2010-10-27\",5.230952380952381],[\"2010-10-28\",4.5],[\"2010-10-29\",3.6187096774193552],[\"2010-10-31\",4.5875],[\"2010-11-01\",4.381428571428572],[\"2010-11-02\",4.107843137254902],[\"2010-11-03\",8.053559322033898],[\"2010-11-04\",3.905542168674699],[\"2010-11-05\",5.822105263157894],[\"2010-11-07\",3.8487500000000003],[\"2010-11-08\",5.105263157894737],[\"2010-11-09\",5.83531914893617],[\"2010-11-10\",5.228805970149254],[\"2010-11-11\",4.20072463768116],[\"2010-11-12\",3.557777777777778],[\"2010-11-14\",5.579166666666667],[\"2010-11-15\",4.5877083333333335],[\"2010-11-16\",5.554918032786886],[\"2010-11-17\",9.325949367088608],[\"2010-11-18\",4.217205882352941],[\"2010-11-19\",9.227719298245614],[\"2010-11-21\",4.131944444444445],[\"2010-11-22\",4.045818181818182],[\"2010-11-23\",3.594310344827586],[\"2010-11-24\",5.853888888888889],[\"2010-11-25\",4.2700000000000005],[\"2010-11-26\",3.2171428571428575],[\"2010-11-28\",8.679777777777778],[\"2010-11-29\",4.6557894736842105],[\"2010-11-30\",2.8070886075949364],[\"2010-12-01\",3.9352941176470586],[\"2010-12-02\",2.6269026548672563],[\"2010-12-03\",4.589166666666667],[\"2010-12-05\",4.727435897435898],[\"2010-12-06\",3.323793103448276],[\"2010-12-07\",4.073055555555555],[\"2010-12-08\",4.102247191011236],[\"2010-12-09\",3.65041237113402],[\"2010-12-10\",3.8],[\"2010-12-12\",5.776842105263158],[\"2010-12-13\",2.992],[\"2010-12-14\",3.670375],[\"2010-12-15\",4.219285714285714],[\"2010-12-16\",4.598376068376068],[\"2010-12-17\",4.071228070175438],[\"2010-12-19\",3.225],[\"2010-12-20\",3.128974358974359],[\"2010-12-21\",4.002285714285715],[\"2010-12-22\",2.378823529411765],[\"2010-12-23\",2.6723076923076925],[\"2011-01-04\",3.4763636363636365],[\"2011-01-05\",3.6233333333333335],[\"2011-01-06\",2.231666666666667],[\"2011-01-07\",4.9075],[\"2011-01-09\",4.013461538461538],[\"2011-01-10\",4.251111111111111],[\"2011-01-11\",3.7800000000000002],[\"2011-01-12\",11.445172413793104],[\"2011-01-13\",2.698],[\"2011-01-14\",4.263513513513513],[\"2011-01-16\",3.67],[\"2011-01-17\",2.96725],[\"2011-01-18\",3.492857142857143],[\"2011-01-19\",3.5944444444444446],[\"2011-01-20\",3.0284444444444443],[\"2011-01-21\",4.725714285714285],[\"2011-01-23\",7.772],[\"2011-01-24\",3.737027027027027],[\"2011-01-25\",3.2453846153846153],[\"2011-01-26\",3.8625000000000003],[\"2011-01-27\",4.348648648648648],[\"2011-01-28\",5.367],[\"2011-01-30\",2.21],[\"2011-01-31\",4.283714285714286],[\"2011-02-01\",4.221904761904762],[\"2011-02-02\",2.3649999999999998],[\"2011-02-03\",4.607777777777778],[\"2011-02-04\",10.738095238095237],[\"2011-02-07\",4.417419354838709],[\"2011-02-08\",2.881875],[\"2011-02-09\",5.153076923076923],[\"2011-02-10\",8.178823529411764],[\"2011-02-11\",9.467586206896552],[\"2011-02-13\",3.446],[\"2011-02-14\",4.4559999999999995],[\"2011-02-15\",3.191470588235294],[\"2011-02-16\",2.688727272727273],[\"2011-02-17\",3.1310526315789473],[\"2011-02-18\",2.8596875],[\"2011-02-20\",4.406666666666666],[\"2011-02-21\",3.8955555555555557],[\"2011-02-22\",2.707241379310345],[\"2011-02-23\",4.465185185185185],[\"2011-02-24\",3.9556],[\"2011-02-25\",3.5707500000000003],[\"2011-02-27\",3.0338461538461536],[\"2011-02-28\",13.613333333333335],[\"2011-03-01\",18.93618181818182],[\"2011-03-02\",3.099411764705882],[\"2011-03-03\",5.574871794871795],[\"2011-03-04\",4.125581395348838],[\"2011-03-06\",4.07125],[\"2011-03-07\",9.83235294117647],[\"2011-03-08\",4.547575757575757],[\"2011-03-09\",4.570888888888889],[\"2011-03-10\",4.258372093023255],[\"2011-03-11\",4.782653061224489],[\"2011-03-14\",3.3762857142857143],[\"2011-03-15\",4.416842105263158],[\"2011-03-16\",3.377608695652174],[\"2011-03-17\",2.7523529411764707],[\"2011-03-18\",3.907758620689655],[\"2011-03-20\",4.387076923076924],[\"2011-03-21\",2.468936170212766],[\"2011-03-22\",2.539375],[\"2011-03-23\",4.136818181818182],[\"2011-03-24\",2.6779166666666665],[\"2011-03-25\",2.6782051282051285],[\"2011-03-27\",5.429047619047619],[\"2011-03-28\",8.715116279069768],[\"2011-03-29\",3.678421052631579],[\"2011-03-30\",3.1910000000000003],[\"2011-03-31\",5.062413793103448],[\"2011-04-01\",3.7162162162162162],[\"2011-04-03\",2.9942105263157894],[\"2011-04-04\",193.91809523809525],[\"2011-04-05\",6.400434782608696],[\"2011-04-06\",3.335],[\"2011-04-07\",3.9801886792452827],[\"2011-04-08\",4.110746268656716],[\"2011-04-10\",6.1],[\"2011-04-11\",3.061086956521739],[\"2011-04-12\",3.4103125],[\"2011-04-13\",3.957441860465116],[\"2011-04-14\",3.1911688311688313],[\"2011-04-15\",5.851666666666667],[\"2011-04-17\",3.1614285714285715],[\"2011-04-18\",3.151875],[\"2011-04-19\",2.2485],[\"2011-04-20\",3.354807692307692],[\"2011-04-21\",3.618360655737705],[\"2011-04-26\",4.076724137931034],[\"2011-04-27\",3.9739285714285715],[\"2011-04-28\",11.274912280701754],[\"2011-05-01\",4.1899999999999995],[\"2011-05-03\",5.665636363636364],[\"2011-05-04\",3.4808474576271187],[\"2011-05-05\",4.682061855670104],[\"2011-05-06\",4.879830508474576],[\"2011-05-08\",2.656875],[\"2011-05-09\",3.6853846153846157],[\"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-22\",3.953095238095238],[\"2011-05-23\",4.1470769230769235],[\"2011-05-24\",5.244647887323944],[\"2011-05-25\",2.7404761904761905],[\"2011-05-26\",6.34875],[\"2011-05-27\",3.2464814814814815],[\"2011-05-29\",2.6258333333333335],[\"2011-05-31\",4.00578947368421],[\"2011-06-01\",3.951935483870968],[\"2011-06-02\",3.872666666666667],[\"2011-06-03\",4.091875],[\"2011-06-05\",4.384444444444444],[\"2011-06-06\",3.3066666666666666],[\"2011-06-07\",3.1623636363636365],[\"2011-06-08\",3.4485074626865675],[\"2011-06-09\",4.249818181818182],[\"2011-06-10\",4.9411538461538465],[\"2011-06-12\",8.834999999999999],[\"2011-06-13\",3.351666666666667],[\"2011-06-14\",3.204],[\"2011-06-15\",4.550869565217392],[\"2011-06-16\",2.857894736842105],[\"2011-06-17\",3.221388888888889],[\"2011-06-19\",2.338214285714286],[\"2011-06-20\",68.40395833333334],[\"2011-06-21\",4.466969696969697],[\"2011-06-22\",2.8235],[\"2011-06-23\",2.592608695652174],[\"2011-06-24\",3.056190476190476],[\"2011-06-26\",7.047142857142857],[\"2011-06-27\",1.997391304347826],[\"2011-06-28\",3.094791666666667],[\"2011-06-29\",4.336129032258064],[\"2011-06-30\",11.425142857142857],[\"2011-07-01\",6.5818518518518525],[\"2011-07-03\",4.398888888888889],[\"2011-07-04\",3.787352941176471],[\"2011-07-05\",3.169655172413793],[\"2011-07-06\",2.4479661016949152],[\"2011-07-07\",3.8013793103448275],[\"2011-07-08\",9.609473684210528],[\"2011-07-10\",1.158],[\"2011-07-11\",2.9802631578947367],[\"2011-07-12\",2.1441666666666666],[\"2011-07-13\",4.7070454545454545],[\"2011-07-14\",4.534042553191489],[\"2011-07-15\",3.6704761904761902],[\"2011-07-17\",4.009318181818181],[\"2011-07-18\",6.26],[\"2011-07-19\",2.4946153846153845],[\"2011-07-20\",3.513157894736842],[\"2011-07-21\",3.5733333333333333],[\"2011-07-22\",2.7065],[\"2011-07-24\",3.548],[\"2011-07-25\",4.229846153846154],[\"2011-07-26\",3.9724242424242426],[\"2011-07-27\",3.635714285714286],[\"2011-07-28\",3.4259770114942527],[\"2011-07-29\",3.1955263157894733],[\"2011-07-31\",3.5477272727272724],[\"2011-08-01\",1.7383333333333333],[\"2011-08-02\",2.110625],[\"2011-08-03\",3.338],[\"2011-08-04\",4.298450704225352],[\"2011-08-05\",3.5256],[\"2011-08-07\",2.40425],[\"2011-08-08\",5.336666666666667],[\"2011-08-09\",4.949642857142857],[\"2011-08-10\",3.603548387096774],[\"2011-08-11\",4.168913043478261],[\"2011-08-12\",3.010625],[\"2011-08-14\",7.559565217391304],[\"2011-08-15\",1.7810344827586206],[\"2011-08-16\",3.183170731707317],[\"2011-08-17\",1.4523529411764706],[\"2011-08-18\",3.2051282051282053],[\"2011-08-19\",3.1640476190476186],[\"2011-08-21\",2.590909090909091],[\"2011-08-22\",3.0494736842105263],[\"2011-08-23\",2.520487804878049],[\"2011-08-24\",2.576911764705882],[\"2011-08-25\",5.572105263157895],[\"2011-08-26\",7.153333333333332],[\"2011-08-28\",2.4464705882352944],[\"2011-08-30\",5.129130434782609],[\"2011-08-31\",6.927],[\"2011-09-01\",2.5911940298507465],[\"2011-09-02\",2.1298305084745763],[\"2011-09-04\",3.2022857142857144],[\"2011-09-05\",2.4376666666666664],[\"2011-09-06\",3.9920338983050847],[\"2011-09-07\",3.5068421052631575],[\"2011-09-08\",4.061525423728813],[\"2011-09-09\",5.030487804878049],[\"2011-09-11\",2.3823529411764706],[\"2011-09-12\",2.321632653061225],[\"2011-09-13\",5.619047619047619],[\"2011-09-14\",2.93472972972973],[\"2011-09-15\",5.052307692307692],[\"2011-09-16\",3.0852173913043477],[\"2011-09-18\",2.9166666666666665],[\"2011-09-19\",2.638723404255319],[\"2011-09-20\",3.5164],[\"2011-09-21\",2.999166666666667],[\"2011-09-22\",3.7895774647887324],[\"2011-09-23\",4.655714285714286],[\"2011-09-25\",4.3684375],[\"2011-09-26\",2.5783870967741938],[\"2011-09-27\",3.0764285714285715],[\"2011-09-28\",3.3638636363636363],[\"2011-09-29\",3.0076315789473687],[\"2011-09-30\",4.004222222222222],[\"2011-10-02\",4.260769230769231],[\"2011-10-03\",11.823823529411765],[\"2011-10-04\",3.790731707317073],[\"2011-10-05\",4.818153846153846],[\"2011-10-06\",3.0617441860465116],[\"2011-10-07\",2.755084745762712],[\"2011-10-09\",4.926666666666667],[\"2011-10-10\",3.521698113207547],[\"2011-10-11\",4.1001666666666665],[\"2011-10-12\",3.6183050847457627],[\"2011-10-13\",3.356346153846154],[\"2011-10-14\",3.273823529411765],[\"2011-10-17\",3.346923076923077],[\"2011-10-18\",4.432894736842106],[\"2011-10-19\",83.71802631578947],[\"2011-10-20\",3.0166666666666666],[\"2011-10-21\",4.407619047619048],[\"2011-10-23\",3.3579999999999997],[\"2011-10-24\",3.1915625],[\"2011-10-25\",10.853333333333333],[\"2011-10-26\",4.0545],[\"2011-10-27\",4.249705882352941],[\"2011-10-28\",3.419166666666667],[\"2011-10-30\",4.3769230769230765],[\"2011-10-31\",2.597872340425532],[\"2011-11-01\",3.6906818181818184],[\"2011-11-02\",2.503448275862069],[\"2011-11-03\",4.130909090909091],[\"2011-11-04\",3.040392156862745],[\"2011-11-06\",3.7903278688524593],[\"2011-11-07\",5.018450704225352],[\"2011-11-08\",3.167042253521127],[\"2011-11-09\",3.15],[\"2011-11-10\",15.689545454545454],[\"2011-11-11\",2.4724444444444447],[\"2011-11-13\",3.878064516129032],[\"2011-11-14\",3.2497674418604654],[\"2011-11-15\",3.0860256410256413],[\"2011-11-16\",5.15578431372549],[\"2011-11-17\",4.661818181818181],[\"2011-11-18\",4.1925],[\"2011-11-20\",2.1726190476190474],[\"2011-11-21\",3.352909090909091],[\"2011-11-22\",2.8920454545454546],[\"2011-11-23\",3.3629347826086957],[\"2011-11-24\",2.4713333333333334],[\"2011-11-25\",4.415],[\"2011-11-27\",3.4442857142857144],[\"2011-11-28\",2.5276315789473682],[\"2011-11-29\",4.47375],[\"2011-11-30\",3.5234000000000005],[\"2011-12-01\",3.40796875],[\"2011-12-02\",4.078823529411765],[\"2011-12-04\",3.1936170212765957],[\"2011-12-05\",5.610824742268041],[\"2011-12-06\",3.2925454545454547],[\"2011-12-07\",2.9996610169491524],[\"2011-12-08\",3.3912],[\"2011-12-09\",4.8088235294117645]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC","sql_parameters":"[25,\"2010-12-02\"]","state":"{\"question\":\"Return the average of unit_price for retail invoice lines where (quantity is at most 25 or invoice_date is on or after '2010-12-02'), 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\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1058{"category":"join/null/ranked","domain":"commerce","family_id":"f5f5fed5c5702060b96f086f","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"139c6abe57dfdd4e88a3b258f7031325bfb97e37600610e979b278e641b1da5d","language":"en","license":"CC-BY-4.0","query":"Return the average of l.unit_price for retail lines joined to their invoices where (i.customer_id is present), grouped by i.country; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT i.country, AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id IS NOT NULL) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id IS NOT NULL) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT i.country, AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id IS NOT NULL) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[],\\\"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.customer_id IS NOT NULL) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Singapore\",1684.305],[\"United Arab Emirates\",134.0],[\"Norway\",58.2],[\"Finland\",11.211095890410958],[\"Austria\",11.071666666666665]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id IS NOT NULL) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 5","sql_parameters":"[]","state":"{\"question\":\"Return the average of l.unit_price for retail lines joined to their invoices where (i.customer_id is present), grouped by i.country; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1059{"category":"single_table/ranked","domain":"sensor","family_id":"80eaf7cd3f3d22bf892de9d4","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"d041463ad0b313991014e503a6f031407870237bcf94c2a4cda4bb1084940073","language":"en","license":"CC-BY-4.0","query":"Return the minimum of fs1_mean for hydraulic cycles where (eps1_mean is greater than 2449.13677), grouped by pump_leakage; return at most 3 groups ordered by aggregate value ASC, breaking ties by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2449.13677],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(fs1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2449.13677],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (eps1_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2449.13677],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(fs1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2449.13677],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[2,2.01857],[1,2.07884],[0,2.12356]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, MIN(fs1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3","sql_parameters":"[2449.13677]","state":"{\"question\":\"Return the minimum of fs1_mean for hydraulic cycles where (eps1_mean is greater than 2449.13677), 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\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1060{"category":"single_table/having","domain":"sensor","family_id":"08dbb9f9f73840ec2728df7c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"34f1ed9354445fdfbb4b5a14eaab41ffa6d099c3d6866b0f9ecf2830134c4ee1","language":"en","license":"CC-BY-4.0","query":"Return the maximum of fs1_mean for hydraulic cycles where (ps2_mean is greater than 105.7255), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[105.7255,2],\\\"sql\\\":\\\"SELECT cooler, MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value ASC, cooler ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[105.7255,2],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps2_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[105.7255,2],\\\"sql\\\":\\\"SELECT cooler, SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[105.7255,2],\\\"sql\\\":\\\"SELECT cooler, MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[100,6.72271],[3,6.72056],[20,6.69124]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5","sql_parameters":"[105.7255,2]","state":"{\"question\":\"Return the maximum of fs1_mean for hydraulic cycles where (ps2_mean is greater than 105.7255), 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_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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1061{"category":"join/date/or/aggregate","domain":"commerce","family_id":"ae411684122369f4ae7844e5","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"974cb8b5384cb7228fbbd90691ed5caa8a4eb3fac967ee18dbca17cf74d22fc5","language":"en","license":"CC-BY-4.0","query":"Return the minimum of l.unit_price for retail lines joined to their invoices where (l.quantity is greater than 25 or i.invoice_date is on or after '2010-02-18').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[25,\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) 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\\\":[25,\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT MIN(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 >= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[25,\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT SUM(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 >= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[25,\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT 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 >= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0.04]]","source":"online_retail_ii","split":"dev","sql":"SELECT MIN(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 >= ?)","sql_parameters":"[25,\"2010-02-18\"]","state":"{\"question\":\"Return the minimum of l.unit_price for retail lines joined to their invoices where (l.quantity is greater than 25 or i.invoice_date is on or after '2010-02-18').\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1062{"category":"join/null/date/and/grouped","domain":"commerce","family_id":"fbba72deff72ee667c9b63b5","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"4ffb8fe4bbdb3ec88c497e14cdcd54086c4b6455ef2268e8e0012d6a39ec3097","language":"en","license":"CC-BY-4.0","query":"Return the minimum of l.unit_price for retail lines joined to their invoices where (i.invoice_date is before '2010-07-14' and i.customer_id is present), grouped by i.country, ordered by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT i.country, MIN(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.invoice_date < ? AND i.customer_id IS NOT NULL) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT i.country, MIN(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.invoice_date < ? OR i.customer_id IS NOT NULL) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.invoice_date < ? AND i.customer_id IS NOT NULL) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\"],\\\"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 < ? AND i.customer_id IS NOT NULL) GROUP BY i.country ORDER BY i.country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",0.85],[\"Austria\",1.25],[\"Belgium\",1.65],[\"Channel Islands\",1.65],[\"Cyprus\",0.34],[\"Denmark\",3.39],[\"EIRE\",0.21],[\"Finland\",3.39],[\"France\",0.38],[\"Germany\",0.42],[\"Japan\",1.65],[\"Netherlands\",0.55],[\"Portugal\",0.29],[\"Spain\",0.85],[\"Sweden\",0.09],[\"Switzerland\",1.85],[\"USA\",2.55],[\"United Kingdom\",0.06]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, MIN(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.invoice_date < ? AND i.customer_id IS NOT NULL) GROUP BY i.country ORDER BY i.country ASC","sql_parameters":"[\"2010-07-14\"]","state":"{\"question\":\"Return the minimum of l.unit_price for retail lines joined to their invoices where (i.invoice_date is before '2010-07-14' and i.customer_id is present), grouped by i.country, ordered by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1063{"category":"join/date/having","domain":"commerce","family_id":"def637983f9f30b35e1190c4","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"54449aed7abf877ef54d79150adf361cadf6e101b33650e0914c3b997a63362f","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail lines joined to their invoices where (i.invoice_date is before '2011-09-29'), grouped by i.invoice_date, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2011-09-29\\\",2],\\\"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 HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2011-09-29\\\",2],\\\"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 HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2011-09-29\\\",2],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.invoice_date < ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2011-09-29\\\",2],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.invoice_date < ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-12-01\",248],[\"2010-12-02\",226],[\"2010-12-09\",194],[\"2010-12-08\",178],[\"2010-12-07\",144]]","source":"online_retail_ii","split":"dev","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 HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5","sql_parameters":"[\"2011-09-29\",2]","state":"{\"question\":\"Return the number of rows for retail lines joined to their invoices where (i.invoice_date is before '2011-09-29'), grouped by i.invoice_date, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1064{"category":"single_table/date/or/having","domain":"commerce","family_id":"38a9c181eb5c70604e39eab3","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"fc099e45dd55bba7e22963578a106b9b678a6e5da4f963a5afcd462372d24b58","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail invoice lines where (quantity is greater than 229 or invoice_date is on or after '2011-05-10'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[229,\\\"2011-05-10\\\",10],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (quantity > ? AND invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[229,\\\"2011-05-10\\\",10],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (quantity > ? OR invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[229,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (quantity > ? OR invoice_date >= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[229,\\\"2011-05-10\\\",10],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (quantity > ? OR invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Denmark\",11],[\"Channel Islands\",12],[\"Japan\",12]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (quantity > ? OR invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3","sql_parameters":"[229,\"2011-05-10\",10]","state":"{\"question\":\"Return the number of rows for retail invoice lines where (quantity is greater than 229 or invoice_date is on or after '2011-05-10'), 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\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1065{"category":"single_table/or/aggregate","domain":"commerce","family_id":"f68057e8cac0f017e32f4acc","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"b8c2b35abf319056d6f6711cd76b1d8d1e5cdeea2898f527fba30ebf2e0a9cd2","language":"en","license":"CC-BY-4.0","query":"Return the sum of quantity for retail invoice lines where (country equals 'Austria' or quantity is at most 92).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Austria\\\",92],\\\"sql\\\":\\\"SELECT SUM(quantity) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Austria\\\",92],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Austria\\\",92],\\\"sql\\\":\\\"SELECT SUM(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Austria\\\",92],\\\"sql\\\":\\\"SELECT AVG(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[373586]]","source":"online_retail_ii","split":"dev","sql":"SELECT SUM(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?)","sql_parameters":"[\"Austria\",92]","state":"{\"question\":\"Return the sum of quantity for retail invoice lines where (country equals 'Austria' or quantity is at most 92).\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1066{"category":"single_table/or/having","domain":"sensor","family_id":"7c7bf787e78a24a67444c469","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"f371d6c6c703b204d855eb2c012f0a56a68c972ba64d2ca6701ee5723def9cb0","language":"en","license":"CC-BY-4.0","query":"Return the maximum of vs1_mean for hydraulic cycles where (ps1_mean is at most 172.56377 or ts1_mean is greater than 52.59775), grouped by pump_leakage, keeping only groups with at least 10 matching rows; return at most 3 groups ordered by aggregate value ASC, breaking ties by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[172.56377,52.59775,10],\\\"sql\\\":\\\"SELECT pump_leakage, MAX(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? AND ts1_mean > ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[172.56377,52.59775,10],\\\"sql\\\":\\\"SELECT pump_leakage, MAX(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR ts1_mean > ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[172.56377,52.59775,10],\\\"sql\\\":\\\"SELECT pump_leakage, MAX(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR ts1_mean > ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[172.56377,52.59775,10],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR ts1_mean > ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value ASC, pump_leakage ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1,0.77482],[2,0.80637],[0,0.83907]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, MAX(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR ts1_mean > ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value ASC, pump_leakage ASC LIMIT 3","sql_parameters":"[172.56377,52.59775,10]","state":"{\"question\":\"Return the maximum of vs1_mean for hydraulic cycles where (ps1_mean is at most 172.56377 or ts1_mean is greater than 52.59775), grouped by pump_leakage, keeping only groups with at least 10 matching rows; 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\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1067{"category":"single_table/and/ranked","domain":"commerce","family_id":"763a3eee0da4967b0e95708e","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"c03af61492739b251dfc1815fa11d491a5aa874e30f760889e6311c17cded954","language":"en","license":"CC-BY-4.0","query":"Return the maximum of quantity for retail invoice lines where (country equals 'Cyprus' and unit_price is at most 8.5), grouped by country; return at most 5 groups ordered by aggregate value DESC, breaking ties by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",8.5],\\\"sql\\\":\\\"SELECT country, MAX(quantity) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",8.5],\\\"sql\\\":\\\"SELECT country, MAX(quantity) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",8.5],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",8.5],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Cyprus\",200]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, MAX(quantity) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5","sql_parameters":"[\"Cyprus\",8.5]","state":"{\"question\":\"Return the maximum of quantity for retail invoice lines where (country equals 'Cyprus' and unit_price is at most 8.5), 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\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1068{"category":"join/date/or/grouped","domain":"commerce","family_id":"7144a41ce0f682dc409125d7","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"2b813ec9c12dc44babc38cbe269fc2e025d465dd0e140d94f0d83e249f2e5a71","language":"en","license":"CC-BY-4.0","query":"Return the maximum of l.quantity for retail lines joined to their invoices where (l.unit_price is at most 49.95 or i.invoice_date is before '2011-05-10'), grouped by i.country, ordered by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[49.95,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT i.country, MAX(l.quantity) 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\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[49.95,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT i.country, MAX(l.quantity) 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_3\":\"{\\\"parameters\\\":[49.95,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) 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_4\":\"{\\\"parameters\\\":[49.95,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) 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\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",100],[\"Austria\",48],[\"Bahrain\",24],[\"Belgium\",272],[\"Canada\",16],[\"Channel Islands\",200],[\"Cyprus\",200],[\"Denmark\",256],[\"EIRE\",1440],[\"Finland\",144],[\"France\",576],[\"Germany\",288],[\"Israel\",12],[\"Italy\",96],[\"Japan\",576],[\"Netherlands\",576],[\"Norway\",24],[\"Poland\",48],[\"Portugal\",60],[\"Singapore\",1],[\"Spain\",560],[\"Sweden\",1440],[\"Switzerland\",144],[\"USA\",12],[\"United Arab Emirates\",1],[\"United Kingdom\",10000]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, MAX(l.quantity) 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","sql_parameters":"[49.95,\"2011-05-10\"]","state":"{\"question\":\"Return the maximum of l.quantity for retail lines joined to their invoices where (l.unit_price is at most 49.95 or i.invoice_date is before '2011-05-10'), grouped by i.country, ordered by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1069{"category":"single_table/date/having","domain":"commerce","family_id":"a4f439e20c1457a43e1ef2c0","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"5fe6884fe315f6ad368596ec25a348b6d8cd9288bd4843d4c1832f953caddb07","language":"en","license":"CC-BY-4.0","query":"Return the average of quantity for retail invoice lines where (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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\",10],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\",10],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\",10],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Norway\",7.125],[\"Bahrain\",8.818181818181818],[\"Portugal\",10.176470588235293]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3","sql_parameters":"[\"2010-02-18\",10]","state":"{\"question\":\"Return the average of quantity for retail invoice lines where (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.\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1070{"category":"join/having","domain":"commerce","family_id":"03967319de7002ef3007ecff","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"36ad3de68544ff1281b9c2b556f79559effaf371963c6214f4716c34c68c69f4","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail lines joined to their invoices where (i.country equals 'Canada'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Canada\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[10],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Canada\\\",10],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Canada\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3","sql_parameters":"[\"Canada\",10]","state":"{\"question\":\"Return the number of rows for retail lines joined to their invoices where (i.country equals 'Canada'), 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_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1071{"category":"single_table/and/grouped","domain":"commerce","family_id":"399a2180e3c6cf8e978e6bb5","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"6b123e9584aa491baf01c34ce370d4982ed09039206927ab34fb71ce99ec02e4","language":"en","license":"CC-BY-4.0","query":"Return the minimum of quantity for retail invoice lines where (country equals 'Austria' and unit_price is greater than 2.25), grouped by country, ordered by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Austria\\\",2.25],\\\"sql\\\":\\\"SELECT country, MIN(quantity) AS value FROM retail_lines WHERE (country = ? OR unit_price > ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Austria\\\",2.25],\\\"sql\\\":\\\"SELECT country, MIN(quantity) AS value FROM retail_lines WHERE (country = ? AND unit_price > ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Austria\\\",2.25],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND unit_price > ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Austria\\\",2.25],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (country = ? AND unit_price > ?) GROUP BY country ORDER BY country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Austria\",1]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, MIN(quantity) AS value FROM retail_lines WHERE (country = ? AND unit_price > ?) GROUP BY country ORDER BY country ASC","sql_parameters":"[\"Austria\",2.25]","state":"{\"question\":\"Return the minimum of quantity for retail invoice lines where (country equals 'Austria' and unit_price is greater than 2.25), 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\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1072{"category":"single_table/or/grouped","domain":"commerce","family_id":"170f6b00b500f1af72cb59b7","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"46f499b442b4fe88572acae41aca43b91c5674951ec71fd6fbe201d44284f31d","language":"en","license":"CC-BY-4.0","query":"Return the average of quantity for retail invoice lines where (country equals 'Australia' or quantity is at most 229), grouped by country, ordered by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Australia\\\",229],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Australia\\\",229],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Australia\\\",229],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Australia\\\",229],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?) GROUP BY country ORDER BY country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",15.127659574468085],[\"Austria\",12.722222222222221],[\"Bahrain\",8.818181818181818],[\"Belgium\",9.466666666666667],[\"Canada\",10.4],[\"Channel Islands\",103.41666666666667],[\"Cyprus\",47.125],[\"Denmark\",29.615384615384617],[\"EIRE\",33.134715025906736],[\"Finland\",38.35616438356164],[\"France\",22.717299578059073],[\"Germany\",18.168278529980658],[\"Israel\",4.25],[\"Italy\",18.4],[\"Japan\",29.357142857142858],[\"Netherlands\",51.857142857142854],[\"Norway\",7.125],[\"Poland\",26.166666666666668],[\"Portugal\",10.428571428571429],[\"Singapore\",1.0],[\"Spain\",37.72164948453608],[\"Sweden\",51.76190476190476],[\"Switzerland\",25.7027027027027],[\"USA\",12.0],[\"United Arab Emirates\",1.0],[\"United Kingdom\",26.14043021266194]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?) GROUP BY country ORDER BY country ASC","sql_parameters":"[\"Australia\",229]","state":"{\"question\":\"Return the average of quantity for retail invoice lines where (country equals 'Australia' or quantity is at most 229), 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\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1073{"category":"join/or/grouped","domain":"commerce","family_id":"b6a76e2dd246f6cf5efae46d","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"18c126b75591ef2d8c9affa9efb2fe07be3588ff32abefdeea5b40034f015871","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.quantity for retail lines joined to their invoices where (i.country equals 'EIRE' or l.quantity is at most 229), grouped by i.country, ordered by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"EIRE\\\",229],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND l.quantity <= ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"EIRE\\\",229],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR l.quantity <= ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"EIRE\\\",229],\\\"sql\\\":\\\"SELECT i.country, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR l.quantity <= ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"EIRE\\\",229],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR l.quantity <= ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",711],[\"Austria\",229],[\"Bahrain\",97],[\"Belgium\",710],[\"Canada\",52],[\"Channel Islands\",2482],[\"Cyprus\",754],[\"Denmark\",385],[\"EIRE\",13495],[\"Finland\",2800],[\"France\",5384],[\"Germany\",9393],[\"Israel\",34],[\"Italy\",276],[\"Japan\",411],[\"Netherlands\",5808],[\"Norway\",114],[\"Poland\",157],[\"Portugal\",219],[\"Singapore\",6],[\"Spain\",3659],[\"Sweden\",4348],[\"Switzerland\",951],[\"USA\",36],[\"United Arab Emirates\",2],[\"United Kingdom\",641643]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR l.quantity <= ?) GROUP BY i.country ORDER BY i.country ASC","sql_parameters":"[\"EIRE\",229]","state":"{\"question\":\"Return the sum of l.quantity for retail lines joined to their invoices where (i.country equals 'EIRE' or l.quantity is at most 229), grouped by i.country, ordered by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1074{"category":"single_table/or/ranked","domain":"commerce","family_id":"8e673ae16516e5331133882e","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"d7d4dc7447ba47cab9928b8780081b4e5a027c3f8223c8eb95287b275dc2104e","language":"en","license":"CC-BY-4.0","query":"Return the minimum of unit_price for retail invoice lines where (quantity is greater than 92 or unit_price is greater than 2.25), grouped by invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[92,2.25],\\\"sql\\\":\\\"SELECT invoice_date, MIN(unit_price) AS value FROM retail_lines WHERE (quantity > ? OR unit_price > ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[92,2.25],\\\"sql\\\":\\\"SELECT invoice_date, MIN(unit_price) AS value FROM retail_lines WHERE (quantity > ? AND unit_price > ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[92,2.25],\\\"sql\\\":\\\"SELECT invoice_date, MIN(unit_price) AS value FROM retail_lines WHERE (quantity > ? OR unit_price > ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[92,2.25],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (quantity > ? OR unit_price > ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-09-16\",0.04],[\"2011-09-30\",0.04],[\"2011-10-19\",0.04]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MIN(unit_price) AS value FROM retail_lines WHERE (quantity > ? OR unit_price > ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3","sql_parameters":"[92,2.25]","state":"{\"question\":\"Return the minimum of unit_price for retail invoice lines where (quantity is greater than 92 or unit_price is greater than 2.25), grouped by invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by invoice_date ascending.\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1075{"category":"join/null/date/or/having","domain":"commerce","family_id":"0e3bf92de14ff75dbad24047","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"705d3ee485ca226c04bb7803a8f6d2f7ebcbb84a4cddfc639907189e691a8ed2","language":"en","license":"CC-BY-4.0","query":"Return the minimum of l.unit_price for retail lines joined to their invoices where (i.invoice_date is before '2010-12-02' or i.customer_id is present), grouped by i.invoice_date, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\",2],\\\"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.invoice_date < ? OR i.customer_id IS NOT NULL) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\",2],\\\"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.invoice_date < ? AND i.customer_id IS NOT NULL) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\",2],\\\"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.invoice_date < ? OR i.customer_id IS NOT NULL) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\",2],\\\"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 < ? OR i.customer_id IS NOT NULL) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-07-11\",8.5],[\"2011-01-16\",3.39],[\"2011-08-31\",1.79],[\"2010-02-23\",1.69],[\"2010-10-17\",1.69]]","source":"online_retail_ii","split":"dev","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.invoice_date < ? OR i.customer_id IS NOT NULL) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5","sql_parameters":"[\"2010-12-02\",2]","state":"{\"question\":\"Return the minimum of l.unit_price for retail lines joined to their invoices where (i.invoice_date is before '2010-12-02' or i.customer_id is present), grouped by i.invoice_date, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1076{"category":"single_table/or/having","domain":"commerce","family_id":"90658c0bac1ace5987e37a6d","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"7bd7386a07dd04d10e683837465cdfa6f586496a6050d994595e73386f742bbc","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail invoice lines where (quantity is greater than 92 or unit_price is greater than 4.77), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[92,4.77,2],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (quantity > ? AND unit_price > ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[92,4.77,2],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (quantity > ? OR unit_price > ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[92,4.77,2],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (quantity > ? OR unit_price > ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[92,4.77,2],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (quantity > ? OR unit_price > ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-12-01\",72],[\"2010-12-07\",64],[\"2010-12-02\",56],[\"2010-12-08\",56],[\"2010-12-09\",56]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (quantity > ? OR unit_price > ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5","sql_parameters":"[92,4.77,2]","state":"{\"question\":\"Return the number of rows for retail invoice lines where (quantity is greater than 92 or unit_price is greater than 4.77), 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\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1077{"category":"single_table/or/grouped","domain":"commerce","family_id":"3b248adbfdbc6979b287cc81","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"35cfefc058765525c447699eec9267855fe303dd2acb0a9fdd0ee865fa4e5b1e","language":"en","license":"CC-BY-4.0","query":"Return the sum of product_related for shopping sessions where (visitor_type equals 'Returning_Visitor' or traffic_type equals 16), grouped by visitor_type, ordered by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Returning_Visitor\\\",16],\\\"sql\\\":\\\"SELECT visitor_type, SUM(product_related) AS value FROM shopping_sessions WHERE (visitor_type = ? OR traffic_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Returning_Visitor\\\",16],\\\"sql\\\":\\\"SELECT visitor_type, SUM(product_related) AS value FROM shopping_sessions WHERE (visitor_type = ? AND traffic_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Returning_Visitor\\\",16],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (visitor_type = ? OR traffic_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Returning_Visitor\\\",16],\\\"sql\\\":\\\"SELECT visitor_type, AVG(product_related) AS value FROM shopping_sessions WHERE (visitor_type = ? OR traffic_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"New_Visitor\",16],[\"Returning_Visitor\",359604]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, SUM(product_related) AS value FROM shopping_sessions WHERE (visitor_type = ? OR traffic_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC","sql_parameters":"[\"Returning_Visitor\",16]","state":"{\"question\":\"Return the sum of product_related for shopping sessions where (visitor_type equals 'Returning_Visitor' or traffic_type equals 16), grouped by visitor_type, ordered by visitor_type ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}1078{"category":"join/date/or/aggregate","domain":"commerce","family_id":"ae411684122369f4ae7844e5","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"026daa4c9287bd46a8fc5021030326224027a713873f7e8ac9e0a9a7774d5427","language":"en","license":"CC-BY-4.0","query":"Return the minimum of l.unit_price for retail lines joined to their invoices where (l.quantity is greater than 648 or i.invoice_date is on or after '2010-07-14').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[648,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT MIN(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 >= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[648,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT MIN(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 >= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[648,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ? OR i.invoice_date >= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[648,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT SUM(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 >= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0.04]]","source":"online_retail_ii","split":"dev","sql":"SELECT MIN(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 >= ?)","sql_parameters":"[648,\"2010-07-14\"]","state":"{\"question\":\"Return the minimum of l.unit_price for retail lines joined to their invoices where (l.quantity is greater than 648 or i.invoice_date is on or after '2010-07-14').\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1079{"category":"single_table/or/ranked","domain":"commerce","family_id":"b0b5bb868d43b3b23cfb8e8a","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"a58c4c72045fdc5b65a9eea465cdb2752959e0705bd5d1c32a9203cf1618834a","language":"en","license":"CC-BY-4.0","query":"Return the maximum of product_related for shopping sessions where (region equals 5 or product_related is greater than 226), grouped by visitor_type; return at most 5 groups ordered by aggregate value DESC, breaking ties by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[5,226],\\\"sql\\\":\\\"SELECT visitor_type, MAX(product_related) AS value FROM shopping_sessions WHERE (region = ? AND product_related > ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[5,226],\\\"sql\\\":\\\"SELECT visitor_type, MAX(product_related) AS value FROM shopping_sessions WHERE (region = ? OR product_related > ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[5,226],\\\"sql\\\":\\\"SELECT visitor_type, MAX(product_related) AS value FROM shopping_sessions WHERE (region = ? OR product_related > ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[5,226],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (region = ? OR product_related > ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Returning_Visitor\",705],[\"New_Visitor\",287]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, MAX(product_related) AS value FROM shopping_sessions WHERE (region = ? OR product_related > ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5","sql_parameters":"[5,226]","state":"{\"question\":\"Return the maximum of product_related for shopping sessions where (region equals 5 or product_related is greater than 226), 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\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}1080{"category":"single_table/and/ranked","domain":"sensor","family_id":"a9a148dda66777b372a72aee","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"9debb51257b4cf7b780ca93ad3e6b49a97ebc605c0f79caca951c9306f3bc793","language":"en","license":"CC-BY-4.0","query":"Return the sum of fs1_mean for hydraulic cycles where (cooler equals 20 and ps2_mean is at most 107.17314), grouped by cooler; return at most 5 groups ordered by aggregate value DESC, breaking ties by cooler ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[20,107.17314],\\\"sql\\\":\\\"SELECT cooler, SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? OR ps2_mean <= ?) GROUP BY cooler ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[20,107.17314],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (cooler = ? AND ps2_mean <= ?) GROUP BY cooler ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[20,107.17314],\\\"sql\\\":\\\"SELECT cooler, SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? AND ps2_mean <= ?) GROUP BY cooler ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[20,107.17314],\\\"sql\\\":\\\"SELECT cooler, AVG(fs1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? AND ps2_mean <= ?) GROUP BY cooler ORDER BY value DESC, cooler ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[20,1303.51122]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? AND ps2_mean <= ?) GROUP BY cooler ORDER BY value DESC, cooler ASC LIMIT 5","sql_parameters":"[20,107.17314]","state":"{\"question\":\"Return the sum of fs1_mean for hydraulic cycles where (cooler equals 20 and ps2_mean is at most 107.17314), 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_mean\":\"REAL\",\"fs1_mean\":\"REAL\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1081{"category":"single_table/and/aggregate","domain":"commerce","family_id":"1f74ab2d4fe86f641627b5b4","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"57510114014b18c0cec376ca9c30e6f066e1677c8e224adc1d8f9d4343cbcfe9","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (country equals 'EIRE' and unit_price is at most 4.77).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"EIRE\\\",4.77],\\\"sql\\\":\\\"SELECT MAX(unit_price) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"EIRE\\\",4.77],\\\"sql\\\":\\\"SELECT MAX(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"EIRE\\\",4.77],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"EIRE\\\",4.77],\\\"sql\\\":\\\"SELECT SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[4.25]]","source":"online_retail_ii","split":"dev","sql":"SELECT MAX(unit_price) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?)","sql_parameters":"[\"EIRE\",4.77]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines where (country equals 'EIRE' and unit_price is at most 4.77).\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1082{"category":"single_table/and/aggregate","domain":"commerce","family_id":"63c0a301e82ec12d83ee0613","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"d7ae69ab186869d1ade457687dca6ed62f349a104d9a0488e295cd16abb995c2","language":"en","license":"CC-BY-4.0","query":"Return the minimum of quantity for retail invoice lines where (country equals 'Belgium' and quantity is greater than 1800).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Belgium\\\",1800],\\\"sql\\\":\\\"SELECT MIN(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Belgium\\\",1800],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (country = ? AND quantity > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT MIN(quantity) AS value FROM retail_lines\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Belgium\\\",1800],\\\"sql\\\":\\\"SELECT MIN(quantity) AS value FROM retail_lines WHERE (country = ? AND quantity > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[null]]","source":"online_retail_ii","split":"dev","sql":"SELECT MIN(quantity) AS value FROM retail_lines WHERE (country = ? AND quantity > ?)","sql_parameters":"[\"Belgium\",1800]","state":"{\"question\":\"Return the minimum of quantity for retail invoice lines where (country equals 'Belgium' and quantity is greater than 1800).\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1083{"category":"single_table/date/and/ranked","domain":"commerce","family_id":"be67b9d783f4f9494b89b9e4","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"bc6bdb91fb1630308ab8f3d8b7be69ce1d2c8f73b37a001bcc244622a44a78f8","language":"en","license":"CC-BY-4.0","query":"Return the sum of quantity for retail invoice lines where (quantity is at most 229 and invoice_date is on or after '2010-07-14'), grouped by country; return at most 5 groups ordered by aggregate value DESC, breaking ties by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[229,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date >= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[229,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[229,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[229,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"United Kingdom\",476113],[\"Germany\",7826],[\"EIRE\",4951],[\"Netherlands\",4400],[\"France\",4067]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5","sql_parameters":"[229,\"2010-07-14\"]","state":"{\"question\":\"Return the sum of quantity for retail invoice lines where (quantity is at most 229 and invoice_date is on or after '2010-07-14'), 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\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1084{"category":"single_table/and/ranked","domain":"sensor","family_id":"56229a6c5578f295d26ef9a0","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"af71b22770e324e52cb982bb5e033a26c86b0a8b3779a4f2c6c4798007cb9755","language":"en","license":"CC-BY-4.0","query":"Return the sum of ps1_mean for hydraulic cycles where (ts1_mean is at most 36.33327 and vs1_mean is at most 0.71948), grouped by valve; return at most 5 groups ordered by aggregate value DESC, breaking ties by valve ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[36.33327,0.71948],\\\"sql\\\":\\\"SELECT valve, SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? OR vs1_mean <= ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[36.33327,0.71948],\\\"sql\\\":\\\"SELECT valve, SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? AND vs1_mean <= ?) GROUP BY valve ORDER BY value ASC, valve ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[36.33327,0.71948],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? AND vs1_mean <= ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[36.33327,0.71948],\\\"sql\\\":\\\"SELECT valve, SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? AND vs1_mean <= ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[100,55197.03207],[80,18008.85342],[90,18002.57433],[73,16091.02483]]","source":"hydraulic","split":"dev","sql":"SELECT valve, SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean <= ? AND vs1_mean <= ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 5","sql_parameters":"[36.33327,0.71948]","state":"{\"question\":\"Return the sum of ps1_mean for hydraulic cycles where (ts1_mean is at most 36.33327 and vs1_mean is at most 0.71948), grouped by valve; return at most 5 groups ordered by aggregate value DESC, breaking ties by valve ascending.\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1085{"category":"join/date/grouped","domain":"commerce","family_id":"4dab8a33b9ca07e5c0a39bf8","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"abb1650308ea9113588cafcbfaa8d18f27868d0282db7f1531550abce3fc7934","language":"en","license":"CC-BY-4.0","query":"Return the maximum of l.quantity for retail lines joined to their invoices where (i.invoice_date is on or after '2010-12-02'), grouped by i.country, ordered by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) 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 i.country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) 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 i.country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT i.country, AVG(l.quantity) 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 i.country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT i.country, MAX(l.quantity) 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 i.country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",80],[\"Austria\",48],[\"Bahrain\",8],[\"Belgium\",272],[\"Canada\",16],[\"Channel Islands\",200],[\"Denmark\",256],[\"EIRE\",1440],[\"Finland\",144],[\"France\",576],[\"Germany\",288],[\"Israel\",12],[\"Italy\",9],[\"Japan\",576],[\"Netherlands\",200],[\"Norway\",12],[\"Poland\",48],[\"Portugal\",3],[\"Singapore\",1],[\"Spain\",360],[\"Sweden\",720],[\"Switzerland\",144],[\"United Kingdom\",3114]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, MAX(l.quantity) 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 i.country ASC","sql_parameters":"[\"2010-12-02\"]","state":"{\"question\":\"Return the maximum of l.quantity for retail lines joined to their invoices where (i.invoice_date is on or after '2010-12-02'), grouped by i.country, ordered by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1086{"category":"single_table/or/grouped","domain":"commerce","family_id":"170f6b00b500f1af72cb59b7","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"3c4e9b9540ec4ea313925c9f39f37c2e7e712802fa9be4d4d43ecb26bb665300","language":"en","license":"CC-BY-4.0","query":"Return the average of quantity for retail invoice lines where (country equals 'Canada' or quantity is at most 1800), grouped by country, ordered by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Canada\\\",1800],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Canada\\\",1800],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Canada\\\",1800],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Canada\\\",1800],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?) GROUP BY country ORDER BY country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",15.127659574468085],[\"Austria\",12.722222222222221],[\"Bahrain\",8.818181818181818],[\"Belgium\",12.921052631578947],[\"Canada\",10.4],[\"Channel Islands\",103.41666666666667],[\"Cyprus\",47.125],[\"Denmark\",59.8],[\"EIRE\",66.15196078431373],[\"Finland\",38.35616438356164],[\"France\",25.04201680672269],[\"Germany\",19.208092485549134],[\"Israel\",4.25],[\"Italy\",18.4],[\"Japan\",135.31578947368422],[\"Netherlands\",66.23728813559322],[\"Norway\",7.125],[\"Poland\",26.166666666666668],[\"Portugal\",10.428571428571429],[\"Singapore\",1.0],[\"Spain\",54.77450980392157],[\"Sweden\",118.23655913978494],[\"Switzerland\",25.7027027027027],[\"USA\",12.0],[\"United Arab Emirates\",1.0],[\"United Kingdom\",40.25494922353499]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?) GROUP BY country ORDER BY country ASC","sql_parameters":"[\"Canada\",1800]","state":"{\"question\":\"Return the average of quantity for retail invoice lines where (country equals 'Canada' or quantity is at most 1800), 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\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1087{"category":"single_table/grouped","domain":"sensor","family_id":"b570dba28c0f9e6252fcfc08","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"9c57d73fb3d357147717796426f1871c85b8f142ed2db42099ee60449328626d","language":"en","license":"CC-BY-4.0","query":"Return the maximum of vs1_mean for hydraulic cycles where (ps2_mean is at most 107.17314), grouped by cooler, ordered by cooler ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[107.17314],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[107.17314],\\\"sql\\\":\\\"SELECT cooler, SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[107.17314],\\\"sql\\\":\\\"SELECT cooler, AVG(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[107.17314],\\\"sql\\\":\\\"SELECT cooler, MAX(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[3,0.83907],[20,0.63788]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, MAX(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ?) GROUP BY cooler ORDER BY cooler ASC","sql_parameters":"[107.17314]","state":"{\"question\":\"Return the maximum of vs1_mean for hydraulic cycles where (ps2_mean is at most 107.17314), grouped by cooler, ordered by cooler ascending.\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1088{"category":"join/having","domain":"commerce","family_id":"f0c0e3d232f7a2491a7831de","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"b6e9325e9fca820b396cf4c409d2be0bee67ca9e31017e403465d57a1464fd4a","language":"en","license":"CC-BY-4.0","query":"Return the maximum of l.unit_price for retail lines joined to their invoices where (i.customer_id equals '12364'), grouped by i.country, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12364\\\",2],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12364\\\",2],\\\"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.customer_id = ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12364\\\",2],\\\"sql\\\":\\\"SELECT i.country, MAX(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12364\\\",2],\\\"sql\\\":\\\"SELECT i.country, AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Belgium\",15.0]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, MAX(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5","sql_parameters":"[\"12364\",2]","state":"{\"question\":\"Return the maximum of l.unit_price for retail lines joined to their invoices where (i.customer_id equals '12364'), grouped by i.country, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1089{"category":"join/or/aggregate","domain":"commerce","family_id":"6c094610f28a2447fb95e920","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"d685af35b617bfd760a9039220945f86df4a6b918845f99cd02139cedb433380","language":"en","license":"CC-BY-4.0","query":"Return the average of l.unit_price for retail lines joined to their invoices where (i.country equals 'Belgium' or l.unit_price is at most 0.55).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Belgium\\\",0.55],\\\"sql\\\":\\\"SELECT AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND l.unit_price <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Belgium\\\",0.55],\\\"sql\\\":\\\"SELECT AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR l.unit_price <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Belgium\\\",0.55],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR l.unit_price <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Belgium\\\",0.55],\\\"sql\\\":\\\"SELECT SUM(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR l.unit_price <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0.6753449131513647]]","source":"online_retail_ii","split":"dev","sql":"SELECT AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR l.unit_price <= ?)","sql_parameters":"[\"Belgium\",0.55]","state":"{\"question\":\"Return the average of l.unit_price for retail lines joined to their invoices where (i.country equals 'Belgium' or l.unit_price is at most 0.55).\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1090{"category":"join/and/aggregate","domain":"commerce","family_id":"1227a9055944b2126758944c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"2b0f688a728f7725575a18f7f14f81dca03c077b6cdd08833fc87508fdfcfcd1","language":"en","license":"CC-BY-4.0","query":"Return the minimum of l.unit_price for retail lines joined to their invoices where (i.country equals 'Finland' and i.customer_id equals '12356').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Finland\\\",\\\"12356\\\"],\\\"sql\\\":\\\"SELECT MIN(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 = ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Finland\\\",\\\"12356\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND i.customer_id = ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Finland\\\",\\\"12356\\\"],\\\"sql\\\":\\\"SELECT MIN(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 = ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT MIN(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[null]]","source":"online_retail_ii","split":"dev","sql":"SELECT MIN(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 = ?)","sql_parameters":"[\"Finland\",\"12356\"]","state":"{\"question\":\"Return the minimum of l.unit_price for retail lines joined to their invoices where (i.country equals 'Finland' and i.customer_id equals '12356').\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1091{"category":"single_table/or/ranked","domain":"commerce","family_id":"9811feee405588a810c962ec","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"2c37c9f5b0c778ee677fc6a1dfcbdc591c446bf960fe9753ca88734e54b1034b","language":"en","license":"CC-BY-4.0","query":"Return the minimum of product_duration for shopping sessions where (administrative is at most 18 or product_related is greater than 226), grouped by month; return at most 3 groups ordered by aggregate value ASC, breaking ties by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[18,226],\\\"sql\\\":\\\"SELECT month, MIN(product_duration) AS value FROM shopping_sessions WHERE (administrative <= ? AND product_related > ?) GROUP BY month ORDER BY value ASC, month ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[18,226],\\\"sql\\\":\\\"SELECT month, MIN(product_duration) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_related > ?) GROUP BY month ORDER BY value ASC, month ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[18,226],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_related > ?) GROUP BY month ORDER BY value ASC, month ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[18,226],\\\"sql\\\":\\\"SELECT month, SUM(product_duration) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_related > ?) GROUP BY month ORDER BY value ASC, month ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Aug\",0.0],[\"Dec\",0.0],[\"Feb\",0.0]]","source":"online_shoppers","split":"dev","sql":"SELECT month, MIN(product_duration) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_related > ?) GROUP BY month ORDER BY value ASC, month ASC LIMIT 3","sql_parameters":"[18,226]","state":"{\"question\":\"Return the minimum of product_duration for shopping sessions where (administrative is at most 18 or product_related is greater than 226), grouped by month; return at most 3 groups ordered by aggregate value ASC, breaking ties by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}1092{"category":"single_table/ranked","domain":"sensor","family_id":"f4b9f0b689c06b616dfd08e6","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"8732358766313413ebf1bf0eecc71bbbad0f1291d0a7eea7317f64142d478faa","language":"en","license":"CC-BY-4.0","query":"Return the maximum of ps2_mean for hydraulic cycles where (fs1_mean is at most 6.41875), grouped by valve; return at most 5 groups ordered by aggregate value DESC, breaking ties by valve ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[6.41875],\\\"sql\\\":\\\"SELECT valve, MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ?) GROUP BY valve ORDER BY value ASC, valve ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[6.41875],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[6.41875],\\\"sql\\\":\\\"SELECT valve, SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[6.41875],\\\"sql\\\":\\\"SELECT valve, MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[100,131.58909],[90,131.05237],[80,130.86578],[73,130.63199]]","source":"hydraulic","split":"dev","sql":"SELECT valve, MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 5","sql_parameters":"[6.41875]","state":"{\"question\":\"Return the maximum of ps2_mean for hydraulic cycles where (fs1_mean is at most 6.41875), grouped by valve; return at most 5 groups ordered by aggregate value DESC, breaking ties by valve ascending.\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1093{"category":"single_table/aggregate","domain":"sensor","family_id":"74b502ee11ef6bf9c778740c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"c8242fcea6c59cc97a5d159cb81293485d3bc316ba571fb8be9540b8d797ebd4","language":"en","license":"CC-BY-4.0","query":"Return the maximum of ts1_mean for hydraulic cycles where (ts1_mean is greater than 56.73035).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[56.73035],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (ts1_mean > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[56.73035],\\\"sql\\\":\\\"SELECT SUM(ts1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[56.73035],\\\"sql\\\":\\\"SELECT MAX(ts1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[56.73035],\\\"sql\\\":\\\"SELECT AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[57.89928]]","source":"hydraulic","split":"dev","sql":"SELECT MAX(ts1_mean) AS value FROM hydraulic_cycles WHERE (ts1_mean > ?)","sql_parameters":"[56.73035]","state":"{\"question\":\"Return the maximum of ts1_mean for hydraulic cycles where (ts1_mean is greater than 56.73035).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1094{"category":"single_table/date/and/having","domain":"commerce","family_id":"f871bac91e90a048bd58bc6f","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"ba2244aa791d07068f71fce3598ca3a8ae12aa11bf8264641b623c47f3658edc","language":"en","license":"CC-BY-4.0","query":"Return the sum of quantity for retail invoice lines where (quantity is at most 25 and invoice_date is on or after '2010-12-02'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[25,\\\"2010-12-02\\\",10],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[25,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[25,\\\"2010-12-02\\\",10],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[25,\\\"2010-12-02\\\",10],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Norway\",37],[\"Switzerland\",108],[\"Netherlands\",125]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3","sql_parameters":"[25,\"2010-12-02\",10]","state":"{\"question\":\"Return the sum of quantity for retail invoice lines where (quantity is at most 25 and invoice_date is on or after '2010-12-02'), 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\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1095{"category":"join/grouped","domain":"commerce","family_id":"a50790e8ba47f2f6045a37a0","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"36f0c63b2a047a21474af4605f9165444d27ebf3e5586d050cb5f2efba31dd4a","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail lines joined to their invoices where (l.quantity is greater than 92), grouped by i.country, ordered by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[92],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[92],\\\"sql\\\":\\\"SELECT i.country, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[92],\\\"sql\\\":\\\"SELECT i.country, MIN(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[92],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",1],[\"Belgium\",3],[\"Channel Islands\",14],[\"Cyprus\",5],[\"Denmark\",2],[\"EIRE\",34],[\"Finland\",7],[\"France\",13],[\"Germany\",30],[\"Italy\",1],[\"Japan\",6],[\"Netherlands\",41],[\"Spain\",20],[\"Sweden\",37],[\"Switzerland\",3],[\"United Kingdom\",3058]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ?) GROUP BY i.country ORDER BY i.country ASC","sql_parameters":"[92]","state":"{\"question\":\"Return the number of rows for retail lines joined to their invoices where (l.quantity is greater than 92), grouped by i.country, ordered by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1096{"category":"join/aggregate","domain":"commerce","family_id":"ec473cd947d15e0abb10257e","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"511194b413f38c9196dc3b35af1f8a8b147af17a70207e9f805aa8391823eaef","language":"en","license":"CC-BY-4.0","query":"Return the maximum of l.quantity for retail lines joined to their invoices where (l.unit_price is at most 8.5).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[8.5],\\\"sql\\\":\\\"SELECT MAX(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[8.5],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[8.5],\\\"sql\\\":\\\"SELECT SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[8.5],\\\"sql\\\":\\\"SELECT AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[10000]]","source":"online_retail_ii","split":"dev","sql":"SELECT MAX(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price <= ?)","sql_parameters":"[8.5]","state":"{\"question\":\"Return the maximum of l.quantity for retail lines joined to their invoices where (l.unit_price is at most 8.5).\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1097{"category":"single_table/and/grouped","domain":"sensor","family_id":"0bd824e182e9a676a2f56730","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"11aad72e85bafd6375ec054bc67c365350cce2a52718fe98ccf95d67ec5a8139","language":"en","license":"CC-BY-4.0","query":"Return the average of ts1_mean for hydraulic cycles where (fs1_mean is greater than 6.57291 and ts1_mean is at most 36.33327), grouped by valve, ordered by valve ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[6.57291,36.33327],\\\"sql\\\":\\\"SELECT valve, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ? OR ts1_mean <= ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[6.57291,36.33327],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (fs1_mean > ? AND ts1_mean <= ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[6.57291,36.33327],\\\"sql\\\":\\\"SELECT valve, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ? AND ts1_mean <= ?) GROUP BY valve ORDER BY valve ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[6.57291,36.33327],\\\"sql\\\":\\\"SELECT valve, SUM(ts1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ? AND ts1_mean <= ?) GROUP BY valve ORDER BY valve ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[73,36.01272575],[80,36.042313],[90,36.035355499999994],[100,35.651827572463766]]","source":"hydraulic","split":"dev","sql":"SELECT valve, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ? AND ts1_mean <= ?) GROUP BY valve ORDER BY valve ASC","sql_parameters":"[6.57291,36.33327]","state":"{\"question\":\"Return the average of ts1_mean for hydraulic cycles where (fs1_mean is greater than 6.57291 and ts1_mean is at most 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_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1098{"category":"single_table/or/grouped","domain":"commerce","family_id":"40e6d060a220c9b2d6ef7997","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"447b003534682b6bd117202d7db42047c8424397fc5b0f539a99b01c7631fa77","language":"en","license":"CC-BY-4.0","query":"Return the average of administrative for shopping sessions where (month equals 'Jul' or traffic_type equals 16), grouped by month, ordered by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Jul\\\",16],\\\"sql\\\":\\\"SELECT month, AVG(administrative) AS value FROM shopping_sessions WHERE (month = ? AND traffic_type = ?) GROUP BY month ORDER BY month ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Jul\\\",16],\\\"sql\\\":\\\"SELECT month, AVG(administrative) AS value FROM shopping_sessions WHERE (month = ? OR traffic_type = ?) GROUP BY month ORDER BY month ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Jul\\\",16],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (month = ? OR traffic_type = ?) GROUP BY month ORDER BY month ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Jul\\\",16],\\\"sql\\\":\\\"SELECT month, SUM(administrative) AS value FROM shopping_sessions WHERE (month = ? OR traffic_type = ?) GROUP BY month ORDER BY month ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Jul\",2.423611111111111],[\"June\",4.0],[\"May\",2.5]]","source":"online_shoppers","split":"dev","sql":"SELECT month, AVG(administrative) AS value FROM shopping_sessions WHERE (month = ? OR traffic_type = ?) GROUP BY month ORDER BY month ASC","sql_parameters":"[\"Jul\",16]","state":"{\"question\":\"Return the average of administrative for shopping sessions where (month equals 'Jul' or traffic_type equals 16), grouped by month, ordered by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}1099{"category":"join/distinct_invoice/date/and/grouped","domain":"commerce","family_id":"0ad21eeda8e26d789bbf2597","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"f72cb0d4346e4573591f08dbf021f930849891c8f101b1b67d46b9f8de38b573","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.unit_price is at most 2.25 and i.invoice_date is on or after '2010-02-18'), grouped by i.invoice_date, ordered by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2.25,\\\"2010-02-18\\\"],\\\"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 <= ? AND i.invoice_date >= ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2.25,\\\"2010-02-18\\\"],\\\"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_3\":\"{\\\"parameters\\\":[2.25,\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) 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\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2.25,\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.quantity) 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\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-02-18\",5],[\"2010-02-19\",7],[\"2010-02-21\",5],[\"2010-02-22\",6],[\"2010-02-23\",3],[\"2010-02-24\",8],[\"2010-02-25\",10],[\"2010-02-26\",5],[\"2010-02-28\",7],[\"2010-03-01\",13],[\"2010-03-02\",7],[\"2010-03-03\",9],[\"2010-03-04\",6],[\"2010-03-05\",11],[\"2010-03-07\",2],[\"2010-03-08\",17],[\"2010-03-09\",9],[\"2010-03-10\",9],[\"2010-03-11\",6],[\"2010-03-12\",6],[\"2010-03-14\",4],[\"2010-03-15\",8],[\"2010-03-16\",6],[\"2010-03-17\",5],[\"2010-03-18\",10],[\"2010-03-19\",7],[\"2010-03-21\",5],[\"2010-03-22\",5],[\"2010-03-23\",11],[\"2010-03-24\",10],[\"2010-03-25\",8],[\"2010-03-26\",6],[\"2010-03-28\",3],[\"2010-03-29\",6],[\"2010-03-30\",8],[\"2010-03-31\",9],[\"2010-04-01\",7],[\"2010-04-06\",6],[\"2010-04-07\",6],[\"2010-04-08\",14],[\"2010-04-09\",4],[\"2010-04-11\",5],[\"2010-04-12\",5],[\"2010-04-13\",8],[\"2010-04-14\",10],[\"2010-04-15\",7],[\"2010-04-16\",10],[\"2010-04-18\",5],[\"2010-04-19\",14],[\"2010-04-20\",11],[\"2010-04-21\",7],[\"2010-04-22\",15],[\"2010-04-23\",4],[\"2010-04-25\",8],[\"2010-04-26\",12],[\"2010-04-27\",12],[\"2010-04-28\",10],[\"2010-04-29\",16],[\"2010-04-30\",7],[\"2010-05-02\",6],[\"2010-05-04\",4],[\"2010-05-05\",15],[\"2010-05-06\",9],[\"2010-05-07\",14],[\"2010-05-09\",7],[\"2010-05-10\",12],[\"2010-05-11\",7],[\"2010-05-12\",20],[\"2010-05-13\",6],[\"2010-05-14\",6],[\"2010-05-16\",4],[\"2010-05-17\",5],[\"2010-05-18\",9],[\"2010-05-19\",11],[\"2010-05-20\",5],[\"2010-05-21\",6],[\"2010-05-23\",5],[\"2010-05-24\",12],[\"2010-05-25\",6],[\"2010-05-26\",7],[\"2010-05-27\",11],[\"2010-05-28\",11],[\"2010-05-30\",2],[\"2010-06-01\",10],[\"2010-06-02\",11],[\"2010-06-03\",12],[\"2010-06-04\",6],[\"2010-06-06\",3],[\"2010-06-07\",14],[\"2010-06-08\",11],[\"2010-06-09\",5],[\"2010-06-10\",7],[\"2010-06-11\",7],[\"2010-06-13\",13],[\"2010-06-14\",7],[\"2010-06-15\",7],[\"2010-06-16\",14],[\"2010-06-17\",7],[\"2010-06-18\",7],[\"2010-06-20\",3],[\"2010-06-21\",1],[\"2010-06-22\",3],[\"2010-06-23\",16],[\"2010-06-24\",8],[\"2010-06-25\",4],[\"2010-06-27\",11],[\"2010-06-28\",8],[\"2010-06-29\",9],[\"2010-06-30\",9],[\"2010-07-01\",10],[\"2010-07-02\",2],[\"2010-07-04\",3],[\"2010-07-05\",10],[\"2010-07-06\",10],[\"2010-07-07\",7],[\"2010-07-08\",12],[\"2010-07-09\",1],[\"2010-07-12\",8],[\"2010-07-13\",9],[\"2010-07-14\",4],[\"2010-07-15\",7],[\"2010-07-16\",14],[\"2010-07-18\",6],[\"2010-07-19\",6],[\"2010-07-20\",8],[\"2010-07-21\",12],[\"2010-07-22\",8],[\"2010-07-23\",7],[\"2010-07-25\",5],[\"2010-07-26\",10],[\"2010-07-27\",18],[\"2010-07-28\",7],[\"2010-07-29\",6],[\"2010-07-30\",10],[\"2010-08-01\",2],[\"2010-08-02\",11],[\"2010-08-03\",5],[\"2010-08-04\",3],[\"2010-08-05\",15],[\"2010-08-06\",5],[\"2010-08-08\",7],[\"2010-08-09\",10],[\"2010-08-10\",5],[\"2010-08-11\",5],[\"2010-08-12\",7],[\"2010-08-13\",8],[\"2010-08-15\",10],[\"2010-08-16\",3],[\"2010-08-17\",9],[\"2010-08-18\",6],[\"2010-08-19\",10],[\"2010-08-20\",11],[\"2010-08-22\",7],[\"2010-08-23\",6],[\"2010-08-24\",5],[\"2010-08-25\",8],[\"2010-08-26\",8],[\"2010-08-27\",2],[\"2010-08-29\",4],[\"2010-08-31\",11],[\"2010-09-01\",7],[\"2010-09-02\",13],[\"2010-09-03\",13],[\"2010-09-05\",7],[\"2010-09-06\",5],[\"2010-09-07\",6],[\"2010-09-08\",3],[\"2010-09-09\",7],[\"2010-09-10\",4],[\"2010-09-12\",4],[\"2010-09-13\",16],[\"2010-09-14\",9],[\"2010-09-15\",5],[\"2010-09-16\",8],[\"2010-09-17\",10],[\"2010-09-19\",5],[\"2010-09-20\",14],[\"2010-09-21\",19],[\"2010-09-22\",14],[\"2010-09-23\",3],[\"2010-09-24\",9],[\"2010-09-26\",15],[\"2010-09-27\",12],[\"2010-09-28\",16],[\"2010-09-29\",11],[\"2010-09-30\",9],[\"2010-10-01\",6],[\"2010-10-03\",6],[\"2010-10-04\",9],[\"2010-10-05\",10],[\"2010-10-06\",12],[\"2010-10-07\",12],[\"2010-10-08\",11],[\"2010-10-10\",6],[\"2010-10-11\",12],[\"2010-10-12\",16],[\"2010-10-13\",8],[\"2010-10-14\",9],[\"2010-10-15\",14],[\"2010-10-17\",1],[\"2010-10-18\",12],[\"2010-10-19\",8],[\"2010-10-20\",18],[\"2010-10-21\",6],[\"2010-10-22\",13],[\"2010-10-24\",7],[\"2010-10-25\",8],[\"2010-10-26\",11],[\"2010-10-27\",5],[\"2010-10-28\",7],[\"2010-10-29\",13],[\"2010-10-31\",6],[\"2010-11-01\",4],[\"2010-11-02\",12],[\"2010-11-03\",12],[\"2010-11-04\",23],[\"2010-11-05\",7],[\"2010-11-07\",4],[\"2010-11-08\",5],[\"2010-11-09\",14],[\"2010-11-10\",18],[\"2010-11-11\",22],[\"2010-11-12\",14],[\"2010-11-14\",8],[\"2010-11-15\",14],[\"2010-11-16\",19],[\"2010-11-17\",16],[\"2010-11-18\",18],[\"2010-11-19\",11],[\"2010-11-21\",5],[\"2010-11-22\",11],[\"2010-11-23\",17],[\"2010-11-24\",20],[\"2010-11-25\",24],[\"2010-11-26\",10],[\"2010-11-28\",11],[\"2010-11-29\",13],[\"2010-11-30\",20],[\"2010-12-01\",56],[\"2010-12-02\",62],[\"2010-12-03\",12],[\"2010-12-05\",14],[\"2010-12-06\",28],[\"2010-12-07\",24],[\"2010-12-08\",32],[\"2010-12-09\",32],[\"2010-12-10\",8],[\"2010-12-12\",4],[\"2010-12-13\",11],[\"2010-12-14\",15],[\"2010-12-15\",8],[\"2010-12-16\",23],[\"2010-12-17\",12],[\"2010-12-19\",3],[\"2010-12-20\",7],[\"2010-12-21\",6],[\"2010-12-22\",4],[\"2010-12-23\",8],[\"2011-01-04\",3],[\"2011-01-05\",8],[\"2011-01-06\",7],[\"2011-01-07\",7],[\"2011-01-09\",3],[\"2011-01-10\",2],[\"2011-01-11\",9],[\"2011-01-12\",5],[\"2011-01-13\",4],[\"2011-01-14\",5],[\"2011-01-17\",8],[\"2011-01-18\",5],[\"2011-01-19\",2],[\"2011-01-20\",9],[\"2011-01-21\",9],[\"2011-01-23\",2],[\"2011-01-24\",7],[\"2011-01-25\",10],[\"2011-01-26\",4],[\"2011-01-27\",7],[\"2011-01-28\",1],[\"2011-01-30\",1],[\"2011-01-31\",5],[\"2011-02-01\",7],[\"2011-02-02\",10],[\"2011-02-03\",6],[\"2011-02-04\",6],[\"2011-02-07\",3],[\"2011-02-08\",3],[\"2011-02-09\",2],[\"2011-02-10\",8],[\"2011-02-11\",7],[\"2011-02-13\",1],[\"2011-02-14\",5],[\"2011-02-15\",7],[\"2011-02-16\",12],[\"2011-02-17\",13],[\"2011-02-18\",6],[\"2011-02-20\",1],[\"2011-02-21\",4],[\"2011-02-22\",7],[\"2011-02-23\",3],[\"2011-02-24\",6],[\"2011-02-25\",8],[\"2011-02-27\",3],[\"2011-02-28\",5],[\"2011-03-01\",11],[\"2011-03-02\",3],[\"2011-03-03\",9],[\"2011-03-04\",8],[\"2011-03-06\",3],[\"2011-03-07\",10],[\"2011-03-08\",5],[\"2011-03-09\",10],[\"2011-03-10\",8],[\"2011-03-11\",10],[\"2011-03-14\",8],[\"2011-03-15\",4],[\"2011-03-16\",8],[\"2011-03-17\",13],[\"2011-03-18\",11],[\"2011-03-20\",12],[\"2011-03-21\",9],[\"2011-03-22\",4],[\"2011-03-23\",6],[\"2011-03-24\",7],[\"2011-03-25\",9],[\"2011-03-27\",3],[\"2011-03-28\",7],[\"2011-03-29\",5],[\"2011-03-30\",11],[\"2011-03-31\",13],[\"2011-04-01\",17],[\"2011-04-03\",4],[\"2011-04-04\",5],[\"2011-04-05\",8],[\"2011-04-06\",5],[\"2011-04-07\",9],[\"2011-04-08\",11],[\"2011-04-10\",1],[\"2011-04-11\",9],[\"2011-04-12\",7],[\"2011-04-13\",8],[\"2011-04-14\",15],[\"2011-04-15\",4],[\"2011-04-17\",5],[\"2011-04-18\",6],[\"2011-04-19\",5],[\"2011-04-20\",9],[\"2011-04-21\",13],[\"2011-04-26\",10],[\"2011-04-27\",11],[\"2011-04-28\",10],[\"2011-05-01\",1],[\"2011-05-03\",10],[\"2011-05-04\",11],[\"2011-05-05\",19],[\"2011-05-06\",10],[\"2011-05-08\",7],[\"2011-05-09\",7],[\"2011-05-10\",12],[\"2011-05-11\",12],[\"2011-05-12\",11],[\"2011-05-13\",16],[\"2011-05-15\",3],[\"2011-05-16\",10],[\"2011-05-17\",15],[\"2011-05-18\",16],[\"2011-05-19\",14],[\"2011-05-20\",16],[\"2011-05-22\",8],[\"2011-05-23\",12],[\"2011-05-24\",11],[\"2011-05-25\",10],[\"2011-05-26\",18],[\"2011-05-27\",14],[\"2011-05-29\",2],[\"2011-05-31\",8],[\"2011-06-01\",7],[\"2011-06-02\",10],[\"2011-06-03\",7],[\"2011-06-05\",8],[\"2011-06-06\",7],[\"2011-06-07\",13],[\"2011-06-08\",16],[\"2011-06-09\",10],[\"2011-06-10\",3],[\"2011-06-12\",1],[\"2011-06-13\",11],[\"2011-06-14\",6],[\"2011-06-15\",4],[\"2011-06-16\",21],[\"2011-06-17\",10],[\"2011-06-19\",5],[\"2011-06-20\",9],[\"2011-06-21\",8],[\"2011-06-22\",9],[\"2011-06-23\",4],[\"2011-06-24\",10],[\"2011-06-26\",2],[\"2011-06-27\",7],[\"2011-06-28\",10],[\"2011-06-29\",5],[\"2011-06-30\",9],[\"2011-07-01\",6],[\"2011-07-03\",1],[\"2011-07-04\",3],[\"2011-07-05\",13],[\"2011-07-06\",15],[\"2011-07-07\",14],[\"2011-07-08\",3],[\"2011-07-10\",1],[\"2011-07-11\",7],[\"2011-07-12\",7],[\"2011-07-13\",11],[\"2011-07-14\",5],[\"2011-07-15\",8],[\"2011-07-17\",8],[\"2011-07-18\",2],[\"2011-07-19\",12],[\"2011-07-20\",8],[\"2011-07-21\",6],[\"2011-07-22\",6],[\"2011-07-24\",14],[\"2011-07-25\",11],[\"2011-07-26\",5],[\"2011-07-27\",5],[\"2011-07-28\",18],[\"2011-07-29\",7],[\"2011-07-31\",4],[\"2011-08-01\",7],[\"2011-08-02\",8],[\"2011-08-03\",9],[\"2011-08-04\",13],[\"2011-08-05\",11],[\"2011-08-07\",8],[\"2011-08-08\",4],[\"2011-08-09\",4],[\"2011-08-10\",6],[\"2011-08-11\",9],[\"2011-08-12\",4],[\"2011-08-14\",4],[\"2011-08-15\",7],[\"2011-08-16\",8],[\"2011-08-17\",4],[\"2011-08-18\",11],[\"2011-08-19\",6],[\"2011-08-21\",5],[\"2011-08-22\",13],[\"2011-08-23\",8],[\"2011-08-24\",18],[\"2011-08-25\",8],[\"2011-08-26\",5],[\"2011-08-28\",4],[\"2011-08-30\",6],[\"2011-08-31\",2],[\"2011-09-01\",15],[\"2011-09-02\",15],[\"2011-09-04\",7],[\"2011-09-05\",7],[\"2011-09-06\",13],[\"2011-09-07\",5],[\"2011-09-08\",14],[\"2011-09-09\",7],[\"2011-09-11\",7],[\"2011-09-12\",13],[\"2011-09-13\",4],[\"2011-09-14\",14],[\"2011-09-15\",6],[\"2011-09-16\",4],[\"2011-09-18\",2],[\"2011-09-19\",7],[\"2011-09-20\",9],[\"2011-09-21\",11],[\"2011-09-22\",15],[\"2011-09-23\",6],[\"2011-09-25\",6],[\"2011-09-26\",7],[\"2011-09-27\",10],[\"2011-09-28\",10],[\"2011-09-29\",9],[\"2011-09-30\",8],[\"2011-10-02\",2],[\"2011-10-03\",5],[\"2011-10-04\",9],[\"2011-10-05\",12],[\"2011-10-06\",18],[\"2011-10-07\",11],[\"2011-10-09\",1],[\"2011-10-10\",9],[\"2011-10-11\",12],[\"2011-10-12\",12],[\"2011-10-13\",9],[\"2011-10-14\",8],[\"2011-10-17\",13],[\"2011-10-18\",7],[\"2011-10-19\",17],[\"2011-10-20\",12],[\"2011-10-21\",9],[\"2011-10-23\",1],[\"2011-10-24\",10],[\"2011-10-25\",6],[\"2011-10-26\",17],[\"2011-10-27\",12],[\"2011-10-28\",12],[\"2011-10-30\",12],[\"2011-10-31\",10],[\"2011-11-01\",9],[\"2011-11-02\",8],[\"2011-11-03\",14],[\"2011-11-04\",11],[\"2011-11-06\",14],[\"2011-11-07\",13],[\"2011-11-08\",13],[\"2011-11-09\",27],[\"2011-11-10\",13],[\"2011-11-11\",12],[\"2011-11-13\",8],[\"2011-11-14\",9],[\"2011-11-15\",17],[\"2011-11-16\",25],[\"2011-11-17\",23],[\"2011-11-18\",12],[\"2011-11-20\",9],[\"2011-11-21\",10],[\"2011-11-22\",19],[\"2011-11-23\",19],[\"2011-11-24\",21],[\"2011-11-25\",14],[\"2011-11-27\",3],[\"2011-11-28\",19],[\"2011-11-29\",18],[\"2011-11-30\",12],[\"2011-12-01\",24],[\"2011-12-02\",19],[\"2011-12-04\",10],[\"2011-12-05\",19],[\"2011-12-06\",23],[\"2011-12-07\",14],[\"2011-12-08\",13],[\"2011-12-09\",7]]","source":"online_retail_ii","split":"dev","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 <= ? AND i.invoice_date >= ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC","sql_parameters":"[2.25,\"2010-02-18\"]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.unit_price is at most 2.25 and i.invoice_date is on or after '2010-02-18'), grouped by i.invoice_date, ordered by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1100{"category":"join/distinct_invoice/or/ranked","domain":"commerce","family_id":"8c383719bcb783b00ff32351","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"56b76ad5d187167be1f38f08df3c3ac7e57bd295840da86bd9e7d7b41dfe1ada","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.customer_id equals '12364' or l.unit_price is at most 4.77), grouped by i.country; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12364\\\",4.77],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? AND l.unit_price <= ?) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12364\\\",4.77],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) 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.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12364\\\",4.77],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) 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.country ORDER BY value ASC, i.country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12364\\\",4.77],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) 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.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"United Kingdom\",6157],[\"Germany\",105],[\"France\",58],[\"EIRE\",47],[\"Netherlands\",33]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, COUNT(DISTINCT i.invoice) 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.country ORDER BY value DESC, i.country ASC LIMIT 5","sql_parameters":"[\"12364\",4.77]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.customer_id equals '12364' or l.unit_price is at most 4.77), grouped by i.country; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1101{"category":"single_table/and/ranked","domain":"commerce","family_id":"925ac9e2ad3e82fd2e9de6b5","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"73dac7a5c333526baf2cab614ff0725f324dc9a1d3c68cbe9c42c3dc8c39f446","language":"en","license":"CC-BY-4.0","query":"Return the sum of quantity for retail invoice lines where (country equals 'Denmark' and quantity is greater than 92), grouped by invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Denmark\\\",92],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity > ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Denmark\\\",92],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (country = ? AND quantity > ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Denmark\\\",92],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND quantity > ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Denmark\\\",92],\\\"sql\\\":\\\"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (country = ? AND quantity > ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-10-07\",512]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (country = ? AND quantity > ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3","sql_parameters":"[\"Denmark\",92]","state":"{\"question\":\"Return the sum of quantity for retail invoice lines where (country equals 'Denmark' and quantity is greater than 92), grouped by invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by invoice_date ascending.\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1102{"category":"join/distinct_invoice/or/ranked","domain":"commerce","family_id":"2093f158d0815653ad9a69ce","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"8a00cb2ccac26cecf6d0dd049ad90bbe9252480884532194857f2c3dcf6f3f75","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.customer_id equals '12361' or l.unit_price is at most 4.77), grouped by i.invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12361\\\",4.77],\\\"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.customer_id = ? OR l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12361\\\",4.77],\\\"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.customer_id = ? AND l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12361\\\",4.77],\\\"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.customer_id = ? OR l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12361\\\",4.77],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) 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 value ASC, i.invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-01-06\",1],[\"2010-01-18\",1],[\"2010-10-17\",1]]","source":"online_retail_ii","split":"dev","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.customer_id = ? OR l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3","sql_parameters":"[\"12361\",4.77]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.customer_id equals '12361' or l.unit_price is at most 4.77), grouped by i.invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1103{"category":"single_table/date/and/having","domain":"commerce","family_id":"66a44a23b70dc7b8f2344392","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"66847bd19ee43fba12993abdc41ecc5f45f9dd916bee61aa8fe65bc14e3accab","language":"en","license":"CC-BY-4.0","query":"Return the sum of quantity for retail invoice lines where (quantity is at most 229 and invoice_date is before '2010-12-02'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[229,\\\"2010-12-02\\\",2],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[229,\\\"2010-12-02\\\",2],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[229,\\\"2010-12-02\\\",2],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[229,\\\"2010-12-02\\\",2],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"United Kingdom\",311134],[\"Sweden\",4054],[\"Germany\",3185],[\"Netherlands\",3015],[\"EIRE\",2333]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5","sql_parameters":"[229,\"2010-12-02\",2]","state":"{\"question\":\"Return the sum of quantity for retail invoice lines where (quantity is at most 229 and invoice_date is before '2010-12-02'), 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_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1104{"category":"single_table/date/or/having","domain":"commerce","family_id":"a626445e327e6b76963389bb","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"ee425321f95ed90cbe452e03402d15a6deec124013bf6779093c9447708d29c5","language":"en","license":"CC-BY-4.0","query":"Return the maximum of quantity for retail invoice lines where (unit_price is greater than 4.77 or invoice_date is before '2010-12-02'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[4.77,\\\"2010-12-02\\\",10],\\\"sql\\\":\\\"SELECT country, MAX(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-12-02\\\",10],\\\"sql\\\":\\\"SELECT country, MAX(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\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[4.77,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT country, MAX(quantity) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date < ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[4.77,\\\"2010-12-02\\\",10],\\\"sql\\\":\\\"SELECT country, MAX(quantity) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Austria\",16],[\"Belgium\",20],[\"Norway\",24]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, MAX(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","sql_parameters":"[4.77,\"2010-12-02\",10]","state":"{\"question\":\"Return the maximum of quantity for retail invoice lines where (unit_price is greater than 4.77 or invoice_date is before '2010-12-02'), 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\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1105{"category":"single_table/or/ranked","domain":"commerce","family_id":"184449ecce27c8a6f77f0d9e","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"7a8307b251f929acf23b6dae91ebc65057d20bd3d9f7dfb82d45913ab3bed2c5","language":"en","license":"CC-BY-4.0","query":"Return the average of unit_price for retail invoice lines where (country equals 'Channel Islands' or 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\",0.55],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\",0.55],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\",0.55],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\",0.55],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Channel Islands\",2.8654166666666665],[\"Austria\",0.55],[\"Netherlands\",0.4366666666666667],[\"Germany\",0.4118181818181818],[\"France\",0.40210526315789474]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5","sql_parameters":"[\"Channel Islands\",0.55]","state":"{\"question\":\"Return the average of unit_price for retail invoice lines where (country equals 'Channel Islands' or 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\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1106{"category":"single_table/date/or/having","domain":"commerce","family_id":"1c1ba7065f3f2f0a782cc73d","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"d6f6367b48a5bde9fed46b79830a5108da594bd4495368eabbe29328dbe84916","language":"en","license":"CC-BY-4.0","query":"Return the average of unit_price for retail invoice lines where (unit_price is greater than 49.95 or invoice_date is before '2010-07-14'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[49.95,\\\"2010-07-14\\\",2],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (unit_price > ? AND invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[49.95,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date < ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[49.95,\\\"2010-07-14\\\",2],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[49.95,\\\"2010-07-14\\\",2],\\\"sql\\\":\\\"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Singapore\",1684.305],[\"Norway\",280.09999999999997],[\"EIRE\",67.645],[\"Spain\",18.279444444444444],[\"Germany\",15.647222222222222]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, AVG(unit_price) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5","sql_parameters":"[49.95,\"2010-07-14\",2]","state":"{\"question\":\"Return the average of unit_price for retail invoice lines where (unit_price is greater than 49.95 or invoice_date is before '2010-07-14'), 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_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1107{"category":"single_table/and/grouped","domain":"commerce","family_id":"511bdae66d62eb5722a32e3c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"fdcb1568b973ef7adc35ffca8a01bfa3e482e21307aef44905878c2e2240a129","language":"en","license":"CC-BY-4.0","query":"Return the minimum of product_duration for shopping sessions where (region equals 8 and product_related is at most 226), grouped by revenue, ordered by revenue ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[8,226],\\\"sql\\\":\\\"SELECT revenue, MIN(product_duration) AS value FROM shopping_sessions WHERE (region = ? AND product_related <= ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[8,226],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (region = ? AND product_related <= ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[8,226],\\\"sql\\\":\\\"SELECT revenue, SUM(product_duration) AS value FROM shopping_sessions WHERE (region = ? AND product_related <= ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[8,226],\\\"sql\\\":\\\"SELECT revenue, AVG(product_duration) AS value FROM shopping_sessions WHERE (region = ? AND product_related <= ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,0.0],[1,0.0]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, MIN(product_duration) AS value FROM shopping_sessions WHERE (region = ? AND product_related <= ?) GROUP BY revenue ORDER BY revenue ASC","sql_parameters":"[8,226]","state":"{\"question\":\"Return the minimum of product_duration for shopping sessions where (region equals 8 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\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}1108{"category":"join/distinct_invoice/or/ranked","domain":"commerce","family_id":"2093f158d0815653ad9a69ce","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"1ef225aaf1669f573cf1bba88f449f8bc856dae1ced8d0164343586ccbc9d1ba","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.customer_id equals '12364' or l.unit_price is at most 4.77), grouped by i.invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12364\\\",4.77],\\\"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.customer_id = ? AND l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12364\\\",4.77],\\\"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.customer_id = ? OR l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12364\\\",4.77],\\\"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.customer_id = ? OR l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12364\\\",4.77],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) 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 value ASC, i.invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-01-06\",1],[\"2010-01-18\",1],[\"2010-10-17\",1]]","source":"online_retail_ii","split":"dev","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.customer_id = ? OR l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3","sql_parameters":"[\"12364\",4.77]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.customer_id equals '12364' or l.unit_price is at most 4.77), grouped by i.invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1109{"category":"join/null/date/or/having","domain":"commerce","family_id":"0e3bf92de14ff75dbad24047","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"0899ccd5ff0d70135efc9621d7c36c5281f23d2ced1780a42f9cac3363c12882","language":"en","license":"CC-BY-4.0","query":"Return the minimum of l.unit_price for retail lines joined to their invoices where (i.invoice_date is before '2010-07-14' or i.customer_id is present), grouped by i.invoice_date, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\",2],\\\"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.invoice_date < ? AND i.customer_id IS NOT NULL) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\",2],\\\"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.invoice_date < ? OR i.customer_id IS NOT NULL) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\",2],\\\"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.invoice_date < ? OR i.customer_id IS NOT NULL) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\",2],\\\"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 < ? OR i.customer_id IS NOT NULL) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-07-11\",8.5],[\"2011-01-16\",3.39],[\"2011-08-31\",1.79],[\"2010-02-23\",1.69],[\"2010-10-17\",1.69]]","source":"online_retail_ii","split":"dev","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.invoice_date < ? OR i.customer_id IS NOT NULL) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5","sql_parameters":"[\"2010-07-14\",2]","state":"{\"question\":\"Return the minimum of l.unit_price for retail lines joined to their invoices where (i.invoice_date is before '2010-07-14' or i.customer_id is present), grouped by i.invoice_date, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1110{"category":"single_table/grouped","domain":"commerce","family_id":"0de2598317e4e02e78fc0fa0","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"08ea0714ab22425ef7ebc130df11a4eed4cf743afe4e8cdc796f8804185d69ef","language":"en","license":"CC-BY-4.0","query":"Return the minimum of administrative for shopping sessions where (product_related is greater than 155), grouped by month, ordered by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[155],\\\"sql\\\":\\\"SELECT month, MIN(administrative) AS value FROM shopping_sessions WHERE (product_related > ?) GROUP BY month ORDER BY month ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[155],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (product_related > ?) GROUP BY month ORDER BY month ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[155],\\\"sql\\\":\\\"SELECT month, SUM(administrative) AS value FROM shopping_sessions WHERE (product_related > ?) GROUP BY month ORDER BY month ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[155],\\\"sql\\\":\\\"SELECT month, AVG(administrative) AS value FROM shopping_sessions WHERE (product_related > ?) GROUP BY month ORDER BY month ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Aug\",0],[\"Dec\",0],[\"Jul\",0],[\"June\",0],[\"Mar\",7],[\"May\",0],[\"Nov\",0],[\"Oct\",1],[\"Sep\",2]]","source":"online_shoppers","split":"dev","sql":"SELECT month, MIN(administrative) AS value FROM shopping_sessions WHERE (product_related > ?) GROUP BY month ORDER BY month ASC","sql_parameters":"[155]","state":"{\"question\":\"Return the minimum of administrative for shopping sessions where (product_related is greater than 155), grouped by month, ordered by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}1111{"category":"join/or/ranked","domain":"commerce","family_id":"229c44e7314c2d3c5e895976","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"ed44674a500856c720febd7bc6931021ffa93c7a0fb50057e8810de9c26065e6","language":"en","license":"CC-BY-4.0","query":"Return the maximum of l.unit_price for retail lines joined to their invoices where (i.country equals 'Finland' or l.quantity is greater than 92), grouped by i.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Finland\\\",92],\\\"sql\\\":\\\"SELECT i.country, MAX(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND l.quantity > ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Finland\\\",92],\\\"sql\\\":\\\"SELECT i.country, MAX(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR l.quantity > ?) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Finland\\\",92],\\\"sql\\\":\\\"SELECT i.country, MAX(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR l.quantity > ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Finland\\\",92],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR l.quantity > ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Belgium\",0.65],[\"Italy\",0.85],[\"Denmark\",1.04]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, MAX(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR l.quantity > ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3","sql_parameters":"[\"Finland\",92]","state":"{\"question\":\"Return the maximum of l.unit_price for retail lines joined to their invoices where (i.country equals 'Finland' or l.quantity is greater than 92), grouped by i.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1112{"category":"single_table/date/and/ranked","domain":"commerce","family_id":"3f1de4fb4704f7977ac324a1","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"13a3b7ac55d5ec7647fe046a76e44836581ecca203ad9632e61b3a64987587e4","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (quantity is greater than 92 and invoice_date is on or after '2011-09-29'), grouped by country; return at most 3 groups ordered by aggregate value ASC, breaking ties by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[92,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (quantity > ? AND invoice_date >= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[92,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (quantity > ? OR invoice_date >= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[92,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (quantity > ? AND invoice_date >= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[92,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (quantity > ? AND invoice_date >= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Denmark\",1.04],[\"Germany\",1.04],[\"France\",1.65]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (quantity > ? AND invoice_date >= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3","sql_parameters":"[92,\"2011-09-29\"]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines where (quantity is greater than 92 and invoice_date is on or after '2011-09-29'), 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\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1113{"category":"single_table/date/or/ranked","domain":"commerce","family_id":"3c4c8a05e922b430cf820d86","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"3d122a1680e7942f38608ec82f964d0553165eed4f7d1ef9c466eea4f1a9a1f0","language":"en","license":"CC-BY-4.0","query":"Return the average of quantity for retail invoice lines where (unit_price is greater than 2.25 or invoice_date is on or after '2011-09-29'), grouped by country; return at most 3 groups ordered by aggregate value ASC, breaking ties by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2.25,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (unit_price > ? AND invoice_date >= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2.25,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date >= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2.25,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date >= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2.25,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date >= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Poland\",1.0],[\"Singapore\",1.0],[\"United Arab Emirates\",1.0]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date >= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3","sql_parameters":"[2.25,\"2011-09-29\"]","state":"{\"question\":\"Return the average of quantity for retail invoice lines where (unit_price is greater than 2.25 or invoice_date is on or after '2011-09-29'), 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\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1114{"category":"single_table/date/and/having","domain":"commerce","family_id":"461b02b7522c27bf6fce2072","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"4cce134085bd959c56b83aaaa9f92c9eb8784710bdf093ad3b952fee4f809c2a","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (quantity is greater than 648 and invoice_date is before '2010-07-14'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[648,\\\"2010-07-14\\\",2],\\\"sql\\\":\\\"SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (quantity > ? AND invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[648,\\\"2010-07-14\\\",2],\\\"sql\\\":\\\"SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (quantity > ? OR invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[648,\\\"2010-07-14\\\",2],\\\"sql\\\":\\\"SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (quantity > ? AND invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[648,\\\"2010-07-14\\\",2],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (quantity > ? AND invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"United Kingdom\",2.55],[\"Sweden\",0.09]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (quantity > ? AND invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5","sql_parameters":"[648,\"2010-07-14\",2]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines where (quantity is greater than 648 and invoice_date is before '2010-07-14'), 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_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1115{"category":"single_table/date/and/aggregate","domain":"commerce","family_id":"45e05d3a0c044d8e4793c14a","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"3fe8b42c97b64b2188a83e3732c515ac3a441e6f7ff5d82c78a897da8533b1a0","language":"en","license":"CC-BY-4.0","query":"Return the minimum of unit_price for retail invoice lines where (quantity is greater than 92 and invoice_date is before '2011-05-10').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[92,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT MIN(unit_price) AS value FROM retail_lines WHERE (quantity > ? AND invoice_date < ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[92,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT MIN(unit_price) AS value FROM retail_lines WHERE (quantity > ? OR invoice_date < ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[92,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (quantity > ? AND invoice_date < ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[92,\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT SUM(unit_price) AS value FROM retail_lines WHERE (quantity > ? AND invoice_date < ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0.06]]","source":"online_retail_ii","split":"dev","sql":"SELECT MIN(unit_price) AS value FROM retail_lines WHERE (quantity > ? AND invoice_date < ?)","sql_parameters":"[92,\"2011-05-10\"]","state":"{\"question\":\"Return the minimum of unit_price for retail invoice lines where (quantity is greater than 92 and invoice_date is before '2011-05-10').\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1116{"category":"single_table/having","domain":"commerce","family_id":"26a281c3eaaa5899a4a2c7bb","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"c621a0bf09efc85afed83877491d28476eb24d044d1b1723cf6ccbfef59bf5e5","language":"en","license":"CC-BY-4.0","query":"Return the average of product_related for shopping sessions where (weekend equals 0), grouped by revenue, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by revenue ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[0,2],\\\"sql\\\":\\\"SELECT revenue, AVG(product_related) AS value FROM shopping_sessions WHERE (weekend = ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[0,2],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (weekend = ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[0,2],\\\"sql\\\":\\\"SELECT revenue, SUM(product_related) AS value FROM shopping_sessions WHERE (weekend = ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[0,2],\\\"sql\\\":\\\"SELECT revenue, AVG(product_related) AS value FROM shopping_sessions WHERE (weekend = ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1,49.38254080908446],[0,28.180181298894823]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, AVG(product_related) AS value FROM shopping_sessions WHERE (weekend = ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 5","sql_parameters":"[0,2]","state":"{\"question\":\"Return the average of product_related for shopping sessions where (weekend equals 0), grouped by revenue, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by revenue ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}1117{"category":"single_table/ranked","domain":"sensor","family_id":"0f696cbafe29add21f06680d","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"a34b216945c281f9f9679385c278012d9a8b0d5ab35256b493b087d74e4f2fce","language":"en","license":"CC-BY-4.0","query":"Return the sum of ts1_mean for hydraulic cycles where (fs1_mean is greater than 6.57291), grouped by pump_leakage; return at most 5 groups ordered by aggregate value DESC, breaking ties by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[6.57291],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (fs1_mean > ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[6.57291],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(ts1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[6.57291],\\\"sql\\\":\\\"SELECT pump_leakage, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[6.57291],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(ts1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,49701.98478]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, SUM(ts1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 5","sql_parameters":"[6.57291]","state":"{\"question\":\"Return the sum of ts1_mean for hydraulic cycles where (fs1_mean is greater than 6.57291), 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\",\"eps1_mean\":\"REAL\",\"fs1_mean\":\"REAL\",\"ps1_mean\":\"REAL\",\"ps2_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1118{"category":"join/distinct_invoice/having","domain":"commerce","family_id":"861b6b7dad44e5d0ac8f58f7","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"8fb6ae240e191b4e850b66e26c31dbd6ba27f080273b9e61b189983432ab419a","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.unit_price is greater than 4.77), grouped by i.invoice_date, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[4.77,2],\\\"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 > ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[4.77,2],\\\"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 > ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[4.77,2],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[4.77,2],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-12-01\",26],[\"2010-12-08\",24],[\"2010-12-09\",24],[\"2010-12-16\",19],[\"2011-11-17\",19]]","source":"online_retail_ii","split":"dev","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 > ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5","sql_parameters":"[4.77,2]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.unit_price is greater than 4.77), grouped by i.invoice_date, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1119{"category":"single_table/and/ranked","domain":"commerce","family_id":"86f9ebaa9d087222c7aeac53","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"eb5a43c37349a1235014493dcc3c579710c39579c8ca944f16f7b4c1198c63ba","language":"en","license":"CC-BY-4.0","query":"Return the minimum of unit_price for retail invoice lines where (country equals 'EIRE' and quantity is at most 25), grouped by country; return at most 5 groups ordered by aggregate value DESC, breaking ties by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"EIRE\\\",25],\\\"sql\\\":\\\"SELECT country, MIN(unit_price) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"EIRE\\\",25],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"EIRE\\\",25],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"EIRE\\\",25],\\\"sql\\\":\\\"SELECT country, MIN(unit_price) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"EIRE\",0.42]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, MIN(unit_price) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5","sql_parameters":"[\"EIRE\",25]","state":"{\"question\":\"Return the minimum of unit_price for retail invoice lines where (country equals 'EIRE' and quantity is at most 25), 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\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1120{"category":"join/distinct_invoice/date/and/grouped","domain":"commerce","family_id":"8d5b4a58d746b2042708f352","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"d2acd203361822fdaa700c03f1240574a0d9949ebca3489496c9e3729baf1ab1","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.country equals 'Australia' and i.invoice_date is on or after '2011-09-29'), grouped by i.country, ordered by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Australia\\\",\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR i.invoice_date >= ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Australia\\\",\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND i.invoice_date >= ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Australia\\\",\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND i.invoice_date >= ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Australia\\\",\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND i.invoice_date >= ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",1]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND i.invoice_date >= ?) GROUP BY i.country ORDER BY i.country ASC","sql_parameters":"[\"Australia\",\"2011-09-29\"]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.country equals 'Australia' and i.invoice_date is on or after '2011-09-29'), grouped by i.country, ordered by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1121{"category":"join/and/grouped","domain":"commerce","family_id":"84777571d62f757a4bd5f556","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"e5511bd89ec82df2c41bf4c878764e93f8785f3d7b8838713ac703745d90cc19","language":"en","license":"CC-BY-4.0","query":"Return the average of l.unit_price for retail lines joined to their invoices where (i.country equals 'Finland' and l.quantity is greater than 92), grouped by i.invoice_date, ordered by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Finland\\\",92],\\\"sql\\\":\\\"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.country = ? AND l.quantity > ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Finland\\\",92],\\\"sql\\\":\\\"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.country = ? OR l.quantity > ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Finland\\\",92],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) 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 i.invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Finland\\\",92],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.unit_price) 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 i.invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-01-25\",0.29],[\"2011-04-05\",1.25],[\"2011-09-25\",1.25]]","source":"online_retail_ii","split":"dev","sql":"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.country = ? AND l.quantity > ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC","sql_parameters":"[\"Finland\",92]","state":"{\"question\":\"Return the average of l.unit_price for retail lines joined to their invoices where (i.country equals 'Finland' and l.quantity is greater than 92), grouped by i.invoice_date, ordered by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1122{"category":"join/null/and/having","domain":"commerce","family_id":"2c2735b0b92a4d095f7f98d0","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"a582e55074f19e3f1804dacde61662338bb74d0ac7dba8ece176bb26bb8f073f","language":"en","license":"CC-BY-4.0","query":"Return the minimum of l.unit_price for retail lines joined to their invoices where (l.quantity is greater than 229 and i.customer_id is missing), grouped by i.country, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[229,2],\\\"sql\\\":\\\"SELECT i.country, MIN(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ? AND i.customer_id IS NULL) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[229,2],\\\"sql\\\":\\\"SELECT i.country, MIN(l.unit_price) 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 DESC, i.country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[229],\\\"sql\\\":\\\"SELECT i.country, MIN(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ? AND i.customer_id IS NULL) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2],\\\"sql\\\":\\\"SELECT i.country, MIN(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, MIN(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ? AND i.customer_id IS NULL) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5","sql_parameters":"[229,2]","state":"{\"question\":\"Return the minimum of l.unit_price for retail lines joined to their invoices where (l.quantity is greater than 229 and i.customer_id is missing), grouped by i.country, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1123{"category":"single_table/having","domain":"sensor","family_id":"2fe5d7863f03bfee95b61208","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"608ff4410c1705087cb13045ff25e4bf36542dcca30c2e6657a4cd0896f421e9","language":"en","license":"CC-BY-4.0","query":"Return the sum of ts1_mean for hydraulic cycles where (fs1_mean is greater than 3.36184), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[3.36184,2],\\\"sql\\\":\\\"SELECT valve, SUM(ts1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[3.36184,2],\\\"sql\\\":\\\"SELECT valve, SUM(ts1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[3.36184,2],\\\"sql\\\":\\\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (fs1_mean > ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[3.36184,2],\\\"sql\\\":\\\"SELECT valve, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[100,47437.34779],[80,13603.37189],[90,13422.39821],[73,13382.92076]]","source":"hydraulic","split":"dev","sql":"SELECT valve, SUM(ts1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 5","sql_parameters":"[3.36184,2]","state":"{\"question\":\"Return the sum of ts1_mean for hydraulic cycles where (fs1_mean is greater than 3.36184), 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\":{\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1124{"category":"join/or/ranked","domain":"commerce","family_id":"6e0fcfebc6e600ff5ea8ee14","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"8ac0cfddff657c13c5252e2c0d1ef75bf011d37df3d66fcec7923ae18d977092","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.quantity for retail lines joined to their invoices where (l.quantity is greater than 648 or l.unit_price is greater than 4.77), grouped by i.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[648,4.77],\\\"sql\\\":\\\"SELECT i.country, SUM(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.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[648,4.77],\\\"sql\\\":\\\"SELECT i.country, SUM(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.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[648,4.77],\\\"sql\\\":\\\"SELECT i.country, SUM(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.country ORDER BY value DESC, i.country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[648,4.77],\\\"sql\\\":\\\"SELECT i.country, AVG(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.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Poland\",1],[\"Japan\",2],[\"United Arab Emirates\",2]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, SUM(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.country ORDER BY value ASC, i.country ASC LIMIT 3","sql_parameters":"[648,4.77]","state":"{\"question\":\"Return the sum of l.quantity for retail lines joined to their invoices where (l.quantity is greater than 648 or l.unit_price is greater than 4.77), grouped by i.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1125{"category":"join/or/grouped","domain":"commerce","family_id":"6ba141bfe72889d343cc5283","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"7c89bc07e7f5bf85e21e61ff4800d510b3f11901ec3dd5a707defa33437b4752","language":"en","license":"CC-BY-4.0","query":"Return the average of l.unit_price for retail lines joined to their invoices where (i.customer_id equals '12348' or l.unit_price is at most 2.25), grouped by i.country, ordered by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12348\\\",2.25],\\\"sql\\\":\\\"SELECT i.country, 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 <= ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12348\\\",2.25],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) 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.country ORDER BY i.country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12348\\\",2.25],\\\"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.customer_id = ? OR l.unit_price <= ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12348\\\",2.25],\\\"sql\\\":\\\"SELECT i.country, 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 <= ?) GROUP BY i.country ORDER BY i.country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",1.5295238095238095],[\"Austria\",1.5044444444444443],[\"Bahrain\",1.15],[\"Belgium\",1.2147826086956521],[\"Canada\",0.998],[\"Channel Islands\",1.724736842105263],[\"Cyprus\",1.3812499999999999],[\"Denmark\",0.8633333333333333],[\"EIRE\",1.2545161290322582],[\"Finland\",5.448571428571428],[\"France\",1.228359375],[\"Germany\",1.3652719665271966],[\"Israel\",1.25],[\"Italy\",1.13],[\"Japan\",1.0413333333333332],[\"Netherlands\",1.436056338028169],[\"Norway\",1.8583333333333334],[\"Poland\",1.638],[\"Portugal\",0.9592307692307691],[\"Spain\",1.448076923076923],[\"Sweden\",1.1596774193548387],[\"Switzerland\",1.4058823529411764],[\"United Kingdom\",1.2836802916311179]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, 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 <= ?) GROUP BY i.country ORDER BY i.country ASC","sql_parameters":"[\"12348\",2.25]","state":"{\"question\":\"Return the average of l.unit_price for retail lines joined to their invoices where (i.customer_id equals '12348' or l.unit_price is at most 2.25), grouped by i.country, ordered by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1126{"category":"single_table/date/aggregate","domain":"commerce","family_id":"b506553d0da00d7bc0ce3f66","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"1710534d577ad873b1b99c1635ff30e3b7bd20ab5ea5133b9787ee3b342c30d2","language":"en","license":"CC-BY-4.0","query":"Return the minimum of quantity for retail invoice lines where (invoice_date is before '2010-12-02').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (invoice_date < ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT MIN(quantity) AS value FROM retail_lines WHERE (invoice_date < ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT SUM(quantity) AS value FROM retail_lines WHERE (invoice_date < ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT AVG(quantity) AS value FROM retail_lines WHERE (invoice_date < ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1]]","source":"online_retail_ii","split":"dev","sql":"SELECT MIN(quantity) AS value FROM retail_lines WHERE (invoice_date < ?)","sql_parameters":"[\"2010-12-02\"]","state":"{\"question\":\"Return the minimum of quantity for retail invoice lines where (invoice_date is before '2010-12-02').\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1127{"category":"single_table/having","domain":"commerce","family_id":"5959c741d97cfc5fe78617c9","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"38e3c4d7735161558eb878a234383f9b05bb49d80b398710ca8b9cb31d12fdb2","language":"en","license":"CC-BY-4.0","query":"Return the minimum of administrative for shopping sessions where (product_duration is at most 3395.729484), grouped by month, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[3395.729484,2],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (product_duration <= ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[3395.729484,2],\\\"sql\\\":\\\"SELECT month, SUM(administrative) AS value FROM shopping_sessions WHERE (product_duration <= ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[3395.729484,2],\\\"sql\\\":\\\"SELECT month, AVG(administrative) AS value FROM shopping_sessions WHERE (product_duration <= ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[3395.729484,2],\\\"sql\\\":\\\"SELECT month, MIN(administrative) AS value FROM shopping_sessions WHERE (product_duration <= ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Aug\",0],[\"Dec\",0],[\"Feb\",0],[\"Jul\",0],[\"June\",0]]","source":"online_shoppers","split":"dev","sql":"SELECT month, MIN(administrative) AS value FROM shopping_sessions WHERE (product_duration <= ?) GROUP BY month HAVING COUNT(*) >= ? ORDER BY value DESC, month ASC LIMIT 5","sql_parameters":"[3395.729484,2]","state":"{\"question\":\"Return the minimum of administrative for shopping sessions where (product_duration is at most 3395.729484), grouped by month, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}1128{"category":"single_table/and/ranked","domain":"commerce","family_id":"4a481270bed2d1a0725ef2de","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"c306152ab60ba9fd86ac478ac8f988fe4e44757f2a11760f96e3a9ea84e5fa14","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail invoice lines where (country equals 'Bahrain' and quantity is greater than 648), grouped by country; return at most 3 groups ordered by aggregate value ASC, breaking ties by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Bahrain\\\",648],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? OR quantity > ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Bahrain\\\",648],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND quantity > ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Bahrain\\\"],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","sql":"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND quantity > ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3","sql_parameters":"[\"Bahrain\",648]","state":"{\"question\":\"Return the number of rows for retail invoice lines where (country equals 'Bahrain' and quantity is greater than 648), 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\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1129{"category":"single_table/date/and/ranked","domain":"commerce","family_id":"74154e46c7e00ef525512caa","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"9a1e77bf300af08f01bfe60f866f61e75ff42311b75173525ad1ce891066d23c","language":"en","license":"CC-BY-4.0","query":"Return the average of quantity for retail invoice lines where (country equals 'Austria' and invoice_date is before '2011-05-10'), grouped by invoice_date; return at most 5 groups ordered by aggregate value DESC, breaking ties by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Austria\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (country = ? OR invoice_date < ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Austria\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Austria\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Austria\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-04-26\",22.6],[\"2011-03-03\",13.25],[\"2010-03-25\",7.0],[\"2011-05-06\",7.0]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (country = ? AND invoice_date < ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5","sql_parameters":"[\"Austria\",\"2011-05-10\"]","state":"{\"question\":\"Return the average of quantity for retail invoice lines where (country equals 'Austria' and invoice_date is before '2011-05-10'), 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\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1130{"category":"join/null/or/having","domain":"commerce","family_id":"1438d343b006dfce57ad96e4","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"6d2a2680659ddbed31f012a1252f0e9bbc8d8d27c04a6799eeed5fea8a89719c","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.quantity for retail lines joined to their invoices where (l.quantity is at most 25 or i.customer_id is present), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[25,10],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? OR i.customer_id IS NOT NULL) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[25,10],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? AND i.customer_id IS NOT NULL) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[25],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? OR i.customer_id IS NOT NULL) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[25,10],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? OR i.customer_id IS NOT NULL) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Bahrain\",97],[\"Norway\",114],[\"Portugal\",219]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? OR i.customer_id IS NOT NULL) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3","sql_parameters":"[25,10]","state":"{\"question\":\"Return the sum of l.quantity for retail lines joined to their invoices where (l.quantity is at most 25 or i.customer_id is present), 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_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1131{"category":"single_table/and/ranked","domain":"commerce","family_id":"71521adb39fe77f08ab7029e","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"4a6365eaa3e837b09d3b09a953cef487df08122b4a422e4fd6c231ff3be3ce85","language":"en","license":"CC-BY-4.0","query":"Return the minimum of quantity for retail invoice lines where (country equals 'Australia' and quantity is at most 648), grouped by country; return at most 5 groups ordered by aggregate value DESC, breaking ties by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Australia\\\",648],\\\"sql\\\":\\\"SELECT country, MIN(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Australia\\\",648],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Australia\\\",648],\\\"sql\\\":\\\"SELECT country, MIN(quantity) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Australia\\\",648],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",2]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, MIN(quantity) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5","sql_parameters":"[\"Australia\",648]","state":"{\"question\":\"Return the minimum of quantity for retail invoice lines where (country equals 'Australia' and quantity is at most 648), 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\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1132{"category":"single_table/and/grouped","domain":"commerce","family_id":"94636e0acf4880fbce14c818","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"b35f706e795899868d0b1b7a5b1b0569ddc770651e512a493b0548768a0a766d","language":"en","license":"CC-BY-4.0","query":"Return the sum of product_related for shopping sessions where (region equals 2 and traffic_type equals 18), grouped by visitor_type, ordered by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2,18],\\\"sql\\\":\\\"SELECT visitor_type, SUM(product_related) AS value FROM shopping_sessions WHERE (region = ? OR traffic_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2,18],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (region = ? AND traffic_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2,18],\\\"sql\\\":\\\"SELECT visitor_type, SUM(product_related) AS value FROM shopping_sessions WHERE (region = ? AND traffic_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[],\\\"sql\\\":\\\"SELECT visitor_type, SUM(product_related) AS value FROM shopping_sessions GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Returning_Visitor\",16]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, SUM(product_related) AS value FROM shopping_sessions WHERE (region = ? AND traffic_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC","sql_parameters":"[2,18]","state":"{\"question\":\"Return the sum of product_related for shopping sessions where (region equals 2 and traffic_type equals 18), grouped by visitor_type, ordered by visitor_type ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}1133{"category":"single_table/or/grouped","domain":"commerce","family_id":"cd779062bf0bdd1927610428","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"a9d0d4b1e400b4e92c6dd29d882e46596b590192dede0c8413c4999d307f56ab","language":"en","license":"CC-BY-4.0","query":"Return the sum of quantity for retail invoice lines where (country equals 'Australia' or quantity is at most 229), grouped by country, ordered by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Australia\\\",229],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Australia\\\",229],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Australia\\\",229],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Australia\\\",229],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?) GROUP BY country ORDER BY country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",711],[\"Austria\",229],[\"Bahrain\",97],[\"Belgium\",710],[\"Canada\",52],[\"Channel Islands\",2482],[\"Cyprus\",754],[\"Denmark\",385],[\"EIRE\",6395],[\"Finland\",2800],[\"France\",5384],[\"Germany\",9393],[\"Israel\",34],[\"Italy\",276],[\"Japan\",411],[\"Netherlands\",5808],[\"Norway\",114],[\"Poland\",157],[\"Portugal\",219],[\"Singapore\",6],[\"Spain\",3659],[\"Sweden\",4348],[\"Switzerland\",951],[\"USA\",36],[\"United Arab Emirates\",2],[\"United Kingdom\",641643]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?) GROUP BY country ORDER BY country ASC","sql_parameters":"[\"Australia\",229]","state":"{\"question\":\"Return the sum of quantity for retail invoice lines where (country equals 'Australia' or quantity is at most 229), 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\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1134{"category":"single_table/grouped","domain":"commerce","family_id":"5bff1bc72937fae9034df0e3","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"90ce35bc8d596a2853769513aafb9b10ae366020c3201aab1c9821b92cb5d765","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (quantity is greater than 229), grouped by invoice_date, ordered by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[229],\\\"sql\\\":\\\"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (quantity > ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[229],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (quantity > ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[229],\\\"sql\\\":\\\"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (quantity > ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[229],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (quantity > ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-02\",1.45],[\"2009-12-03\",2.0],[\"2009-12-04\",1.65],[\"2009-12-07\",0.72],[\"2009-12-08\",2.55],[\"2009-12-15\",2.1],[\"2009-12-22\",1.49],[\"2009-12-23\",0.38],[\"2010-01-04\",1.65],[\"2010-01-07\",2.55],[\"2010-01-08\",3.0],[\"2010-01-10\",4.95],[\"2010-01-11\",0.72],[\"2010-01-12\",0.21],[\"2010-01-13\",0.36],[\"2010-01-20\",0.4],[\"2010-01-27\",0.42],[\"2010-01-29\",1.05],[\"2010-02-04\",0.85],[\"2010-02-07\",0.16],[\"2010-02-11\",0.55],[\"2010-02-12\",0.4],[\"2010-02-16\",1.06],[\"2010-02-17\",1.05],[\"2010-02-18\",0.42],[\"2010-02-19\",1.45],[\"2010-02-24\",0.72],[\"2010-02-25\",0.85],[\"2010-02-26\",1.65],[\"2010-02-28\",0.36],[\"2010-03-01\",0.4],[\"2010-03-04\",0.85],[\"2010-03-05\",0.29],[\"2010-03-08\",2.55],[\"2010-03-10\",0.42],[\"2010-03-15\",1.8],[\"2010-03-17\",0.55],[\"2010-03-18\",0.18],[\"2010-03-19\",0.21],[\"2010-03-21\",0.35],[\"2010-03-22\",2.55],[\"2010-03-23\",0.5],[\"2010-03-24\",0.72],[\"2010-03-29\",1.85],[\"2010-03-30\",0.6],[\"2010-04-01\",0.65],[\"2010-04-06\",0.42],[\"2010-04-08\",1.65],[\"2010-04-09\",0.72],[\"2010-04-11\",2.55],[\"2010-04-16\",0.72],[\"2010-04-19\",0.09],[\"2010-04-22\",0.85],[\"2010-04-26\",1.65],[\"2010-04-29\",0.16],[\"2010-05-02\",1.45],[\"2010-05-04\",1.6],[\"2010-05-05\",1.06],[\"2010-05-06\",0.55],[\"2010-05-07\",1.85],[\"2010-05-10\",0.85],[\"2010-05-12\",1.65],[\"2010-05-14\",0.52],[\"2010-05-18\",0.5],[\"2010-05-19\",0.85],[\"2010-05-23\",0.42],[\"2010-05-25\",0.4],[\"2010-05-26\",0.16],[\"2010-06-03\",1.06],[\"2010-06-07\",2.55],[\"2010-06-08\",2.55],[\"2010-06-09\",3.39],[\"2010-06-15\",0.55],[\"2010-06-20\",0.72],[\"2010-06-23\",0.52],[\"2010-06-27\",0.65],[\"2010-06-28\",3.39],[\"2010-06-29\",1.65],[\"2010-06-30\",0.14],[\"2010-07-06\",1.69],[\"2010-07-15\",2.3],[\"2010-07-16\",0.42],[\"2010-07-18\",0.72],[\"2010-07-23\",0.72],[\"2010-07-25\",0.32],[\"2010-07-26\",1.06],[\"2010-07-27\",1.47],[\"2010-07-28\",0.29],[\"2010-07-30\",2.8],[\"2010-08-02\",2.3],[\"2010-08-03\",1.65],[\"2010-08-05\",0.18],[\"2010-08-08\",0.29],[\"2010-08-11\",6.86],[\"2010-08-13\",2.4],[\"2010-08-15\",1.65],[\"2010-08-16\",9.32],[\"2010-08-17\",2.1],[\"2010-08-19\",1.45],[\"2010-08-24\",1.45],[\"2010-08-25\",0.72],[\"2010-08-26\",0.87],[\"2010-08-31\",2.3],[\"2010-09-02\",0.55],[\"2010-09-03\",1.66],[\"2010-09-07\",1.95],[\"2010-09-12\",0.42],[\"2010-09-13\",1.45],[\"2010-09-17\",1.45],[\"2010-09-20\",1.25],[\"2010-09-21\",1.06],[\"2010-09-26\",0.21],[\"2010-09-27\",3.17],[\"2010-09-28\",0.65],[\"2010-10-04\",0.16],[\"2010-10-05\",1.25],[\"2010-10-06\",0.4],[\"2010-10-08\",2.75],[\"2010-10-12\",0.64],[\"2010-10-13\",0.21],[\"2010-10-14\",0.53],[\"2010-10-22\",1.45],[\"2010-10-24\",0.36],[\"2010-10-26\",0.72],[\"2010-11-01\",1.06],[\"2010-11-03\",1.45],[\"2010-11-04\",2.55],[\"2010-11-05\",2.55],[\"2010-11-09\",1.06],[\"2010-11-10\",3.39],[\"2010-11-11\",1.85],[\"2010-11-12\",10.95],[\"2010-11-15\",3.39],[\"2010-11-16\",1.45],[\"2010-11-17\",0.16],[\"2010-11-19\",0.38],[\"2010-11-24\",2.55],[\"2010-11-25\",0.42],[\"2010-11-29\",2.95],[\"2010-11-30\",0.72],[\"2010-12-01\",1.45],[\"2010-12-02\",1.45],[\"2010-12-03\",0.16],[\"2010-12-06\",1.65],[\"2010-12-07\",6.38],[\"2010-12-08\",0.72],[\"2010-12-09\",1.06],[\"2010-12-13\",1.25],[\"2010-12-14\",0.85],[\"2010-12-16\",3.39],[\"2010-12-20\",0.4],[\"2011-01-05\",1.85],[\"2011-01-06\",0.25],[\"2011-01-07\",0.25],[\"2011-01-11\",6.75],[\"2011-01-13\",0.65],[\"2011-01-17\",0.34],[\"2011-01-21\",0.64],[\"2011-01-26\",0.42],[\"2011-02-03\",3.39],[\"2011-02-04\",0.42],[\"2011-02-07\",6.38],[\"2011-02-10\",0.64],[\"2011-02-14\",0.72],[\"2011-02-15\",2.1],[\"2011-02-16\",0.25],[\"2011-02-17\",1.06],[\"2011-02-20\",0.42],[\"2011-03-02\",0.34],[\"2011-03-03\",1.06],[\"2011-03-04\",1.06],[\"2011-03-07\",1.06],[\"2011-03-08\",0.25],[\"2011-03-09\",1.93],[\"2011-03-11\",1.95],[\"2011-03-16\",0.4],[\"2011-03-17\",0.65],[\"2011-03-20\",0.25],[\"2011-03-24\",2.32],[\"2011-03-25\",6.38],[\"2011-03-30\",0.72],[\"2011-04-01\",1.06],[\"2011-04-03\",0.21],[\"2011-04-05\",3.39],[\"2011-04-08\",0.42],[\"2011-04-13\",0.72],[\"2011-04-14\",3.39],[\"2011-04-18\",6.35],[\"2011-04-20\",0.4],[\"2011-04-21\",0.42],[\"2011-04-26\",0.72],[\"2011-04-27\",1.06],[\"2011-05-03\",3.39],[\"2011-05-04\",0.21],[\"2011-05-05\",0.72],[\"2011-05-11\",1.06],[\"2011-05-13\",0.29],[\"2011-05-17\",1.06],[\"2011-05-19\",0.36],[\"2011-05-20\",1.95],[\"2011-05-23\",2.1],[\"2011-05-24\",4.25],[\"2011-05-31\",1.06],[\"2011-06-02\",2.55],[\"2011-06-05\",1.06],[\"2011-06-08\",0.65],[\"2011-06-13\",3.39],[\"2011-06-14\",2.75],[\"2011-06-16\",1.85],[\"2011-06-17\",0.25],[\"2011-06-20\",1.79],[\"2011-06-22\",1.79],[\"2011-06-28\",2.55],[\"2011-06-30\",1.06],[\"2011-07-04\",4.58],[\"2011-07-05\",1.25],[\"2011-07-06\",0.27],[\"2011-07-07\",0.4],[\"2011-07-11\",1.65],[\"2011-07-12\",1.45],[\"2011-07-17\",0.25],[\"2011-07-19\",2.1],[\"2011-07-20\",0.25],[\"2011-07-21\",1.45],[\"2011-07-24\",1.06],[\"2011-07-27\",4.65],[\"2011-07-28\",3.24],[\"2011-08-01\",1.06],[\"2011-08-02\",1.45],[\"2011-08-03\",0.25],[\"2011-08-04\",0.72],[\"2011-08-05\",1.04],[\"2011-08-07\",0.12],[\"2011-08-08\",1.25],[\"2011-08-17\",1.06],[\"2011-08-18\",1.69],[\"2011-08-22\",3.39],[\"2011-08-23\",1.06],[\"2011-08-24\",4.25],[\"2011-08-26\",1.45],[\"2011-09-01\",0.42],[\"2011-09-02\",4.8],[\"2011-09-04\",0.42],[\"2011-09-05\",0.36],[\"2011-09-08\",0.72],[\"2011-09-13\",1.79],[\"2011-09-14\",0.25],[\"2011-09-15\",4.58],[\"2011-09-16\",0.32],[\"2011-09-20\",3.2],[\"2011-09-23\",1.06],[\"2011-09-27\",0.29],[\"2011-09-28\",4.58],[\"2011-09-29\",0.42],[\"2011-10-02\",0.55],[\"2011-10-03\",0.9],[\"2011-10-04\",2.55],[\"2011-10-06\",1.79],[\"2011-10-07\",2.55],[\"2011-10-10\",5.75],[\"2011-10-13\",0.14],[\"2011-10-17\",2.55],[\"2011-10-18\",0.29],[\"2011-10-19\",0.72],[\"2011-10-24\",2.39],[\"2011-10-25\",3.39],[\"2011-10-26\",2.75],[\"2011-10-27\",0.32],[\"2011-10-28\",0.36],[\"2011-11-02\",3.39],[\"2011-11-03\",3.2],[\"2011-11-07\",1.06],[\"2011-11-09\",3.39],[\"2011-11-11\",0.2],[\"2011-11-15\",0.32],[\"2011-11-17\",3.75],[\"2011-11-18\",0.72],[\"2011-11-20\",0.72],[\"2011-11-22\",0.36],[\"2011-11-23\",3.75],[\"2011-11-24\",0.42],[\"2011-11-28\",3.2],[\"2011-11-29\",1.06],[\"2011-12-01\",2.39],[\"2011-12-02\",0.42],[\"2011-12-05\",1.95]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (quantity > ?) GROUP BY invoice_date ORDER BY invoice_date ASC","sql_parameters":"[229]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines where (quantity is greater than 229), 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\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1135{"category":"single_table/date/or/ranked","domain":"commerce","family_id":"d29be6db51740e3eacc48004","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"39db056dc58ec9742156cf4526b587a3c8786b74bd4abac16219065c89d820e7","language":"en","license":"CC-BY-4.0","query":"Return the average of unit_price for retail invoice lines where (country equals 'EIRE' or invoice_date is on or after '2010-07-14'), grouped by invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"EIRE\\\",\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"EIRE\\\",\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"EIRE\\\",\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"EIRE\\\",\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-07-10\",1.158],[\"2010-04-13\",1.25],[\"2010-01-20\",1.32]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3","sql_parameters":"[\"EIRE\",\"2010-07-14\"]","state":"{\"question\":\"Return the average of unit_price for retail invoice lines where (country equals 'EIRE' or invoice_date is on or after '2010-07-14'), grouped by invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by invoice_date ascending.\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1136{"category":"single_table/or/ranked","domain":"commerce","family_id":"aa2472c1822d42564090267c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"596e4809918a91c0ee377c34b81e250c4c5e6a2f68bdef1a69e9e4e1241ac470","language":"en","license":"CC-BY-4.0","query":"Return the minimum of quantity for retail invoice lines where (quantity is greater than 92 or unit_price is greater than 2.25), grouped by invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[92,2.25],\\\"sql\\\":\\\"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (quantity > ? AND unit_price > ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[92,2.25],\\\"sql\\\":\\\"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (quantity > ? OR unit_price > ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[92,2.25],\\\"sql\\\":\\\"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (quantity > ? OR unit_price > ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[92,2.25],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (quantity > ? OR unit_price > ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-01\",1],[\"2009-12-02\",1],[\"2009-12-03\",1]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (quantity > ? OR unit_price > ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3","sql_parameters":"[92,2.25]","state":"{\"question\":\"Return the minimum of quantity for retail invoice lines where (quantity is greater than 92 or unit_price is greater than 2.25), grouped by invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by invoice_date ascending.\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1137{"category":"single_table/date/and/aggregate","domain":"commerce","family_id":"89fa962585e1e56dc1154462","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"4e51feb7c346968c9845abc4bf3dea4160e8430286f410d0aaf6bb560bdf4d29","language":"en","license":"CC-BY-4.0","query":"Return the maximum of quantity for retail invoice lines where (unit_price is at most 49.95 and invoice_date is on or after '2010-02-18').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[49.95,\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (unit_price <= ? AND invoice_date >= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[49.95,\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT SUM(quantity) AS value FROM retail_lines WHERE (unit_price <= ? AND invoice_date >= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[49.95,\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT AVG(quantity) AS value FROM retail_lines WHERE (unit_price <= ? AND invoice_date >= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[49.95,\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT MAX(quantity) AS value FROM retail_lines WHERE (unit_price <= ? AND invoice_date >= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[10000]]","source":"online_retail_ii","split":"dev","sql":"SELECT MAX(quantity) AS value FROM retail_lines WHERE (unit_price <= ? AND invoice_date >= ?)","sql_parameters":"[49.95,\"2010-02-18\"]","state":"{\"question\":\"Return the maximum of quantity for retail invoice lines where (unit_price is at most 49.95 and invoice_date is on or after '2010-02-18').\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1138{"category":"single_table/or/aggregate","domain":"commerce","family_id":"7309a3caccfda97886ac2e76","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"db14aec223a7ea27fe6ec2b825b4b9afb778ea7ae3148b2937a5244aacb6385d","language":"en","license":"CC-BY-4.0","query":"Return the maximum of product_related for shopping sessions where (traffic_type equals 12 or product_duration is at most 472.4166667).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[12,472.4166667],\\\"sql\\\":\\\"SELECT MAX(product_related) AS value FROM shopping_sessions WHERE (traffic_type = ? AND product_duration <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[12,472.4166667],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (traffic_type = ? OR product_duration <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[12,472.4166667],\\\"sql\\\":\\\"SELECT MAX(product_related) AS value FROM shopping_sessions WHERE (traffic_type = ? OR product_duration <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[12,472.4166667],\\\"sql\\\":\\\"SELECT SUM(product_related) AS value FROM shopping_sessions WHERE (traffic_type = ? OR product_duration <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[59]]","source":"online_shoppers","split":"dev","sql":"SELECT MAX(product_related) AS value FROM shopping_sessions WHERE (traffic_type = ? OR product_duration <= ?)","sql_parameters":"[12,472.4166667]","state":"{\"question\":\"Return the maximum of product_related for shopping sessions where (traffic_type equals 12 or product_duration is at most 472.4166667).\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}1139{"category":"join/and/grouped","domain":"commerce","family_id":"ca458b4e292bc026cf816429","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"b3ea8d637afb8ce7918c681d426fd05a903f03afa57b425f1ea93c8c07904f9d","language":"en","license":"CC-BY-4.0","query":"Return the minimum of l.unit_price 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.country, ordered by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[1800,8.5],\\\"sql\\\":\\\"SELECT i.country, MIN(l.unit_price) 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.country ORDER BY i.country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[1800,8.5],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) 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.country ORDER BY i.country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[1800,8.5],\\\"sql\\\":\\\"SELECT i.country, SUM(l.unit_price) 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.country ORDER BY i.country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[1800,8.5],\\\"sql\\\":\\\"SELECT i.country, MIN(l.unit_price) 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.country ORDER BY i.country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",8.95],[\"Austria\",40.0],[\"Bahrain\",9.95],[\"Belgium\",10.95],[\"Channel Islands\",16.65],[\"Denmark\",18.0],[\"EIRE\",8.95],[\"Finland\",12.75],[\"France\",10.95],[\"Germany\",9.95],[\"Italy\",9.95],[\"Japan\",9.95],[\"Netherlands\",10.95],[\"Norway\",9.95],[\"Poland\",40.0],[\"Portugal\",10.95],[\"Singapore\",162.6],[\"Spain\",8.95],[\"Sweden\",18.0],[\"Switzerland\",12.75],[\"United Arab Emirates\",15.0],[\"United Kingdom\",8.7]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, MIN(l.unit_price) 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.country ORDER BY i.country ASC","sql_parameters":"[1800,8.5]","state":"{\"question\":\"Return the minimum of l.unit_price 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.country, ordered by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1140{"category":"single_table/date/grouped","domain":"commerce","family_id":"eccee99f73ace4cc8a5d3449","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"473db5de0a7c1a213d1211c38bde4f2080b917496a40e045f13161e916ec209d","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail invoice lines where (invoice_date is on or after '2010-02-18'), grouped by country, ordered by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\"],\\\"sql\\\":\\\"SELECT country, MIN(quantity) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY country ORDER BY country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",42],[\"Austria\",18],[\"Bahrain\",11],[\"Belgium\",76],[\"Canada\",5],[\"Channel Islands\",24],[\"Cyprus\",10],[\"Denmark\",15],[\"EIRE\",195],[\"Finland\",69],[\"France\",234],[\"Germany\",502],[\"Israel\",8],[\"Italy\",15],[\"Japan\",19],[\"Netherlands\",111],[\"Norway\",16],[\"Poland\",6],[\"Portugal\",17],[\"Singapore\",6],[\"Spain\",97],[\"Sweden\",83],[\"Switzerland\",37],[\"USA\",3],[\"United Arab Emirates\",2],[\"United Kingdom\",23013]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY country ORDER BY country ASC","sql_parameters":"[\"2010-02-18\"]","state":"{\"question\":\"Return the number of rows for retail invoice lines where (invoice_date is on or after '2010-02-18'), 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\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1141{"category":"single_table/or/having","domain":"commerce","family_id":"eb3abc357ae3656108fe3ba7","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"d40c8443939766696d51978f2abb1036db4c6e2c8a93bd70996475cbbd1533f6","language":"en","license":"CC-BY-4.0","query":"Return the maximum of quantity for retail invoice lines where (country equals 'Denmark' or unit_price is at most 2.25), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Denmark\\\",2.25,10],\\\"sql\\\":\\\"SELECT invoice_date, MAX(quantity) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Denmark\\\",2.25],\\\"sql\\\":\\\"SELECT invoice_date, MAX(quantity) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Denmark\\\",2.25,10],\\\"sql\\\":\\\"SELECT invoice_date, MAX(quantity) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Denmark\\\",2.25,10],\\\"sql\\\":\\\"SELECT invoice_date, MAX(quantity) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-04-17\",16],[\"2009-12-11\",24],[\"2010-01-26\",24]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MAX(quantity) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3","sql_parameters":"[\"Denmark\",2.25,10]","state":"{\"question\":\"Return the maximum of quantity for retail invoice lines where (country equals 'Denmark' or unit_price is at most 2.25), 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\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1142{"category":"join/distinct_invoice/or/ranked","domain":"commerce","family_id":"462f8adb5a99071471b5a584","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"fa1c1738f08c1ed9910f88d71bab02e81849c730ca7e34bbd05c5b9fc4bbae15","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.country equals 'Cyprus' or i.customer_id equals '12364'), grouped by i.country; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",\\\"12364\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR i.customer_id = ?) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",\\\"12364\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND i.customer_id = ?) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",\\\"12364\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR i.customer_id = ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Cyprus\\\",\\\"12364\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR i.customer_id = ?) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Cyprus\",5],[\"Belgium\",1]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR i.customer_id = ?) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 5","sql_parameters":"[\"Cyprus\",\"12364\"]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.country equals 'Cyprus' or i.customer_id equals '12364'), grouped by i.country; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1143{"category":"single_table/grouped","domain":"commerce","family_id":"421c5b839c99a3ea61bf033c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"adb51ad2cadc9dd4e3286fdb6e743987fc9c590fcc4632656b53d98f6b14a4ec","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail invoice lines where (country equals 'Cyprus'), grouped by country, ordered by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Cyprus\\\"],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (country = ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Cyprus\\\"],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (country = ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Cyprus\\\"],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Cyprus\\\"],\\\"sql\\\":\\\"SELECT country, MIN(quantity) AS value FROM retail_lines WHERE (country = ?) GROUP BY country ORDER BY country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Cyprus\",16]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ?) GROUP BY country ORDER BY country ASC","sql_parameters":"[\"Cyprus\"]","state":"{\"question\":\"Return the number of rows for retail invoice lines where (country equals 'Cyprus'), 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\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1144{"category":"single_table/aggregate","domain":"commerce","family_id":"5f9ea01a40e4303010d77124","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"a34396a2e6a641f42681398280eb7782fcebca7838581822227e90705f310a21","language":"en","license":"CC-BY-4.0","query":"Return the sum of quantity for retail invoice lines where (unit_price is at most 49.95).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[49.95],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (unit_price <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[49.95],\\\"sql\\\":\\\"SELECT AVG(quantity) AS value FROM retail_lines WHERE (unit_price <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[49.95],\\\"sql\\\":\\\"SELECT SUM(quantity) AS value FROM retail_lines WHERE (unit_price <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[49.95],\\\"sql\\\":\\\"SELECT MIN(quantity) AS value FROM retail_lines WHERE (unit_price <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1238628]]","source":"online_retail_ii","split":"dev","sql":"SELECT SUM(quantity) AS value FROM retail_lines WHERE (unit_price <= ?)","sql_parameters":"[49.95]","state":"{\"question\":\"Return the sum of quantity for retail invoice lines where (unit_price is at most 49.95).\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1145{"category":"single_table/ranked","domain":"commerce","family_id":"84fa6523ce6e9bd35c57cd79","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"d58089d6fc1260f82a88d37cc313faeab0ff31521fccd1f46b57e69a4aa5b96f","language":"en","license":"CC-BY-4.0","query":"Return the average of administrative for shopping sessions where (weekend equals 0), grouped by month; return at most 3 groups ordered by aggregate value ASC, breaking ties by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[0],\\\"sql\\\":\\\"SELECT month, AVG(administrative) AS value FROM shopping_sessions WHERE (weekend = ?) GROUP BY month ORDER BY value DESC, month ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[0],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (weekend = ?) GROUP BY month ORDER BY value ASC, month ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[0],\\\"sql\\\":\\\"SELECT month, AVG(administrative) AS value FROM shopping_sessions WHERE (weekend = ?) GROUP BY month ORDER BY value ASC, month ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[0],\\\"sql\\\":\\\"SELECT month, SUM(administrative) AS value FROM shopping_sessions WHERE (weekend = ?) GROUP BY month ORDER BY value ASC, month ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Feb\",0.5512820512820513],[\"Mar\",1.826086956521739],[\"May\",1.8705171762929407]]","source":"online_shoppers","split":"dev","sql":"SELECT month, AVG(administrative) AS value FROM shopping_sessions WHERE (weekend = ?) GROUP BY month ORDER BY value ASC, month ASC LIMIT 3","sql_parameters":"[0]","state":"{\"question\":\"Return the average of administrative for shopping sessions where (weekend equals 0), grouped by month; return at most 3 groups ordered by aggregate value ASC, breaking ties by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}1146{"category":"join/null/or/grouped","domain":"commerce","family_id":"d632f512b32f6b87a6847124","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"1312f0c5fab43c0db86af15dbff15c3bba6c1c2dc7c24901efaebe040892263a","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.unit_price for retail lines joined to their invoices where (l.unit_price is greater than 0.55 or i.customer_id is present), grouped by i.country, ordered by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[0.55],\\\"sql\\\":\\\"SELECT i.country, SUM(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ? AND i.customer_id IS NOT NULL) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[0.55],\\\"sql\\\":\\\"SELECT i.country, SUM(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ? OR i.customer_id IS NOT NULL) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[0.55],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ? OR i.customer_id IS NOT NULL) GROUP BY i.country ORDER BY i.country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[0.55],\\\"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.unit_price > ? OR i.customer_id IS NOT NULL) GROUP BY i.country ORDER BY i.country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",138.82],[\"Austria\",199.29],[\"Bahrain\",47.05],[\"Belgium\",606.4399999999999],[\"Canada\",4.99],[\"Channel Islands\",68.77],[\"Cyprus\",57.85],[\"Denmark\",91.62],[\"EIRE\",4593.69],[\"Finland\",818.41],[\"France\",1186.13],[\"Germany\",4113.2300000000005],[\"Israel\",42.95],[\"Italy\",103.3],[\"Japan\",37.42],[\"Netherlands\",632.1],[\"Norway\",931.2],[\"Poland\",48.19],[\"Portugal\",137.92],[\"Singapore\",10105.83],[\"Spain\",773.84],[\"Sweden\",487.8],[\"Switzerland\",351.2],[\"USA\",7.6499999999999995],[\"United Arab Emirates\",268.0],[\"United Kingdom\",99438.41]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, SUM(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ? OR i.customer_id IS NOT NULL) GROUP BY i.country ORDER BY i.country ASC","sql_parameters":"[0.55]","state":"{\"question\":\"Return the sum of l.unit_price for retail lines joined to their invoices where (l.unit_price is greater than 0.55 or i.customer_id is present), grouped by i.country, ordered by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1147{"category":"join/distinct_invoice/date/or/having","domain":"commerce","family_id":"ce876924e092f6e579b7117e","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"8f0a921c9bf7b7cb252e0c72ccb9e098a41c7fe53dda3369f6b79d673ff38cf8","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.customer_id equals '12346' or i.invoice_date is before '2011-05-10'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12346\\\",\\\"2011-05-10\\\",10],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR i.invoice_date < ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12346\\\",\\\"2011-05-10\\\",10],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? AND i.invoice_date < ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12346\\\",\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR i.invoice_date < ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12346\\\",\\\"2011-05-10\\\",10],\\\"sql\\\":\\\"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR i.invoice_date < ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Channel Islands\",3],[\"Norway\",3],[\"Austria\",4]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR i.invoice_date < ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3","sql_parameters":"[\"12346\",\"2011-05-10\",10]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.customer_id equals '12346' or i.invoice_date is before '2011-05-10'), 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_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1148{"category":"single_table/and/having","domain":"commerce","family_id":"45986a9dda8644597e2aad09","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"fac04258d5f5e3eda5d903c636323d9f31f3d130ec70b2fc3d3a11654acde173","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (country equals 'Belgium' and quantity is at most 92), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Belgium\\\",92,10],\\\"sql\\\":\\\"SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Belgium\\\",92,10],\\\"sql\\\":\\\"SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Belgium\\\",92,10],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Belgium\\\",92,10],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Belgium\",16.95]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3","sql_parameters":"[\"Belgium\",92,10]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines where (country equals 'Belgium' and quantity is at most 92), 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\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1149{"category":"single_table/and/aggregate","domain":"commerce","family_id":"63c0a301e82ec12d83ee0613","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"4c4aa318828bf4b9ba2005127b5afc22fdb58a63607a63b1af6a784336aed01f","language":"en","license":"CC-BY-4.0","query":"Return the minimum of quantity for retail invoice lines where (country equals 'Denmark' and quantity is greater than 92).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Denmark\\\",92],\\\"sql\\\":\\\"SELECT MIN(quantity) AS value FROM retail_lines WHERE (country = ? AND quantity > ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Denmark\\\",92],\\\"sql\\\":\\\"SELECT MIN(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity > ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Denmark\\\",92],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (country = ? AND quantity > ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Denmark\\\",92],\\\"sql\\\":\\\"SELECT SUM(quantity) AS value FROM retail_lines WHERE (country = ? AND quantity > ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[256]]","source":"online_retail_ii","split":"dev","sql":"SELECT MIN(quantity) AS value FROM retail_lines WHERE (country = ? AND quantity > ?)","sql_parameters":"[\"Denmark\",92]","state":"{\"question\":\"Return the minimum of quantity for retail invoice lines where (country equals 'Denmark' and quantity is greater than 92).\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1150{"category":"single_table/and/grouped","domain":"commerce","family_id":"b5a1209098d1e905ecd5f432","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"2c2627cd3af92f51863b8b5cf712f32cd731e34e2eb113adad8e12a6d2836959","language":"en","license":"CC-BY-4.0","query":"Return the maximum of administrative for shopping sessions where (region equals 6 and traffic_type equals 11), grouped by visitor_type, ordered by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[6,11],\\\"sql\\\":\\\"SELECT visitor_type, MAX(administrative) AS value FROM shopping_sessions WHERE (region = ? OR traffic_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[6,11],\\\"sql\\\":\\\"SELECT visitor_type, MAX(administrative) AS value FROM shopping_sessions WHERE (region = ? AND traffic_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[6,11],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (region = ? AND traffic_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[6,11],\\\"sql\\\":\\\"SELECT visitor_type, SUM(administrative) AS value FROM shopping_sessions WHERE (region = ? AND traffic_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"New_Visitor\",7],[\"Returning_Visitor\",24]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, MAX(administrative) AS value FROM shopping_sessions WHERE (region = ? AND traffic_type = ?) GROUP BY visitor_type ORDER BY visitor_type ASC","sql_parameters":"[6,11]","state":"{\"question\":\"Return the maximum of administrative for shopping sessions where (region equals 6 and traffic_type equals 11), grouped by visitor_type, ordered by visitor_type ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}1151{"category":"join/having","domain":"commerce","family_id":"3dc1f97d846a7de7e20c12f5","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"f0735e22b191589b537143eaed8370ae3c2622a0be8025988cb79c13b7121619","language":"en","license":"CC-BY-4.0","query":"Return the average of l.unit_price for retail lines joined to their invoices where (i.customer_id equals '12356'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12356\\\"],\\\"sql\\\":\\\"SELECT i.country, AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[10],\\\"sql\\\":\\\"SELECT i.country, AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12356\\\",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 (i.customer_id = ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12356\\\"],\\\"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 = ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3","sql_parameters":"[\"12356\",10]","state":"{\"question\":\"Return the average of l.unit_price for retail lines joined to their invoices where (i.customer_id equals '12356'), 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_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1152{"category":"single_table/grouped","domain":"commerce","family_id":"d404e333f02fc4cd0c1865da","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"7144147702407fa640ce862caa2657b2d7c3db3cc2f3e71add01a964e0314c17","language":"en","license":"CC-BY-4.0","query":"Return the minimum of quantity for retail invoice lines where (unit_price is greater than 2.25), grouped by invoice_date, ordered by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2.25],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (unit_price > ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2.25],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (unit_price > ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2.25],\\\"sql\\\":\\\"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (unit_price > ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2.25],\\\"sql\\\":\\\"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (unit_price > ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-01\",1],[\"2009-12-02\",1],[\"2009-12-03\",1],[\"2009-12-04\",1],[\"2009-12-05\",1],[\"2009-12-06\",1],[\"2009-12-07\",1],[\"2009-12-08\",1],[\"2009-12-09\",1],[\"2009-12-10\",1],[\"2009-12-11\",1],[\"2009-12-13\",1],[\"2009-12-14\",1],[\"2009-12-15\",1],[\"2009-12-16\",1],[\"2009-12-17\",1],[\"2009-12-18\",1],[\"2009-12-20\",1],[\"2009-12-21\",1],[\"2009-12-22\",1],[\"2009-12-23\",1],[\"2010-01-04\",1],[\"2010-01-05\",1],[\"2010-01-06\",1],[\"2010-01-07\",1],[\"2010-01-08\",3],[\"2010-01-10\",2],[\"2010-01-11\",1],[\"2010-01-12\",1],[\"2010-01-13\",1],[\"2010-01-14\",3],[\"2010-01-15\",1],[\"2010-01-17\",6],[\"2010-01-19\",2],[\"2010-01-20\",1],[\"2010-01-21\",1],[\"2010-01-22\",1],[\"2010-01-24\",3],[\"2010-01-25\",1],[\"2010-01-26\",1],[\"2010-01-27\",1],[\"2010-01-28\",1],[\"2010-01-29\",1],[\"2010-01-31\",1],[\"2010-02-01\",1],[\"2010-02-02\",1],[\"2010-02-03\",1],[\"2010-02-04\",1],[\"2010-02-05\",1],[\"2010-02-07\",24],[\"2010-02-08\",1],[\"2010-02-09\",1],[\"2010-02-10\",1],[\"2010-02-11\",1],[\"2010-02-12\",12],[\"2010-02-14\",1],[\"2010-02-15\",2],[\"2010-02-16\",1],[\"2010-02-17\",1],[\"2010-02-18\",1],[\"2010-02-19\",1],[\"2010-02-21\",1],[\"2010-02-22\",1],[\"2010-02-23\",1],[\"2010-02-24\",1],[\"2010-02-25\",1],[\"2010-02-26\",1],[\"2010-02-28\",1],[\"2010-03-01\",2],[\"2010-03-02\",1],[\"2010-03-03\",2],[\"2010-03-04\",2],[\"2010-03-05\",1],[\"2010-03-07\",1],[\"2010-03-08\",1],[\"2010-03-09\",1],[\"2010-03-10\",1],[\"2010-03-11\",1],[\"2010-03-12\",2],[\"2010-03-14\",1],[\"2010-03-15\",1],[\"2010-03-16\",1],[\"2010-03-17\",1],[\"2010-03-18\",1],[\"2010-03-19\",3],[\"2010-03-21\",2],[\"2010-03-22\",1],[\"2010-03-23\",1],[\"2010-03-24\",1],[\"2010-03-25\",1],[\"2010-03-26\",1],[\"2010-03-28\",12],[\"2010-03-29\",1],[\"2010-03-30\",1],[\"2010-03-31\",1],[\"2010-04-01\",1],[\"2010-04-06\",1],[\"2010-04-07\",6],[\"2010-04-08\",1],[\"2010-04-09\",1],[\"2010-04-11\",2],[\"2010-04-12\",1],[\"2010-04-13\",1],[\"2010-04-14\",1],[\"2010-04-15\",1],[\"2010-04-16\",1],[\"2010-04-18\",1],[\"2010-04-19\",1],[\"2010-04-20\",1],[\"2010-04-21\",1],[\"2010-04-22\",1],[\"2010-04-23\",1],[\"2010-04-25\",2],[\"2010-04-26\",1],[\"2010-04-27\",1],[\"2010-04-28\",2],[\"2010-04-29\",1],[\"2010-04-30\",1],[\"2010-05-02\",1],[\"2010-05-04\",1],[\"2010-05-05\",1],[\"2010-05-06\",1],[\"2010-05-07\",1],[\"2010-05-09\",1],[\"2010-05-10\",1],[\"2010-05-11\",1],[\"2010-05-12\",1],[\"2010-05-13\",1],[\"2010-05-14\",1],[\"2010-05-16\",2],[\"2010-05-17\",1],[\"2010-05-18\",1],[\"2010-05-19\",1],[\"2010-05-20\",1],[\"2010-05-21\",1],[\"2010-05-23\",1],[\"2010-05-24\",1],[\"2010-05-25\",1],[\"2010-05-26\",1],[\"2010-05-27\",1],[\"2010-05-28\",1],[\"2010-05-30\",1],[\"2010-06-01\",1],[\"2010-06-02\",1],[\"2010-06-03\",1],[\"2010-06-04\",1],[\"2010-06-06\",1],[\"2010-06-07\",2],[\"2010-06-08\",2],[\"2010-06-09\",1],[\"2010-06-10\",2],[\"2010-06-11\",1],[\"2010-06-13\",1],[\"2010-06-14\",1],[\"2010-06-15\",1],[\"2010-06-16\",2],[\"2010-06-17\",1],[\"2010-06-18\",1],[\"2010-06-20\",1],[\"2010-06-21\",2],[\"2010-06-22\",1],[\"2010-06-23\",1],[\"2010-06-24\",1],[\"2010-06-25\",1],[\"2010-06-27\",1],[\"2010-06-28\",2],[\"2010-06-29\",1],[\"2010-06-30\",1],[\"2010-07-01\",1],[\"2010-07-02\",1],[\"2010-07-04\",1],[\"2010-07-05\",1],[\"2010-07-06\",2],[\"2010-07-07\",1],[\"2010-07-08\",1],[\"2010-07-09\",1],[\"2010-07-11\",1],[\"2010-07-12\",1],[\"2010-07-13\",1],[\"2010-07-14\",1],[\"2010-07-15\",1],[\"2010-07-16\",1],[\"2010-07-18\",4],[\"2010-07-19\",4],[\"2010-07-20\",1],[\"2010-07-21\",1],[\"2010-07-22\",1],[\"2010-07-23\",1],[\"2010-07-25\",1],[\"2010-07-26\",1],[\"2010-07-27\",1],[\"2010-07-28\",1],[\"2010-07-29\",1],[\"2010-07-30\",1],[\"2010-08-01\",2],[\"2010-08-02\",1],[\"2010-08-03\",1],[\"2010-08-04\",1],[\"2010-08-05\",2],[\"2010-08-06\",1],[\"2010-08-08\",2],[\"2010-08-09\",2],[\"2010-08-10\",1],[\"2010-08-11\",1],[\"2010-08-12\",1],[\"2010-08-13\",1],[\"2010-08-15\",1],[\"2010-08-16\",2],[\"2010-08-17\",1],[\"2010-08-18\",1],[\"2010-08-19\",1],[\"2010-08-20\",1],[\"2010-08-22\",2],[\"2010-08-23\",1],[\"2010-08-24\",1],[\"2010-08-25\",1],[\"2010-08-26\",1],[\"2010-08-27\",3],[\"2010-08-29\",1],[\"2010-08-31\",1],[\"2010-09-01\",1],[\"2010-09-02\",1],[\"2010-09-03\",1],[\"2010-09-05\",2],[\"2010-09-06\",2],[\"2010-09-07\",2],[\"2010-09-08\",6],[\"2010-09-09\",1],[\"2010-09-10\",4],[\"2010-09-12\",1],[\"2010-09-13\",1],[\"2010-09-14\",1],[\"2010-09-15\",1],[\"2010-09-16\",1],[\"2010-09-17\",1],[\"2010-09-19\",2],[\"2010-09-20\",1],[\"2010-09-21\",1],[\"2010-09-22\",1],[\"2010-09-23\",1],[\"2010-09-24\",1],[\"2010-09-26\",1],[\"2010-09-27\",1],[\"2010-09-28\",1],[\"2010-09-29\",1],[\"2010-09-30\",1],[\"2010-10-01\",1],[\"2010-10-03\",4],[\"2010-10-04\",1],[\"2010-10-05\",1],[\"2010-10-06\",1],[\"2010-10-07\",1],[\"2010-10-08\",1],[\"2010-10-10\",1],[\"2010-10-11\",1],[\"2010-10-12\",1],[\"2010-10-13\",1],[\"2010-10-14\",1],[\"2010-10-15\",1],[\"2010-10-17\",1],[\"2010-10-18\",1],[\"2010-10-19\",1],[\"2010-10-20\",1],[\"2010-10-21\",1],[\"2010-10-22\",2],[\"2010-10-24\",1],[\"2010-10-25\",1],[\"2010-10-26\",1],[\"2010-10-27\",1],[\"2010-10-28\",1],[\"2010-10-29\",1],[\"2010-10-31\",1],[\"2010-11-01\",3],[\"2010-11-02\",1],[\"2010-11-03\",1],[\"2010-11-04\",1],[\"2010-11-05\",1],[\"2010-11-07\",1],[\"2010-11-08\",1],[\"2010-11-09\",1],[\"2010-11-10\",1],[\"2010-11-11\",1],[\"2010-11-12\",1],[\"2010-11-14\",1],[\"2010-11-15\",1],[\"2010-11-16\",1],[\"2010-11-17\",1],[\"2010-11-18\",1],[\"2010-11-19\",1],[\"2010-11-21\",1],[\"2010-11-22\",1],[\"2010-11-23\",1],[\"2010-11-24\",1],[\"2010-11-25\",1],[\"2010-11-26\",1],[\"2010-11-28\",1],[\"2010-11-29\",1],[\"2010-11-30\",1],[\"2010-12-01\",1],[\"2010-12-02\",1],[\"2010-12-03\",1],[\"2010-12-05\",1],[\"2010-12-06\",1],[\"2010-12-07\",1],[\"2010-12-08\",1],[\"2010-12-09\",1],[\"2010-12-10\",1],[\"2010-12-12\",1],[\"2010-12-13\",1],[\"2010-12-14\",1],[\"2010-12-15\",1],[\"2010-12-16\",1],[\"2010-12-17\",1],[\"2010-12-19\",1],[\"2010-12-20\",1],[\"2010-12-21\",1],[\"2010-12-22\",1],[\"2010-12-23\",1],[\"2011-01-04\",4],[\"2011-01-05\",1],[\"2011-01-06\",6],[\"2011-01-07\",2],[\"2011-01-09\",2],[\"2011-01-10\",1],[\"2011-01-11\",1],[\"2011-01-12\",1],[\"2011-01-13\",2],[\"2011-01-14\",1],[\"2011-01-16\",1],[\"2011-01-17\",1],[\"2011-01-18\",3],[\"2011-01-19\",1],[\"2011-01-20\",1],[\"2011-01-21\",1],[\"2011-01-23\",1],[\"2011-01-24\",1],[\"2011-01-25\",1],[\"2011-01-26\",2],[\"2011-01-27\",2],[\"2011-01-28\",4],[\"2011-01-30\",12],[\"2011-01-31\",1],[\"2011-02-01\",1],[\"2011-02-02\",1],[\"2011-02-03\",2],[\"2011-02-04\",1],[\"2011-02-07\",1],[\"2011-02-08\",3],[\"2011-02-09\",1],[\"2011-02-10\",1],[\"2011-02-11\",1],[\"2011-02-13\",4],[\"2011-02-14\",1],[\"2011-02-15\",1],[\"2011-02-16\",3],[\"2011-02-17\",1],[\"2011-02-18\",4],[\"2011-02-20\",3],[\"2011-02-21\",1],[\"2011-02-22\",8],[\"2011-02-23\",2],[\"2011-02-24\",2],[\"2011-02-25\",1],[\"2011-02-27\",1],[\"2011-02-28\",1],[\"2011-03-01\",1],[\"2011-03-02\",3],[\"2011-03-03\",1],[\"2011-03-04\",1],[\"2011-03-06\",2],[\"2011-03-07\",1],[\"2011-03-08\",4],[\"2011-03-09\",1],[\"2011-03-10\",1],[\"2011-03-11\",1],[\"2011-03-14\",1],[\"2011-03-15\",1],[\"2011-03-16\",1],[\"2011-03-17\",1],[\"2011-03-18\",1],[\"2011-03-20\",1],[\"2011-03-21\",1],[\"2011-03-22\",6],[\"2011-03-23\",1],[\"2011-03-24\",4],[\"2011-03-25\",2],[\"2011-03-27\",2],[\"2011-03-28\",1],[\"2011-03-29\",4],[\"2011-03-30\",1],[\"2011-03-31\",1],[\"2011-04-01\",1],[\"2011-04-03\",1],[\"2011-04-04\",1],[\"2011-04-05\",1],[\"2011-04-06\",1],[\"2011-04-07\",1],[\"2011-04-08\",1],[\"2011-04-10\",24],[\"2011-04-11\",1],[\"2011-04-12\",1],[\"2011-04-13\",1],[\"2011-04-14\",1],[\"2011-04-15\",1],[\"2011-04-17\",2],[\"2011-04-18\",1],[\"2011-04-19\",2],[\"2011-04-20\",2],[\"2011-04-21\",1],[\"2011-04-26\",1],[\"2011-04-27\",1],[\"2011-04-28\",1],[\"2011-05-01\",2],[\"2011-05-03\",1],[\"2011-05-04\",1],[\"2011-05-05\",1],[\"2011-05-06\",1],[\"2011-05-08\",1],[\"2011-05-09\",1],[\"2011-05-10\",1],[\"2011-05-11\",1],[\"2011-05-12\",1],[\"2011-05-13\",1],[\"2011-05-15\",1],[\"2011-05-16\",2],[\"2011-05-17\",2],[\"2011-05-18\",1],[\"2011-05-19\",1],[\"2011-05-20\",1],[\"2011-05-22\",2],[\"2011-05-23\",1],[\"2011-05-24\",1],[\"2011-05-25\",2],[\"2011-05-26\",1],[\"2011-05-27\",1],[\"2011-05-29\",1],[\"2011-05-31\",1],[\"2011-06-01\",1],[\"2011-06-02\",1],[\"2011-06-03\",1],[\"2011-06-05\",1],[\"2011-06-06\",2],[\"2011-06-07\",1],[\"2011-06-08\",1],[\"2011-06-09\",1],[\"2011-06-10\",1],[\"2011-06-12\",1],[\"2011-06-13\",1],[\"2011-06-14\",1],[\"2011-06-15\",1],[\"2011-06-16\",1],[\"2011-06-17\",1],[\"2011-06-19\",1],[\"2011-06-20\",1],[\"2011-06-21\",1],[\"2011-06-22\",1],[\"2011-06-23\",1],[\"2011-06-24\",2],[\"2011-06-26\",1],[\"2011-06-27\",6],[\"2011-06-28\",1],[\"2011-06-29\",1],[\"2011-06-30\",1],[\"2011-07-01\",1],[\"2011-07-03\",2],[\"2011-07-04\",4],[\"2011-07-05\",1],[\"2011-07-06\",1],[\"2011-07-07\",1],[\"2011-07-08\",1],[\"2011-07-10\",1],[\"2011-07-11\",1],[\"2011-07-12\",5],[\"2011-07-13\",1],[\"2011-07-14\",1],[\"2011-07-15\",1],[\"2011-07-17\",1],[\"2011-07-18\",1],[\"2011-07-19\",1],[\"2011-07-20\",3],[\"2011-07-21\",1],[\"2011-07-22\",1],[\"2011-07-24\",1],[\"2011-07-25\",1],[\"2011-07-26\",1],[\"2011-07-27\",1],[\"2011-07-28\",1],[\"2011-07-29\",1],[\"2011-07-31\",1],[\"2011-08-01\",4],[\"2011-08-02\",1],[\"2011-08-03\",2],[\"2011-08-04\",1],[\"2011-08-05\",1],[\"2011-08-07\",1],[\"2011-08-08\",1],[\"2011-08-09\",1],[\"2011-08-10\",1],[\"2011-08-11\",1],[\"2011-08-12\",8],[\"2011-08-14\",1],[\"2011-08-15\",3],[\"2011-08-16\",1],[\"2011-08-17\",12],[\"2011-08-18\",2],[\"2011-08-19\",1],[\"2011-08-21\",1],[\"2011-08-22\",1],[\"2011-08-23\",1],[\"2011-08-24\",1],[\"2011-08-25\",1],[\"2011-08-26\",2],[\"2011-08-28\",3],[\"2011-08-30\",1],[\"2011-08-31\",1],[\"2011-09-01\",2],[\"2011-09-02\",2],[\"2011-09-04\",1],[\"2011-09-05\",3],[\"2011-09-06\",1],[\"2011-09-07\",1],[\"2011-09-08\",1],[\"2011-09-09\",1],[\"2011-09-11\",4],[\"2011-09-12\",4],[\"2011-09-13\",1],[\"2011-09-14\",2],[\"2011-09-15\",1],[\"2011-09-16\",1],[\"2011-09-18\",1],[\"2011-09-19\",1],[\"2011-09-20\",1],[\"2011-09-21\",1],[\"2011-09-22\",1],[\"2011-09-23\",1],[\"2011-09-25\",1],[\"2011-09-26\",1],[\"2011-09-27\",1],[\"2011-09-28\",1],[\"2011-09-29\",4],[\"2011-09-30\",1],[\"2011-10-02\",1],[\"2011-10-03\",1],[\"2011-10-04\",1],[\"2011-10-05\",1],[\"2011-10-06\",1],[\"2011-10-07\",1],[\"2011-10-09\",2],[\"2011-10-10\",1],[\"2011-10-11\",1],[\"2011-10-12\",1],[\"2011-10-13\",2],[\"2011-10-14\",1],[\"2011-10-17\",2],[\"2011-10-18\",1],[\"2011-10-19\",1],[\"2011-10-20\",1],[\"2011-10-21\",2],[\"2011-10-23\",1],[\"2011-10-24\",1],[\"2011-10-25\",1],[\"2011-10-26\",1],[\"2011-10-27\",1],[\"2011-10-28\",1],[\"2011-10-30\",2],[\"2011-10-31\",1],[\"2011-11-01\",1],[\"2011-11-02\",1],[\"2011-11-03\",1],[\"2011-11-04\",1],[\"2011-11-06\",2],[\"2011-11-07\",1],[\"2011-11-08\",1],[\"2011-11-09\",2],[\"2011-11-10\",1],[\"2011-11-11\",1],[\"2011-11-13\",2],[\"2011-11-14\",1],[\"2011-11-15\",1],[\"2011-11-16\",1],[\"2011-11-17\",1],[\"2011-11-18\",1],[\"2011-11-20\",2],[\"2011-11-21\",1],[\"2011-11-22\",1],[\"2011-11-23\",1],[\"2011-11-24\",1],[\"2011-11-25\",1],[\"2011-11-27\",1],[\"2011-11-28\",1],[\"2011-11-29\",1],[\"2011-11-30\",1],[\"2011-12-01\",2],[\"2011-12-02\",1],[\"2011-12-04\",1],[\"2011-12-05\",1],[\"2011-12-06\",1],[\"2011-12-07\",2],[\"2011-12-08\",1],[\"2011-12-09\",2]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (unit_price > ?) GROUP BY invoice_date ORDER BY invoice_date ASC","sql_parameters":"[2.25]","state":"{\"question\":\"Return the minimum of quantity for retail invoice lines where (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\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1153{"category":"single_table/and/grouped","domain":"commerce","family_id":"a3c4d2fccaef365b6f3e1c6f","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"51ab1d2dc18783ef8a9d7f47c4d0df1102d64074fa7e9b572503558958f9f848","language":"en","license":"CC-BY-4.0","query":"Return the maximum of product_related for shopping sessions where (weekend equals 1 and administrative is greater than 7), grouped by month, ordered by month ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[1,7],\\\"sql\\\":\\\"SELECT month, MAX(product_related) AS value FROM shopping_sessions WHERE (weekend = ? OR administrative > ?) GROUP BY month ORDER BY month ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[1,7],\\\"sql\\\":\\\"SELECT month, MAX(product_related) AS value FROM shopping_sessions WHERE (weekend = ? AND administrative > ?) GROUP BY month ORDER BY month ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[1,7],\\\"sql\\\":\\\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (weekend = ? AND administrative > ?) GROUP BY month ORDER BY month ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[1,7],\\\"sql\\\":\\\"SELECT month, SUM(product_related) AS value FROM shopping_sessions WHERE (weekend = ? AND administrative > ?) GROUP BY month ORDER BY month ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Aug\",191],[\"Dec\",213],[\"Jul\",409],[\"June\",157],[\"Mar\",160],[\"May\",705],[\"Nov\",534],[\"Oct\",223],[\"Sep\",310]]","source":"online_shoppers","split":"dev","sql":"SELECT month, MAX(product_related) AS value FROM shopping_sessions WHERE (weekend = ? AND administrative > ?) GROUP BY month ORDER BY month ASC","sql_parameters":"[1,7]","state":"{\"question\":\"Return the maximum of product_related for shopping sessions where (weekend equals 1 and administrative is greater than 7), grouped by month, ordered by month ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}1154{"category":"join/having","domain":"commerce","family_id":"a672937565edfe09855b6683","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"ec5aa5d606d69f7ab3bfbe35e3bb8d549f50635a2d2b79ef1389e8b10fcb1442","language":"en","license":"CC-BY-4.0","query":"Return the average of l.quantity for retail lines joined to their invoices where (i.customer_id equals '12364'), grouped by i.country, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"12364\\\",2],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"12364\\\",2],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"12364\\\",2],\\\"sql\\\":\\\"SELECT i.country, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"12364\\\",2],\\\"sql\\\":\\\"SELECT i.country, MIN(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Belgium\",90.5]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5","sql_parameters":"[\"12364\",2]","state":"{\"question\":\"Return the average of l.quantity for retail lines joined to their invoices where (i.customer_id equals '12364'), grouped by i.country, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1155{"category":"join/distinct_invoice/date/and/having","domain":"commerce","family_id":"20ea2fb86972f2a3b4d5828a","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"f2460de343db5bc98844845f7fd3f87a429a35aca312ee452bae28b134a848c8","language":"en","license":"CC-BY-4.0","query":"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.unit_price is at most 0.55 and i.invoice_date is before '2010-02-18'), grouped by i.invoice_date, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[0.55,\\\"2010-02-18\\\",2],\\\"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 HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[0.55,\\\"2010-02-18\\\",2],\\\"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 <= ? AND i.invoice_date < ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[0.55,\\\"2010-02-18\\\",2],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) 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 HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[0.55,\\\"2010-02-18\\\",2],\\\"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 <= ? AND i.invoice_date < ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-15\",7],[\"2009-12-02\",4],[\"2009-12-03\",4],[\"2009-12-04\",4],[\"2009-12-06\",4]]","source":"online_retail_ii","split":"dev","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 <= ? AND i.invoice_date < ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5","sql_parameters":"[0.55,\"2010-02-18\",2]","state":"{\"question\":\"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.unit_price is at most 0.55 and i.invoice_date is before '2010-02-18'), grouped by i.invoice_date, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1156{"category":"join/null/or/grouped","domain":"commerce","family_id":"7fce0534a55938a0f6068593","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"dfccc95c6544585199739179ff2c7a6baf5a51079cab3914ed11407c44bee1d1","language":"en","license":"CC-BY-4.0","query":"Return the average 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, ordered by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Australia\\\"],\\\"sql\\\":\\\"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.country = ? OR i.customer_id IS NOT NULL) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Australia\\\"],\\\"sql\\\":\\\"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.country = ? AND i.customer_id IS NOT NULL) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Australia\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) 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 ORDER BY i.invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Australia\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(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 ORDER BY i.invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-01\",2.7876190476190477],[\"2009-12-02\",3.2258510638297873],[\"2009-12-03\",4.757472527472528],[\"2009-12-04\",2.9742857142857146],[\"2009-12-05\",4.504642857142857],[\"2009-12-06\",6.1455],[\"2009-12-07\",3.275245901639344],[\"2009-12-08\",3.1041095890410957],[\"2009-12-09\",6.013599999999999],[\"2009-12-10\",3.9803125],[\"2009-12-11\",3.99125],[\"2009-12-13\",6.1676],[\"2009-12-14\",4.116792452830189],[\"2009-12-15\",3.9170731707317072],[\"2009-12-16\",4.558518518518518],[\"2009-12-17\",3.380985915492958],[\"2009-12-18\",3.7362790697674417],[\"2009-12-20\",4.238125],[\"2009-12-21\",3.0194117647058825],[\"2009-12-22\",4.3288],[\"2009-12-23\",1.2825],[\"2010-01-04\",3.029166666666667],[\"2010-01-05\",5.504545454545454],[\"2010-01-06\",3.483333333333333],[\"2010-01-07\",5.865172413793103],[\"2010-01-08\",3.779130434782609],[\"2010-01-10\",3.275263157894737],[\"2010-01-11\",3.9696969696969697],[\"2010-01-12\",4.618378378378378],[\"2010-01-13\",2.48375],[\"2010-01-14\",2.968],[\"2010-01-15\",4.5771875],[\"2010-01-17\",2.9976923076923074],[\"2010-01-18\",1.1466666666666667],[\"2010-01-19\",3.12],[\"2010-01-20\",3.987878787878788],[\"2010-01-21\",3.63],[\"2010-01-22\",7.5590909090909095],[\"2010-01-24\",4.633666666666667],[\"2010-01-25\",3.911764705882353],[\"2010-01-26\",5.836250000000001],[\"2010-01-27\",3.0968],[\"2010-01-28\",4.1535714285714285],[\"2010-01-29\",5.190769230769231],[\"2010-01-31\",2.964],[\"2010-02-01\",3.8120833333333337],[\"2010-02-02\",3.634375],[\"2010-02-03\",7.870769230769231],[\"2010-02-04\",3.2557777777777774],[\"2010-02-05\",3.9534146341463416],[\"2010-02-07\",1.4700000000000002],[\"2010-02-08\",3.9662162162162162],[\"2010-02-09\",3.1075],[\"2010-02-10\",5.575384615384616],[\"2010-02-11\",3.0808695652173914],[\"2010-02-12\",1.9196296296296296],[\"2010-02-14\",4.432142857142857],[\"2010-02-15\",2.398823529411765],[\"2010-02-16\",6.232916666666667],[\"2010-02-17\",2.3730555555555557],[\"2010-02-18\",3.433333333333333],[\"2010-02-19\",2.4204761904761902],[\"2010-02-21\",2.7366666666666664],[\"2010-02-22\",12.001458333333334],[\"2010-02-23\",11.553529411764705],[\"2010-02-24\",3.53469387755102],[\"2010-02-25\",3.536],[\"2010-02-26\",6.300625],[\"2010-02-28\",5.261081081081081],[\"2010-03-01\",2.9746428571428574],[\"2010-03-02\",3.308],[\"2010-03-03\",5.122619047619048],[\"2010-03-04\",4.150967741935484],[\"2010-03-05\",3.9686274509803923],[\"2010-03-07\",4.11],[\"2010-03-08\",3.377848101265823],[\"2010-03-09\",3.096904761904762],[\"2010-03-10\",2.5236666666666663],[\"2010-03-11\",3.0662857142857143],[\"2010-03-12\",3.306285714285714],[\"2010-03-14\",3.605],[\"2010-03-15\",2.700909090909091],[\"2010-03-16\",3.9121739130434783],[\"2010-03-17\",2.2596296296296297],[\"2010-03-18\",4.236461538461539],[\"2010-03-19\",3.6954838709677422],[\"2010-03-21\",4.869999999999999],[\"2010-03-22\",4.761],[\"2010-03-23\",3.0227999999999997],[\"2010-03-24\",4.152702702702703],[\"2010-03-25\",4.422352941176471],[\"2010-03-26\",4.2071875],[\"2010-03-28\",1.7107692307692306],[\"2010-03-29\",3.7670588235294113],[\"2010-03-30\",4.384102564102564],[\"2010-03-31\",4.9],[\"2010-04-01\",2.247],[\"2010-04-06\",4.56175],[\"2010-04-07\",3.152285714285714],[\"2010-04-08\",3.144285714285714],[\"2010-04-09\",2.856666666666667],[\"2010-04-11\",2.9991304347826087],[\"2010-04-12\",4.934516129032258],[\"2010-04-13\",2.924444444444444],[\"2010-04-14\",3.1544736842105263],[\"2010-04-15\",4.073478260869565],[\"2010-04-16\",2.9587096774193546],[\"2010-04-18\",3.452631578947368],[\"2010-04-19\",5.227755102040817],[\"2010-04-20\",3.238809523809524],[\"2010-04-21\",10.486896551724138],[\"2010-04-22\",3.11],[\"2010-04-23\",6.187666666666667],[\"2010-04-25\",3.1261904761904766],[\"2010-04-26\",3.5604878048780484],[\"2010-04-27\",3.5575],[\"2010-04-28\",2.3863636363636362],[\"2010-04-29\",3.211551724137931],[\"2010-04-30\",5.095277777777778],[\"2010-05-02\",2.9749999999999996],[\"2010-05-04\",19.911176470588234],[\"2010-05-05\",3.8850666666666664],[\"2010-05-06\",5.822631578947369],[\"2010-05-07\",3.1563333333333334],[\"2010-05-09\",4.419777777777777],[\"2010-05-10\",4.022542372881356],[\"2010-05-11\",3.1126315789473686],[\"2010-05-12\",2.3267857142857142],[\"2010-05-13\",3.2792307692307694],[\"2010-05-14\",5.53],[\"2010-05-16\",2.423157894736842],[\"2010-05-17\",3.2705882352941176],[\"2010-05-18\",4.186410256410257],[\"2010-05-19\",8.98846153846154],[\"2010-05-20\",4.8975],[\"2010-05-21\",5.186206896551725],[\"2010-05-23\",2.46],[\"2010-05-24\",3.2691935483870966],[\"2010-05-25\",4.231612903225806],[\"2010-05-26\",3.503913043478261],[\"2010-05-27\",3.1715],[\"2010-05-28\",1.9366666666666668],[\"2010-05-30\",5.108333333333333],[\"2010-06-01\",3.583157894736842],[\"2010-06-02\",3.3308823529411766],[\"2010-06-03\",3.3317241379310345],[\"2010-06-04\",1.858125],[\"2010-06-06\",2.782222222222222],[\"2010-06-07\",4.011206896551724],[\"2010-06-08\",3.5919999999999996],[\"2010-06-09\",5.565294117647059],[\"2010-06-10\",4.598611111111111],[\"2010-06-11\",4.529999999999999],[\"2010-06-13\",3.0611666666666664],[\"2010-06-14\",4.743888888888889],[\"2010-06-15\",4.175909090909091],[\"2010-06-16\",4.5488888888888885],[\"2010-06-17\",6.273846153846154],[\"2010-06-18\",3.088],[\"2010-06-20\",5.448095238095238],[\"2010-06-21\",4.625],[\"2010-06-22\",4.023529411764706],[\"2010-06-23\",3.4403125],[\"2010-06-24\",3.388108108108108],[\"2010-06-25\",3.6825],[\"2010-06-27\",3.1497916666666668],[\"2010-06-28\",4.256818181818182],[\"2010-06-29\",6.107380952380952],[\"2010-06-30\",3.7038235294117645],[\"2010-07-01\",3.404],[\"2010-07-02\",1.8166666666666667],[\"2010-07-04\",6.442142857142857],[\"2010-07-05\",4.670377358490566],[\"2010-07-06\",3.5854166666666667],[\"2010-07-07\",4.601111111111111],[\"2010-07-08\",7.310217391304348],[\"2010-07-09\",3.81],[\"2010-07-11\",12.4],[\"2010-07-12\",20.248108108108106],[\"2010-07-13\",4.54],[\"2010-07-14\",3.991333333333333],[\"2010-07-15\",4.49],[\"2010-07-16\",4.0644230769230765],[\"2010-07-18\",2.0726923076923076],[\"2010-07-19\",4.075862068965518],[\"2010-07-20\",3.6478723404255318],[\"2010-07-21\",3.6872093023255816],[\"2010-07-22\",3.2242424242424246],[\"2010-07-23\",3.3891666666666667],[\"2010-07-25\",2.6053333333333333],[\"2010-07-26\",2.55],[\"2010-07-27\",3.8956923076923076],[\"2010-07-28\",3.644230769230769],[\"2010-07-29\",3.3886363636363637],[\"2010-07-30\",4.3835],[\"2010-08-01\",3.983333333333333],[\"2010-08-02\",10.256037735849057],[\"2010-08-03\",21.181515151515153],[\"2010-08-04\",5.51625],[\"2010-08-05\",3.018421052631579],[\"2010-08-06\",2.2484615384615383],[\"2010-08-08\",3.8137037037037036],[\"2010-08-09\",2.073541666666667],[\"2010-08-10\",2.746923076923077],[\"2010-08-11\",4.517727272727273],[\"2010-08-12\",4.736176470588235],[\"2010-08-13\",3.056296296296296],[\"2010-08-15\",2.9],[\"2010-08-16\",3.506111111111111],[\"2010-08-17\",3.0025000000000004],[\"2010-08-18\",5.182777777777778],[\"2010-08-19\",4.0102],[\"2010-08-20\",3.862857142857143],[\"2010-08-22\",2.2596153846153846],[\"2010-08-23\",3.936071428571428],[\"2010-08-24\",16.257272727272728],[\"2010-08-25\",2.7545238095238096],[\"2010-08-26\",2.4617142857142857],[\"2010-08-27\",4.576842105263158],[\"2010-08-29\",3.73],[\"2010-08-31\",2.532962962962963],[\"2010-09-01\",5.7072972972972975],[\"2010-09-02\",4.861969696969696],[\"2010-09-03\",3.330877192982456],[\"2010-09-05\",3.1916666666666664],[\"2010-09-06\",3.4956521739130437],[\"2010-09-07\",2.842162162162162],[\"2010-09-08\",1.5644444444444445],[\"2010-09-09\",10.054827586206896],[\"2010-09-10\",2.3905882352941177],[\"2010-09-12\",4.418125],[\"2010-09-13\",3.172857142857143],[\"2010-09-14\",3.6096551724137926],[\"2010-09-15\",3.2325000000000004],[\"2010-09-16\",4.314871794871795],[\"2010-09-17\",2.9946875],[\"2010-09-19\",3.0396296296296295],[\"2010-09-20\",6.290983606557377],[\"2010-09-21\",2.352967032967033],[\"2010-09-22\",2.1610526315789476],[\"2010-09-23\",5.716129032258064],[\"2010-09-24\",4.080689655172414],[\"2010-09-26\",3.0144067796610168],[\"2010-09-27\",3.44078431372549],[\"2010-09-28\",4.151971830985916],[\"2010-09-29\",5.016481481481481],[\"2010-09-30\",3.1487878787878785],[\"2010-10-01\",4.581142857142857],[\"2010-10-03\",2.0460869565217394],[\"2010-10-04\",3.5204651162790697],[\"2010-10-05\",2.6748979591836735],[\"2010-10-06\",3.2968],[\"2010-10-07\",3.4827777777777778],[\"2010-10-08\",3.316744186046512],[\"2010-10-10\",3.3393333333333333],[\"2010-10-11\",5.10875],[\"2010-10-12\",2.847571428571429],[\"2010-10-13\",2.9],[\"2010-10-14\",4.756326530612245],[\"2010-10-15\",2.558153846153846],[\"2010-10-17\",5.2316666666666665],[\"2010-10-18\",4.853571428571429],[\"2010-10-19\",5.135],[\"2010-10-20\",3.46],[\"2010-10-21\",9.163770491803279],[\"2010-10-22\",6.355409836065574],[\"2010-10-24\",6.017142857142857],[\"2010-10-25\",3.5384615384615383],[\"2010-10-26\",4.030588235294117],[\"2010-10-27\",5.1686046511627906],[\"2010-10-28\",4.043947368421052],[\"2010-10-29\",3.8642592592592595],[\"2010-10-31\",4.735714285714286],[\"2010-11-01\",3.3085714285714287],[\"2010-11-02\",4.002830188679245],[\"2010-11-03\",6.6152],[\"2010-11-04\",3.302454545454545],[\"2010-11-05\",4.430357142857143],[\"2010-11-07\",3.552962962962963],[\"2010-11-08\",5.766666666666667],[\"2010-11-09\",4.6959375],[\"2010-11-10\",4.109611650485437],[\"2010-11-11\",3.4988888888888887],[\"2010-11-12\",3.196923076923077],[\"2010-11-14\",4.97],[\"2010-11-15\",4.072727272727273],[\"2010-11-16\",4.0222549019607845],[\"2010-11-17\",8.435494505494505],[\"2010-11-18\",4.061772151898734],[\"2010-11-19\",8.761311475409835],[\"2010-11-21\",3.9802631578947367],[\"2010-11-22\",3.7928333333333333],[\"2010-11-23\",3.2504285714285714],[\"2010-11-24\",5.464756097560976],[\"2010-11-25\",3.8880508474576274],[\"2010-11-26\",2.8076595744680852],[\"2010-11-28\",7.747115384615385],[\"2010-11-29\",3.2013559322033895],[\"2010-11-30\",2.6332954545454546],[\"2010-12-01\",3.252543859649123],[\"2010-12-02\",2.6058715596330275],[\"2010-12-03\",4.589166666666667],[\"2010-12-05\",4.727435897435898],[\"2010-12-06\",3.3869811320754715],[\"2010-12-07\",4.150169491525424],[\"2010-12-08\",4.259880952380952],[\"2010-12-09\",3.8069662921348315],[\"2010-12-10\",3.8282051282051284],[\"2010-12-12\",5.481875],[\"2010-12-13\",2.9980851063829785],[\"2010-12-14\",3.670375],[\"2010-12-15\",4.708775510204082],[\"2010-12-16\",4.763571428571429],[\"2010-12-17\",4.4392000000000005],[\"2010-12-20\",2.794242424242424],[\"2010-12-21\",4.002285714285715],[\"2010-12-22\",2.1158333333333332],[\"2010-12-23\",3.008666666666667],[\"2011-01-04\",3.4763636363636365],[\"2011-01-05\",3.652285714285714],[\"2011-01-06\",2.231666666666667],[\"2011-01-07\",5.528695652173913],[\"2011-01-09\",4.013461538461538],[\"2011-01-10\",6.061999999999999],[\"2011-01-11\",3.7800000000000002],[\"2011-01-12\",11.741111111111111],[\"2011-01-13\",2.698],[\"2011-01-14\",4.263513513513513],[\"2011-01-16\",3.67],[\"2011-01-17\",2.96725],[\"2011-01-18\",3.492857142857143],[\"2011-01-19\",3.5944444444444446],[\"2011-01-20\",3.0413953488372094],[\"2011-01-21\",4.725714285714285],[\"2011-01-23\",7.772],[\"2011-01-24\",3.650588235294118],[\"2011-01-25\",3.53046511627907],[\"2011-01-26\",3.8625000000000003],[\"2011-01-27\",4.640909090909091],[\"2011-01-28\",5.367],[\"2011-01-30\",2.21],[\"2011-01-31\",4.283714285714286],[\"2011-02-01\",4.3108571428571425],[\"2011-02-02\",2.3649999999999998],[\"2011-02-03\",4.607777777777778],[\"2011-02-04\",11.23846153846154],[\"2011-02-07\",4.417419354838709],[\"2011-02-08\",2.881875],[\"2011-02-09\",5.153076923076923],[\"2011-02-10\",8.178823529411764],[\"2011-02-11\",10.700416666666667],[\"2011-02-13\",3.446],[\"2011-02-14\",4.4559999999999995],[\"2011-02-15\",3.088],[\"2011-02-16\",2.688727272727273],[\"2011-02-17\",2.8364],[\"2011-02-18\",3.1107407407407406],[\"2011-02-20\",4.406666666666666],[\"2011-02-21\",3.6245454545454545],[\"2011-02-22\",2.707241379310345],[\"2011-02-23\",4.465185185185185],[\"2011-02-24\",3.9556],[\"2011-02-25\",3.626571428571429],[\"2011-02-27\",3.0338461538461536],[\"2011-02-28\",13.613333333333335],[\"2011-03-01\",20.732448979591837],[\"2011-03-02\",3.099411764705882],[\"2011-03-03\",5.574871794871795],[\"2011-03-04\",4.125581395348838],[\"2011-03-06\",4.07125],[\"2011-03-07\",9.868367346938776],[\"2011-03-08\",4.547575757575757],[\"2011-03-09\",3.995116279069767],[\"2011-03-10\",4.2734146341463415],[\"2011-03-11\",4.782653061224489],[\"2011-03-14\",3.5021212121212124],[\"2011-03-15\",4.8],[\"2011-03-16\",3.3061363636363637],[\"2011-03-17\",2.8475510204081633],[\"2011-03-18\",3.9363636363636365],[\"2011-03-20\",4.291833333333333],[\"2011-03-21\",2.392],[\"2011-03-22\",2.71],[\"2011-03-23\",3.526666666666667],[\"2011-03-24\",2.6779166666666665],[\"2011-03-25\",2.5824324324324324],[\"2011-03-27\",5.429047619047619],[\"2011-03-28\",8.715116279069768],[\"2011-03-29\",3.678421052631579],[\"2011-03-30\",2.942727272727273],[\"2011-03-31\",5.062413793103448],[\"2011-04-01\",3.409666666666667],[\"2011-04-03\",3.056923076923077],[\"2011-04-04\",254.041875],[\"2011-04-05\",7.313684210526316],[\"2011-04-06\",2.90625],[\"2011-04-07\",4.103061224489796],[\"2011-04-08\",4.19171875],[\"2011-04-10\",6.1],[\"2011-04-11\",3.061086956521739],[\"2011-04-12\",3.414333333333333],[\"2011-04-13\",3.957441860465116],[\"2011-04-14\",3.1941891891891894],[\"2011-04-15\",6.745333333333334],[\"2011-04-17\",3.1614285714285715],[\"2011-04-18\",3.151875],[\"2011-04-19\",2.265],[\"2011-04-20\",3.354807692307692],[\"2011-04-21\",3.855192307692308],[\"2011-04-26\",4.3],[\"2011-04-27\",4.013703703703704],[\"2011-04-28\",11.274912280701754],[\"2011-05-01\",4.1899999999999995],[\"2011-05-03\",5.8001886792452835],[\"2011-05-04\",3.4808474576271187],[\"2011-05-05\",4.647865168539326],[\"2011-05-06\",5.081428571428572],[\"2011-05-08\",2.656875],[\"2011-05-09\",3.6548979591836734],[\"2011-05-10\",4.663333333333333],[\"2011-05-11\",3.5585714285714287],[\"2011-05-12\",3.88453125],[\"2011-05-13\",3.830757575757576],[\"2011-05-15\",4.318],[\"2011-05-16\",3.044375],[\"2011-05-17\",3.7435211267605637],[\"2011-05-18\",3.641052631578947],[\"2011-05-19\",4.129866666666667],[\"2011-05-20\",3.6259756097560976],[\"2011-05-22\",3.953095238095238],[\"2011-05-23\",4.1470769230769235],[\"2011-05-24\",5.03234375],[\"2011-05-25\",2.8762162162162164],[\"2011-05-26\",6.470714285714285],[\"2011-05-27\",3.2464814814814815],[\"2011-05-29\",2.6258333333333335],[\"2011-05-31\",4.00578947368421],[\"2011-06-01\",4.228518518518519],[\"2011-06-02\",3.872666666666667],[\"2011-06-03\",4.605769230769231],[\"2011-06-05\",4.384444444444444],[\"2011-06-06\",3.3066666666666666],[\"2011-06-07\",3.4186],[\"2011-06-08\",3.4485074626865675],[\"2011-06-09\",4.249818181818182],[\"2011-06-10\",4.904347826086957],[\"2011-06-12\",7.9312499999999995],[\"2011-06-13\",3.16],[\"2011-06-14\",3.204],[\"2011-06-15\",4.489047619047619],[\"2011-06-16\",2.993333333333333],[\"2011-06-17\",3.068275862068966],[\"2011-06-19\",2.338214285714286],[\"2011-06-20\",3.4097435897435893],[\"2011-06-21\",4.466969696969697],[\"2011-06-22\",2.9325714285714284],[\"2011-06-23\",2.592608695652174],[\"2011-06-24\",3.5541176470588236],[\"2011-06-26\",7.047142857142857],[\"2011-06-27\",2.153809523809524],[\"2011-06-28\",3.2325581395348837],[\"2011-06-29\",4.336129032258064],[\"2011-06-30\",12.411290322580646],[\"2011-07-01\",6.5818518518518525],[\"2011-07-03\",4.398888888888889],[\"2011-07-04\",3.787352941176471],[\"2011-07-05\",3.169655172413793],[\"2011-07-06\",2.4923636363636366],[\"2011-07-07\",3.7025],[\"2011-07-08\",10.462],[\"2011-07-10\",1.158],[\"2011-07-11\",3.0632352941176473],[\"2011-07-12\",2.1441666666666666],[\"2011-07-13\",4.7070454545454545],[\"2011-07-14\",4.534042553191489],[\"2011-07-15\",3.6865],[\"2011-07-17\",4.009318181818181],[\"2011-07-18\",6.26],[\"2011-07-19\",2.4946153846153845],[\"2011-07-20\",3.630555555555555],[\"2011-07-21\",3.83],[\"2011-07-22\",2.7496774193548386],[\"2011-07-24\",3.548],[\"2011-07-25\",4.229846153846154],[\"2011-07-26\",3.7920000000000003],[\"2011-07-27\",3.7777777777777777],[\"2011-07-28\",3.4259770114942527],[\"2011-07-29\",3.1955263157894733],[\"2011-07-31\",3.5477272727272724],[\"2011-08-01\",1.7383333333333333],[\"2011-08-02\",2.110625],[\"2011-08-03\",3.4802702702702706],[\"2011-08-04\",4.298450704225352],[\"2011-08-05\",3.491521739130435],[\"2011-08-07\",2.40425],[\"2011-08-08\",5.336666666666667],[\"2011-08-09\",4.949642857142857],[\"2011-08-10\",3.6815384615384614],[\"2011-08-11\",4.10075],[\"2011-08-12\",3.010625],[\"2011-08-14\",7.559565217391304],[\"2011-08-15\",1.7810344827586206],[\"2011-08-16\",3.230810810810811],[\"2011-08-17\",1.4523529411764706],[\"2011-08-18\",3.4384375],[\"2011-08-19\",3.1640476190476186],[\"2011-08-21\",2.7955555555555556],[\"2011-08-22\",3.1037254901960782],[\"2011-08-23\",2.4523684210526313],[\"2011-08-24\",2.576911764705882],[\"2011-08-25\",5.572105263157895],[\"2011-08-26\",7.153333333333332],[\"2011-08-28\",2.4464705882352944],[\"2011-08-30\",6.435625],[\"2011-08-31\",6.927],[\"2011-09-01\",2.5911940298507465],[\"2011-09-02\",2.1080701754385966],[\"2011-09-04\",3.2022857142857144],[\"2011-09-05\",2.4376666666666664],[\"2011-09-06\",3.931111111111111],[\"2011-09-07\",3.5068421052631575],[\"2011-09-08\",3.8283636363636364],[\"2011-09-09\",4.908205128205129],[\"2011-09-11\",2.3823529411764706],[\"2011-09-12\",2.321632653061225],[\"2011-09-13\",5.619047619047619],[\"2011-09-14\",2.93472972972973],[\"2011-09-15\",5.245675675675676],[\"2011-09-16\",3.0852173913043477],[\"2011-09-18\",2.9166666666666665],[\"2011-09-19\",2.784761904761905],[\"2011-09-20\",3.6158695652173916],[\"2011-09-21\",2.999166666666667],[\"2011-09-22\",3.7895774647887324],[\"2011-09-23\",5.918461538461538],[\"2011-09-25\",4.3684375],[\"2011-09-26\",2.875925925925926],[\"2011-09-27\",3.0764285714285715],[\"2011-09-28\",3.3638636363636363],[\"2011-09-29\",3.0076315789473687],[\"2011-09-30\",3.997441860465116],[\"2011-10-02\",3.1642857142857146],[\"2011-10-03\",11.823823529411765],[\"2011-10-04\",3.7841025641025645],[\"2011-10-05\",4.818153846153846],[\"2011-10-06\",3.197625],[\"2011-10-07\",2.755084745762712],[\"2011-10-09\",4.926666666666667],[\"2011-10-10\",3.4028888888888886],[\"2011-10-11\",4.184137931034483],[\"2011-10-12\",4.075510204081633],[\"2011-10-13\",3.4946938775510206],[\"2011-10-14\",3.1628125000000002],[\"2011-10-17\",3.346923076923077],[\"2011-10-18\",4.432894736842106],[\"2011-10-19\",94.38029850746268],[\"2011-10-20\",3.062244897959184],[\"2011-10-21\",4.675263157894737],[\"2011-10-23\",3.3579999999999997],[\"2011-10-24\",3.387627118644068],[\"2011-10-25\",10.735714285714286],[\"2011-10-26\",4.126103896103896],[\"2011-10-27\",4.3312307692307686],[\"2011-10-28\",3.0318],[\"2011-10-30\",4.3769230769230765],[\"2011-10-31\",2.48],[\"2011-11-01\",3.6906818181818184],[\"2011-11-02\",2.503448275862069],[\"2011-11-03\",4.162641509433962],[\"2011-11-04\",3.1635],[\"2011-11-06\",3.925172413793103],[\"2011-11-07\",5.018450704225352],[\"2011-11-08\",3.07734375],[\"2011-11-09\",3.15],[\"2011-11-10\",16.225952380952382],[\"2011-11-11\",2.328918918918919],[\"2011-11-13\",4.059310344827586],[\"2011-11-14\",3.2497674418604654],[\"2011-11-15\",3.159733333333333],[\"2011-11-16\",4.7460204081632655],[\"2011-11-17\",4.661818181818181],[\"2011-11-18\",4.203292682926829],[\"2011-11-20\",2.1726190476190474],[\"2011-11-21\",3.4447058823529413],[\"2011-11-22\",3.0463855421686747],[\"2011-11-23\",3.3629347826086957],[\"2011-11-24\",2.4713333333333334],[\"2011-11-25\",4.479253731343284],[\"2011-11-27\",3.4442857142857144],[\"2011-11-28\",2.5276315789473682],[\"2011-11-29\",4.458620689655172],[\"2011-11-30\",3.5115555555555558],[\"2011-12-01\",3.40796875],[\"2011-12-02\",4.0280000000000005],[\"2011-12-04\",3.1936170212765957],[\"2011-12-05\",6.061219512195121],[\"2011-12-06\",3.3586538461538464],[\"2011-12-07\",2.9996610169491524],[\"2011-12-08\",3.438219178082192],[\"2011-12-09\",4.8088235294117645]]","source":"online_retail_ii","split":"dev","sql":"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.country = ? OR i.customer_id IS NOT NULL) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC","sql_parameters":"[\"Australia\"]","state":"{\"question\":\"Return the average 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, ordered by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1157{"category":"join/ranked","domain":"commerce","family_id":"c6e5cfaf205d777f378fb120","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"e45ec6823d92b913af94bce590ee66f28bb5352748676ea1a5e64d0bb9f6e4ad","language":"en","license":"CC-BY-4.0","query":"Return the average of l.quantity for retail lines joined to their invoices where (l.unit_price is at most 2.25), grouped by i.country; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2.25],\\\"sql\\\":\\\"SELECT i.country, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price <= ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2.25],\\\"sql\\\":\\\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price <= ?) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2.25],\\\"sql\\\":\\\"SELECT i.country, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price <= ?) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2.25],\\\"sql\\\":\\\"SELECT i.country, SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price <= ?) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Denmark\",186.66666666666666],[\"Sweden\",171.79032258064515],[\"Japan\",169.66666666666666],[\"Channel Islands\",128.6315789473684],[\"EIRE\",119.46236559139786]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price <= ?) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 5","sql_parameters":"[2.25]","state":"{\"question\":\"Return the average of l.quantity for retail lines joined to their invoices where (l.unit_price is at most 2.25), grouped by i.country; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1158{"category":"single_table/date/and/aggregate","domain":"commerce","family_id":"703a64886a64179d55274c94","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"19ee42f8c16231ad9c47d0fd102faac0e0a63ea4fc874ee95c88d7f79d994fd6","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (country equals 'Australia' and invoice_date is on or after '2010-12-02').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Australia\\\",\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT MAX(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Australia\\\",\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT MAX(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date >= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Australia\\\",\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Australia\\\",\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[8.95]]","source":"online_retail_ii","split":"dev","sql":"SELECT MAX(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?)","sql_parameters":"[\"Australia\",\"2010-12-02\"]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines where (country equals 'Australia' and invoice_date is on or after '2010-12-02').\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1159{"category":"single_table/and/ranked","domain":"commerce","family_id":"3293341f99ed773dfcac1ef1","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"ac5b4b40c38caeee325d54725d00c15e9b2a13d9a6e87f3ae5cda06af07015e2","language":"en","license":"CC-BY-4.0","query":"Return the average of unit_price for retail invoice lines where (quantity is greater than 229 and unit_price is greater than 4.77), grouped by invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[229,4.77],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (quantity > ? AND unit_price > ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[229,4.77],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (quantity > ? OR unit_price > ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[229,4.77],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (quantity > ? AND unit_price > ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[229,4.77],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (quantity > ? AND unit_price > ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-09-02\",4.8],[\"2010-01-10\",4.95],[\"2010-12-07\",5.58]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (quantity > ? AND unit_price > ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3","sql_parameters":"[229,4.77]","state":"{\"question\":\"Return the average of unit_price for retail invoice lines where (quantity is greater than 229 and unit_price is greater than 4.77), grouped by invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by invoice_date ascending.\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1160{"category":"join/null/date/or/ranked","domain":"commerce","family_id":"e3d8e9f4f8e159bc419cfb58","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"1bf195d96947bc2a9df605af6983c91c15babd49b5cfe190c3f672c3ba304070","language":"en","license":"CC-BY-4.0","query":"Return the maximum of l.unit_price for retail lines joined to their invoices where (i.invoice_date is before '2010-07-14' or i.customer_id is present), grouped by i.invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\"],\\\"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.invoice_date < ? AND i.customer_id IS NOT NULL) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\"],\\\"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.invoice_date < ? OR i.customer_id IS NOT NULL) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\"],\\\"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.invoice_date < ? OR i.customer_id IS NOT NULL) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-07-14\\\"],\\\"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 < ? OR i.customer_id IS NOT NULL) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-01-18\",2.25],[\"2010-09-08\",2.55],[\"2011-07-10\",2.55]]","source":"online_retail_ii","split":"dev","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.invoice_date < ? OR i.customer_id IS NOT NULL) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3","sql_parameters":"[\"2010-07-14\"]","state":"{\"question\":\"Return the maximum of l.unit_price for retail lines joined to their invoices where (i.invoice_date is before '2010-07-14' or i.customer_id is present), grouped by i.invoice_date; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1161{"category":"single_table/having","domain":"commerce","family_id":"e703738db050dbade6798b43","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"2f05b06678ee432fe1dc4cb17b5721e89aa7a7647e0722bd1ea09711e2c32e91","language":"en","license":"CC-BY-4.0","query":"Return the sum of product_related for shopping sessions where (region equals 3), grouped by visitor_type, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[3,2],\\\"sql\\\":\\\"SELECT visitor_type, SUM(product_related) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value ASC, visitor_type ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[3,2],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[3,2],\\\"sql\\\":\\\"SELECT visitor_type, SUM(product_related) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[3,2],\\\"sql\\\":\\\"SELECT visitor_type, AVG(product_related) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value DESC, visitor_type ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Returning_Visitor\",70873],[\"New_Visitor\",6210],[\"Other\",19]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, SUM(product_related) AS value FROM shopping_sessions WHERE (region = ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value DESC, visitor_type ASC LIMIT 5","sql_parameters":"[3,2]","state":"{\"question\":\"Return the sum of product_related for shopping sessions where (region equals 3), grouped by visitor_type, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by visitor_type ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}1162{"category":"single_table/and/grouped","domain":"sensor","family_id":"805e46f5177ed4a9a9327d6a","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"6073b35efac1f8e05596fff68738ac0b2c5de606b37216480f28f64e5dc0f9ba","language":"en","license":"CC-BY-4.0","query":"Return the minimum of ts1_mean for hydraulic cycles where (ps2_mean is at most 107.72581 and ts1_mean is greater than 35.56605), grouped by cooler, ordered by cooler ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[107.72581,35.56605],\\\"sql\\\":\\\"SELECT cooler, MIN(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR ts1_mean > ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[107.72581,35.56605],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND ts1_mean > ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[107.72581,35.56605],\\\"sql\\\":\\\"SELECT cooler, MIN(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND ts1_mean > ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[107.72581,35.56605],\\\"sql\\\":\\\"SELECT cooler, SUM(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND ts1_mean > ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[3,48.91953],[20,44.00265]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, MIN(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND ts1_mean > ?) GROUP BY cooler ORDER BY cooler ASC","sql_parameters":"[107.72581,35.56605]","state":"{\"question\":\"Return the minimum of ts1_mean for hydraulic cycles where (ps2_mean is at most 107.72581 and ts1_mean is greater than 35.56605), grouped by cooler, ordered by cooler ascending.\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1163{"category":"join/null/or/ranked","domain":"commerce","family_id":"93cfc442e150a09800d01a50","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"95299ecaedf1440ece488749f60a59f5038306b979d32c794872f3b4a6cbe648","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.unit_price for retail lines joined to their invoices where (l.quantity is greater than 229 or i.customer_id is missing), grouped by i.invoice_date; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[229],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ? AND i.customer_id IS NULL) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[229],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.unit_price) 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.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[229],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.unit_price) 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.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[229],\\\"sql\\\":\\\"SELECT i.invoice_date, 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.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-06-20\",3155.7799999999997],[\"2010-03-24\",879.9499999999999],[\"2010-02-02\",208.8],[\"2010-06-04\",180.29],[\"2010-12-07\",141.94]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.invoice_date, SUM(l.unit_price) 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.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5","sql_parameters":"[229]","state":"{\"question\":\"Return the sum of l.unit_price for retail lines joined to their invoices where (l.quantity is greater than 229 or i.customer_id is missing), 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_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1164{"category":"single_table/or/ranked","domain":"commerce","family_id":"fffe92f4abf9ca98ae79a300","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"4d92da48f481235cb705ef3446c4679b49ce18409786edd5c4d6953ff32f1458","language":"en","license":"CC-BY-4.0","query":"Return the sum of unit_price for retail invoice lines where (quantity is at most 229 or 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[229,4.77],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"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 value ASC, country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[229,4.77],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[229,4.77],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Canada\",4.99],[\"USA\",7.6499999999999995],[\"Japan\",33.339999999999996]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3","sql_parameters":"[229,4.77]","state":"{\"question\":\"Return the sum of unit_price for retail invoice lines where (quantity is at most 229 or 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\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1165{"category":"single_table/and/grouped","domain":"sensor","family_id":"fa8c6f8af73a8195e32b3ac6","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"3353ac490690e3f4dbc5602999140b0f907fdeabc1a73f38519020e4181915f3","language":"en","license":"CC-BY-4.0","query":"Return the sum of ps2_mean for hydraulic cycles where (ps2_mean is at most 105.7255 and ts1_mean is greater than 56.73035), grouped by cooler, ordered by cooler ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[105.7255,56.73035],\\\"sql\\\":\\\"SELECT cooler, SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR ts1_mean > ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[105.7255,56.73035],\\\"sql\\\":\\\"SELECT cooler, SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND ts1_mean > ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[105.7255,56.73035],\\\"sql\\\":\\\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND ts1_mean > ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[105.7255,56.73035],\\\"sql\\\":\\\"SELECT cooler, AVG(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND ts1_mean > ?) GROUP BY cooler ORDER BY cooler ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[3,7458.92505]]","source":"hydraulic","split":"dev","sql":"SELECT cooler, SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND ts1_mean > ?) GROUP BY cooler ORDER BY cooler ASC","sql_parameters":"[105.7255,56.73035]","state":"{\"question\":\"Return the sum of ps2_mean for hydraulic cycles where (ps2_mean is at most 105.7255 and ts1_mean is greater than 56.73035), grouped by cooler, ordered by cooler ascending.\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1166{"category":"single_table/date/grouped","domain":"commerce","family_id":"0d5deb72c74c84790060c0ec","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"8738d59b5e5a1d9123eb236791a34fcd85c79851ef54d0c3bdaadf8e6c86abbb","language":"en","license":"CC-BY-4.0","query":"Return the average of unit_price for retail invoice lines where (invoice_date is before '2011-09-29'), grouped by invoice_date, ordered by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MIN(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-01\",2.7130769230769234],[\"2009-12-02\",3.3659375],[\"2009-12-03\",4.759462365591398],[\"2009-12-04\",3.0788709677419357],[\"2009-12-05\",4.504642857142857],[\"2009-12-06\",4.474193548387097],[\"2009-12-07\",3.9316666666666666],[\"2009-12-08\",3.0975903614457834],[\"2009-12-09\",5.506436781609195],[\"2009-12-10\",4.033661971830986],[\"2009-12-11\",5.0321428571428575],[\"2009-12-13\",6.1676],[\"2009-12-14\",3.811470588235294],[\"2009-12-15\",3.650777777777778],[\"2009-12-16\",4.558518518518518],[\"2009-12-17\",3.3736082474226805],[\"2009-12-18\",3.4361111111111113],[\"2009-12-20\",3.8954999999999997],[\"2009-12-21\",3.1553488372093024],[\"2009-12-22\",4.043333333333333],[\"2009-12-23\",1.5633333333333335],[\"2010-01-04\",2.633529411764706],[\"2010-01-05\",6.708333333333333],[\"2010-01-06\",3.483333333333333],[\"2010-01-07\",6.019032258064517],[\"2010-01-08\",3.779130434782609],[\"2010-01-10\",3.275263157894737],[\"2010-01-11\",3.9696969696969697],[\"2010-01-12\",4.264318181818182],[\"2010-01-13\",2.723333333333333],[\"2010-01-14\",2.968],[\"2010-01-15\",4.265833333333333],[\"2010-01-17\",2.9976923076923074],[\"2010-01-18\",1.1466666666666667],[\"2010-01-19\",3.12],[\"2010-01-20\",3.987878787878788],[\"2010-01-21\",3.63],[\"2010-01-22\",7.1739999999999995],[\"2010-01-24\",4.633666666666667],[\"2010-01-25\",5.524411764705882],[\"2010-01-26\",6.3621739130434785],[\"2010-01-27\",3.044655172413793],[\"2010-01-28\",3.6999999999999997],[\"2010-01-29\",5.445333333333333],[\"2010-01-31\",2.995365853658537],[\"2010-02-01\",4.225135135135136],[\"2010-02-02\",10.267307692307693],[\"2010-02-03\",7.505000000000001],[\"2010-02-04\",3.270425531914894],[\"2010-02-05\",3.9534146341463416],[\"2010-02-07\",1.1063636363636364],[\"2010-02-08\",3.5656862745098037],[\"2010-02-09\",3.1075],[\"2010-02-10\",5.2664285714285715],[\"2010-02-11\",2.8986206896551723],[\"2010-02-12\",1.9027586206896552],[\"2010-02-14\",4.437647058823529],[\"2010-02-15\",2.398823529411765],[\"2010-02-16\",6.239803921568628],[\"2010-02-17\",2.4068292682926833],[\"2010-02-18\",3.621875],[\"2010-02-19\",3.485],[\"2010-02-21\",2.7366666666666664],[\"2010-02-22\",11.6994],[\"2010-02-23\",10.868947368421052],[\"2010-02-24\",3.53469387755102],[\"2010-02-25\",3.536],[\"2010-02-26\",5.671111111111111],[\"2010-02-28\",5.261081081081081],[\"2010-03-01\",2.9746428571428574],[\"2010-03-02\",3.308],[\"2010-03-03\",4.72608695652174],[\"2010-03-04\",4.150967741935484],[\"2010-03-05\",3.7917391304347827],[\"2010-03-07\",4.09375],[\"2010-03-08\",3.341358024691358],[\"2010-03-09\",3.4580434782608696],[\"2010-03-10\",2.3002702702702704],[\"2010-03-11\",3.0662857142857143],[\"2010-03-12\",3.306285714285714],[\"2010-03-14\",3.605],[\"2010-03-15\",3.083636363636364],[\"2010-03-16\",3.9121739130434783],[\"2010-03-17\",2.6686666666666667],[\"2010-03-18\",4.236461538461539],[\"2010-03-19\",3.4670588235294115],[\"2010-03-21\",4.383333333333334],[\"2010-03-22\",4.761],[\"2010-03-23\",3.07],[\"2010-03-24\",25.192195121951215],[\"2010-03-25\",4.422352941176471],[\"2010-03-26\",4.053714285714285],[\"2010-03-28\",1.7107692307692306],[\"2010-03-29\",3.7670588235294113],[\"2010-03-30\",4.384102564102564],[\"2010-03-31\",4.7474358974358974],[\"2010-04-01\",2.7002941176470587],[\"2010-04-06\",4.56175],[\"2010-04-07\",3.152285714285714],[\"2010-04-08\",3.1500000000000004],[\"2010-04-09\",3.7619999999999996],[\"2010-04-11\",2.9991304347826087],[\"2010-04-12\",4.842432432432433],[\"2010-04-13\",2.924444444444444],[\"2010-04-14\",2.8882222222222222],[\"2010-04-15\",3.9070370370370373],[\"2010-04-16\",2.6548837209302323],[\"2010-04-18\",3.452631578947368],[\"2010-04-19\",4.914464285714286],[\"2010-04-20\",3.0612765957446806],[\"2010-04-21\",9.381515151515151],[\"2010-04-22\",3.11],[\"2010-04-23\",6.237297297297298],[\"2010-04-25\",3.1261904761904766],[\"2010-04-26\",3.912830188679245],[\"2010-04-27\",4.0876363636363635],[\"2010-04-28\",2.373913043478261],[\"2010-04-29\",3.351594202898551],[\"2010-04-30\",4.929736842105263],[\"2010-05-02\",2.9749999999999996],[\"2010-05-04\",19.911176470588234],[\"2010-05-05\",3.921625],[\"2010-05-06\",5.161914893617021],[\"2010-05-07\",3.3138709677419356],[\"2010-05-09\",4.419777777777777],[\"2010-05-10\",4.0914925373134325],[\"2010-05-11\",3.1126315789473686],[\"2010-05-12\",2.3267857142857142],[\"2010-05-13\",3.4825000000000004],[\"2010-05-14\",5.1989743589743584],[\"2010-05-16\",2.423157894736842],[\"2010-05-17\",3.5238095238095237],[\"2010-05-18\",3.9664285714285716],[\"2010-05-19\",8.98846153846154],[\"2010-05-20\",4.8975],[\"2010-05-21\",5.038095238095238],[\"2010-05-23\",2.46],[\"2010-05-24\",3.3665151515151517],[\"2010-05-25\",4.330294117647059],[\"2010-05-26\",4.398571428571429],[\"2010-05-27\",3.1715],[\"2010-05-28\",2.6604545454545456],[\"2010-05-30\",5.108333333333333],[\"2010-06-01\",3.007575757575758],[\"2010-06-02\",3.471111111111111],[\"2010-06-03\",3.535396825396825],[\"2010-06-04\",7.000666666666667],[\"2010-06-06\",2.782222222222222],[\"2010-06-07\",4.011206896551724],[\"2010-06-08\",3.5919999999999996],[\"2010-06-09\",5.565294117647059],[\"2010-06-10\",4.3043589743589745],[\"2010-06-11\",4.348],[\"2010-06-13\",3.0611666666666664],[\"2010-06-14\",4.573157894736842],[\"2010-06-15\",3.648846153846154],[\"2010-06-16\",4.296724137931035],[\"2010-06-17\",4.836],[\"2010-06-18\",2.678709677419355],[\"2010-06-20\",5.448095238095238],[\"2010-06-21\",4.625],[\"2010-06-22\",4.023529411764706],[\"2010-06-23\",3.3936363636363636],[\"2010-06-24\",4.289791666666667],[\"2010-06-25\",3.3589473684210525],[\"2010-06-27\",3.1497916666666668],[\"2010-06-28\",4.256818181818182],[\"2010-06-29\",6.032045454545455],[\"2010-06-30\",3.49425],[\"2010-07-01\",3.088780487804878],[\"2010-07-02\",2.4499999999999997],[\"2010-07-04\",6.442142857142857],[\"2010-07-05\",4.393728813559322],[\"2010-07-06\",3.4674],[\"2010-07-07\",3.9525],[\"2010-07-08\",6.451206896551724],[\"2010-07-09\",5.604285714285714],[\"2010-07-11\",12.4],[\"2010-07-12\",20.248108108108106],[\"2010-07-13\",4.54],[\"2010-07-14\",3.5142105263157895],[\"2010-07-15\",4.49],[\"2010-07-16\",4.0424137931034485],[\"2010-07-18\",2.0726923076923076],[\"2010-07-19\",3.8677419354838714],[\"2010-07-20\",3.7961538461538464],[\"2010-07-21\",3.4830357142857147],[\"2010-07-22\",3.1914285714285717],[\"2010-07-23\",2.9966666666666666],[\"2010-07-25\",2.6053333333333333],[\"2010-07-26\",2.7267441860465116],[\"2010-07-27\",3.760833333333333],[\"2010-07-28\",3.7550000000000003],[\"2010-07-29\",3.174074074074074],[\"2010-07-30\",4.145961538461538],[\"2010-08-01\",3.983333333333333],[\"2010-08-02\",9.800357142857143],[\"2010-08-03\",20.43057142857143],[\"2010-08-04\",5.51625],[\"2010-08-05\",2.9073770491803277],[\"2010-08-06\",2.9637499999999997],[\"2010-08-08\",3.8137037037037036],[\"2010-08-09\",2.073541666666667],[\"2010-08-10\",2.5725000000000002],[\"2010-08-11\",4.457916666666667],[\"2010-08-12\",4.4828205128205125],[\"2010-08-13\",3.2395833333333335],[\"2010-08-15\",2.9],[\"2010-08-16\",3.9309523809523808],[\"2010-08-17\",3.0025000000000004],[\"2010-08-18\",4.181666666666667],[\"2010-08-19\",4.0675],[\"2010-08-20\",3.8009090909090912],[\"2010-08-22\",2.2596153846153846],[\"2010-08-23\",3.936071428571428],[\"2010-08-24\",16.257272727272728],[\"2010-08-25\",2.888478260869565],[\"2010-08-26\",2.638717948717949],[\"2010-08-27\",4.576842105263158],[\"2010-08-29\",3.73],[\"2010-08-31\",2.276923076923077],[\"2010-09-01\",5.7072972972972975],[\"2010-09-02\",4.920869565217392],[\"2010-09-03\",3.3309375],[\"2010-09-05\",3.1916666666666664],[\"2010-09-06\",3.3480000000000003],[\"2010-09-07\",2.842162162162162],[\"2010-09-08\",1.5644444444444445],[\"2010-09-09\",10.43875],[\"2010-09-10\",2.3905882352941177],[\"2010-09-12\",4.418125],[\"2010-09-13\",3.0474647887323942],[\"2010-09-14\",3.6096551724137926],[\"2010-09-15\",3.2325000000000004],[\"2010-09-16\",4.188444444444444],[\"2010-09-17\",5.109166666666667],[\"2010-09-19\",3.0396296296296295],[\"2010-09-20\",6.176984126984126],[\"2010-09-21\",2.352967032967033],[\"2010-09-22\",2.201627906976744],[\"2010-09-23\",5.716129032258064],[\"2010-09-24\",3.806857142857143],[\"2010-09-26\",2.95078125],[\"2010-09-27\",3.557962962962963],[\"2010-09-28\",4.03675],[\"2010-09-29\",5.016481481481481],[\"2010-09-30\",3.856346153846154],[\"2010-10-01\",5.132564102564103],[\"2010-10-03\",2.0460869565217394],[\"2010-10-04\",3.552888888888889],[\"2010-10-05\",2.7676923076923075],[\"2010-10-06\",3.587307692307692],[\"2010-10-07\",3.369830508474576],[\"2010-10-08\",3.1551063829787234],[\"2010-10-10\",3.355625],[\"2010-10-11\",4.855961538461539],[\"2010-10-12\",2.8693243243243245],[\"2010-10-13\",2.9],[\"2010-10-14\",4.756326530612245],[\"2010-10-15\",3.27566265060241],[\"2010-10-17\",5.2316666666666665],[\"2010-10-18\",4.7876666666666665],[\"2010-10-19\",4.288571428571428],[\"2010-10-20\",3.46],[\"2010-10-21\",8.773333333333333],[\"2010-10-22\",6.355409836065574],[\"2010-10-24\",6.017142857142857],[\"2010-10-25\",3.209142857142857],[\"2010-10-26\",4.045205479452055],[\"2010-10-27\",5.1686046511627906],[\"2010-10-28\",4.043947368421052],[\"2010-10-29\",3.553066666666667],[\"2010-10-31\",4.470000000000001],[\"2010-11-01\",3.3085714285714287],[\"2010-11-02\",3.797457627118644],[\"2010-11-03\",6.6152],[\"2010-11-04\",3.3376724137931038],[\"2010-11-05\",4.566666666666666],[\"2010-11-07\",3.552962962962963],[\"2010-11-08\",5.766666666666667],[\"2010-11-09\",4.662727272727273],[\"2010-11-10\",4.109611650485437],[\"2010-11-11\",3.4426315789473687],[\"2010-11-12\",3.196923076923077],[\"2010-11-14\",4.97],[\"2010-11-15\",4.072727272727273],[\"2010-11-16\",4.0222549019607845],[\"2010-11-17\",8.095625],[\"2010-11-18\",3.854943820224719],[\"2010-11-19\",8.050144927536232],[\"2010-11-21\",3.9802631578947367],[\"2010-11-22\",3.817230769230769],[\"2010-11-23\",3.261369863013699],[\"2010-11-24\",4.933854166666666],[\"2010-11-25\",3.7142307692307694],[\"2010-11-26\",2.8076595744680852],[\"2010-11-28\",7.747115384615385],[\"2010-11-29\",3.521641791044776],[\"2010-11-30\",2.5597894736842104],[\"2010-12-01\",3.3451612903225807],[\"2010-12-02\",2.6269026548672563],[\"2010-12-03\",4.589166666666667],[\"2010-12-05\",4.727435897435898],[\"2010-12-06\",3.323793103448276],[\"2010-12-07\",4.073055555555555],[\"2010-12-08\",4.102247191011236],[\"2010-12-09\",3.65041237113402],[\"2010-12-10\",3.8],[\"2010-12-12\",5.776842105263158],[\"2010-12-13\",2.992],[\"2010-12-14\",3.670375],[\"2010-12-15\",4.219285714285714],[\"2010-12-16\",4.598376068376068],[\"2010-12-17\",4.071228070175438],[\"2010-12-19\",3.225],[\"2010-12-20\",3.128974358974359],[\"2010-12-21\",4.002285714285715],[\"2010-12-22\",2.378823529411765],[\"2010-12-23\",2.6723076923076925],[\"2011-01-04\",3.4763636363636365],[\"2011-01-05\",3.6233333333333335],[\"2011-01-06\",2.231666666666667],[\"2011-01-07\",4.9075],[\"2011-01-09\",4.013461538461538],[\"2011-01-10\",4.251111111111111],[\"2011-01-11\",3.7800000000000002],[\"2011-01-12\",11.445172413793104],[\"2011-01-13\",2.698],[\"2011-01-14\",4.263513513513513],[\"2011-01-16\",3.67],[\"2011-01-17\",2.96725],[\"2011-01-18\",3.492857142857143],[\"2011-01-19\",3.5944444444444446],[\"2011-01-20\",3.0284444444444443],[\"2011-01-21\",4.725714285714285],[\"2011-01-23\",7.772],[\"2011-01-24\",3.737027027027027],[\"2011-01-25\",3.2453846153846153],[\"2011-01-26\",3.8625000000000003],[\"2011-01-27\",4.348648648648648],[\"2011-01-28\",5.367],[\"2011-01-30\",2.21],[\"2011-01-31\",4.283714285714286],[\"2011-02-01\",4.221904761904762],[\"2011-02-02\",2.3649999999999998],[\"2011-02-03\",4.607777777777778],[\"2011-02-04\",10.738095238095237],[\"2011-02-07\",4.417419354838709],[\"2011-02-08\",2.881875],[\"2011-02-09\",5.153076923076923],[\"2011-02-10\",8.178823529411764],[\"2011-02-11\",9.467586206896552],[\"2011-02-13\",3.446],[\"2011-02-14\",4.4559999999999995],[\"2011-02-15\",3.191470588235294],[\"2011-02-16\",2.688727272727273],[\"2011-02-17\",3.1310526315789473],[\"2011-02-18\",2.8596875],[\"2011-02-20\",4.406666666666666],[\"2011-02-21\",3.8955555555555557],[\"2011-02-22\",2.707241379310345],[\"2011-02-23\",4.465185185185185],[\"2011-02-24\",3.9556],[\"2011-02-25\",3.5707500000000003],[\"2011-02-27\",3.0338461538461536],[\"2011-02-28\",13.613333333333335],[\"2011-03-01\",18.93618181818182],[\"2011-03-02\",3.099411764705882],[\"2011-03-03\",5.574871794871795],[\"2011-03-04\",4.125581395348838],[\"2011-03-06\",4.07125],[\"2011-03-07\",9.83235294117647],[\"2011-03-08\",4.547575757575757],[\"2011-03-09\",4.570888888888889],[\"2011-03-10\",4.258372093023255],[\"2011-03-11\",4.782653061224489],[\"2011-03-14\",3.3762857142857143],[\"2011-03-15\",4.416842105263158],[\"2011-03-16\",3.377608695652174],[\"2011-03-17\",2.7523529411764707],[\"2011-03-18\",3.907758620689655],[\"2011-03-20\",4.387076923076924],[\"2011-03-21\",2.468936170212766],[\"2011-03-22\",2.539375],[\"2011-03-23\",4.136818181818182],[\"2011-03-24\",2.6779166666666665],[\"2011-03-25\",2.6782051282051285],[\"2011-03-27\",5.429047619047619],[\"2011-03-28\",8.715116279069768],[\"2011-03-29\",3.678421052631579],[\"2011-03-30\",3.1910000000000003],[\"2011-03-31\",5.062413793103448],[\"2011-04-01\",3.7162162162162162],[\"2011-04-03\",2.9942105263157894],[\"2011-04-04\",193.91809523809525],[\"2011-04-05\",6.400434782608696],[\"2011-04-06\",3.335],[\"2011-04-07\",3.9801886792452827],[\"2011-04-08\",4.110746268656716],[\"2011-04-10\",6.1],[\"2011-04-11\",3.061086956521739],[\"2011-04-12\",3.4103125],[\"2011-04-13\",3.957441860465116],[\"2011-04-14\",3.1911688311688313],[\"2011-04-15\",5.851666666666667],[\"2011-04-17\",3.1614285714285715],[\"2011-04-18\",3.151875],[\"2011-04-19\",2.2485],[\"2011-04-20\",3.354807692307692],[\"2011-04-21\",3.618360655737705],[\"2011-04-26\",4.076724137931034],[\"2011-04-27\",3.9739285714285715],[\"2011-04-28\",11.274912280701754],[\"2011-05-01\",4.1899999999999995],[\"2011-05-03\",5.665636363636364],[\"2011-05-04\",3.4808474576271187],[\"2011-05-05\",4.682061855670104],[\"2011-05-06\",4.879830508474576],[\"2011-05-08\",2.656875],[\"2011-05-09\",3.6853846153846157],[\"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-22\",3.953095238095238],[\"2011-05-23\",4.1470769230769235],[\"2011-05-24\",5.244647887323944],[\"2011-05-25\",2.7404761904761905],[\"2011-05-26\",6.34875],[\"2011-05-27\",3.2464814814814815],[\"2011-05-29\",2.6258333333333335],[\"2011-05-31\",4.00578947368421],[\"2011-06-01\",3.951935483870968],[\"2011-06-02\",3.872666666666667],[\"2011-06-03\",4.091875],[\"2011-06-05\",4.384444444444444],[\"2011-06-06\",3.3066666666666666],[\"2011-06-07\",3.1623636363636365],[\"2011-06-08\",3.4485074626865675],[\"2011-06-09\",4.249818181818182],[\"2011-06-10\",4.9411538461538465],[\"2011-06-12\",8.834999999999999],[\"2011-06-13\",3.351666666666667],[\"2011-06-14\",3.204],[\"2011-06-15\",4.550869565217392],[\"2011-06-16\",2.857894736842105],[\"2011-06-17\",3.221388888888889],[\"2011-06-19\",2.338214285714286],[\"2011-06-20\",68.40395833333334],[\"2011-06-21\",4.466969696969697],[\"2011-06-22\",2.8235],[\"2011-06-23\",2.592608695652174],[\"2011-06-24\",3.056190476190476],[\"2011-06-26\",7.047142857142857],[\"2011-06-27\",1.997391304347826],[\"2011-06-28\",3.094791666666667],[\"2011-06-29\",4.336129032258064],[\"2011-06-30\",11.425142857142857],[\"2011-07-01\",6.5818518518518525],[\"2011-07-03\",4.398888888888889],[\"2011-07-04\",3.787352941176471],[\"2011-07-05\",3.169655172413793],[\"2011-07-06\",2.4479661016949152],[\"2011-07-07\",3.8013793103448275],[\"2011-07-08\",9.609473684210528],[\"2011-07-10\",1.158],[\"2011-07-11\",2.9802631578947367],[\"2011-07-12\",2.1441666666666666],[\"2011-07-13\",4.7070454545454545],[\"2011-07-14\",4.534042553191489],[\"2011-07-15\",3.6704761904761902],[\"2011-07-17\",4.009318181818181],[\"2011-07-18\",6.26],[\"2011-07-19\",2.4946153846153845],[\"2011-07-20\",3.513157894736842],[\"2011-07-21\",3.5733333333333333],[\"2011-07-22\",2.7065],[\"2011-07-24\",3.548],[\"2011-07-25\",4.229846153846154],[\"2011-07-26\",3.9724242424242426],[\"2011-07-27\",3.635714285714286],[\"2011-07-28\",3.4259770114942527],[\"2011-07-29\",3.1955263157894733],[\"2011-07-31\",3.5477272727272724],[\"2011-08-01\",1.7383333333333333],[\"2011-08-02\",2.110625],[\"2011-08-03\",3.338],[\"2011-08-04\",4.298450704225352],[\"2011-08-05\",3.5256],[\"2011-08-07\",2.40425],[\"2011-08-08\",5.336666666666667],[\"2011-08-09\",4.949642857142857],[\"2011-08-10\",3.603548387096774],[\"2011-08-11\",4.168913043478261],[\"2011-08-12\",3.010625],[\"2011-08-14\",7.559565217391304],[\"2011-08-15\",1.7810344827586206],[\"2011-08-16\",3.183170731707317],[\"2011-08-17\",1.4523529411764706],[\"2011-08-18\",3.2051282051282053],[\"2011-08-19\",3.1640476190476186],[\"2011-08-21\",2.590909090909091],[\"2011-08-22\",3.0494736842105263],[\"2011-08-23\",2.520487804878049],[\"2011-08-24\",2.576911764705882],[\"2011-08-25\",5.572105263157895],[\"2011-08-26\",7.153333333333332],[\"2011-08-28\",2.4464705882352944],[\"2011-08-30\",5.129130434782609],[\"2011-08-31\",6.927],[\"2011-09-01\",2.5911940298507465],[\"2011-09-02\",2.1298305084745763],[\"2011-09-04\",3.2022857142857144],[\"2011-09-05\",2.4376666666666664],[\"2011-09-06\",3.9920338983050847],[\"2011-09-07\",3.5068421052631575],[\"2011-09-08\",4.061525423728813],[\"2011-09-09\",5.030487804878049],[\"2011-09-11\",2.3823529411764706],[\"2011-09-12\",2.321632653061225],[\"2011-09-13\",5.619047619047619],[\"2011-09-14\",2.93472972972973],[\"2011-09-15\",5.052307692307692],[\"2011-09-16\",3.0852173913043477],[\"2011-09-18\",2.9166666666666665],[\"2011-09-19\",2.638723404255319],[\"2011-09-20\",3.5164],[\"2011-09-21\",2.999166666666667],[\"2011-09-22\",3.7895774647887324],[\"2011-09-23\",4.655714285714286],[\"2011-09-25\",4.3684375],[\"2011-09-26\",2.5783870967741938],[\"2011-09-27\",3.0764285714285715],[\"2011-09-28\",3.3638636363636363]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date ORDER BY invoice_date ASC","sql_parameters":"[\"2011-09-29\"]","state":"{\"question\":\"Return the average of unit_price for retail invoice lines where (invoice_date is before '2011-09-29'), 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\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1167{"category":"single_table/and/grouped","domain":"commerce","family_id":"462be469edb40e927896e3b2","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"f4d453088659ce4483b0e20875c2f343cd31e63ec64242d876440df2b85e3ac2","language":"en","license":"CC-BY-4.0","query":"Return the minimum of product_related for shopping sessions where (administrative is greater than 23 and product_duration is greater than 167.5), grouped by visitor_type, ordered by visitor_type ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[23,167.5],\\\"sql\\\":\\\"SELECT visitor_type, MIN(product_related) 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, MIN(product_related) AS value FROM shopping_sessions WHERE (administrative > ? OR product_duration > ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[23,167.5],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (administrative > ? AND product_duration > ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[23,167.5],\\\"sql\\\":\\\"SELECT visitor_type, SUM(product_related) AS value FROM shopping_sessions WHERE (administrative > ? AND product_duration > ?) GROUP BY visitor_type ORDER BY visitor_type ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Returning_Visitor\",34]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, MIN(product_related) AS value FROM shopping_sessions WHERE (administrative > ? AND product_duration > ?) GROUP BY visitor_type ORDER BY visitor_type ASC","sql_parameters":"[23,167.5]","state":"{\"question\":\"Return the minimum of product_related for shopping sessions where (administrative is greater than 23 and 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\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}1168{"category":"single_table/ranked","domain":"commerce","family_id":"8566d1cb77cc58c292bdc203","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"6476e8a1ebe043db12747e180aea332332cd18486745e44a2418da37b8bd399c","language":"en","license":"CC-BY-4.0","query":"Return the minimum of unit_price for retail invoice lines where (unit_price is greater than 2.25), grouped by country; return at most 3 groups ordered by aggregate value ASC, breaking ties by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2.25],\\\"sql\\\":\\\"SELECT country, MIN(unit_price) AS value FROM retail_lines WHERE (unit_price > ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2.25],\\\"sql\\\":\\\"SELECT country, MIN(unit_price) AS value FROM retail_lines WHERE (unit_price > ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2.25],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (unit_price > ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2.25],\\\"sql\\\":\\\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (unit_price > ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"United Kingdom\",2.26],[\"EIRE\",2.49],[\"France\",2.49]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, MIN(unit_price) AS value FROM retail_lines WHERE (unit_price > ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3","sql_parameters":"[2.25]","state":"{\"question\":\"Return the minimum of unit_price for retail invoice lines where (unit_price is greater than 2.25), 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\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1169{"category":"join/null/or/ranked","domain":"commerce","family_id":"e1bee4e7796b794632c80606","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"e014805e4cdefc56a4c1f584cca1cf65a583b1c5ea41be5eec8e93bf431ff184","language":"en","license":"CC-BY-4.0","query":"Return the minimum of l.quantity for retail lines joined to their invoices where (l.quantity is greater than 648 or i.customer_id is missing), grouped by i.country; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[648],\\\"sql\\\":\\\"SELECT i.country, MIN(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ? AND i.customer_id IS NULL) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[648],\\\"sql\\\":\\\"SELECT i.country, MIN(l.quantity) 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 ORDER BY value ASC, i.country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[648],\\\"sql\\\":\\\"SELECT i.country, MIN(l.quantity) 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 ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[648],\\\"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 ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Sweden\",720],[\"Bahrain\",3],[\"Israel\",2],[\"EIRE\",1],[\"Switzerland\",1]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, MIN(l.quantity) 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 ORDER BY value DESC, i.country ASC LIMIT 5","sql_parameters":"[648]","state":"{\"question\":\"Return the minimum of l.quantity for retail lines joined to their invoices where (l.quantity is greater than 648 or i.customer_id is missing), grouped by i.country; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1170{"category":"single_table/grouped","domain":"commerce","family_id":"364db79f0cfda524d801afa9","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"7e4ca1b1bfc8c031c5bbd4f5ef287d945b2a5a246203f26b52f1c8a73667156a","language":"en","license":"CC-BY-4.0","query":"Return the maximum of product_duration for shopping sessions where (month equals 'Nov'), grouped by revenue, ordered by revenue ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Nov\\\"],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (month = ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Nov\\\"],\\\"sql\\\":\\\"SELECT revenue, MAX(product_duration) AS value FROM shopping_sessions WHERE (month = ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Nov\\\"],\\\"sql\\\":\\\"SELECT revenue, SUM(product_duration) AS value FROM shopping_sessions WHERE (month = ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Nov\\\"],\\\"sql\\\":\\\"SELECT revenue, AVG(product_duration) AS value FROM shopping_sessions WHERE (month = ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,24844.1562],[1,27009.85943]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, MAX(product_duration) AS value FROM shopping_sessions WHERE (month = ?) GROUP BY revenue ORDER BY revenue ASC","sql_parameters":"[\"Nov\"]","state":"{\"question\":\"Return the maximum of product_duration for shopping sessions where (month equals 'Nov'), grouped by revenue, ordered by revenue ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}1171{"category":"join/null/or/grouped","domain":"commerce","family_id":"e84b6224498152a2ed0ffd5b","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"bb6a0f8f61c01c5d178743e009e4a6f32c3658362e075af921024c654974d0f3","language":"en","license":"CC-BY-4.0","query":"Return the maximum of l.quantity for retail lines joined to their invoices where (l.quantity is greater than 229 or i.customer_id is missing), grouped by i.invoice_date, ordered by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[229],\\\"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 > ? AND i.customer_id IS NULL) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[229],\\\"sql\\\":\\\"SELECT i.invoice_date, 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.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[229],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.quantity) 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.invoice_date ORDER BY i.invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[229],\\\"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 i.customer_id IS NULL) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-01\",2],[\"2009-12-02\",288],[\"2009-12-03\",5184],[\"2009-12-04\",300],[\"2009-12-06\",5],[\"2009-12-07\",288],[\"2009-12-08\",936],[\"2009-12-09\",12],[\"2009-12-10\",1],[\"2009-12-11\",7],[\"2009-12-14\",12],[\"2009-12-15\",480],[\"2009-12-17\",6],[\"2009-12-18\",1],[\"2009-12-20\",1],[\"2009-12-21\",12],[\"2009-12-22\",336],[\"2009-12-23\",240],[\"2010-01-04\",300],[\"2010-01-05\",2],[\"2010-01-07\",832],[\"2010-01-08\",600],[\"2010-01-10\",300],[\"2010-01-11\",576],[\"2010-01-12\",720],[\"2010-01-13\",288],[\"2010-01-15\",1],[\"2010-01-20\",240],[\"2010-01-22\",6],[\"2010-01-25\",2],[\"2010-01-26\",11],[\"2010-01-27\",1440],[\"2010-01-28\",12],[\"2010-01-29\",288],[\"2010-01-31\",3],[\"2010-02-01\",3],[\"2010-02-02\",1],[\"2010-02-03\",1],[\"2010-02-04\",252],[\"2010-02-07\",720],[\"2010-02-08\",3],[\"2010-02-10\",2],[\"2010-02-11\",384],[\"2010-02-12\",600],[\"2010-02-14\",1],[\"2010-02-16\",288],[\"2010-02-17\",720],[\"2010-02-18\",288],[\"2010-02-19\",1800],[\"2010-02-22\",2],[\"2010-02-23\",2],[\"2010-02-24\",300],[\"2010-02-25\",480],[\"2010-02-26\",300],[\"2010-02-28\",256],[\"2010-03-01\",240],[\"2010-03-03\",2],[\"2010-03-04\",240],[\"2010-03-05\",537],[\"2010-03-07\",4],[\"2010-03-08\",400],[\"2010-03-09\",10],[\"2010-03-10\",500],[\"2010-03-15\",600],[\"2010-03-17\",480],[\"2010-03-18\",720],[\"2010-03-19\",864],[\"2010-03-21\",300],[\"2010-03-22\",480],[\"2010-03-23\",10000],[\"2010-03-24\",384],[\"2010-03-26\",12],[\"2010-03-29\",816],[\"2010-03-30\",360],[\"2010-03-31\",1],[\"2010-04-01\",648],[\"2010-04-06\",720],[\"2010-04-08\",288],[\"2010-04-09\",300],[\"2010-04-11\",720],[\"2010-04-12\",1],[\"2010-04-14\",1],[\"2010-04-15\",2],[\"2010-04-16\",864],[\"2010-04-19\",1440],[\"2010-04-20\",1],[\"2010-04-21\",2],[\"2010-04-22\",600],[\"2010-04-23\",3],[\"2010-04-26\",432],[\"2010-04-27\",1],[\"2010-04-28\",1],[\"2010-04-29\",720],[\"2010-04-30\",4],[\"2010-05-02\",250],[\"2010-05-04\",560],[\"2010-05-05\",288],[\"2010-05-06\",576],[\"2010-05-07\",816],[\"2010-05-10\",612],[\"2010-05-12\",1440],[\"2010-05-13\",1],[\"2010-05-14\",1440],[\"2010-05-17\",1],[\"2010-05-18\",5000],[\"2010-05-19\",500],[\"2010-05-21\",2],[\"2010-05-23\",240],[\"2010-05-24\",1],[\"2010-05-25\",720],[\"2010-05-26\",720],[\"2010-05-28\",1],[\"2010-06-01\",1],[\"2010-06-02\",3],[\"2010-06-03\",432],[\"2010-06-04\",3],[\"2010-06-07\",830],[\"2010-06-08\",3500],[\"2010-06-09\",384],[\"2010-06-10\",1],[\"2010-06-11\",12],[\"2010-06-14\",2],[\"2010-06-15\",432],[\"2010-06-16\",12],[\"2010-06-17\",1],[\"2010-06-18\",2],[\"2010-06-20\",400],[\"2010-06-23\",720],[\"2010-06-24\",2],[\"2010-06-25\",1],[\"2010-06-27\",600],[\"2010-06-28\",720],[\"2010-06-29\",400],[\"2010-06-30\",720],[\"2010-07-01\",2],[\"2010-07-02\",3],[\"2010-07-05\",2],[\"2010-07-06\",240],[\"2010-07-07\",40],[\"2010-07-08\",3],[\"2010-07-09\",1],[\"2010-07-14\",1],[\"2010-07-15\",816],[\"2010-07-16\",240],[\"2010-07-18\",288],[\"2010-07-19\",1],[\"2010-07-20\",3],[\"2010-07-21\",2],[\"2010-07-22\",3],[\"2010-07-23\",504],[\"2010-07-25\",500],[\"2010-07-26\",288],[\"2010-07-27\",432],[\"2010-07-28\",288],[\"2010-07-29\",2],[\"2010-07-30\",324],[\"2010-08-02\",300],[\"2010-08-03\",2304],[\"2010-08-05\",360],[\"2010-08-06\",10],[\"2010-08-08\",300],[\"2010-08-10\",1],[\"2010-08-11\",327],[\"2010-08-12\",1],[\"2010-08-13\",312],[\"2010-08-15\",1200],[\"2010-08-16\",254],[\"2010-08-17\",288],[\"2010-08-18\",4],[\"2010-08-19\",720],[\"2010-08-20\",2],[\"2010-08-24\",720],[\"2010-08-25\",864],[\"2010-08-26\",400],[\"2010-08-31\",432],[\"2010-09-02\",288],[\"2010-09-03\",7128],[\"2010-09-06\",4],[\"2010-09-07\",288],[\"2010-09-09\",1],[\"2010-09-12\",480],[\"2010-09-13\",1056],[\"2010-09-16\",2],[\"2010-09-17\",288],[\"2010-09-20\",768],[\"2010-09-21\",504],[\"2010-09-22\",2],[\"2010-09-24\",1],[\"2010-09-26\",700],[\"2010-09-27\",768],[\"2010-09-28\",240],[\"2010-09-30\",12],[\"2010-10-01\",12],[\"2010-10-04\",720],[\"2010-10-05\",288],[\"2010-10-06\",1200],[\"2010-10-07\",6],[\"2010-10-08\",4752],[\"2010-10-10\",1],[\"2010-10-11\",2],[\"2010-10-12\",720],[\"2010-10-13\",576],[\"2010-10-14\",625],[\"2010-10-15\",9],[\"2010-10-18\",2],[\"2010-10-19\",2],[\"2010-10-21\",2],[\"2010-10-22\",1240],[\"2010-10-24\",256],[\"2010-10-25\",5],[\"2010-10-26\",600],[\"2010-10-29\",12],[\"2010-10-31\",1],[\"2010-11-01\",288],[\"2010-11-02\",2],[\"2010-11-03\",384],[\"2010-11-04\",9360],[\"2010-11-05\",1152],[\"2010-11-09\",360],[\"2010-11-10\",1000],[\"2010-11-11\",800],[\"2010-11-12\",800],[\"2010-11-15\",288],[\"2010-11-16\",360],[\"2010-11-17\",720],[\"2010-11-18\",12],[\"2010-11-19\",960],[\"2010-11-22\",1],[\"2010-11-23\",8],[\"2010-11-24\",288],[\"2010-11-25\",240],[\"2010-11-29\",288],[\"2010-11-30\",384],[\"2010-12-01\",600],[\"2010-12-02\",2880],[\"2010-12-03\",1440],[\"2010-12-06\",480],[\"2010-12-07\",972],[\"2010-12-08\",384],[\"2010-12-09\",1394],[\"2010-12-10\",1],[\"2010-12-12\",2],[\"2010-12-13\",480],[\"2010-12-14\",288],[\"2010-12-15\",11],[\"2010-12-16\",500],[\"2010-12-17\",5],[\"2010-12-19\",6],[\"2010-12-20\",960],[\"2010-12-22\",1],[\"2010-12-23\",5],[\"2011-01-05\",600],[\"2011-01-06\",600],[\"2011-01-07\",600],[\"2011-01-10\",2],[\"2011-01-11\",3114],[\"2011-01-12\",1],[\"2011-01-13\",288],[\"2011-01-17\",400],[\"2011-01-20\",1],[\"2011-01-21\",288],[\"2011-01-24\",2],[\"2011-01-25\",6],[\"2011-01-26\",720],[\"2011-01-27\",2],[\"2011-02-01\",25],[\"2011-02-03\",2592],[\"2011-02-04\",432],[\"2011-02-07\",504],[\"2011-02-10\",1296],[\"2011-02-11\",1],[\"2011-02-14\",288],[\"2011-02-15\",1500],[\"2011-02-16\",432],[\"2011-02-17\",288],[\"2011-02-18\",4],[\"2011-02-20\",250],[\"2011-02-21\",24],[\"2011-02-25\",60],[\"2011-03-01\",7],[\"2011-03-02\",300],[\"2011-03-03\",288],[\"2011-03-04\",1200],[\"2011-03-07\",576],[\"2011-03-08\",864],[\"2011-03-09\",600],[\"2011-03-10\",1],[\"2011-03-11\",300],[\"2011-03-14\",6],[\"2011-03-15\",1],[\"2011-03-16\",480],[\"2011-03-17\",720],[\"2011-03-18\",1],[\"2011-03-20\",2160],[\"2011-03-21\",1],[\"2011-03-22\",6],[\"2011-03-23\",1],[\"2011-03-24\",600],[\"2011-03-25\",432],[\"2011-03-30\",600],[\"2011-04-01\",1200],[\"2011-04-03\",288],[\"2011-04-04\",6],[\"2011-04-05\",500],[\"2011-04-06\",2],[\"2011-04-07\",12],[\"2011-04-08\",1200],[\"2011-04-12\",1],[\"2011-04-13\",1728],[\"2011-04-14\",600],[\"2011-04-15\",2],[\"2011-04-18\",3114],[\"2011-04-19\",2],[\"2011-04-20\",960],[\"2011-04-21\",1008],[\"2011-04-26\",1200],[\"2011-04-27\",1200],[\"2011-05-03\",240],[\"2011-05-04\",288],[\"2011-05-05\",600],[\"2011-05-06\",2],[\"2011-05-09\",2],[\"2011-05-10\",12],[\"2011-05-11\",240],[\"2011-05-12\",2],[\"2011-05-13\",336],[\"2011-05-17\",288],[\"2011-05-18\",1],[\"2011-05-19\",864],[\"2011-05-20\",576],[\"2011-05-23\",2700],[\"2011-05-24\",888],[\"2011-05-25\",1],[\"2011-05-26\",1],[\"2011-05-31\",1152],[\"2011-06-01\",1],[\"2011-06-02\",320],[\"2011-06-03\",1],[\"2011-06-05\",288],[\"2011-06-07\",48],[\"2011-06-08\",720],[\"2011-06-10\",1],[\"2011-06-12\",2],[\"2011-06-13\",504],[\"2011-06-14\",660],[\"2011-06-15\",2],[\"2011-06-16\",288],[\"2011-06-17\",864],[\"2011-06-20\",400],[\"2011-06-22\",576],[\"2011-06-24\",6],[\"2011-06-27\",6],[\"2011-06-28\",320],[\"2011-06-30\",828],[\"2011-07-04\",300],[\"2011-07-05\",720],[\"2011-07-06\",864],[\"2011-07-07\",1440],[\"2011-07-08\",1],[\"2011-07-11\",576],[\"2011-07-12\",240],[\"2011-07-15\",2],[\"2011-07-17\",720],[\"2011-07-19\",600],[\"2011-07-20\",432],[\"2011-07-21\",720],[\"2011-07-22\",2],[\"2011-07-24\",480],[\"2011-07-26\",2],[\"2011-07-27\",576],[\"2011-07-28\",480],[\"2011-08-01\",360],[\"2011-08-02\",1000],[\"2011-08-03\",432],[\"2011-08-04\",1008],[\"2011-08-05\",240],[\"2011-08-07\",288],[\"2011-08-08\",700],[\"2011-08-10\",8],[\"2011-08-11\",3],[\"2011-08-16\",1],[\"2011-08-17\",824],[\"2011-08-18\",1200],[\"2011-08-21\",1],[\"2011-08-22\",408],[\"2011-08-23\",600],[\"2011-08-24\",720],[\"2011-08-26\",288],[\"2011-08-30\",4],[\"2011-09-01\",480],[\"2011-09-02\",840],[\"2011-09-04\",960],[\"2011-09-05\",480],[\"2011-09-06\",2],[\"2011-09-08\",576],[\"2011-09-09\",3],[\"2011-09-13\",300],[\"2011-09-14\",600],[\"2011-09-15\",600],[\"2011-09-16\",500],[\"2011-09-19\",2],[\"2011-09-20\",500],[\"2011-09-23\",288],[\"2011-09-26\",4],[\"2011-09-27\",240],[\"2011-09-28\",500],[\"2011-09-29\",432],[\"2011-09-30\",1],[\"2011-10-02\",288],[\"2011-10-03\",960],[\"2011-10-04\",1540],[\"2011-10-06\",480],[\"2011-10-07\",1296],[\"2011-10-10\",240],[\"2011-10-11\",1],[\"2011-10-12\",16],[\"2011-10-13\",384],[\"2011-10-14\",2],[\"2011-10-17\",500],[\"2011-10-18\",396],[\"2011-10-19\",288],[\"2011-10-20\",4],[\"2011-10-21\",1],[\"2011-10-24\",720],[\"2011-10-25\",1200],[\"2011-10-26\",384],[\"2011-10-27\",720],[\"2011-10-28\",480],[\"2011-10-31\",1],[\"2011-11-02\",864],[\"2011-11-03\",2100],[\"2011-11-04\",16],[\"2011-11-06\",2],[\"2011-11-07\",240],[\"2011-11-08\",2],[\"2011-11-09\",1200],[\"2011-11-10\",1],[\"2011-11-11\",576],[\"2011-11-13\",3],[\"2011-11-15\",864],[\"2011-11-16\",12],[\"2011-11-17\",480],[\"2011-11-18\",300],[\"2011-11-20\",288],[\"2011-11-21\",1],[\"2011-11-22\",1600],[\"2011-11-23\",360],[\"2011-11-24\",288],[\"2011-11-25\",2],[\"2011-11-28\",760],[\"2011-11-29\",288],[\"2011-11-30\",1],[\"2011-12-01\",288],[\"2011-12-02\",250],[\"2011-12-05\",800],[\"2011-12-06\",3],[\"2011-12-08\",1]]","source":"online_retail_ii","split":"dev","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 i.customer_id IS NULL) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC","sql_parameters":"[229]","state":"{\"question\":\"Return the maximum of l.quantity for retail lines joined to their invoices where (l.quantity is greater than 229 or i.customer_id is missing), grouped by i.invoice_date, ordered by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1172{"category":"single_table/having","domain":"sensor","family_id":"41e7423ec35ccf5d396684b9","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"b00958a1dfcd2dc0476e65f61d3a3afb7720ee08e14115af1c7562a45f1e0a85","language":"en","license":"CC-BY-4.0","query":"Return the maximum of eps1_mean for hydraulic cycles where (ps1_mean is greater than 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[156.56746,2],\\\"sql\\\":\\\"SELECT pump_leakage, MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value ASC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[156.56746,2],\\\"sql\\\":\\\"SELECT pump_leakage, MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[156.56746,2],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps1_mean > ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[156.56746,2],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[2,2740.641],[1,2722.5409],[0,2716.9452]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 5","sql_parameters":"[156.56746,2]","state":"{\"question\":\"Return the maximum of eps1_mean for hydraulic cycles where (ps1_mean is greater than 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\":{\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1173{"category":"single_table/and/having","domain":"commerce","family_id":"065c922a31f24c9481b5e528","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"6857dbec7745a6cfcb18dd68218c10632ae335374150a1bbeb2c82ae02f52e7e","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail invoice lines where (country equals 'Belgium' and quantity is at most 92), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Belgium\\\",92,10],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Belgium\\\",92,10],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Belgium\\\",92],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[10],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3","sql_parameters":"[\"Belgium\",92,10]","state":"{\"question\":\"Return the number of rows for retail invoice lines where (country equals 'Belgium' and quantity is at most 92), 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\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1174{"category":"single_table/and/grouped","domain":"sensor","family_id":"2679e88be69d0cf82c385cfe","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"d0cf64897e770c1804f417a833bce8bef31aa05020a55491847c1b9512c517c6","language":"en","license":"CC-BY-4.0","query":"Return the minimum of vs1_mean for hydraulic cycles where (ps1_mean is greater than 158.27043 and ps2_mean is at most 109.23171), grouped by pump_leakage, ordered by pump_leakage ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[158.27043,109.23171],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? OR ps2_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[158.27043,109.23171],\\\"sql\\\":\\\"SELECT pump_leakage, MIN(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? AND ps2_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[158.27043,109.23171],\\\"sql\\\":\\\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? AND ps2_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[158.27043,109.23171],\\\"sql\\\":\\\"SELECT pump_leakage, SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? AND ps2_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,0.53185],[1,0.52943],[2,0.53062]]","source":"hydraulic","split":"dev","sql":"SELECT pump_leakage, MIN(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? AND ps2_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC","sql_parameters":"[158.27043,109.23171]","state":"{\"question\":\"Return the minimum of vs1_mean for hydraulic cycles where (ps1_mean is greater than 158.27043 and ps2_mean is at most 109.23171), 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_mean\":\"REAL\",\"pump_leakage\":\"INTEGER\",\"ts1_mean\":\"REAL\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1175{"category":"single_table/or/grouped","domain":"commerce","family_id":"615ddb725140ac30187329e5","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"448b27c3eb2cce27ec4e5a17f1475b701c89d2ba684bbf131e23b836525f82d1","language":"en","license":"CC-BY-4.0","query":"Return the minimum of product_related for shopping sessions where (administrative is greater than 2 or product_related is greater than 340), grouped by revenue, ordered by revenue ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2,340],\\\"sql\\\":\\\"SELECT revenue, MIN(product_related) AS value FROM shopping_sessions WHERE (administrative > ? AND product_related > ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[2,340],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (administrative > ? OR product_related > ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2,340],\\\"sql\\\":\\\"SELECT revenue, SUM(product_related) AS value FROM shopping_sessions WHERE (administrative > ? OR product_related > ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2,340],\\\"sql\\\":\\\"SELECT revenue, MIN(product_related) AS value FROM shopping_sessions WHERE (administrative > ? OR product_related > ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,0],[1,1]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, MIN(product_related) AS value FROM shopping_sessions WHERE (administrative > ? OR product_related > ?) GROUP BY revenue ORDER BY revenue ASC","sql_parameters":"[2,340]","state":"{\"question\":\"Return the minimum of product_related for shopping sessions where (administrative is greater than 2 or product_related is greater than 340), grouped by revenue, ordered by revenue ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}1176{"category":"join/date/grouped","domain":"commerce","family_id":"0a3bf68bf7bd411d31df6add","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"788691c077c399b1b7e9cf4c7efaabe40e4a46d6517217d58382ab725830932e","language":"en","license":"CC-BY-4.0","query":"Return the minimum of l.quantity for retail lines joined to their invoices where (i.invoice_date is before '2011-05-10'), grouped by i.invoice_date, ordered by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, MIN(l.quantity) 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\\\":\\\"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_3\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.quantity) 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_4\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(l.quantity) 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\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-01\",1],[\"2009-12-02\",1],[\"2009-12-03\",1],[\"2009-12-04\",1],[\"2009-12-05\",1],[\"2009-12-06\",1],[\"2009-12-07\",1],[\"2009-12-08\",1],[\"2009-12-09\",1],[\"2009-12-10\",1],[\"2009-12-11\",1],[\"2009-12-13\",1],[\"2009-12-14\",1],[\"2009-12-15\",1],[\"2009-12-16\",1],[\"2009-12-17\",1],[\"2009-12-18\",1],[\"2009-12-20\",1],[\"2009-12-21\",1],[\"2009-12-22\",1],[\"2009-12-23\",1],[\"2010-01-04\",1],[\"2010-01-05\",1],[\"2010-01-06\",1],[\"2010-01-07\",1],[\"2010-01-08\",3],[\"2010-01-10\",2],[\"2010-01-11\",1],[\"2010-01-12\",1],[\"2010-01-13\",1],[\"2010-01-14\",1],[\"2010-01-15\",1],[\"2010-01-17\",6],[\"2010-01-18\",6],[\"2010-01-19\",2],[\"2010-01-20\",1],[\"2010-01-21\",1],[\"2010-01-22\",1],[\"2010-01-24\",3],[\"2010-01-25\",1],[\"2010-01-26\",1],[\"2010-01-27\",1],[\"2010-01-28\",1],[\"2010-01-29\",1],[\"2010-01-31\",1],[\"2010-02-01\",1],[\"2010-02-02\",1],[\"2010-02-03\",1],[\"2010-02-04\",1],[\"2010-02-05\",1],[\"2010-02-07\",1],[\"2010-02-08\",1],[\"2010-02-09\",1],[\"2010-02-10\",1],[\"2010-02-11\",1],[\"2010-02-12\",1],[\"2010-02-14\",1],[\"2010-02-15\",2],[\"2010-02-16\",1],[\"2010-02-17\",1],[\"2010-02-18\",1],[\"2010-02-19\",1],[\"2010-02-21\",1],[\"2010-02-22\",1],[\"2010-02-23\",1],[\"2010-02-24\",1],[\"2010-02-25\",1],[\"2010-02-26\",1],[\"2010-02-28\",1],[\"2010-03-01\",2],[\"2010-03-02\",1],[\"2010-03-03\",1],[\"2010-03-04\",1],[\"2010-03-05\",1],[\"2010-03-07\",1],[\"2010-03-08\",1],[\"2010-03-09\",1],[\"2010-03-10\",1],[\"2010-03-11\",1],[\"2010-03-12\",2],[\"2010-03-14\",1],[\"2010-03-15\",1],[\"2010-03-16\",1],[\"2010-03-17\",1],[\"2010-03-18\",1],[\"2010-03-19\",1],[\"2010-03-21\",1],[\"2010-03-22\",1],[\"2010-03-23\",1],[\"2010-03-24\",1],[\"2010-03-25\",1],[\"2010-03-26\",1],[\"2010-03-28\",12],[\"2010-03-29\",1],[\"2010-03-30\",1],[\"2010-03-31\",1],[\"2010-04-01\",1],[\"2010-04-06\",1],[\"2010-04-07\",6],[\"2010-04-08\",1],[\"2010-04-09\",1],[\"2010-04-11\",2],[\"2010-04-12\",1],[\"2010-04-13\",1],[\"2010-04-14\",1],[\"2010-04-15\",1],[\"2010-04-16\",1],[\"2010-04-18\",1],[\"2010-04-19\",1],[\"2010-04-20\",1],[\"2010-04-21\",1],[\"2010-04-22\",1],[\"2010-04-23\",1],[\"2010-04-25\",2],[\"2010-04-26\",1],[\"2010-04-27\",1],[\"2010-04-28\",1],[\"2010-04-29\",1],[\"2010-04-30\",1],[\"2010-05-02\",1],[\"2010-05-04\",1],[\"2010-05-05\",1],[\"2010-05-06\",1],[\"2010-05-07\",1],[\"2010-05-09\",1],[\"2010-05-10\",1],[\"2010-05-11\",1],[\"2010-05-12\",1],[\"2010-05-13\",1],[\"2010-05-14\",1],[\"2010-05-16\",2],[\"2010-05-17\",1],[\"2010-05-18\",1],[\"2010-05-19\",1],[\"2010-05-20\",1],[\"2010-05-21\",1],[\"2010-05-23\",1],[\"2010-05-24\",1],[\"2010-05-25\",1],[\"2010-05-26\",1],[\"2010-05-27\",1],[\"2010-05-28\",1],[\"2010-05-30\",1],[\"2010-06-01\",1],[\"2010-06-02\",1],[\"2010-06-03\",1],[\"2010-06-04\",1],[\"2010-06-06\",1],[\"2010-06-07\",2],[\"2010-06-08\",1],[\"2010-06-09\",1],[\"2010-06-10\",1],[\"2010-06-11\",1],[\"2010-06-13\",1],[\"2010-06-14\",1],[\"2010-06-15\",1],[\"2010-06-16\",2],[\"2010-06-17\",1],[\"2010-06-18\",1],[\"2010-06-20\",1],[\"2010-06-21\",2],[\"2010-06-22\",1],[\"2010-06-23\",1],[\"2010-06-24\",1],[\"2010-06-25\",1],[\"2010-06-27\",1],[\"2010-06-28\",2],[\"2010-06-29\",1],[\"2010-06-30\",1],[\"2010-07-01\",1],[\"2010-07-02\",1],[\"2010-07-04\",1],[\"2010-07-05\",1],[\"2010-07-06\",2],[\"2010-07-07\",1],[\"2010-07-08\",1],[\"2010-07-09\",1],[\"2010-07-11\",1],[\"2010-07-12\",1],[\"2010-07-13\",1],[\"2010-07-14\",1],[\"2010-07-15\",1],[\"2010-07-16\",1],[\"2010-07-18\",4],[\"2010-07-19\",1],[\"2010-07-20\",1],[\"2010-07-21\",1],[\"2010-07-22\",1],[\"2010-07-23\",1],[\"2010-07-25\",1],[\"2010-07-26\",1],[\"2010-07-27\",1],[\"2010-07-28\",1],[\"2010-07-29\",1],[\"2010-07-30\",1],[\"2010-08-01\",1],[\"2010-08-02\",1],[\"2010-08-03\",1],[\"2010-08-04\",1],[\"2010-08-05\",1],[\"2010-08-06\",1],[\"2010-08-08\",2],[\"2010-08-09\",2],[\"2010-08-10\",1],[\"2010-08-11\",1],[\"2010-08-12\",1],[\"2010-08-13\",1],[\"2010-08-15\",1],[\"2010-08-16\",2],[\"2010-08-17\",1],[\"2010-08-18\",1],[\"2010-08-19\",1],[\"2010-08-20\",1],[\"2010-08-22\",1],[\"2010-08-23\",1],[\"2010-08-24\",1],[\"2010-08-25\",1],[\"2010-08-26\",1],[\"2010-08-27\",3],[\"2010-08-29\",1],[\"2010-08-31\",1],[\"2010-09-01\",1],[\"2010-09-02\",1],[\"2010-09-03\",1],[\"2010-09-05\",2],[\"2010-09-06\",2],[\"2010-09-07\",2],[\"2010-09-08\",6],[\"2010-09-09\",1],[\"2010-09-10\",4],[\"2010-09-12\",1],[\"2010-09-13\",1],[\"2010-09-14\",1],[\"2010-09-15\",1],[\"2010-09-16\",1],[\"2010-09-17\",1],[\"2010-09-19\",2],[\"2010-09-20\",1],[\"2010-09-21\",1],[\"2010-09-22\",1],[\"2010-09-23\",1],[\"2010-09-24\",1],[\"2010-09-26\",1],[\"2010-09-27\",1],[\"2010-09-28\",1],[\"2010-09-29\",1],[\"2010-09-30\",1],[\"2010-10-01\",1],[\"2010-10-03\",4],[\"2010-10-04\",1],[\"2010-10-05\",1],[\"2010-10-06\",1],[\"2010-10-07\",1],[\"2010-10-08\",1],[\"2010-10-10\",1],[\"2010-10-11\",1],[\"2010-10-12\",1],[\"2010-10-13\",1],[\"2010-10-14\",1],[\"2010-10-15\",1],[\"2010-10-17\",1],[\"2010-10-18\",1],[\"2010-10-19\",1],[\"2010-10-20\",1],[\"2010-10-21\",1],[\"2010-10-22\",2],[\"2010-10-24\",1],[\"2010-10-25\",1],[\"2010-10-26\",1],[\"2010-10-27\",1],[\"2010-10-28\",1],[\"2010-10-29\",1],[\"2010-10-31\",1],[\"2010-11-01\",3],[\"2010-11-02\",1],[\"2010-11-03\",1],[\"2010-11-04\",1],[\"2010-11-05\",1],[\"2010-11-07\",1],[\"2010-11-08\",1],[\"2010-11-09\",1],[\"2010-11-10\",1],[\"2010-11-11\",1],[\"2010-11-12\",1],[\"2010-11-14\",1],[\"2010-11-15\",1],[\"2010-11-16\",1],[\"2010-11-17\",1],[\"2010-11-18\",1],[\"2010-11-19\",1],[\"2010-11-21\",1],[\"2010-11-22\",1],[\"2010-11-23\",1],[\"2010-11-24\",1],[\"2010-11-25\",1],[\"2010-11-26\",1],[\"2010-11-28\",1],[\"2010-11-29\",1],[\"2010-11-30\",1],[\"2010-12-01\",1],[\"2010-12-02\",1],[\"2010-12-03\",1],[\"2010-12-05\",1],[\"2010-12-06\",1],[\"2010-12-07\",1],[\"2010-12-08\",1],[\"2010-12-09\",1],[\"2010-12-10\",1],[\"2010-12-12\",1],[\"2010-12-13\",1],[\"2010-12-14\",1],[\"2010-12-15\",1],[\"2010-12-16\",1],[\"2010-12-17\",1],[\"2010-12-19\",1],[\"2010-12-20\",1],[\"2010-12-21\",1],[\"2010-12-22\",1],[\"2010-12-23\",1],[\"2011-01-04\",4],[\"2011-01-05\",1],[\"2011-01-06\",6],[\"2011-01-07\",1],[\"2011-01-09\",2],[\"2011-01-10\",1],[\"2011-01-11\",1],[\"2011-01-12\",1],[\"2011-01-13\",2],[\"2011-01-14\",1],[\"2011-01-16\",1],[\"2011-01-17\",1],[\"2011-01-18\",3],[\"2011-01-19\",1],[\"2011-01-20\",1],[\"2011-01-21\",1],[\"2011-01-23\",1],[\"2011-01-24\",1],[\"2011-01-25\",1],[\"2011-01-26\",2],[\"2011-01-27\",1],[\"2011-01-28\",4],[\"2011-01-30\",12],[\"2011-01-31\",1],[\"2011-02-01\",1],[\"2011-02-02\",1],[\"2011-02-03\",2],[\"2011-02-04\",1],[\"2011-02-07\",1],[\"2011-02-08\",3],[\"2011-02-09\",1],[\"2011-02-10\",1],[\"2011-02-11\",1],[\"2011-02-13\",4],[\"2011-02-14\",1],[\"2011-02-15\",1],[\"2011-02-16\",2],[\"2011-02-17\",1],[\"2011-02-18\",1],[\"2011-02-20\",3],[\"2011-02-21\",1],[\"2011-02-22\",1],[\"2011-02-23\",2],[\"2011-02-24\",2],[\"2011-02-25\",1],[\"2011-02-27\",1],[\"2011-02-28\",1],[\"2011-03-01\",1],[\"2011-03-02\",3],[\"2011-03-03\",1],[\"2011-03-04\",1],[\"2011-03-06\",2],[\"2011-03-07\",1],[\"2011-03-08\",4],[\"2011-03-09\",1],[\"2011-03-10\",1],[\"2011-03-11\",1],[\"2011-03-14\",1],[\"2011-03-15\",1],[\"2011-03-16\",1],[\"2011-03-17\",1],[\"2011-03-18\",1],[\"2011-03-20\",1],[\"2011-03-21\",1],[\"2011-03-22\",4],[\"2011-03-23\",1],[\"2011-03-24\",4],[\"2011-03-25\",1],[\"2011-03-27\",2],[\"2011-03-28\",1],[\"2011-03-29\",4],[\"2011-03-30\",1],[\"2011-03-31\",1],[\"2011-04-01\",1],[\"2011-04-03\",1],[\"2011-04-04\",1],[\"2011-04-05\",1],[\"2011-04-06\",1],[\"2011-04-07\",1],[\"2011-04-08\",1],[\"2011-04-10\",24],[\"2011-04-11\",1],[\"2011-04-12\",1],[\"2011-04-13\",1],[\"2011-04-14\",1],[\"2011-04-15\",1],[\"2011-04-17\",2],[\"2011-04-18\",1],[\"2011-04-19\",1],[\"2011-04-20\",2],[\"2011-04-21\",1],[\"2011-04-26\",1],[\"2011-04-27\",1],[\"2011-04-28\",1],[\"2011-05-01\",2],[\"2011-05-03\",1],[\"2011-05-04\",1],[\"2011-05-05\",1],[\"2011-05-06\",1],[\"2011-05-08\",1],[\"2011-05-09\",1]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.invoice_date, MIN(l.quantity) 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","sql_parameters":"[\"2011-05-10\"]","state":"{\"question\":\"Return the minimum of l.quantity for retail lines joined to their invoices where (i.invoice_date is before '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\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1177{"category":"single_table/date/and/aggregate","domain":"commerce","family_id":"703a64886a64179d55274c94","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"c5ece3f8af5808d355325815da2d1566481f8eef9d5483da37457993baf17b9c","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (country equals 'Channel Islands' and invoice_date is on or after '2010-12-02').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\",\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT MAX(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\",\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT MAX(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date >= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\",\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\",\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[16.65]]","source":"online_retail_ii","split":"dev","sql":"SELECT MAX(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?)","sql_parameters":"[\"Channel Islands\",\"2010-12-02\"]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines where (country equals 'Channel Islands' and invoice_date is on or after '2010-12-02').\",\"schema\":{\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1178{"category":"single_table/date/having","domain":"commerce","family_id":"1d9cff2460f50bd779b062fc","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"6da1026ff17703e6d3d35933994ce11707ece54b6538588a41fe35d359a4377e","language":"en","license":"CC-BY-4.0","query":"Return the maximum of quantity for retail invoice lines where (invoice_date is on or after '2010-02-18'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\",2],\\\"sql\\\":\\\"SELECT invoice_date, MAX(quantity) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\",2],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\",2],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2010-02-18\\\",2],\\\"sql\\\":\\\"SELECT invoice_date, MAX(quantity) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-03-23\",10000],[\"2010-11-04\",9360],[\"2010-09-03\",7128],[\"2010-05-18\",5000],[\"2010-10-08\",4752]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MAX(quantity) AS value FROM retail_lines WHERE (invoice_date >= ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5","sql_parameters":"[\"2010-02-18\",2]","state":"{\"question\":\"Return the maximum of quantity for retail invoice lines where (invoice_date is on or after '2010-02-18'), 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\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1179{"category":"join/or/having","domain":"commerce","family_id":"40ec85e21b22a134ac94bb87","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"1378cd2b785218cdd88dda11b9c27bd7abaaf30a0100ccd47d88b2eef1043bf6","language":"en","license":"CC-BY-4.0","query":"Return the maximum of l.unit_price for retail lines joined to their invoices where (l.quantity is greater than 1800 or l.unit_price is at most 8.5), grouped by i.invoice_date, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[1800,8.5,2],\\\"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 (l.quantity > ? AND l.unit_price <= ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[1800,8.5,2],\\\"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 (l.quantity > ? OR l.unit_price <= ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[1800,8.5,2],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) 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 HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[1800,8.5,2],\\\"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 (l.quantity > ? OR l.unit_price <= ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-02\",8.5],[\"2009-12-11\",8.5],[\"2009-12-14\",8.5],[\"2009-12-16\",8.5],[\"2009-12-17\",8.5]]","source":"online_retail_ii","split":"dev","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 (l.quantity > ? OR l.unit_price <= ?) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 5","sql_parameters":"[1800,8.5,2]","state":"{\"question\":\"Return the maximum of l.unit_price for retail lines joined to their invoices where (l.quantity is greater than 1800 or l.unit_price is at most 8.5), grouped by i.invoice_date, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1180{"category":"single_table/ranked","domain":"commerce","family_id":"d3a94947a20184455ccd0349","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"b8c8db371da13e8be1e67458f164960689db29ed57cacc1d3c1d84fb97552c46","language":"en","license":"CC-BY-4.0","query":"Return the average of administrative for shopping sessions where (product_related is at most 155), grouped by revenue; return at most 5 groups ordered by aggregate value DESC, breaking ties by revenue ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[155],\\\"sql\\\":\\\"SELECT revenue, AVG(administrative) AS value FROM shopping_sessions WHERE (product_related <= ?) GROUP BY revenue ORDER BY value ASC, revenue ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[155],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (product_related <= ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[155],\\\"sql\\\":\\\"SELECT revenue, SUM(administrative) AS value FROM shopping_sessions WHERE (product_related <= ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[155],\\\"sql\\\":\\\"SELECT revenue, AVG(administrative) AS value FROM shopping_sessions WHERE (product_related <= ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1,3.15320796460177],[0,2.020784543325527]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, AVG(administrative) AS value FROM shopping_sessions WHERE (product_related <= ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5","sql_parameters":"[155]","state":"{\"question\":\"Return the average of administrative for shopping sessions where (product_related is at most 155), 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_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}1181{"category":"single_table/having","domain":"commerce","family_id":"312d0aa17630540da0e8d955","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"30ecb54f0f77f7d24f3511714f3e267e17c50f2f96b4e83c126a6e4325b2a670","language":"en","license":"CC-BY-4.0","query":"Return the sum of administrative for shopping sessions where (product_duration is at most 3395.729484), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[3395.729484,10],\\\"sql\\\":\\\"SELECT visitor_type, SUM(administrative) AS value FROM shopping_sessions WHERE (product_duration <= ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value DESC, visitor_type ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[3395.729484,10],\\\"sql\\\":\\\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (product_duration <= ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[3395.729484,10],\\\"sql\\\":\\\"SELECT visitor_type, AVG(administrative) AS value FROM shopping_sessions WHERE (product_duration <= ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[3395.729484,10],\\\"sql\\\":\\\"SELECT visitor_type, SUM(administrative) AS value FROM shopping_sessions WHERE (product_duration <= ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value ASC, visitor_type ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Other\",118],[\"New_Visitor\",4248],[\"Returning_Visitor\",18805]]","source":"online_shoppers","split":"dev","sql":"SELECT visitor_type, SUM(administrative) AS value FROM shopping_sessions WHERE (product_duration <= ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value ASC, visitor_type ASC LIMIT 3","sql_parameters":"[3395.729484,10]","state":"{\"question\":\"Return the sum of administrative for shopping sessions where (product_duration is at most 3395.729484), 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_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}1182{"category":"single_table/or/grouped","domain":"commerce","family_id":"0ea64473474458f56bdea57c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"2dad5dd16463ce069fca1a8012b6164e6042e1a52e39f2d8fc4e04d960d2ee0e","language":"en","license":"CC-BY-4.0","query":"Return the minimum of quantity for retail invoice lines where (quantity is at most 25 or unit_price is greater than 2.25), grouped by country, ordered by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[25,2.25],\\\"sql\\\":\\\"SELECT country, MIN(quantity) AS value FROM retail_lines WHERE (quantity <= ? AND unit_price > ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[25,2.25],\\\"sql\\\":\\\"SELECT country, MIN(quantity) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[25,2.25],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[25,2.25],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?) GROUP BY country ORDER BY country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",2],[\"Austria\",1],[\"Bahrain\",2],[\"Belgium\",1],[\"Canada\",8],[\"Channel Islands\",2],[\"Cyprus\",2],[\"Denmark\",2],[\"EIRE\",1],[\"Finland\",1],[\"France\",1],[\"Germany\",1],[\"Israel\",1],[\"Italy\",1],[\"Japan\",1],[\"Netherlands\",1],[\"Norway\",1],[\"Poland\",1],[\"Portugal\",1],[\"Singapore\",1],[\"Spain\",1],[\"Sweden\",1],[\"Switzerland\",1],[\"USA\",12],[\"United Arab Emirates\",1],[\"United Kingdom\",1]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, MIN(quantity) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?) GROUP BY country ORDER BY country ASC","sql_parameters":"[25,2.25]","state":"{\"question\":\"Return the minimum of quantity for retail invoice lines where (quantity is at most 25 or unit_price is greater than 2.25), 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\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1183{"category":"join/null/and/having","domain":"commerce","family_id":"c9aacf073b00d352d6aef6cc","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"de265f8378357072ea49ec80ebfbf85b25d2b811b346f6a951d54d2862294bcb","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.unit_price for retail lines joined to their invoices where (l.quantity is greater than 229 and i.customer_id is missing), grouped by i.country, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[229,2],\\\"sql\\\":\\\"SELECT i.country, SUM(l.unit_price) 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 DESC, i.country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[229],\\\"sql\\\":\\\"SELECT i.country, SUM(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ? AND i.customer_id IS NULL) GROUP BY i.country ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2],\\\"sql\\\":\\\"SELECT i.country, SUM(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[229,2],\\\"sql\\\":\\\"SELECT i.country, SUM(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ? AND i.customer_id IS NULL) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","sql":"SELECT i.country, SUM(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ? AND i.customer_id IS NULL) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value DESC, i.country ASC LIMIT 5","sql_parameters":"[229,2]","state":"{\"question\":\"Return the sum of l.unit_price for retail lines joined to their invoices where (l.quantity is greater than 229 and i.customer_id is missing), grouped by i.country, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.country ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1184{"category":"single_table/ranked","domain":"commerce","family_id":"52b9c76e1012f6edd1c3939c","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"6dc39858df276e7457c5c552001592275f4b1f9e9f2648ec6dd502cd64d50b5b","language":"en","license":"CC-BY-4.0","query":"Return the minimum of product_duration for shopping sessions where (month equals 'May'), grouped by revenue; return at most 5 groups ordered by aggregate value DESC, breaking ties by revenue ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"May\\\"],\\\"sql\\\":\\\"SELECT revenue, MIN(product_duration) AS value FROM shopping_sessions WHERE (month = ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"May\\\"],\\\"sql\\\":\\\"SELECT revenue, MIN(product_duration) AS value FROM shopping_sessions WHERE (month = ?) GROUP BY revenue ORDER BY value ASC, revenue ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"May\\\"],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (month = ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"May\\\"],\\\"sql\\\":\\\"SELECT revenue, SUM(product_duration) AS value FROM shopping_sessions WHERE (month = ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[1,123.0],[0,0.0]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, MIN(product_duration) AS value FROM shopping_sessions WHERE (month = ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5","sql_parameters":"[\"May\"]","state":"{\"question\":\"Return the minimum of product_duration for shopping sessions where (month equals 'May'), 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_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}1185{"category":"join/null/and/having","domain":"commerce","family_id":"e1d4fb902c1bdb554e9cec42","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"898b62689bdf4640c20b1722eb2e8ece54e6d6bc184017ac33f1c8ef5bdf353c","language":"en","license":"CC-BY-4.0","query":"Return the average of l.unit_price for retail lines joined to their invoices where (l.quantity is at most 25 and 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[25,10],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? AND i.customer_id IS NOT NULL) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[25,10],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? OR i.customer_id IS NOT NULL) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[25],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? AND i.customer_id IS NOT NULL) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[25,10],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? AND i.customer_id IS NOT NULL) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-09-02\",1.97125],[\"2011-08-01\",2.0158823529411767],[\"2011-08-15\",2.095]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.invoice_date, AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? AND i.customer_id IS NOT NULL) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3","sql_parameters":"[25,10]","state":"{\"question\":\"Return the average of l.unit_price for retail lines joined to their invoices where (l.quantity is at most 25 and 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.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1186{"category":"single_table/date/or/grouped","domain":"commerce","family_id":"ea3efa0a06eee9471910a4d0","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"a233c4b2c1c22217e7a6f98a0c4f5ead9d12eca00c1805c8f5ee011a8082045b","language":"en","license":"CC-BY-4.0","query":"Return the minimum of quantity for retail invoice lines where (quantity is at most 229 or invoice_date is on or after '2010-07-14'), grouped by invoice_date, ordered by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[229,\\\"2010-07-14\\\"],\\\"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,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[229,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[229,\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT invoice_date, SUM(quantity) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-01\",1],[\"2009-12-02\",1],[\"2009-12-03\",1],[\"2009-12-04\",1],[\"2009-12-05\",1],[\"2009-12-06\",1],[\"2009-12-07\",1],[\"2009-12-08\",1],[\"2009-12-09\",1],[\"2009-12-10\",1],[\"2009-12-11\",1],[\"2009-12-13\",1],[\"2009-12-14\",1],[\"2009-12-15\",1],[\"2009-12-16\",1],[\"2009-12-17\",1],[\"2009-12-18\",1],[\"2009-12-20\",1],[\"2009-12-21\",1],[\"2009-12-22\",1],[\"2009-12-23\",1],[\"2010-01-04\",1],[\"2010-01-05\",1],[\"2010-01-06\",1],[\"2010-01-07\",1],[\"2010-01-08\",3],[\"2010-01-10\",2],[\"2010-01-11\",1],[\"2010-01-12\",1],[\"2010-01-13\",1],[\"2010-01-14\",1],[\"2010-01-15\",1],[\"2010-01-17\",6],[\"2010-01-18\",6],[\"2010-01-19\",2],[\"2010-01-20\",1],[\"2010-01-21\",1],[\"2010-01-22\",1],[\"2010-01-24\",3],[\"2010-01-25\",1],[\"2010-01-26\",1],[\"2010-01-27\",1],[\"2010-01-28\",1],[\"2010-01-29\",1],[\"2010-01-31\",1],[\"2010-02-01\",1],[\"2010-02-02\",1],[\"2010-02-03\",1],[\"2010-02-04\",1],[\"2010-02-05\",1],[\"2010-02-07\",1],[\"2010-02-08\",1],[\"2010-02-09\",1],[\"2010-02-10\",1],[\"2010-02-11\",1],[\"2010-02-12\",1],[\"2010-02-14\",1],[\"2010-02-15\",2],[\"2010-02-16\",1],[\"2010-02-17\",1],[\"2010-02-18\",1],[\"2010-02-19\",1],[\"2010-02-21\",1],[\"2010-02-22\",1],[\"2010-02-23\",1],[\"2010-02-24\",1],[\"2010-02-25\",1],[\"2010-02-26\",1],[\"2010-02-28\",1],[\"2010-03-01\",2],[\"2010-03-02\",1],[\"2010-03-03\",1],[\"2010-03-04\",1],[\"2010-03-05\",1],[\"2010-03-07\",1],[\"2010-03-08\",1],[\"2010-03-09\",1],[\"2010-03-10\",1],[\"2010-03-11\",1],[\"2010-03-12\",2],[\"2010-03-14\",1],[\"2010-03-15\",1],[\"2010-03-16\",1],[\"2010-03-17\",1],[\"2010-03-18\",1],[\"2010-03-19\",1],[\"2010-03-21\",1],[\"2010-03-22\",1],[\"2010-03-23\",1],[\"2010-03-24\",1],[\"2010-03-25\",1],[\"2010-03-26\",1],[\"2010-03-28\",12],[\"2010-03-29\",1],[\"2010-03-30\",1],[\"2010-03-31\",1],[\"2010-04-01\",1],[\"2010-04-06\",1],[\"2010-04-07\",6],[\"2010-04-08\",1],[\"2010-04-09\",1],[\"2010-04-11\",2],[\"2010-04-12\",1],[\"2010-04-13\",1],[\"2010-04-14\",1],[\"2010-04-15\",1],[\"2010-04-16\",1],[\"2010-04-18\",1],[\"2010-04-19\",1],[\"2010-04-20\",1],[\"2010-04-21\",1],[\"2010-04-22\",1],[\"2010-04-23\",1],[\"2010-04-25\",2],[\"2010-04-26\",1],[\"2010-04-27\",1],[\"2010-04-28\",1],[\"2010-04-29\",1],[\"2010-04-30\",1],[\"2010-05-02\",1],[\"2010-05-04\",1],[\"2010-05-05\",1],[\"2010-05-06\",1],[\"2010-05-07\",1],[\"2010-05-09\",1],[\"2010-05-10\",1],[\"2010-05-11\",1],[\"2010-05-12\",1],[\"2010-05-13\",1],[\"2010-05-14\",1],[\"2010-05-16\",2],[\"2010-05-17\",1],[\"2010-05-18\",1],[\"2010-05-19\",1],[\"2010-05-20\",1],[\"2010-05-21\",1],[\"2010-05-23\",1],[\"2010-05-24\",1],[\"2010-05-25\",1],[\"2010-05-26\",1],[\"2010-05-27\",1],[\"2010-05-28\",1],[\"2010-05-30\",1],[\"2010-06-01\",1],[\"2010-06-02\",1],[\"2010-06-03\",1],[\"2010-06-04\",1],[\"2010-06-06\",1],[\"2010-06-07\",2],[\"2010-06-08\",1],[\"2010-06-09\",1],[\"2010-06-10\",1],[\"2010-06-11\",1],[\"2010-06-13\",1],[\"2010-06-14\",1],[\"2010-06-15\",1],[\"2010-06-16\",2],[\"2010-06-17\",1],[\"2010-06-18\",1],[\"2010-06-20\",1],[\"2010-06-21\",2],[\"2010-06-22\",1],[\"2010-06-23\",1],[\"2010-06-24\",1],[\"2010-06-25\",1],[\"2010-06-27\",1],[\"2010-06-28\",2],[\"2010-06-29\",1],[\"2010-06-30\",1],[\"2010-07-01\",1],[\"2010-07-02\",1],[\"2010-07-04\",1],[\"2010-07-05\",1],[\"2010-07-06\",2],[\"2010-07-07\",1],[\"2010-07-08\",1],[\"2010-07-09\",1],[\"2010-07-11\",1],[\"2010-07-12\",1],[\"2010-07-13\",1],[\"2010-07-14\",1],[\"2010-07-15\",1],[\"2010-07-16\",1],[\"2010-07-18\",4],[\"2010-07-19\",1],[\"2010-07-20\",1],[\"2010-07-21\",1],[\"2010-07-22\",1],[\"2010-07-23\",1],[\"2010-07-25\",1],[\"2010-07-26\",1],[\"2010-07-27\",1],[\"2010-07-28\",1],[\"2010-07-29\",1],[\"2010-07-30\",1],[\"2010-08-01\",1],[\"2010-08-02\",1],[\"2010-08-03\",1],[\"2010-08-04\",1],[\"2010-08-05\",1],[\"2010-08-06\",1],[\"2010-08-08\",2],[\"2010-08-09\",2],[\"2010-08-10\",1],[\"2010-08-11\",1],[\"2010-08-12\",1],[\"2010-08-13\",1],[\"2010-08-15\",1],[\"2010-08-16\",2],[\"2010-08-17\",1],[\"2010-08-18\",1],[\"2010-08-19\",1],[\"2010-08-20\",1],[\"2010-08-22\",1],[\"2010-08-23\",1],[\"2010-08-24\",1],[\"2010-08-25\",1],[\"2010-08-26\",1],[\"2010-08-27\",3],[\"2010-08-29\",1],[\"2010-08-31\",1],[\"2010-09-01\",1],[\"2010-09-02\",1],[\"2010-09-03\",1],[\"2010-09-05\",2],[\"2010-09-06\",2],[\"2010-09-07\",2],[\"2010-09-08\",6],[\"2010-09-09\",1],[\"2010-09-10\",4],[\"2010-09-12\",1],[\"2010-09-13\",1],[\"2010-09-14\",1],[\"2010-09-15\",1],[\"2010-09-16\",1],[\"2010-09-17\",1],[\"2010-09-19\",2],[\"2010-09-20\",1],[\"2010-09-21\",1],[\"2010-09-22\",1],[\"2010-09-23\",1],[\"2010-09-24\",1],[\"2010-09-26\",1],[\"2010-09-27\",1],[\"2010-09-28\",1],[\"2010-09-29\",1],[\"2010-09-30\",1],[\"2010-10-01\",1],[\"2010-10-03\",4],[\"2010-10-04\",1],[\"2010-10-05\",1],[\"2010-10-06\",1],[\"2010-10-07\",1],[\"2010-10-08\",1],[\"2010-10-10\",1],[\"2010-10-11\",1],[\"2010-10-12\",1],[\"2010-10-13\",1],[\"2010-10-14\",1],[\"2010-10-15\",1],[\"2010-10-17\",1],[\"2010-10-18\",1],[\"2010-10-19\",1],[\"2010-10-20\",1],[\"2010-10-21\",1],[\"2010-10-22\",2],[\"2010-10-24\",1],[\"2010-10-25\",1],[\"2010-10-26\",1],[\"2010-10-27\",1],[\"2010-10-28\",1],[\"2010-10-29\",1],[\"2010-10-31\",1],[\"2010-11-01\",3],[\"2010-11-02\",1],[\"2010-11-03\",1],[\"2010-11-04\",1],[\"2010-11-05\",1],[\"2010-11-07\",1],[\"2010-11-08\",1],[\"2010-11-09\",1],[\"2010-11-10\",1],[\"2010-11-11\",1],[\"2010-11-12\",1],[\"2010-11-14\",1],[\"2010-11-15\",1],[\"2010-11-16\",1],[\"2010-11-17\",1],[\"2010-11-18\",1],[\"2010-11-19\",1],[\"2010-11-21\",1],[\"2010-11-22\",1],[\"2010-11-23\",1],[\"2010-11-24\",1],[\"2010-11-25\",1],[\"2010-11-26\",1],[\"2010-11-28\",1],[\"2010-11-29\",1],[\"2010-11-30\",1],[\"2010-12-01\",1],[\"2010-12-02\",1],[\"2010-12-03\",1],[\"2010-12-05\",1],[\"2010-12-06\",1],[\"2010-12-07\",1],[\"2010-12-08\",1],[\"2010-12-09\",1],[\"2010-12-10\",1],[\"2010-12-12\",1],[\"2010-12-13\",1],[\"2010-12-14\",1],[\"2010-12-15\",1],[\"2010-12-16\",1],[\"2010-12-17\",1],[\"2010-12-19\",1],[\"2010-12-20\",1],[\"2010-12-21\",1],[\"2010-12-22\",1],[\"2010-12-23\",1],[\"2011-01-04\",4],[\"2011-01-05\",1],[\"2011-01-06\",6],[\"2011-01-07\",1],[\"2011-01-09\",2],[\"2011-01-10\",1],[\"2011-01-11\",1],[\"2011-01-12\",1],[\"2011-01-13\",2],[\"2011-01-14\",1],[\"2011-01-16\",1],[\"2011-01-17\",1],[\"2011-01-18\",3],[\"2011-01-19\",1],[\"2011-01-20\",1],[\"2011-01-21\",1],[\"2011-01-23\",1],[\"2011-01-24\",1],[\"2011-01-25\",1],[\"2011-01-26\",2],[\"2011-01-27\",1],[\"2011-01-28\",4],[\"2011-01-30\",12],[\"2011-01-31\",1],[\"2011-02-01\",1],[\"2011-02-02\",1],[\"2011-02-03\",2],[\"2011-02-04\",1],[\"2011-02-07\",1],[\"2011-02-08\",3],[\"2011-02-09\",1],[\"2011-02-10\",1],[\"2011-02-11\",1],[\"2011-02-13\",4],[\"2011-02-14\",1],[\"2011-02-15\",1],[\"2011-02-16\",2],[\"2011-02-17\",1],[\"2011-02-18\",1],[\"2011-02-20\",3],[\"2011-02-21\",1],[\"2011-02-22\",1],[\"2011-02-23\",2],[\"2011-02-24\",2],[\"2011-02-25\",1],[\"2011-02-27\",1],[\"2011-02-28\",1],[\"2011-03-01\",1],[\"2011-03-02\",3],[\"2011-03-03\",1],[\"2011-03-04\",1],[\"2011-03-06\",2],[\"2011-03-07\",1],[\"2011-03-08\",4],[\"2011-03-09\",1],[\"2011-03-10\",1],[\"2011-03-11\",1],[\"2011-03-14\",1],[\"2011-03-15\",1],[\"2011-03-16\",1],[\"2011-03-17\",1],[\"2011-03-18\",1],[\"2011-03-20\",1],[\"2011-03-21\",1],[\"2011-03-22\",4],[\"2011-03-23\",1],[\"2011-03-24\",4],[\"2011-03-25\",1],[\"2011-03-27\",2],[\"2011-03-28\",1],[\"2011-03-29\",4],[\"2011-03-30\",1],[\"2011-03-31\",1],[\"2011-04-01\",1],[\"2011-04-03\",1],[\"2011-04-04\",1],[\"2011-04-05\",1],[\"2011-04-06\",1],[\"2011-04-07\",1],[\"2011-04-08\",1],[\"2011-04-10\",24],[\"2011-04-11\",1],[\"2011-04-12\",1],[\"2011-04-13\",1],[\"2011-04-14\",1],[\"2011-04-15\",1],[\"2011-04-17\",2],[\"2011-04-18\",1],[\"2011-04-19\",1],[\"2011-04-20\",2],[\"2011-04-21\",1],[\"2011-04-26\",1],[\"2011-04-27\",1],[\"2011-04-28\",1],[\"2011-05-01\",2],[\"2011-05-03\",1],[\"2011-05-04\",1],[\"2011-05-05\",1],[\"2011-05-06\",1],[\"2011-05-08\",1],[\"2011-05-09\",1],[\"2011-05-10\",1],[\"2011-05-11\",1],[\"2011-05-12\",1],[\"2011-05-13\",1],[\"2011-05-15\",1],[\"2011-05-16\",2],[\"2011-05-17\",2],[\"2011-05-18\",1],[\"2011-05-19\",1],[\"2011-05-20\",1],[\"2011-05-22\",2],[\"2011-05-23\",1],[\"2011-05-24\",1],[\"2011-05-25\",1],[\"2011-05-26\",1],[\"2011-05-27\",1],[\"2011-05-29\",1],[\"2011-05-31\",1],[\"2011-06-01\",1],[\"2011-06-02\",1],[\"2011-06-03\",1],[\"2011-06-05\",1],[\"2011-06-06\",2],[\"2011-06-07\",1],[\"2011-06-08\",1],[\"2011-06-09\",1],[\"2011-06-10\",1],[\"2011-06-12\",1],[\"2011-06-13\",1],[\"2011-06-14\",1],[\"2011-06-15\",1],[\"2011-06-16\",1],[\"2011-06-17\",1],[\"2011-06-19\",1],[\"2011-06-20\",1],[\"2011-06-21\",1],[\"2011-06-22\",1],[\"2011-06-23\",1],[\"2011-06-24\",1],[\"2011-06-26\",1],[\"2011-06-27\",4],[\"2011-06-28\",1],[\"2011-06-29\",1],[\"2011-06-30\",1],[\"2011-07-01\",1],[\"2011-07-03\",2],[\"2011-07-04\",4],[\"2011-07-05\",1],[\"2011-07-06\",1],[\"2011-07-07\",1],[\"2011-07-08\",1],[\"2011-07-10\",1],[\"2011-07-11\",1],[\"2011-07-12\",5],[\"2011-07-13\",1],[\"2011-07-14\",1],[\"2011-07-15\",1],[\"2011-07-17\",1],[\"2011-07-18\",1],[\"2011-07-19\",1],[\"2011-07-20\",1],[\"2011-07-21\",1],[\"2011-07-22\",1],[\"2011-07-24\",1],[\"2011-07-25\",1],[\"2011-07-26\",1],[\"2011-07-27\",1],[\"2011-07-28\",1],[\"2011-07-29\",1],[\"2011-07-31\",1],[\"2011-08-01\",1],[\"2011-08-02\",1],[\"2011-08-03\",1],[\"2011-08-04\",1],[\"2011-08-05\",1],[\"2011-08-07\",1],[\"2011-08-08\",1],[\"2011-08-09\",1],[\"2011-08-10\",1],[\"2011-08-11\",1],[\"2011-08-12\",8],[\"2011-08-14\",1],[\"2011-08-15\",3],[\"2011-08-16\",1],[\"2011-08-17\",12],[\"2011-08-18\",1],[\"2011-08-19\",1],[\"2011-08-21\",1],[\"2011-08-22\",1],[\"2011-08-23\",1],[\"2011-08-24\",1],[\"2011-08-25\",1],[\"2011-08-26\",2],[\"2011-08-28\",3],[\"2011-08-30\",1],[\"2011-08-31\",1],[\"2011-09-01\",2],[\"2011-09-02\",1],[\"2011-09-04\",1],[\"2011-09-05\",3],[\"2011-09-06\",1],[\"2011-09-07\",1],[\"2011-09-08\",1],[\"2011-09-09\",1],[\"2011-09-11\",4],[\"2011-09-12\",1],[\"2011-09-13\",1],[\"2011-09-14\",2],[\"2011-09-15\",1],[\"2011-09-16\",1],[\"2011-09-18\",1],[\"2011-09-19\",1],[\"2011-09-20\",1],[\"2011-09-21\",1],[\"2011-09-22\",1],[\"2011-09-23\",1],[\"2011-09-25\",1],[\"2011-09-26\",1],[\"2011-09-27\",1],[\"2011-09-28\",1],[\"2011-09-29\",4],[\"2011-09-30\",1],[\"2011-10-02\",1],[\"2011-10-03\",1],[\"2011-10-04\",1],[\"2011-10-05\",1],[\"2011-10-06\",1],[\"2011-10-07\",1],[\"2011-10-09\",2],[\"2011-10-10\",1],[\"2011-10-11\",1],[\"2011-10-12\",1],[\"2011-10-13\",1],[\"2011-10-14\",1],[\"2011-10-17\",1],[\"2011-10-18\",1],[\"2011-10-19\",1],[\"2011-10-20\",1],[\"2011-10-21\",1],[\"2011-10-23\",1],[\"2011-10-24\",1],[\"2011-10-25\",1],[\"2011-10-26\",1],[\"2011-10-27\",1],[\"2011-10-28\",1],[\"2011-10-30\",2],[\"2011-10-31\",1],[\"2011-11-01\",1],[\"2011-11-02\",1],[\"2011-11-03\",1],[\"2011-11-04\",1],[\"2011-11-06\",1],[\"2011-11-07\",1],[\"2011-11-08\",1],[\"2011-11-09\",1],[\"2011-11-10\",1],[\"2011-11-11\",1],[\"2011-11-13\",1],[\"2011-11-14\",1],[\"2011-11-15\",1],[\"2011-11-16\",1],[\"2011-11-17\",1],[\"2011-11-18\",1],[\"2011-11-20\",1],[\"2011-11-21\",1],[\"2011-11-22\",1],[\"2011-11-23\",1],[\"2011-11-24\",1],[\"2011-11-25\",1],[\"2011-11-27\",1],[\"2011-11-28\",1],[\"2011-11-29\",1],[\"2011-11-30\",1],[\"2011-12-01\",2],[\"2011-12-02\",1],[\"2011-12-04\",1],[\"2011-12-05\",1],[\"2011-12-06\",1],[\"2011-12-07\",1],[\"2011-12-08\",1],[\"2011-12-09\",2]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (quantity <= ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC","sql_parameters":"[229,\"2010-07-14\"]","state":"{\"question\":\"Return the minimum of quantity for retail invoice lines where (quantity is at most 229 or invoice_date is on or after '2010-07-14'), 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\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1187{"category":"join/null/and/having","domain":"commerce","family_id":"77fccf5d27a29b3a819b2235","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"b2189430cd184a80e956888d5865360124f0c22c5f2e148e621fc44cd2b0585a","language":"en","license":"CC-BY-4.0","query":"Return the average of l.quantity for retail lines joined to their invoices where (l.quantity is at most 25 and 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[25,10],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? AND i.customer_id IS NOT NULL) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[25,10],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? OR i.customer_id IS NOT NULL) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[25],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? AND i.customer_id IS NOT NULL) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[25,10],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? AND i.customer_id IS NOT NULL) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, i.invoice_date ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-01-07\",3.05],[\"2010-12-12\",3.1818181818181817],[\"2010-05-14\",4.0]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.invoice_date, AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? AND i.customer_id IS NOT NULL) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3","sql_parameters":"[25,10]","state":"{\"question\":\"Return the average of l.quantity for retail lines joined to their invoices where (l.quantity is at most 25 and 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.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1188{"category":"join/date/and/aggregate","domain":"commerce","family_id":"bbb4e9d4fa204f26b32adaed","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_3\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":1,\"plan_4\":0},\"type\":\"choice\"}}","id":"c719b7825ee6c6101f17bb18496b3dfde9fac22be29f8078341d6cff8fdeb566","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.quantity for retail lines joined to their invoices where (l.quantity is greater than 25 and i.invoice_date is on or after '2011-09-29').","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[25,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT SUM(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\\\":[25,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ? AND i.invoice_date >= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[25,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ? AND i.invoice_date >= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[25,\\\"2011-09-29\\\"],\\\"sql\\\":\\\"SELECT AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ? AND i.invoice_date >= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[109509]]","source":"online_retail_ii","split":"dev","sql":"SELECT SUM(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ? AND i.invoice_date >= ?)","sql_parameters":"[25,\"2011-09-29\"]","state":"{\"question\":\"Return the sum of l.quantity for retail lines joined to their invoices where (l.quantity is greater than 25 and i.invoice_date is on or after '2011-09-29').\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1189{"category":"single_table/or/grouped","domain":"commerce","family_id":"0a6092749bbcd90c5f9cfaf0","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"62c3b4e8211bd5bf80a8762a65db37413d79b1096354b400ab926fdaebca4e8b","language":"en","license":"CC-BY-4.0","query":"Return the maximum of product_duration for shopping sessions where (visitor_type equals 'Other' or traffic_type equals 10), grouped by revenue, ordered by revenue ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Other\\\",10],\\\"sql\\\":\\\"SELECT revenue, MAX(product_duration) AS value FROM shopping_sessions WHERE (visitor_type = ? OR traffic_type = ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Other\\\",10],\\\"sql\\\":\\\"SELECT revenue, MAX(product_duration) AS value FROM shopping_sessions WHERE (visitor_type = ? AND traffic_type = ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Other\\\",10],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (visitor_type = ? OR traffic_type = ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Other\\\",10],\\\"sql\\\":\\\"SELECT revenue, SUM(product_duration) AS value FROM shopping_sessions WHERE (visitor_type = ? OR traffic_type = ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,9630.209524],[1,17550.58486]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, MAX(product_duration) AS value FROM shopping_sessions WHERE (visitor_type = ? OR traffic_type = ?) GROUP BY revenue ORDER BY revenue ASC","sql_parameters":"[\"Other\",10]","state":"{\"question\":\"Return the maximum of product_duration for shopping sessions where (visitor_type equals 'Other' or traffic_type equals 10), grouped by revenue, ordered by revenue ascending.\",\"schema\":{\"shopping_sessions\":{\"administrative\":\"INTEGER\",\"month\":\"TEXT\",\"product_duration\":\"REAL\",\"product_related\":\"INTEGER\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}1190{"category":"join/date/and/grouped","domain":"commerce","family_id":"0217baa265d858c27b062dd4","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"f1422f037e45263771628691ced6a888802cced16dab7a0e9dfadd7505f968a4","language":"en","license":"CC-BY-4.0","query":"Return the average of l.quantity for retail lines joined to their invoices where (l.unit_price is at most 2.25 and i.invoice_date is on or after '2010-12-02'), grouped by i.invoice_date, ordered by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[2.25,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(l.quantity) 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\":\"{\\\"parameters\\\":[2.25,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) 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\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[2.25,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, SUM(l.quantity) 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\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[2.25,\\\"2010-12-02\\\"],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(l.quantity) 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\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-12-02\",101.01315789473684],[\"2010-12-03\",118.1],[\"2010-12-05\",32.285714285714285],[\"2010-12-06\",55.88235294117647],[\"2010-12-07\",61.827586206896555],[\"2010-12-08\",42.46153846153846],[\"2010-12-09\",76.30555555555556],[\"2010-12-10\",33.45],[\"2010-12-12\",10.333333333333334],[\"2010-12-13\",68.96666666666667],[\"2010-12-14\",49.48780487804878],[\"2010-12-15\",17.8],[\"2010-12-16\",48.416666666666664],[\"2010-12-17\",31.16],[\"2010-12-19\",2.3333333333333335],[\"2010-12-20\",232.8235294117647],[\"2010-12-21\",21.916666666666668],[\"2010-12-22\",17.272727272727273],[\"2010-12-23\",8.857142857142858],[\"2011-01-04\",58.0],[\"2011-01-05\",102.6875],[\"2011-01-06\",77.88888888888889],[\"2011-01-07\",97.125],[\"2011-01-09\",11.333333333333334],[\"2011-01-10\",40.666666666666664],[\"2011-01-11\",360.09090909090907],[\"2011-01-12\",13.142857142857142],[\"2011-01-13\",106.875],[\"2011-01-14\",20.615384615384617],[\"2011-01-17\",54.05],[\"2011-01-18\",30.153846153846153],[\"2011-01-19\",54.5],[\"2011-01-20\",35.9375],[\"2011-01-21\",41.09090909090909],[\"2011-01-23\",18.333333333333332],[\"2011-01-24\",21.714285714285715],[\"2011-01-25\",64.75862068965517],[\"2011-01-26\",138.36363636363637],[\"2011-01-27\",12.142857142857142],[\"2011-01-28\",30.0],[\"2011-01-30\",14.666666666666666],[\"2011-01-31\",59.733333333333334],[\"2011-02-01\",53.588235294117645],[\"2011-02-02\",33.0625],[\"2011-02-03\",232.14285714285714],[\"2011-02-04\",148.33333333333334],[\"2011-02-07\",45.6],[\"2011-02-08\",186.0],[\"2011-02-09\",10.0],[\"2011-02-10\",298.1],[\"2011-02-11\",18.727272727272727],[\"2011-02-13\",9.333333333333334],[\"2011-02-14\",100.125],[\"2011-02-15\",168.25],[\"2011-02-16\",54.696969696969695],[\"2011-02-17\",38.25],[\"2011-02-18\",34.43478260869565],[\"2011-02-20\",132.66666666666666],[\"2011-02-21\",40.9],[\"2011-02-22\",29.473684210526315],[\"2011-02-23\",38.18181818181818],[\"2011-02-24\",29.333333333333332],[\"2011-02-25\",45.083333333333336],[\"2011-02-27\",17.727272727272727],[\"2011-02-28\",15.071428571428571],[\"2011-03-01\",38.083333333333336],[\"2011-03-02\",145.0],[\"2011-03-03\",50.5],[\"2011-03-04\",156.08333333333334],[\"2011-03-06\",44.25],[\"2011-03-07\",88.77272727272727],[\"2011-03-08\",176.54545454545453],[\"2011-03-09\",74.22222222222223],[\"2011-03-10\",40.36363636363637],[\"2011-03-11\",45.375],[\"2011-03-14\",29.105263157894736],[\"2011-03-15\",66.75],[\"2011-03-16\",82.16],[\"2011-03-17\",82.8],[\"2011-03-18\",56.54545454545455],[\"2011-03-20\",184.34782608695653],[\"2011-03-21\",27.032258064516128],[\"2011-03-22\",43.4],[\"2011-03-23\",84.43478260869566],[\"2011-03-24\",55.92307692307692],[\"2011-03-25\",56.25806451612903],[\"2011-03-27\",36.285714285714285],[\"2011-03-28\",44.77777777777778],[\"2011-03-29\",27.571428571428573],[\"2011-03-30\",82.125],[\"2011-03-31\",36.0],[\"2011-04-01\",159.66666666666666],[\"2011-04-03\",52.63636363636363],[\"2011-04-04\",35.09090909090909],[\"2011-04-05\",101.66666666666667],[\"2011-04-06\",23.88888888888889],[\"2011-04-07\",28.647058823529413],[\"2011-04-08\",84.78947368421052],[\"2011-04-10\",24.0],[\"2011-04-11\",36.38095238095238],[\"2011-04-12\",45.75],[\"2011-04-13\",157.10526315789474],[\"2011-04-14\",76.4888888888889],[\"2011-04-15\",22.0],[\"2011-04-17\",11.818181818181818],[\"2011-04-18\",468.64285714285717],[\"2011-04-19\",26.916666666666668],[\"2011-04-20\",226.32],[\"2011-04-21\",82.96551724137932],[\"2011-04-26\",118.42307692307692],[\"2011-04-27\",157.19230769230768],[\"2011-04-28\",24.153846153846153],[\"2011-05-01\",29.0],[\"2011-05-03\",40.09090909090909],[\"2011-05-04\",42.38709677419355],[\"2011-05-05\",84.97368421052632],[\"2011-05-06\",12.227272727272727],[\"2011-05-08\",16.304347826086957],[\"2011-05-09\",18.625],[\"2011-05-10\",27.608695652173914],[\"2011-05-11\",48.407407407407405],[\"2011-05-12\",17.258064516129032],[\"2011-05-13\",48.53061224489796],[\"2011-05-15\",37.714285714285715],[\"2011-05-16\",32.833333333333336],[\"2011-05-17\",66.63333333333334],[\"2011-05-18\",49.525],[\"2011-05-19\",62.28125],[\"2011-05-20\",77.94444444444444],[\"2011-05-22\",14.875],[\"2011-05-23\",155.97297297297297],[\"2011-05-24\",28.857142857142858],[\"2011-05-25\",24.285714285714285],[\"2011-05-26\",46.795918367346935],[\"2011-05-27\",47.12903225806452],[\"2011-05-29\",25.0],[\"2011-05-31\",110.47368421052632],[\"2011-06-01\",23.7],[\"2011-06-02\",32.857142857142854],[\"2011-06-03\",22.923076923076923],[\"2011-06-05\",41.111111111111114],[\"2011-06-06\",48.76190476190476],[\"2011-06-07\",28.529411764705884],[\"2011-06-08\",76.17073170731707],[\"2011-06-09\",24.571428571428573],[\"2011-06-10\",77.71428571428571],[\"2011-06-12\",5.0],[\"2011-06-13\",56.166666666666664],[\"2011-06-14\",62.86666666666667],[\"2011-06-15\",43.0],[\"2011-06-16\",37.92982456140351],[\"2011-06-17\",55.291666666666664],[\"2011-06-19\",43.94736842105263],[\"2011-06-20\",87.08333333333333],[\"2011-06-21\",18.941176470588236],[\"2011-06-22\",108.73913043478261],[\"2011-06-23\",13.285714285714286],[\"2011-06-24\",28.689655172413794],[\"2011-06-26\",14.4],[\"2011-06-27\",63.06666666666667],[\"2011-06-28\",63.958333333333336],[\"2011-06-29\",59.07692307692308],[\"2011-06-30\",164.0],[\"2011-07-01\",26.529411764705884],[\"2011-07-03\",38.333333333333336],[\"2011-07-04\",14.444444444444445],[\"2011-07-05\",163.23333333333332],[\"2011-07-06\",59.333333333333336],[\"2011-07-07\",118.63333333333334],[\"2011-07-08\",133.5],[\"2011-07-10\",7.0],[\"2011-07-11\",101.22727272727273],[\"2011-07-12\",66.18181818181819],[\"2011-07-13\",22.862068965517242],[\"2011-07-14\",23.0],[\"2011-07-15\",28.0],[\"2011-07-17\",74.26666666666667],[\"2011-07-18\",31.0],[\"2011-07-19\",81.0],[\"2011-07-20\",67.15],[\"2011-07-21\",67.75],[\"2011-07-22\",28.476190476190474],[\"2011-07-24\",77.0],[\"2011-07-25\",41.92857142857143],[\"2011-07-26\",40.0],[\"2011-07-27\",108.66666666666667],[\"2011-07-28\",62.7906976744186],[\"2011-07-29\",28.583333333333332],[\"2011-07-31\",29.6],[\"2011-08-01\",61.666666666666664],[\"2011-08-02\",128.66666666666666],[\"2011-08-03\",71.04545454545455],[\"2011-08-04\",87.6829268292683],[\"2011-08-05\",62.56],[\"2011-08-07\",38.041666666666664],[\"2011-08-08\",148.875],[\"2011-08-09\",12.88888888888889],[\"2011-08-10\",15.944444444444445],[\"2011-08-11\",67.0],[\"2011-08-12\",56.0],[\"2011-08-14\",15.875],[\"2011-08-15\",32.34782608695652],[\"2011-08-16\",16.0],[\"2011-08-17\",180.8],[\"2011-08-18\",181.53846153846155],[\"2011-08-19\",26.095238095238095],[\"2011-08-21\",75.72222222222223],[\"2011-08-22\",33.16129032258065],[\"2011-08-23\",77.14285714285714],[\"2011-08-24\",110.1304347826087],[\"2011-08-25\",30.727272727272727],[\"2011-08-26\",67.83333333333333],[\"2011-08-28\",42.2],[\"2011-08-30\",16.727272727272727],[\"2011-08-31\",63.0],[\"2011-09-01\",99.4],[\"2011-09-02\",93.825],[\"2011-09-04\",64.65217391304348],[\"2011-09-05\",99.94444444444444],[\"2011-09-06\",48.0],[\"2011-09-07\",69.6],[\"2011-09-08\",61.628571428571426],[\"2011-09-09\",16.4],[\"2011-09-11\",39.30434782608695],[\"2011-09-12\",40.857142857142854],[\"2011-09-13\",132.0],[\"2011-09-14\",50.0],[\"2011-09-15\",18.5],[\"2011-09-16\",122.21428571428571],[\"2011-09-18\",81.2],[\"2011-09-19\",17.782608695652176],[\"2011-09-20\",54.04761904761905],[\"2011-09-21\",71.61290322580645],[\"2011-09-22\",37.666666666666664],[\"2011-09-23\",36.11764705882353],[\"2011-09-25\",55.69230769230769],[\"2011-09-26\",38.89473684210526],[\"2011-09-27\",95.78571428571429],[\"2011-09-28\",83.6],[\"2011-09-29\",72.81818181818181],[\"2011-09-30\",32.44],[\"2011-10-02\",106.66666666666667],[\"2011-10-03\",95.8],[\"2011-10-04\",184.3],[\"2011-10-05\",29.705882352941178],[\"2011-10-06\",72.56363636363636],[\"2011-10-07\",106.13513513513513],[\"2011-10-09\",24.0],[\"2011-10-10\",18.923076923076923],[\"2011-10-11\",14.96875],[\"2011-10-12\",14.066666666666666],[\"2011-10-13\",40.25],[\"2011-10-14\",31.176470588235293],[\"2011-10-17\",85.28571428571429],[\"2011-10-18\",50.63157894736842],[\"2011-10-19\",49.6530612244898],[\"2011-10-20\",29.058823529411764],[\"2011-10-21\",10.105263157894736],[\"2011-10-23\",1.75],[\"2011-10-24\",82.68571428571428],[\"2011-10-25\",115.94736842105263],[\"2011-10-26\",50.19565217391305],[\"2011-10-27\",69.08],[\"2011-10-28\",55.5],[\"2011-10-30\",29.192307692307693],[\"2011-10-31\",42.375],[\"2011-11-01\",49.3],[\"2011-11-02\",100.47058823529412],[\"2011-11-03\",156.51724137931035],[\"2011-11-04\",28.074074074074073],[\"2011-11-06\",15.35483870967742],[\"2011-11-07\",37.74193548387097],[\"2011-11-08\",39.951219512195124],[\"2011-11-09\",69.52631578947368],[\"2011-11-10\",20.954545454545453],[\"2011-11-11\",62.970588235294116],[\"2011-11-13\",32.6],[\"2011-11-14\",39.0],[\"2011-11-15\",54.7906976744186],[\"2011-11-16\",53.71666666666667],[\"2011-11-17\",47.41379310344828],[\"2011-11-18\",63.911764705882355],[\"2011-11-20\",33.1],[\"2011-11-21\",32.74193548387097],[\"2011-11-22\",92.23728813559322],[\"2011-11-23\",35.529411764705884],[\"2011-11-24\",54.06349206349206],[\"2011-11-25\",40.59375],[\"2011-11-27\",8.5],[\"2011-11-28\",72.56521739130434],[\"2011-11-29\",31.74468085106383],[\"2011-11-30\",20.344827586206897],[\"2011-12-01\",43.53968253968254],[\"2011-12-02\",28.21153846153846],[\"2011-12-04\",28.966666666666665],[\"2011-12-05\",67.72340425531915],[\"2011-12-06\",36.08571428571429],[\"2011-12-07\",42.10526315789474],[\"2011-12-08\",24.27027027027027],[\"2011-12-09\",37.666666666666664]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.invoice_date, AVG(l.quantity) 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","sql_parameters":"[2.25,\"2010-12-02\"]","state":"{\"question\":\"Return the average of l.quantity for retail lines joined to their invoices where (l.unit_price is at most 2.25 and i.invoice_date is on or after '2010-12-02'), grouped by i.invoice_date, ordered by i.invoice_date ascending.\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1191{"category":"single_table/or/ranked","domain":"commerce","family_id":"75d6e59eeb864bc20714b849","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"16408870260f3630d76a192fc402708f09b33d3fe793d0ed24315db5383fca4d","language":"en","license":"CC-BY-4.0","query":"Return the minimum of quantity for retail invoice lines where (country equals 'Bahrain' or quantity is greater than 648), grouped by country; return at most 5 groups ordered by aggregate value DESC, breaking ties by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Bahrain\\\",648],\\\"sql\\\":\\\"SELECT country, MIN(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity > ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Bahrain\\\",648],\\\"sql\\\":\\\"SELECT country, MIN(quantity) AS value FROM retail_lines WHERE (country = ? AND quantity > ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Bahrain\\\",648],\\\"sql\\\":\\\"SELECT country, MIN(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity > ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Bahrain\\\",648],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? OR quantity > ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"EIRE\",960],[\"Sweden\",720],[\"United Kingdom\",660],[\"Bahrain\",2]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, MIN(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity > ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5","sql_parameters":"[\"Bahrain\",648]","state":"{\"question\":\"Return the minimum of quantity for retail invoice lines where (country equals 'Bahrain' or quantity is greater than 648), 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\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1192{"category":"join/or/ranked","domain":"commerce","family_id":"e905bbd95f6ec5ed5cdd0d88","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"bb3786bbe95b81bf8bcacadad666b42f114ccbc781af82ac75b6988399d1e1a8","language":"en","license":"CC-BY-4.0","query":"Return the average of l.quantity for retail lines joined to their invoices where (i.country equals 'Canada' or l.quantity is at most 229), grouped by i.invoice_date; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Canada\\\",229],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(l.quantity) 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\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Canada\\\",229],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(l.quantity) 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 ASC, i.invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Canada\\\",229],\\\"sql\\\":\\\"SELECT i.invoice_date, COUNT(*) 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\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Canada\\\",229],\\\"sql\\\":\\\"SELECT i.invoice_date, AVG(l.quantity) 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\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2010-08-16\",86.65],[\"2011-02-08\",78.8125],[\"2010-08-09\",69.8125],[\"2011-09-18\",67.83333333333333],[\"2011-08-02\",67.5]]","source":"online_retail_ii","split":"dev","sql":"SELECT i.invoice_date, AVG(l.quantity) 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","sql_parameters":"[\"Canada\",229]","state":"{\"question\":\"Return the average of l.quantity for retail lines joined to their invoices where (i.country equals 'Canada' or l.quantity is at most 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_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1193{"category":"single_table/grouped","domain":"commerce","family_id":"5bff1bc72937fae9034df0e3","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"f78b1ecffa05f6017b97070af56dea13c6f2839891b2abd0aa7ec93fad802a36","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (quantity is greater than 1800), grouped by invoice_date, ordered by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[1800],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (quantity > ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[1800],\\\"sql\\\":\\\"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (quantity > ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[1800],\\\"sql\\\":\\\"SELECT invoice_date, AVG(unit_price) AS value FROM retail_lines WHERE (quantity > ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[1800],\\\"sql\\\":\\\"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (quantity > ?) GROUP BY invoice_date ORDER BY invoice_date ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2009-12-03\",0.25],[\"2010-03-23\",0.25],[\"2010-05-18\",0.5],[\"2010-06-08\",2.55],[\"2010-08-03\",0.18],[\"2010-09-03\",1.66],[\"2010-10-08\",1.66],[\"2010-11-04\",1.69],[\"2010-12-02\",0.18],[\"2011-01-11\",2.55],[\"2011-02-03\",0.21],[\"2011-03-20\",0.25],[\"2011-04-18\",2.4],[\"2011-05-23\",0.42],[\"2011-11-03\",1.06]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (quantity > ?) GROUP BY invoice_date ORDER BY invoice_date ASC","sql_parameters":"[1800]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines where (quantity is greater than 1800), 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\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1194{"category":"single_table/having","domain":"commerce","family_id":"4cde3653584d3574c54be3de","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_1\",\"probabilities\":{\"plan_1\":1,\"plan_2\":0,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"480153982bdb1d37fb5cb394173d0c67375371faecfd2bf4dd4d46819be742f7","language":"en","license":"CC-BY-4.0","query":"Return the maximum of unit_price for retail invoice lines where (country equals 'Austria'), 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.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Austria\\\",10],\\\"sql\\\":\\\"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (country = ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Austria\\\"],\\\"sql\\\":\\\"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (country = ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[10],\\\"sql\\\":\\\"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Austria\\\",10],\\\"sql\\\":\\\"SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (country = ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, MAX(unit_price) AS value FROM retail_lines WHERE (country = ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3","sql_parameters":"[\"Austria\",10]","state":"{\"question\":\"Return the maximum of unit_price for retail invoice lines where (country equals 'Austria'), 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\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1195{"category":"single_table/or/ranked","domain":"commerce","family_id":"0b00eec1c5a270a3b0578313","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"84d2517b559b5183dc09b706955843acfa4ea087d8160c88fcbfb38a56c5735e","language":"en","license":"CC-BY-4.0","query":"Return the sum of unit_price for retail invoice lines where (country equals 'Channel Islands' or quantity is at most 92), grouped by invoice_date; return at most 5 groups ordered by aggregate value DESC, breaking ties by invoice_date ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\",92],\\\"sql\\\":\\\"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\",92],\\\"sql\\\":\\\"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\",92],\\\"sql\\\":\\\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"Channel Islands\\\",92],\\\"sql\\\":\\\"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"2011-10-19\",6352.36],[\"2011-04-04\",4066.79],[\"2011-06-20\",3263.8599999999997],[\"2011-11-10\",1379.96],[\"2010-03-24\",1031.1]]","source":"online_retail_ii","split":"dev","sql":"SELECT invoice_date, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5","sql_parameters":"[\"Channel Islands\",92]","state":"{\"question\":\"Return the sum of unit_price for retail invoice lines where (country equals 'Channel Islands' or quantity is at most 92), 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\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1196{"category":"single_table/or/grouped","domain":"commerce","family_id":"1184c766fd95d071ac9f3618","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"f6a00f11fcd382ab676eedafec35f61b9a4dcf3540fdd295d2a31a0c1f1003c3","language":"en","license":"CC-BY-4.0","query":"Return the maximum of administrative for shopping sessions where (administrative is at most 23 or product_related is at most 226), grouped by revenue, ordered by revenue ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[23,226],\\\"sql\\\":\\\"SELECT revenue, MAX(administrative) AS value FROM shopping_sessions WHERE (administrative <= ? AND product_related <= ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[23,226],\\\"sql\\\":\\\"SELECT revenue, MAX(administrative) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_related <= ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[23,226],\\\"sql\\\":\\\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_related <= ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[23,226],\\\"sql\\\":\\\"SELECT revenue, SUM(administrative) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_related <= ?) GROUP BY revenue ORDER BY revenue ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[0,24],[1,26]]","source":"online_shoppers","split":"dev","sql":"SELECT revenue, MAX(administrative) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_related <= ?) GROUP BY revenue ORDER BY revenue ASC","sql_parameters":"[23,226]","state":"{\"question\":\"Return the maximum of administrative for shopping sessions where (administrative is at most 23 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\",\"region\":\"INTEGER\",\"revenue\":\"INTEGER\",\"session_id\":\"INTEGER\",\"traffic_type\":\"INTEGER\",\"visitor_type\":\"TEXT\",\"weekend\":\"INTEGER\"}}}","task":"text_to_sql_plan_selection"}1197{"category":"single_table/aggregate","domain":"sensor","family_id":"372caa9d5a129acc02559ec7","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"42931fb37418f85577fb7228e1c0139f90010f27320bebf192c069b3d1caf87b","language":"en","license":"CC-BY-4.0","query":"Return the sum of fs1_mean for hydraulic cycles where (vs1_mean is at most 0.61133).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[0.61133],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (vs1_mean <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[0.61133],\\\"sql\\\":\\\"SELECT AVG(fs1_mean) AS value FROM hydraulic_cycles WHERE (vs1_mean <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[0.61133],\\\"sql\\\":\\\"SELECT MIN(fs1_mean) AS value FROM hydraulic_cycles WHERE (vs1_mean <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[0.61133],\\\"sql\\\":\\\"SELECT SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (vs1_mean <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[7456.93275]]","source":"hydraulic","split":"dev","sql":"SELECT SUM(fs1_mean) AS value FROM hydraulic_cycles WHERE (vs1_mean <= ?)","sql_parameters":"[0.61133]","state":"{\"question\":\"Return the sum of fs1_mean for hydraulic cycles where (vs1_mean is at most 0.61133).\",\"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\",\"valve\":\"INTEGER\",\"vs1_mean\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1198{"category":"join/or/aggregate","domain":"commerce","family_id":"5284011b86bb92a27b852922","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"8e2821d903ec0a355ecf04d15fb3a489801317bd6f0a564b4730963f0d0822aa","language":"en","license":"CC-BY-4.0","query":"Return the sum of l.unit_price for retail lines joined to their invoices where (i.country equals 'EIRE' or l.unit_price is at most 0.55).","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"EIRE\\\",0.55],\\\"sql\\\":\\\"SELECT SUM(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND l.unit_price <= ?)\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"EIRE\\\",0.55],\\\"sql\\\":\\\"SELECT SUM(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR l.unit_price <= ?)\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"EIRE\\\",0.55],\\\"sql\\\":\\\"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR l.unit_price <= ?)\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"EIRE\\\",0.55],\\\"sql\\\":\\\"SELECT AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR l.unit_price <= ?)\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[5345.55]]","source":"online_retail_ii","split":"dev","sql":"SELECT SUM(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR l.unit_price <= ?)","sql_parameters":"[\"EIRE\",0.55]","state":"{\"question\":\"Return the sum of l.unit_price for retail lines joined to their invoices where (i.country equals 'EIRE' or l.unit_price is at most 0.55).\",\"schema\":{\"retail_invoices\":{\"country\":\"TEXT\",\"customer_id\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\"},\"retail_lines\":{\"country\":\"TEXT\",\"invoice\":\"TEXT\",\"invoice_date\":\"TEXT\",\"line_id\":\"INTEGER\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1199{"category":"single_table/date/and/ranked","domain":"commerce","family_id":"28b0bb981014a5a1e8f7acbe","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_2\",\"probabilities\":{\"plan_1\":0,\"plan_2\":1,\"plan_3\":0,\"plan_4\":0},\"type\":\"choice\"}}","id":"94917f252e9516dfb0e6bb578c6ca915ad53ae1029d29ca0fe35ceb5edf31f89","language":"en","license":"CC-BY-4.0","query":"Return the average of quantity for retail invoice lines where (country equals 'EIRE' and invoice_date is on or after '2010-07-14'), grouped by country; return at most 5 groups ordered by aggregate value DESC, breaking ties by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"EIRE\\\",\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (country = ? OR invoice_date >= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"EIRE\\\",\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"EIRE\\\",\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"EIRE\\\",\\\"2010-07-14\\\"],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"EIRE\",69.69375]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5","sql_parameters":"[\"EIRE\",\"2010-07-14\"]","state":"{\"question\":\"Return the average of quantity for retail invoice lines where (country equals 'EIRE' and invoice_date is on or after '2010-07-14'), 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\",\"quantity\":\"INTEGER\",\"stock_code\":\"TEXT\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}1200{"category":"single_table/date/grouped","domain":"commerce","family_id":"80dac642a79110b2ada29786","gold":"{\"plan\":{\"confidence\":1,\"label\":\"plan_4\",\"probabilities\":{\"plan_1\":0,\"plan_2\":0,\"plan_3\":0,\"plan_4\":1},\"type\":\"choice\"}}","id":"373895b3b398d89559701e8baaf4c5aadc6a3c296c25b6657e12c49291af3505","language":"en","license":"CC-BY-4.0","query":"Return the number of rows for retail invoice lines where (invoice_date is before '2011-05-10'), grouped by country, ordered by country ascending.","questions":"{\"plan\":{\"criteria\":{\"plan_1\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_2\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_3\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT country, MIN(quantity) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country ORDER BY country ASC\\\"}\",\"plan_4\":\"{\\\"parameters\\\":[\\\"2011-05-10\\\"],\\\"sql\\\":\\\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country ORDER BY country ASC\\\"}\"},\"instructions\":\"Choose the SQL plan that answers the question using the provided schema. SQL aliases l and i refer to retail_lines and retail_invoices.\",\"type\":\"choice\"}}","result":"[[\"Australia\",38],[\"Austria\",18],[\"Bahrain\",7],[\"Belgium\",35],[\"Channel Islands\",12],[\"Cyprus\",16],[\"Denmark\",4],[\"EIRE\",106],[\"Finland\",28],[\"France\",124],[\"Germany\",253],[\"Israel\",6],[\"Italy\",9],[\"Japan\",7],[\"Netherlands\",82],[\"Norway\",14],[\"Poland\",4],[\"Portugal\",17],[\"Singapore\",4],[\"Spain\",62],[\"Sweden\",72],[\"Switzerland\",34],[\"USA\",3],[\"United Arab Emirates\",2],[\"United Kingdom\",17404]]","source":"online_retail_ii","split":"dev","sql":"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY country ORDER BY country ASC","sql_parameters":"[\"2011-05-10\"]","state":"{\"question\":\"Return the number of rows for retail invoice lines where (invoice_date is before '2011-05-10'), 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\",\"unit_price\":\"REAL\"}}}","task":"text_to_sql_plan_selection"}