Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
Files changed (50)
- Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_15cc45fa409f886d/final_answer.txtAdded+1
- Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_15cc45fa409f886d/generated_sql.sqlAdded+18
- Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_15cc45fa409f886d/query_results.jsonlAdded+1
- Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_15cc45fa409f886d/run_manifest.jsonAdded+57
- Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_15cc45fa409f886d/usage_summary.jsonAdded+9
- Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_2b2a8533d2f64cb5/final_answer.txtAdded+1
- Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_2b2a8533d2f64cb5/generated_sql.sqlAdded+25
- Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_2b2a8533d2f64cb5/query_results.jsonlAdded+1
- Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_2b2a8533d2f64cb5/run_manifest.jsonAdded+57
- Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_2b2a8533d2f64cb5/usage_summary.jsonAdded+9
- Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_31c9a4fc73628ea3/final_answer.txtAdded+2
- Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_31c9a4fc73628ea3/generated_sql.sqlAdded+18
- Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_31c9a4fc73628ea3/query_results.jsonlAdded+1
- Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_31c9a4fc73628ea3/run_manifest.jsonAdded+93
- Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_31c9a4fc73628ea3/trace.jsonlAdded+1
- Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_31c9a4fc73628ea3/usage_summary.jsonAdded+20
- Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_38fdc0bc695484aa/final_answer.txtAdded+2
- Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_38fdc0bc695484aa/generated_sql.sqlAdded+18
- Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_38fdc0bc695484aa/query_results.jsonlAdded+1
- Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_38fdc0bc695484aa/run_manifest.jsonAdded+93
- Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_38fdc0bc695484aa/trace.jsonlAdded+1
- Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_38fdc0bc695484aa/usage_summary.jsonAdded+20
- Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_3cb596830d4aa9b2/final_answer.txtAdded+2
- Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_3cb596830d4aa9b2/generated_sql.sqlAdded+30
- Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_3cb596830d4aa9b2/query_results.jsonlAdded+1
- Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_3cb596830d4aa9b2/run_manifest.jsonAdded+89
- Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_3cb596830d4aa9b2/trace.jsonlAdded+1
- Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_3cb596830d4aa9b2/usage_summary.jsonAdded+20
- Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_4213daea7e63fde3/final_answer.txtAdded+1
- Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_4213daea7e63fde3/generated_sql.sqlAdded+21
- Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_4213daea7e63fde3/query_results.jsonlAdded+1
- Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_4213daea7e63fde3/run_manifest.jsonAdded+60
- Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_4213daea7e63fde3/usage_summary.jsonAdded+9
- Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_445fa932b7595a9f/final_answer.txtAdded+2
- Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_445fa932b7595a9f/generated_sql.sqlAdded+24
- Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_445fa932b7595a9f/query_results.jsonlAdded+1
- Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_445fa932b7595a9f/run_manifest.jsonAdded+87
- Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_445fa932b7595a9f/trace.jsonlAdded+1
- Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_445fa932b7595a9f/usage_summary.jsonAdded+20
- Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_5d9587e3ed4fae70/final_answer.txtAdded+2
- Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_5d9587e3ed4fae70/generated_sql.sqlAdded+18
- Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_5d9587e3ed4fae70/query_results.jsonlAdded+1
- Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_5d9587e3ed4fae70/run_manifest.jsonAdded+93
- Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_5d9587e3ed4fae70/trace.jsonlAdded+1
- Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_5d9587e3ed4fae70/usage_summary.jsonAdded+20
- Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_62d16fe52ca1c024/final_answer.txtAdded+2
- Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_62d16fe52ca1c024/generated_sql.sqlAdded+17
- Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_62d16fe52ca1c024/query_results.jsonlAdded+1
- Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_62d16fe52ca1c024/run_manifest.jsonAdded+89
- Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_62d16fe52ca1c024/trace.jsonlAdded+1
1{"row_count": null, "preview_rows": [{"total_rows": 8807, "missing_rows": 0, "missing_rate": 0.0}]}123456789101112131415161718-- sql_source_version: v2-- sql_source_label: v2_current-- sql_source_run_id: v2_cli_20260502_081223_b-- sql_source_dataset_id: c17-- family_id: missingness_structure-- canonical_subitem_id: marginal_missing_rate_consistency-- intended_facet_id: missing_indicator_distribution-- variant_semantic_role: missing_indicator_view-- template_id: tpl_missing_marginal_rate_profile-- query_record_id: v2q_c17_15cc45fa409f886d-- problem_id: v2p_c17_4715fde940cb88eb-- realization_mode: deterministic-- source_kind: deterministicSELECT COUNT(*) AS total_rows, SUM(CASE WHEN "rating" IS NULL THEN 1 ELSE 0 END) AS missing_rows, AVG(CASE WHEN "rating" IS NULL THEN 1.0 ELSE 0.0 END) AS missing_rateFROM "c17";1{"node_name": "v2_template", "tool_name": "sqlite_query", "query": "-- sql_source_version: v2\n-- sql_source_label: v2_current\n-- sql_source_run_id: v2_cli_20260502_081223_b\n-- sql_source_dataset_id: c17\n-- family_id: missingness_structure\n-- canonical_subitem_id: marginal_missing_rate_consistency\n-- intended_facet_id: missing_indicator_distribution\n-- variant_semantic_role: missing_indicator_view\n-- template_id: tpl_missing_marginal_rate_profile\n-- query_record_id: v2q_c17_15cc45fa409f886d\n-- problem_id: v2p_c17_4715fde940cb88eb\n-- realization_mode: deterministic\n-- source_kind: deterministic\nSELECT\n COUNT(*) AS total_rows,\n SUM(CASE WHEN \"rating\" IS NULL THEN 1 ELSE 0 END) AS missing_rows,\n AVG(CASE WHEN \"rating\" IS NULL THEN 1.0 ELSE 0.0 END) AS missing_rate\nFROM \"c17\";", "result": "{\"query\": \"-- sql_source_version: v2\\n-- sql_source_label: v2_current\\n-- sql_source_run_id: v2_cli_20260502_081223_b\\n-- sql_source_dataset_id: c17\\n-- family_id: missingness_structure\\n-- canonical_subitem_id: marginal_missing_rate_consistency\\n-- intended_facet_id: missing_indicator_distribution\\n-- variant_semantic_role: missing_indicator_view\\n-- template_id: tpl_missing_marginal_rate_profile\\n-- query_record_id: v2q_c17_15cc45fa409f886d\\n-- problem_id: v2p_c17_4715fde940cb88eb\\n-- realization_mode: deterministic\\n-- source_kind: deterministic\\nSELECT\\n COUNT(*) AS total_rows,\\n SUM(CASE WHEN \\\"rating\\\" IS NULL THEN 1 ELSE 0 END) AS missing_rows,\\n AVG(CASE WHEN \\\"rating\\\" IS NULL THEN 1.0 ELSE 0.0 END) AS missing_rate\\nFROM \\\"c17\\\";\", \"columns\": [\"total_rows\", \"missing_rows\", \"missing_rate\"], \"rows\": [{\"total_rows\": 8807, \"missing_rows\": 0, \"missing_rate\": 0.0}], \"row_count_returned\": 1, \"row_limit\": 50, \"truncated\": false, \"elapsed_ms\": 2.19}"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657{ "run_id": "v2_cli_20260502_081223_b", "dataset_id": "c17", "started_at": "2026-05-19T16:03:15.310738+00:00", "ended_at": "2026-05-19T16:03:15.313558+00:00", "status": "completed", "engine": "cli", "question_record": { "query_record_id": "v2q_c17_15cc45fa409f886d", "problem_id": "v2p_c17_4715fde940cb88eb", "dataset_id": "c17", "template_id": "tpl_missing_marginal_rate_profile", "template_name": "Marginal Missing Rate Profile", "family_id": "missingness_structure", "canonical_subitem_id": "marginal_missing_rate_consistency", "intended_facet_id": "missing_indicator_distribution", "variant_semantic_role": "missing_indicator_view", "subitem_assignment_source": "template_fixed", "source_kind": "deterministic", "realization_mode": "deterministic", "gate_priority": "deterministic", "extended_family": false, "question": "Use template Marginal Missing Rate Profile to probe marginal_missing_rate_consistency with semantic role missing_indicator_view. Focus on missing_col=rating.", "bindings": { "missing_col": "rating" }, "binding_roles": [ "missing_col" ], "coverage_target_min": "enumerate_all_applicable", "runtime_sql_skeleton": "SELECT\n COUNT(*) AS total_rows,\n SUM(CASE WHEN {missing_col} IS NULL THEN 1 ELSE 0 END) AS missing_rows,\n AVG(CASE WHEN {missing_col} IS NULL THEN 1.0 ELSE 0.0 END) AS missing_rate\nFROM {table};", "notes": [ "default_facets=missing_indicator_distribution", "template_selection_mode=deterministic", "problem_index_within_template=5", "sql_variant_index=1/1" ], "template_selection_mode": "deterministic", "selected_template_rank": 0, "problem_index_within_template": 5, "sql_variant_index": 1, "sql_variant_total": 1 }, "mode": "subitem_workload_v2", "sql_source_version": "v2", "sql_source_label": "v2_current", "generated_sql_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/c17/sql/v2q_c17_15cc45fa409f886d.sql", "usage_summary": { "engine": "template", "input_tokens": 0, "cached_input_tokens": 0, "output_tokens": 0, "total_tokens": 0, "estimated_total_tokens": 0, "usage_source": "none" }}123456789{ "engine": "template", "input_tokens": 0, "cached_input_tokens": 0, "output_tokens": 0, "total_tokens": 0, "estimated_total_tokens": 0, "usage_source": "none"}1{"row_count": null, "preview_rows": [{"value_label": "2018", "support": 1147, "support_share": 0.13023731122970364, "support_rank": 1}, {"value_label": "2017", "support": 1032, "support_share": 0.11717951629385716, "support_rank": 2}, {"value_label": "2019", "support": 1030, "support_share": 0.11695242420801635, "support_rank": 3}, {"value_label": "2020", "support": 953, "support_share": 0.10820937890314522, "support_rank": 4}, {"value_label": "2016", "support": 902, "support_share": 0.1024185307142046, "support_rank": 5}]}12345678910111213141516171819202122232425-- sql_source_version: v2-- sql_source_label: v2_current-- sql_source_run_id: v2_cli_20260502_081223_b-- sql_source_dataset_id: c17-- family_id: cardinality_structure-- canonical_subitem_id: support_rank_profile_consistency-- intended_facet_id: value_imbalance_profile-- variant_semantic_role: count_distribution-- template_id: tpl_cardinality_support_rank_profile-- query_record_id: v2q_c17_2b2a8533d2f64cb5-- problem_id: v2p_c17_2871c20323a174a8-- realization_mode: deterministic-- source_kind: deterministicWITH grouped AS ( SELECT "release_year" AS value_label, COUNT(*) AS support FROM "c17" GROUP BY "release_year")SELECT value_label, support, CAST(support AS FLOAT) / NULLIF(SUM(support) OVER (), 0) AS support_share, ROW_NUMBER() OVER (ORDER BY support DESC, value_label) AS support_rankFROM groupedORDER BY support DESC, value_label;1{"node_name": "v2_template", "tool_name": "sqlite_query", "query": "-- sql_source_version: v2\n-- sql_source_label: v2_current\n-- sql_source_run_id: v2_cli_20260502_081223_b\n-- sql_source_dataset_id: c17\n-- family_id: cardinality_structure\n-- canonical_subitem_id: support_rank_profile_consistency\n-- intended_facet_id: value_imbalance_profile\n-- variant_semantic_role: count_distribution\n-- template_id: tpl_cardinality_support_rank_profile\n-- query_record_id: v2q_c17_2b2a8533d2f64cb5\n-- problem_id: v2p_c17_2871c20323a174a8\n-- realization_mode: deterministic\n-- source_kind: deterministic\nWITH grouped AS (\n SELECT \"release_year\" AS value_label, COUNT(*) AS support\n FROM \"c17\"\n GROUP BY \"release_year\"\n)\nSELECT\n value_label,\n support,\n CAST(support AS FLOAT) / NULLIF(SUM(support) OVER (), 0) AS support_share,\n ROW_NUMBER() OVER (ORDER BY support DESC, value_label) AS support_rank\nFROM grouped\nORDER BY support DESC, value_label;", "result": "{\"query\": \"-- sql_source_version: v2\\n-- sql_source_label: v2_current\\n-- sql_source_run_id: v2_cli_20260502_081223_b\\n-- sql_source_dataset_id: c17\\n-- family_id: cardinality_structure\\n-- canonical_subitem_id: support_rank_profile_consistency\\n-- intended_facet_id: value_imbalance_profile\\n-- variant_semantic_role: count_distribution\\n-- template_id: tpl_cardinality_support_rank_profile\\n-- query_record_id: v2q_c17_2b2a8533d2f64cb5\\n-- problem_id: v2p_c17_2871c20323a174a8\\n-- realization_mode: deterministic\\n-- source_kind: deterministic\\nWITH grouped AS (\\n SELECT \\\"release_year\\\" AS value_label, COUNT(*) AS support\\n FROM \\\"c17\\\"\\n GROUP BY \\\"release_year\\\"\\n)\\nSELECT\\n value_label,\\n support,\\n CAST(support AS FLOAT) / NULLIF(SUM(support) OVER (), 0) AS support_share,\\n ROW_NUMBER() OVER (ORDER BY support DESC, value_label) AS support_rank\\nFROM grouped\\nORDER BY support DESC, value_label;\", \"columns\": [\"value_label\", \"support\", \"support_share\", \"support_rank\"], \"rows\": [{\"value_label\": \"2018\", \"support\": 1147, \"support_share\": 0.13023731122970364, \"support_rank\": 1}, {\"value_label\": \"2017\", \"support\": 1032, \"support_share\": 0.11717951629385716, \"support_rank\": 2}, {\"value_label\": \"2019\", \"support\": 1030, \"support_share\": 0.11695242420801635, \"support_rank\": 3}, {\"value_label\": \"2020\", \"support\": 953, \"support_share\": 0.10820937890314522, \"support_rank\": 4}, {\"value_label\": \"2016\", \"support\": 902, \"support_share\": 0.1024185307142046, \"support_rank\": 5}, {\"value_label\": \"2021\", \"support\": 592, \"support_share\": 0.0672192574088793, \"support_rank\": 6}, {\"value_label\": \"2015\", \"support\": 560, \"support_share\": 0.06358578403542636, \"support_rank\": 7}, {\"value_label\": \"2014\", \"support\": 352, \"support_share\": 0.03996820710798229, \"support_rank\": 8}, {\"value_label\": \"2013\", \"support\": 288, \"support_share\": 0.032701260361076415, \"support_rank\": 9}, {\"value_label\": \"2012\", \"support\": 237, \"support_share\": 0.0269104121721358, \"support_rank\": 10}, {\"value_label\": \"2010\", \"support\": 194, \"support_share\": 0.02202793232655842, \"support_rank\": 11}, {\"value_label\": \"2011\", \"support\": 185, \"support_share\": 0.02100601794027478, \"support_rank\": 12}, {\"value_label\": \"2009\", \"support\": 152, \"support_share\": 0.01725899852390144, \"support_rank\": 13}, {\"value_label\": \"2008\", \"support\": 136, \"support_share\": 0.015442261837174974, \"support_rank\": 14}, {\"value_label\": \"2006\", \"support\": 96, \"support_share\": 0.010900420120358805, \"support_rank\": 15}, {\"value_label\": \"2007\", \"support\": 88, \"support_share\": 0.009992051776995572, \"support_rank\": 16}, {\"value_label\": \"2005\", \"support\": 80, \"support_share\": 0.009083683433632339, \"support_rank\": 17}, {\"value_label\": \"2004\", \"support\": 64, \"support_share\": 0.00726694674690587, \"support_rank\": 18}, {\"value_label\": \"2003\", \"support\": 61, \"support_share\": 0.006926308618144658, \"support_rank\": 19}, {\"value_label\": \"2002\", \"support\": 51, \"support_share\": 0.005790848188940615, \"support_rank\": 20}, {\"value_label\": \"2001\", \"support\": 45, \"support_share\": 0.00510957193141819, \"support_rank\": 21}, {\"value_label\": \"1999\", \"support\": 39, \"support_share\": 0.004428295673895764, \"support_rank\": 22}, {\"value_label\": \"1997\", \"support\": 38, \"support_share\": 0.00431474963097536, \"support_rank\": 23}, {\"value_label\": \"2000\", \"support\": 37, \"support_share\": 0.004201203588054956, \"support_rank\": 24}, {\"value_label\": \"1998\", \"support\": 36, \"support_share\": 0.004087657545134552, \"support_rank\": 25}, {\"value_label\": \"1993\", \"support\": 28, \"support_share\": 0.0031792892017713185, \"support_rank\": 26}, {\"value_label\": \"1995\", \"support\": 25, \"support_share\": 0.0028386510730101055, \"support_rank\": 27}, {\"value_label\": \"1996\", \"support\": 24, \"support_share\": 0.0027251050300897014, \"support_rank\": 28}, {\"value_label\": \"1992\", \"support\": 23, \"support_share\": 0.002611558987169297, \"support_rank\": 29}, {\"value_label\": \"1990\", \"support\": 22, \"support_share\": 0.002498012944248893, \"support_rank\": 30}, {\"value_label\": \"1994\", \"support\": 22, \"support_share\": 0.002498012944248893, \"support_rank\": 31}, {\"value_label\": \"1988\", \"support\": 18, \"support_share\": 0.002043828772567276, \"support_rank\": 32}, {\"value_label\": \"1982\", \"support\": 17, \"support_share\": 0.0019302827296468717, \"support_rank\": 33}, {\"value_label\": \"1991\", \"support\": 17, \"support_share\": 0.0019302827296468717, \"support_rank\": 34}, {\"value_label\": \"1989\", \"support\": 16, \"support_share\": 0.0018167366867264676, \"support_rank\": 35}, {\"value_label\": \"1981\", \"support\": 13, \"support_share\": 0.0014760985579652549, \"support_rank\": 36}, {\"value_label\": \"1986\", \"support\": 13, \"support_share\": 0.0014760985579652549, \"support_rank\": 37}, {\"value_label\": \"1984\", \"support\": 12, \"support_share\": 0.0013625525150448507, \"support_rank\": 38}, {\"value_label\": \"1979\", \"support\": 11, \"support_share\": 0.0012490064721244465, \"support_rank\": 39}, {\"value_label\": \"1980\", \"support\": 11, \"support_share\": 0.0012490064721244465, \"support_rank\": 40}, {\"value_label\": \"1983\", \"support\": 11, \"support_share\": 0.0012490064721244465, \"support_rank\": 41}, {\"value_label\": \"1973\", \"support\": 10, \"support_share\": 0.0011354604292040423, \"support_rank\": 42}, {\"value_label\": \"1985\", \"support\": 10, \"support_share\": 0.0011354604292040423, \"support_rank\": 43}, {\"value_label\": \"1976\", \"support\": 9, \"support_share\": 0.001021914386283638, \"support_rank\": 44}, {\"value_label\": \"1987\", \"support\": 8, \"support_share\": 0.0009083683433632338, \"support_rank\": 45}, {\"value_label\": \"1974\", \"support\": 7, \"support_share\": 0.0007948223004428296, \"support_rank\": 46}, {\"value_label\": \"1975\", \"support\": 7, \"support_share\": 0.0007948223004428296, \"support_rank\": 47}, {\"value_label\": \"1977\", \"support\": 7, \"support_share\": 0.0007948223004428296, \"support_rank\": 48}, {\"value_label\": \"1978\", \"support\": 7, \"support_share\": 0.0007948223004428296, \"support_rank\": 49}, {\"value_label\": \"1967\", \"support\": 5, \"support_share\": 0.0005677302146020212, \"support_rank\": 50}], \"row_count_returned\": 50, \"row_limit\": 50, \"truncated\": true, \"elapsed_ms\": 4.13}"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657{ "run_id": "v2_cli_20260502_081223_b", "dataset_id": "c17", "started_at": "2026-05-19T16:03:15.458377+00:00", "ended_at": "2026-05-19T16:03:15.463348+00:00", "status": "completed", "engine": "cli", "question_record": { "query_record_id": "v2q_c17_2b2a8533d2f64cb5", "problem_id": "v2p_c17_2871c20323a174a8", "dataset_id": "c17", "template_id": "tpl_cardinality_support_rank_profile", "template_name": "Cardinality Support Rank Profile", "family_id": "cardinality_structure", "canonical_subitem_id": "support_rank_profile_consistency", "intended_facet_id": "value_imbalance_profile", "variant_semantic_role": "count_distribution", "subitem_assignment_source": "template_fixed", "source_kind": "deterministic", "realization_mode": "deterministic", "gate_priority": "deterministic", "extended_family": true, "question": "Use template Cardinality Support Rank Profile to probe support_rank_profile_consistency with semantic role count_distribution. Focus on group_col=release_year.", "bindings": { "group_col": "release_year" }, "binding_roles": [ "group_col" ], "coverage_target_min": "enumerate_all_applicable", "runtime_sql_skeleton": "WITH grouped AS (\n SELECT {group_col} AS value_label, COUNT(*) AS support\n FROM {table}\n GROUP BY {group_col}\n)\nSELECT\n value_label,\n support,\n CAST(support AS FLOAT) / NULLIF(SUM(support) OVER (), 0) AS support_share,\n ROW_NUMBER() OVER (ORDER BY support DESC, value_label) AS support_rank\nFROM grouped\nORDER BY support DESC, value_label;", "notes": [ "default_facets=support_concentration,value_imbalance_profile", "template_selection_mode=deterministic", "problem_index_within_template=2", "sql_variant_index=1/1" ], "template_selection_mode": "deterministic", "selected_template_rank": 0, "problem_index_within_template": 2, "sql_variant_index": 1, "sql_variant_total": 1 }, "mode": "subitem_workload_v2", "sql_source_version": "v2", "sql_source_label": "v2_current", "generated_sql_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/c17/sql/v2q_c17_2b2a8533d2f64cb5.sql", "usage_summary": { "engine": "template", "input_tokens": 0, "cached_input_tokens": 0, "output_tokens": 0, "total_tokens": 0, "estimated_total_tokens": 0, "usage_source": "none" }}123456789{ "engine": "template", "input_tokens": 0, "cached_input_tokens": 0, "output_tokens": 0, "total_tokens": 0, "estimated_total_tokens": 0, "usage_source": "none"}12SQL executed successfully for: Use template Filtered Two-Dimensional Group Count to probe slice_level_consistency with semantic role count_distribution. Focus on group_col=rating, group_col_2=duration.Result preview: [{"rating": "TV-MA", "duration": "1 Season", "row_count": 414}, {"rating": "TV-14", "duration": "1 Season", "row_count": 179}, {"rating": "TV-MA", "duration": "2 Seasons", "row_count": 113}, {"rating": "TV-PG", "duration": "1 Season", "row_count": 67}, {"rating": "TV-MA", "duration": "3 Seasons", "row_count": 47}] Results were truncated.123456789101112131415161718-- sql_source_version: v2-- sql_source_label: v2_current-- sql_source_run_id: v2_cli_20260502_081223_b-- sql_source_dataset_id: c17-- family_id: conditional_dependency_structure-- canonical_subitem_id: slice_level_consistency-- intended_facet_id: conditional_interaction_hotspots-- variant_semantic_role: count_distribution-- template_id: tpl_c2_filtered_group_count_2d-- query_record_id: v2q_c17_31c9a4fc73628ea3-- problem_id: v2p_c17_e7b92f8630379804-- realization_mode: agent-- source_kind: agentSELECT "rating", "duration", COUNT(*) AS row_countFROM "c17"WHERE CAST("release_year" AS INTEGER) >= 2019GROUP BY "rating", "duration"ORDER BY row_count DESC;1{"step_index": 1, "message_index": 0, "node_name": "v2-cli:codex", "tool_name": "sqlite_query", "query": "-- template_id: tpl_c2_filtered_group_count_2d\nSELECT \"rating\", \"duration\", COUNT(*) AS row_count\nFROM \"c17\"\nWHERE CAST(\"release_year\" AS INTEGER) >= 2019\nGROUP BY \"rating\", \"duration\"\nORDER BY row_count DESC;", "result": "{\"query\": \"-- template_id: tpl_c2_filtered_group_count_2d\\nSELECT \\\"rating\\\", \\\"duration\\\", COUNT(*) AS row_count\\nFROM \\\"c17\\\"\\nWHERE CAST(\\\"release_year\\\" AS INTEGER) >= 2019\\nGROUP BY \\\"rating\\\", \\\"duration\\\"\\nORDER BY row_count DESC;\", \"columns\": [\"rating\", \"duration\", \"row_count\"], \"rows\": [{\"rating\": \"TV-MA\", \"duration\": \"1 Season\", \"row_count\": 414}, {\"rating\": \"TV-14\", \"duration\": \"1 Season\", \"row_count\": 179}, {\"rating\": \"TV-MA\", \"duration\": \"2 Seasons\", \"row_count\": 113}, {\"rating\": \"TV-PG\", \"duration\": \"1 Season\", \"row_count\": 67}, {\"rating\": \"TV-MA\", \"duration\": \"3 Seasons\", \"row_count\": 47}, {\"rating\": \"TV-Y\", \"duration\": \"1 Season\", \"row_count\": 31}, {\"rating\": \"TV-14\", \"duration\": \"2 Seasons\", \"row_count\": 28}, {\"rating\": \"TV-Y7\", \"duration\": \"1 Season\", \"row_count\": 28}, {\"rating\": \"TV-G\", \"duration\": \"1 Season\", \"row_count\": 27}, {\"rating\": \"TV-MA\", \"duration\": \"97 min\", \"row_count\": 27}, {\"rating\": \"TV-Y\", \"duration\": \"2 Seasons\", \"row_count\": 22}, {\"rating\": \"TV-MA\", \"duration\": \"98 min\", \"row_count\": 20}, {\"rating\": \"TV-14\", \"duration\": \"3 Seasons\", \"row_count\": 19}, {\"rating\": \"TV-MA\", \"duration\": \"90 min\", \"row_count\": 19}, {\"rating\": \"TV-Y7\", \"duration\": \"2 Seasons\", \"row_count\": 19}, {\"rating\": \"TV-MA\", \"duration\": \"95 min\", \"row_count\": 18}, {\"rating\": \"TV-MA\", \"duration\": \"4 Seasons\", \"row_count\": 17}, {\"rating\": \"TV-MA\", \"duration\": \"94 min\", \"row_count\": 17}, {\"rating\": \"TV-MA\", \"duration\": \"107 min\", \"row_count\": 16}, {\"rating\": \"TV-MA\", \"duration\": \"5 Seasons\", \"row_count\": 16}, {\"rating\": \"TV-MA\", \"duration\": \"86 min\", \"row_count\": 16}, {\"rating\": \"TV-MA\", \"duration\": \"93 min\", \"row_count\": 16}, {\"rating\": \"TV-MA\", \"duration\": \"102 min\", \"row_count\": 12}, {\"rating\": \"TV-MA\", \"duration\": \"88 min\", \"row_count\": 12}, {\"rating\": \"TV-MA\", \"duration\": \"96 min\", \"row_count\": 12}, {\"rating\": \"TV-PG\", \"duration\": \"2 Seasons\", \"row_count\": 12}, {\"rating\": \"TV-MA\", \"duration\": \"103 min\", \"row_count\": 11}, {\"rating\": \"TV-MA\", \"duration\": \"116 min\", \"row_count\": 11}, {\"rating\": \"TV-MA\", \"duration\": \"87 min\", \"row_count\": 11}, {\"rating\": \"TV-MA\", \"duration\": \"92 min\", \"row_count\": 11}, {\"rating\": \"TV-MA\", \"duration\": \"99 min\", \"row_count\": 11}, {\"rating\": \"TV-14\", \"duration\": \"90 min\", \"row_count\": 10}, {\"rating\": \"TV-MA\", \"duration\": \"112 min\", \"row_count\": 10}, {\"rating\": \"TV-MA\", \"duration\": \"84 min\", \"row_count\": 10}, {\"rating\": \"TV-MA\", \"duration\": \"89 min\", \"row_count\": 10}, {\"rating\": \"TV-Y\", \"duration\": \"24 min\", \"row_count\": 10}, {\"rating\": \"TV-Y7\", \"duration\": \"3 Seasons\", \"row_count\": 10}, {\"rating\": \"TV-14\", \"duration\": \"100 min\", \"row_count\": 9}, {\"rating\": \"TV-14\", \"duration\": \"101 min\", \"row_count\": 9}, {\"rating\": \"TV-14\", \"duration\": \"98 min\", \"row_count\": 9}, {\"rating\": \"TV-MA\", \"duration\": \"101 min\", \"row_count\": 9}, {\"rating\": \"TV-MA\", \"duration\": \"105 min\", \"row_count\": 9}, {\"rating\": \"TV-MA\", \"duration\": \"108 min\", \"row_count\": 9}, {\"rating\": \"TV-MA\", \"duration\": \"65 min\", \"row_count\": 9}, {\"rating\": \"TV-PG\", \"duration\": \"3 Seasons\", \"row_count\": 9}, {\"rating\": \"TV-Y\", \"duration\": \"3 Seasons\", \"row_count\": 9}, {\"rating\": \"TV-14\", \"duration\": \"102 min\", \"row_count\": 8}, {\"rating\": \"TV-14\", \"duration\": \"116 min\", \"row_count\": 8}, {\"rating\": \"TV-14\", \"duration\": \"117 min\", \"row_count\": 8}, {\"rating\": \"TV-14\", \"duration\": \"4 Seasons\", \"row_count\": 8}], \"row_count_returned\": 50, \"row_limit\": 50, \"truncated\": true, \"elapsed_ms\": 4.64}"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293{ "run_id": "v2_cli_20260502_081223_b", "dataset_id": "c17", "started_at": "2026-05-19T15:40:27.736762+00:00", "ended_at": "2026-05-19T15:40:40.226809+00:00", "status": "completed", "engine": "cli", "question_record": { "query_record_id": "v2q_c17_31c9a4fc73628ea3", "problem_id": "v2p_c17_e7b92f8630379804", "dataset_id": "c17", "template_id": "tpl_c2_filtered_group_count_2d", "template_name": "Filtered Two-Dimensional Group Count", "family_id": "conditional_dependency_structure", "canonical_subitem_id": "slice_level_consistency", "intended_facet_id": "conditional_interaction_hotspots", "variant_semantic_role": "count_distribution", "subitem_assignment_source": "planner_selected", "source_kind": "agent", "realization_mode": "agent", "gate_priority": "primary", "extended_family": false, "question": "Use template Filtered Two-Dimensional Group Count to probe slice_level_consistency with semantic role count_distribution. Focus on group_col=rating, group_col_2=duration.", "bindings": { "group_col": "rating", "group_col_2": "duration", "predicate_col": "release_year", "predicate_op": ">=", "predicate_value": 2019.0, "top_k": 13, "top_n": 4, "num_tiles": 10, "percentile_value": 0.9, "z_threshold": 2.0, "fraction_threshold": 0.1, "baseline_multiplier": 1.5, "baseline_fraction": 0.1, "min_group_size": 5, "min_support": 5, "measure_threshold": 2019.0, "time_grain": "month", "lookback_rows": 3, "current_period_start": "'2024-01-01'", "current_period_end": "'2024-04-01'", "previous_period_start": "'2023-10-01'", "previous_period_end": "'2024-01-01'", "drift_ratio_threshold": 0.8 }, "binding_roles": [ "group_col", "group_col_2", "predicate_col" ], "coverage_target_min": "5", "runtime_sql_skeleton": "SELECT {group_col}, {group_col_2}, COUNT(*) AS row_count\nFROM {table}\nWHERE {predicate_col} {predicate_op} {predicate_value}\nGROUP BY {group_col}, {group_col_2}\nORDER BY row_count DESC;", "notes": [ "default_facets=conditional_interaction_hotspots", "template_selection_mode=rule", "problem_index_within_template=6", "sql_variant_index=1/1", "binding_index=53" ], "template_selection_mode": "rule", "selected_template_rank": 5, "problem_index_within_template": 6, "sql_variant_index": 1, "sql_variant_total": 1 }, "mode": "subitem_workload_v2", "sql_source_version": "v2", "sql_source_label": "v2_current", "generated_sql_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/c17/sql/v2q_c17_31c9a4fc73628ea3.sql", "usage_summary": { "dataset_id": "c17", "model": "v2-cli:codex", "run_id": "v2q_c17_31c9a4fc73628ea3", "api_calls": 0, "input_tokens": 14739, "cached_input_tokens": 12032, "output_tokens": 496, "total_tokens": 15235, "cost_usd": 0.0, "ai_cli_calls": 1, "estimated_input_tokens": 0, "estimated_output_tokens": 0, "estimated_total_tokens": 0, "usage_source": "ai_cli_json_usage", "cli_elapsed_ms_total": 12481.01, "sql_execution_elapsed_ms_total": 4.64, "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_31c9a4fc73628ea3/cli/conversation.jsonl", "note": "Executed through a local AI CLI with structured usage metadata." }}1{"timestamp": "2026-05-19T15:40:40.220716+00:00", "event_type": "ai_cli_sql_generation", "engine": "v2-cli:codex", "attempt": 1, "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", "returncode": 0, "elapsed_ms": 12481.01, "started_at": "2026-05-19T15:40:27.738865+00:00", "ended_at": "2026-05-19T15:40:40.219902+00:00", "prompt_metrics": {"chars": 9482, "bytes_utf8": 9484, "lines": 244, "estimated_tokens": null}, "response_metrics": {"chars": 444, "bytes_utf8": 444, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 14739, "cached_input_tokens": 12032, "output_tokens": 496, "reasoning_output_tokens": 382}, "stderr_preview": "", "stdout_preview": "{\"sql\":\"-- template_id: tpl_c2_filtered_group_count_2d\\nSELECT \\\"rating\\\", \\\"duration\\\", COUNT(*) AS row_count\\nFROM \\\"c17\\\"\\nWHERE CAST(\\\"release_year\\\" AS INTEGER) >= 2019\\nGROUP BY \\\"rating\\\", \\\"duration\\\"\\nORDER BY row_count DESC;\",\"notes\":\"Used the planned filtered two-dimensional group count template with \\\"rating\\\" and \\\"duration\\\" as grouping columns, and cast \\\"release_year\\\" to INTEGER because it is stored as TEXT in the schema.\"}"}1234567891011121314151617181920{ "dataset_id": "c17", "model": "v2-cli:codex", "run_id": "v2q_c17_31c9a4fc73628ea3", "api_calls": 0, "input_tokens": 14739, "cached_input_tokens": 12032, "output_tokens": 496, "total_tokens": 15235, "cost_usd": 0.0, "ai_cli_calls": 1, "estimated_input_tokens": 0, "estimated_output_tokens": 0, "estimated_total_tokens": 0, "usage_source": "ai_cli_json_usage", "cli_elapsed_ms_total": 12481.01, "sql_execution_elapsed_ms_total": 4.64, "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_31c9a4fc73628ea3/cli/conversation.jsonl", "note": "Executed through a local AI CLI with structured usage metadata."}12SQL executed successfully for: Use template Filtered Two-Dimensional Group Count to probe slice_level_consistency with semantic role count_distribution. Focus on group_col=type, group_col_2=duration.Result preview: [{"type": "TV Show", "duration": "1 Season", "row_count": 239}, {"type": "TV Show", "duration": "2 Seasons", "row_count": 35}, {"type": "TV Show", "duration": "3 Seasons", "row_count": 21}, {"type": "Movie", "duration": "90 min", "row_count": 18}, {"type": "Movie", "duration": "91 min", "row_count": 15}] Results were truncated.123456789101112131415161718-- sql_source_version: v2-- sql_source_label: v2_current-- sql_source_run_id: v2_cli_20260502_081223_b-- sql_source_dataset_id: c17-- family_id: conditional_dependency_structure-- canonical_subitem_id: slice_level_consistency-- intended_facet_id: conditional_interaction_hotspots-- variant_semantic_role: count_distribution-- template_id: tpl_c2_filtered_group_count_2d-- query_record_id: v2q_c17_38fdc0bc695484aa-- problem_id: v2p_c17_9c8b7effe795b926-- realization_mode: agent-- source_kind: agentSELECT "type", "duration", COUNT(*) AS "row_count"FROM "c17"WHERE "rating" = 'TV-PG'GROUP BY "type", "duration"ORDER BY "row_count" DESC;1{"step_index": 1, "message_index": 0, "node_name": "v2-cli:codex", "tool_name": "sqlite_query", "query": "-- template_id: tpl_c2_filtered_group_count_2d\nSELECT \"type\", \"duration\", COUNT(*) AS \"row_count\"\nFROM \"c17\"\nWHERE \"rating\" = 'TV-PG'\nGROUP BY \"type\", \"duration\"\nORDER BY \"row_count\" DESC;", "result": "{\"query\": \"-- template_id: tpl_c2_filtered_group_count_2d\\nSELECT \\\"type\\\", \\\"duration\\\", COUNT(*) AS \\\"row_count\\\"\\nFROM \\\"c17\\\"\\nWHERE \\\"rating\\\" = 'TV-PG'\\nGROUP BY \\\"type\\\", \\\"duration\\\"\\nORDER BY \\\"row_count\\\" DESC;\", \"columns\": [\"type\", \"duration\", \"row_count\"], \"rows\": [{\"type\": \"TV Show\", \"duration\": \"1 Season\", \"row_count\": 239}, {\"type\": \"TV Show\", \"duration\": \"2 Seasons\", \"row_count\": 35}, {\"type\": \"TV Show\", \"duration\": \"3 Seasons\", \"row_count\": 21}, {\"type\": \"Movie\", \"duration\": \"90 min\", \"row_count\": 18}, {\"type\": \"Movie\", \"duration\": \"91 min\", \"row_count\": 15}, {\"type\": \"Movie\", \"duration\": \"93 min\", \"row_count\": 14}, {\"type\": \"Movie\", \"duration\": \"92 min\", \"row_count\": 13}, {\"type\": \"Movie\", \"duration\": \"102 min\", \"row_count\": 11}, {\"type\": \"Movie\", \"duration\": \"104 min\", \"row_count\": 10}, {\"type\": \"Movie\", \"duration\": \"127 min\", \"row_count\": 10}, {\"type\": \"Movie\", \"duration\": \"87 min\", \"row_count\": 10}, {\"type\": \"Movie\", \"duration\": \"94 min\", \"row_count\": 10}, {\"type\": \"Movie\", \"duration\": \"107 min\", \"row_count\": 9}, {\"type\": \"Movie\", \"duration\": \"110 min\", \"row_count\": 9}, {\"type\": \"Movie\", \"duration\": \"53 min\", \"row_count\": 9}, {\"type\": \"Movie\", \"duration\": \"54 min\", \"row_count\": 9}, {\"type\": \"Movie\", \"duration\": \"88 min\", \"row_count\": 9}, {\"type\": \"Movie\", \"duration\": \"95 min\", \"row_count\": 9}, {\"type\": \"TV Show\", \"duration\": \"5 Seasons\", \"row_count\": 9}, {\"type\": \"Movie\", \"duration\": \"55 min\", \"row_count\": 8}, {\"type\": \"Movie\", \"duration\": \"96 min\", \"row_count\": 8}, {\"type\": \"Movie\", \"duration\": \"97 min\", \"row_count\": 8}, {\"type\": \"Movie\", \"duration\": \"98 min\", \"row_count\": 8}, {\"type\": \"Movie\", \"duration\": \"103 min\", \"row_count\": 7}, {\"type\": \"Movie\", \"duration\": \"106 min\", \"row_count\": 7}, {\"type\": \"Movie\", \"duration\": \"114 min\", \"row_count\": 7}, {\"type\": \"Movie\", \"duration\": \"132 min\", \"row_count\": 7}, {\"type\": \"Movie\", \"duration\": \"137 min\", \"row_count\": 7}, {\"type\": \"Movie\", \"duration\": \"86 min\", \"row_count\": 7}, {\"type\": \"Movie\", \"duration\": \"99 min\", \"row_count\": 7}, {\"type\": \"TV Show\", \"duration\": \"4 Seasons\", \"row_count\": 7}, {\"type\": \"Movie\", \"duration\": \"100 min\", \"row_count\": 6}, {\"type\": \"Movie\", \"duration\": \"113 min\", \"row_count\": 6}, {\"type\": \"Movie\", \"duration\": \"116 min\", \"row_count\": 6}, {\"type\": \"Movie\", \"duration\": \"120 min\", \"row_count\": 6}, {\"type\": \"Movie\", \"duration\": \"61 min\", \"row_count\": 6}, {\"type\": \"Movie\", \"duration\": \"73 min\", \"row_count\": 6}, {\"type\": \"Movie\", \"duration\": \"80 min\", \"row_count\": 6}, {\"type\": \"Movie\", \"duration\": \"81 min\", \"row_count\": 6}, {\"type\": \"Movie\", \"duration\": \"85 min\", \"row_count\": 6}, {\"type\": \"Movie\", \"duration\": \"101 min\", \"row_count\": 5}, {\"type\": \"Movie\", \"duration\": \"111 min\", \"row_count\": 5}, {\"type\": \"Movie\", \"duration\": \"118 min\", \"row_count\": 5}, {\"type\": \"Movie\", \"duration\": \"125 min\", \"row_count\": 5}, {\"type\": \"Movie\", \"duration\": \"149 min\", \"row_count\": 5}, {\"type\": \"Movie\", \"duration\": \"44 min\", \"row_count\": 5}, {\"type\": \"Movie\", \"duration\": \"52 min\", \"row_count\": 5}, {\"type\": \"Movie\", \"duration\": \"75 min\", \"row_count\": 5}, {\"type\": \"Movie\", \"duration\": \"82 min\", \"row_count\": 5}, {\"type\": \"Movie\", \"duration\": \"83 min\", \"row_count\": 5}], \"row_count_returned\": 50, \"row_limit\": 50, \"truncated\": true, \"elapsed_ms\": 6.64}"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293{ "run_id": "v2_cli_20260502_081223_b", "dataset_id": "c17", "started_at": "2026-05-19T15:39:51.708820+00:00", "ended_at": "2026-05-19T15:40:04.502736+00:00", "status": "completed", "engine": "cli", "question_record": { "query_record_id": "v2q_c17_38fdc0bc695484aa", "problem_id": "v2p_c17_9c8b7effe795b926", "dataset_id": "c17", "template_id": "tpl_c2_filtered_group_count_2d", "template_name": "Filtered Two-Dimensional Group Count", "family_id": "conditional_dependency_structure", "canonical_subitem_id": "slice_level_consistency", "intended_facet_id": "conditional_interaction_hotspots", "variant_semantic_role": "count_distribution", "subitem_assignment_source": "planner_selected", "source_kind": "agent", "realization_mode": "agent", "gate_priority": "primary", "extended_family": false, "question": "Use template Filtered Two-Dimensional Group Count to probe slice_level_consistency with semantic role count_distribution. Focus on group_col=type, group_col_2=duration.", "bindings": { "group_col": "type", "group_col_2": "duration", "predicate_col": "rating", "predicate_op": "=", "predicate_value": "TV-PG", "top_k": 10, "top_n": 5, "num_tiles": 10, "percentile_value": 0.95, "z_threshold": 2.0, "fraction_threshold": 0.1, "baseline_multiplier": 1.5, "baseline_fraction": 0.1, "min_group_size": 5, "min_support": 5, "measure_threshold": 2019.0, "time_grain": "month", "lookback_rows": 3, "current_period_start": "'2024-01-01'", "current_period_end": "'2024-04-01'", "previous_period_start": "'2023-10-01'", "previous_period_end": "'2024-01-01'", "drift_ratio_threshold": 0.8 }, "binding_roles": [ "group_col", "group_col_2", "predicate_col" ], "coverage_target_min": "5", "runtime_sql_skeleton": "SELECT {group_col}, {group_col_2}, COUNT(*) AS row_count\nFROM {table}\nWHERE {predicate_col} {predicate_op} {predicate_value}\nGROUP BY {group_col}, {group_col_2}\nORDER BY row_count DESC;", "notes": [ "default_facets=conditional_interaction_hotspots", "template_selection_mode=rule", "problem_index_within_template=3", "sql_variant_index=1/1", "binding_index=50" ], "template_selection_mode": "rule", "selected_template_rank": 5, "problem_index_within_template": 3, "sql_variant_index": 1, "sql_variant_total": 1 }, "mode": "subitem_workload_v2", "sql_source_version": "v2", "sql_source_label": "v2_current", "generated_sql_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/c17/sql/v2q_c17_38fdc0bc695484aa.sql", "usage_summary": { "dataset_id": "c17", "model": "v2-cli:codex", "run_id": "v2q_c17_38fdc0bc695484aa", "api_calls": 0, "input_tokens": 14736, "cached_input_tokens": 13696, "output_tokens": 366, "total_tokens": 15102, "cost_usd": 0.0, "ai_cli_calls": 1, "estimated_input_tokens": 0, "estimated_output_tokens": 0, "estimated_total_tokens": 0, "usage_source": "ai_cli_json_usage", "cli_elapsed_ms_total": 12780.46, "sql_execution_elapsed_ms_total": 6.64, "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_38fdc0bc695484aa/cli/conversation.jsonl", "note": "Executed through a local AI CLI with structured usage metadata." }}1{"timestamp": "2026-05-19T15:40:04.492966+00:00", "event_type": "ai_cli_sql_generation", "engine": "v2-cli:codex", "attempt": 1, "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", "returncode": 0, "elapsed_ms": 12780.46, "started_at": "2026-05-19T15:39:51.710815+00:00", "ended_at": "2026-05-19T15:40:04.491314+00:00", "prompt_metrics": {"chars": 9473, "bytes_utf8": 9475, "lines": 244, "estimated_tokens": null}, "response_metrics": {"chars": 375, "bytes_utf8": 375, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 14736, "cached_input_tokens": 13696, "output_tokens": 366, "reasoning_output_tokens": 263}, "stderr_preview": "", "stdout_preview": "{\"sql\":\"-- template_id: tpl_c2_filtered_group_count_2d\\nSELECT \\\"type\\\", \\\"duration\\\", COUNT(*) AS \\\"row_count\\\"\\nFROM \\\"c17\\\"\\nWHERE \\\"rating\\\" = 'TV-PG'\\nGROUP BY \\\"type\\\", \\\"duration\\\"\\nORDER BY \\\"row_count\\\" DESC;\",\"notes\":\"Grouped counts by type and duration, filtered to rows where rating is TV-PG, following the planned two-dimensional filtered group count template.\"}"}1234567891011121314151617181920{ "dataset_id": "c17", "model": "v2-cli:codex", "run_id": "v2q_c17_38fdc0bc695484aa", "api_calls": 0, "input_tokens": 14736, "cached_input_tokens": 13696, "output_tokens": 366, "total_tokens": 15102, "cost_usd": 0.0, "ai_cli_calls": 1, "estimated_input_tokens": 0, "estimated_output_tokens": 0, "estimated_total_tokens": 0, "usage_source": "ai_cli_json_usage", "cli_elapsed_ms_total": 12780.46, "sql_execution_elapsed_ms_total": 6.64, "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_38fdc0bc695484aa/cli/conversation.jsonl", "note": "Executed through a local AI CLI with structured usage metadata."}12SQL executed successfully for: Use template Relative-to-Total Extreme Threshold to probe tail_mass_similarity with semantic role count_distribution. Focus on group_col=release_year, measure_col=release_year.Result preview: [{"release_year": "2018", "group_value": 2314646}, {"release_year": "2017", "group_value": 2081544}, {"release_year": "2019", "group_value": 2079570}, {"release_year": "2020", "group_value": 1925060}, {"release_year": "2016", "group_value": 1818432}]123456789101112131415161718192021222324252627282930-- sql_source_version: v2-- sql_source_label: v2_current-- sql_source_run_id: v2_cli_20260502_081223_b-- sql_source_dataset_id: c17-- family_id: tail_rarity_structure-- canonical_subitem_id: tail_mass_similarity-- intended_facet_id: tail_ranked_signal-- variant_semantic_role: count_distribution-- template_id: tpl_tpch_relative_total_threshold-- query_record_id: v2q_c17_3cb596830d4aa9b2-- problem_id: v2p_c17_48f0f37469effc75-- realization_mode: agent-- source_kind: agentWITH grouped AS ( SELECT "release_year", SUM(CAST("release_year" AS INTEGER)) AS "group_value" FROM "c17" WHERE "release_year" IS NOT NULL AND TRIM("release_year") <> '' GROUP BY "release_year"), total AS ( SELECT SUM("group_value") AS "total_value" FROM grouped)SELECT g."release_year", g."group_value"FROM grouped AS gCROSS JOIN total AS tWHERE g."group_value" > t."total_value" * 0.05ORDER BY g."group_value" DESC;1{"step_index": 1, "message_index": 0, "node_name": "v2-cli:codex", "tool_name": "sqlite_query", "query": "-- template_id: tpl_tpch_relative_total_threshold\nWITH grouped AS (\n SELECT\n \"release_year\",\n SUM(CAST(\"release_year\" AS INTEGER)) AS \"group_value\"\n FROM \"c17\"\n WHERE \"release_year\" IS NOT NULL\n AND TRIM(\"release_year\") <> ''\n GROUP BY \"release_year\"\n), total AS (\n SELECT SUM(\"group_value\") AS \"total_value\"\n FROM grouped\n)\nSELECT g.\"release_year\", g.\"group_value\"\nFROM grouped AS g\nCROSS JOIN total AS t\nWHERE g.\"group_value\" > t.\"total_value\" * 0.05\nORDER BY g.\"group_value\" DESC;", "result": "{\"query\": \"-- template_id: tpl_tpch_relative_total_threshold\\nWITH grouped AS (\\n SELECT\\n \\\"release_year\\\",\\n SUM(CAST(\\\"release_year\\\" AS INTEGER)) AS \\\"group_value\\\"\\n FROM \\\"c17\\\"\\n WHERE \\\"release_year\\\" IS NOT NULL\\n AND TRIM(\\\"release_year\\\") <> ''\\n GROUP BY \\\"release_year\\\"\\n), total AS (\\n SELECT SUM(\\\"group_value\\\") AS \\\"total_value\\\"\\n FROM grouped\\n)\\nSELECT g.\\\"release_year\\\", g.\\\"group_value\\\"\\nFROM grouped AS g\\nCROSS JOIN total AS t\\nWHERE g.\\\"group_value\\\" > t.\\\"total_value\\\" * 0.05\\nORDER BY g.\\\"group_value\\\" DESC;\", \"columns\": [\"release_year\", \"group_value\"], \"rows\": [{\"release_year\": \"2018\", \"group_value\": 2314646}, {\"release_year\": \"2017\", \"group_value\": 2081544}, {\"release_year\": \"2019\", \"group_value\": 2079570}, {\"release_year\": \"2020\", \"group_value\": 1925060}, {\"release_year\": \"2016\", \"group_value\": 1818432}, {\"release_year\": \"2021\", \"group_value\": 1196432}, {\"release_year\": \"2015\", \"group_value\": 1128400}], \"row_count_returned\": 7, \"row_limit\": 50, \"truncated\": false, \"elapsed_ms\": 6.25}"}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889{ "run_id": "v2_cli_20260502_081223_b", "dataset_id": "c17", "started_at": "2026-05-19T15:43:49.543585+00:00", "ended_at": "2026-05-19T15:44:04.124480+00:00", "status": "completed", "engine": "cli", "question_record": { "query_record_id": "v2q_c17_3cb596830d4aa9b2", "problem_id": "v2p_c17_48f0f37469effc75", "dataset_id": "c17", "template_id": "tpl_tpch_relative_total_threshold", "template_name": "Relative-to-Total Extreme Threshold", "family_id": "tail_rarity_structure", "canonical_subitem_id": "tail_mass_similarity", "intended_facet_id": "tail_ranked_signal", "variant_semantic_role": "count_distribution", "subitem_assignment_source": "planner_selected", "source_kind": "agent", "realization_mode": "agent", "gate_priority": "primary", "extended_family": false, "question": "Use template Relative-to-Total Extreme Threshold to probe tail_mass_similarity with semantic role count_distribution. Focus on group_col=release_year, measure_col=release_year.", "bindings": { "group_col": "release_year", "measure_col": "release_year", "top_k": 18, "top_n": 5, "num_tiles": 10, "percentile_value": 0.95, "z_threshold": 2.0, "fraction_threshold": 0.05, "baseline_multiplier": 1.75, "baseline_fraction": 0.1, "min_group_size": 5, "min_support": 4, "measure_threshold": 2018.0, "time_grain": "month", "lookback_rows": 3, "current_period_start": "'2024-01-01'", "current_period_end": "'2024-04-01'", "previous_period_start": "'2023-10-01'", "previous_period_end": "'2024-01-01'", "drift_ratio_threshold": 0.8 }, "binding_roles": [ "group_col", "measure_col" ], "coverage_target_min": "5", "runtime_sql_skeleton": "WITH grouped AS (\n SELECT {group_col}, SUM({measure_col}) AS group_value\n FROM {table}\n GROUP BY {group_col}\n), total AS (\n SELECT SUM(group_value) AS total_value\n FROM grouped\n)\nSELECT g.{group_col}, g.group_value\nFROM grouped AS g\nCROSS JOIN total AS t\nWHERE g.group_value > t.total_value * {fraction_threshold}\nORDER BY g.group_value DESC;", "notes": [ "default_facets=tail_ranked_signal", "template_selection_mode=rule", "problem_index_within_template=2", "sql_variant_index=2/2", "binding_index=73" ], "template_selection_mode": "rule", "selected_template_rank": 7, "problem_index_within_template": 2, "sql_variant_index": 2, "sql_variant_total": 2 }, "mode": "subitem_workload_v2", "sql_source_version": "v2", "sql_source_label": "v2_current", "generated_sql_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/c17/sql/v2q_c17_3cb596830d4aa9b2.sql", "usage_summary": { "dataset_id": "c17", "model": "v2-cli:codex", "run_id": "v2q_c17_3cb596830d4aa9b2", "api_calls": 0, "input_tokens": 14783, "cached_input_tokens": 12032, "output_tokens": 728, "total_tokens": 15511, "cost_usd": 0.0, "ai_cli_calls": 1, "estimated_input_tokens": 0, "estimated_output_tokens": 0, "estimated_total_tokens": 0, "usage_source": "ai_cli_json_usage", "cli_elapsed_ms_total": 14569.83, "sql_execution_elapsed_ms_total": 6.25, "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_3cb596830d4aa9b2/cli/conversation.jsonl", "note": "Executed through a local AI CLI with structured usage metadata." }}1{"timestamp": "2026-05-19T15:44:04.116853+00:00", "event_type": "ai_cli_sql_generation", "engine": "v2-cli:codex", "attempt": 1, "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", "returncode": 0, "elapsed_ms": 14569.83, "started_at": "2026-05-19T15:43:49.546275+00:00", "ended_at": "2026-05-19T15:44:04.116130+00:00", "prompt_metrics": {"chars": 9742, "bytes_utf8": 9744, "lines": 240, "estimated_tokens": null}, "response_metrics": {"chars": 807, "bytes_utf8": 807, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 14783, "cached_input_tokens": 12032, "output_tokens": 728, "reasoning_output_tokens": 516}, "stderr_preview": "", "stdout_preview": "{\"sql\":\"-- template_id: tpl_tpch_relative_total_threshold\\nWITH grouped AS (\\n SELECT\\n \\\"release_year\\\",\\n SUM(CAST(\\\"release_year\\\" AS INTEGER)) AS \\\"group_value\\\"\\n FROM \\\"c17\\\"\\n WHERE \\\"release_year\\\" IS NOT NULL\\n AND TRIM(\\\"release_year\\\") <> ''\\n GROUP BY \\\"release_year\\\"\\n), total AS (\\n SELECT SUM(\\\"group_value\\\") AS \\\"total_value\\\"\\n FROM grouped\\n)\\nSELECT g.\\\"release_year\\\", g.\\\"group_value\\\"\\nFROM grouped AS g\\nCROSS JOIN total AS t\\nWHERE g.\\\"group_value\\\" > t.\\\"total_value\\\" * 0.05\\nORDER BY g.\\\"group_value\\\" DESC;\",\"notes\":\"Applied the required Relative-to-Total Extreme Threshold template with group_col=release_year and measure_col=release_year. Since \\\"release_year\\\" is stored as TEXT in SQLite, the query casts it to INTEGER before summing.\"}"}1234567891011121314151617181920{ "dataset_id": "c17", "model": "v2-cli:codex", "run_id": "v2q_c17_3cb596830d4aa9b2", "api_calls": 0, "input_tokens": 14783, "cached_input_tokens": 12032, "output_tokens": 728, "total_tokens": 15511, "cost_usd": 0.0, "ai_cli_calls": 1, "estimated_input_tokens": 0, "estimated_output_tokens": 0, "estimated_total_tokens": 0, "usage_source": "ai_cli_json_usage", "cli_elapsed_ms_total": 14569.83, "sql_execution_elapsed_ms_total": 6.25, "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_3cb596830d4aa9b2/cli/conversation.jsonl", "note": "Executed through a local AI CLI with structured usage metadata."}1{"row_count": null, "preview_rows": []}123456789101112131415161718192021-- sql_source_version: v2-- sql_source_label: v2_current-- sql_source_run_id: v2_cli_20260502_081223_b-- sql_source_dataset_id: c17-- family_id: cardinality_structure-- canonical_subitem_id: high_cardinality_response_stability-- intended_facet_id: target_cardinality_cross_section-- variant_semantic_role: focused_target_view-- template_id: tpl_cardinality_high_card_response_stability-- query_record_id: v2q_c17_4213daea7e63fde3-- problem_id: v2p_c17_e280605f357f16dd-- realization_mode: deterministic-- source_kind: deterministicSELECT "description", COUNT(*) AS support, AVG("release_year") AS avg_responseFROM "c17"GROUP BY "description"HAVING COUNT(*) >= 5.0ORDER BY support DESC, avg_response DESC;1{"node_name": "v2_template", "tool_name": "sqlite_query", "query": "-- sql_source_version: v2\n-- sql_source_label: v2_current\n-- sql_source_run_id: v2_cli_20260502_081223_b\n-- sql_source_dataset_id: c17\n-- family_id: cardinality_structure\n-- canonical_subitem_id: high_cardinality_response_stability\n-- intended_facet_id: target_cardinality_cross_section\n-- variant_semantic_role: focused_target_view\n-- template_id: tpl_cardinality_high_card_response_stability\n-- query_record_id: v2q_c17_4213daea7e63fde3\n-- problem_id: v2p_c17_e280605f357f16dd\n-- realization_mode: deterministic\n-- source_kind: deterministic\nSELECT\n \"description\",\n COUNT(*) AS support,\n AVG(\"release_year\") AS avg_response\nFROM \"c17\"\nGROUP BY \"description\"\nHAVING COUNT(*) >= 5.0\nORDER BY support DESC, avg_response DESC;", "result": "{\"query\": \"-- sql_source_version: v2\\n-- sql_source_label: v2_current\\n-- sql_source_run_id: v2_cli_20260502_081223_b\\n-- sql_source_dataset_id: c17\\n-- family_id: cardinality_structure\\n-- canonical_subitem_id: high_cardinality_response_stability\\n-- intended_facet_id: target_cardinality_cross_section\\n-- variant_semantic_role: focused_target_view\\n-- template_id: tpl_cardinality_high_card_response_stability\\n-- query_record_id: v2q_c17_4213daea7e63fde3\\n-- problem_id: v2p_c17_e280605f357f16dd\\n-- realization_mode: deterministic\\n-- source_kind: deterministic\\nSELECT\\n \\\"description\\\",\\n COUNT(*) AS support,\\n AVG(\\\"release_year\\\") AS avg_response\\nFROM \\\"c17\\\"\\nGROUP BY \\\"description\\\"\\nHAVING COUNT(*) >= 5.0\\nORDER BY support DESC, avg_response DESC;\", \"columns\": [\"description\", \"support\", \"avg_response\"], \"rows\": [], \"row_count_returned\": 0, \"row_limit\": 50, \"truncated\": false, \"elapsed_ms\": 8.9}"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960{ "run_id": "v2_cli_20260502_081223_b", "dataset_id": "c17", "started_at": "2026-05-19T16:03:15.534216+00:00", "ended_at": "2026-05-19T16:03:15.544021+00:00", "status": "completed", "engine": "cli", "question_record": { "query_record_id": "v2q_c17_4213daea7e63fde3", "problem_id": "v2p_c17_e280605f357f16dd", "dataset_id": "c17", "template_id": "tpl_cardinality_high_card_response_stability", "template_name": "High-Cardinality Response Stability", "family_id": "cardinality_structure", "canonical_subitem_id": "high_cardinality_response_stability", "intended_facet_id": "target_cardinality_cross_section", "variant_semantic_role": "focused_target_view", "subitem_assignment_source": "template_fixed", "source_kind": "deterministic", "realization_mode": "deterministic", "gate_priority": "deterministic", "extended_family": true, "question": "Use template High-Cardinality Response Stability to probe high_cardinality_response_stability with semantic role focused_target_view. Focus on measure_col=release_year, key_col=description.", "bindings": { "key_col": "description", "measure_col": "release_year", "min_support": 5 }, "binding_roles": [ "key_col", "target_col" ], "coverage_target_min": "enumerate_all_applicable", "runtime_sql_skeleton": "SELECT\n {key_col},\n COUNT(*) AS support,\n AVG({measure_col}) AS avg_response\nFROM {table}\nGROUP BY {key_col}\nHAVING COUNT(*) >= {min_support}\nORDER BY support DESC, avg_response DESC;", "notes": [ "default_facets=target_cardinality_cross_section", "template_selection_mode=deterministic", "problem_index_within_template=9", "sql_variant_index=1/1" ], "template_selection_mode": "deterministic", "selected_template_rank": 0, "problem_index_within_template": 9, "sql_variant_index": 1, "sql_variant_total": 1 }, "mode": "subitem_workload_v2", "sql_source_version": "v2", "sql_source_label": "v2_current", "generated_sql_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/c17/sql/v2q_c17_4213daea7e63fde3.sql", "usage_summary": { "engine": "template", "input_tokens": 0, "cached_input_tokens": 0, "output_tokens": 0, "total_tokens": 0, "estimated_total_tokens": 0, "usage_source": "none" }}123456789{ "engine": "template", "input_tokens": 0, "cached_input_tokens": 0, "output_tokens": 0, "total_tokens": 0, "estimated_total_tokens": 0, "usage_source": "none"}12SQL executed successfully for: Use template Quantile Tail Slice to probe tail_set_consistency with semantic role rare_extreme_view. Focus on measure_col=release_year.Result preview: [{"release_year": "2021"}, {"release_year": "2021"}, {"release_year": "2021"}, {"release_year": "2021"}, {"release_year": "2021"}] Results were truncated.123456789101112131415161718192021222324-- sql_source_version: v2-- sql_source_label: v2_current-- sql_source_run_id: v2_cli_20260502_081223_b-- sql_source_dataset_id: c17-- family_id: tail_rarity_structure-- canonical_subitem_id: tail_set_consistency-- intended_facet_id: low_support_extremes-- variant_semantic_role: rare_extreme_view-- template_id: tpl_m4_quantile_tail_slice-- query_record_id: v2q_c17_445fa932b7595a9f-- problem_id: v2p_c17_624d2c1cd1a70702-- realization_mode: agent-- source_kind: agentWITH "buckets" AS ( SELECT "release_year", NTILE(10) OVER (ORDER BY CAST("release_year" AS INTEGER) DESC) AS "tail_bucket" FROM "c17" WHERE "release_year" IS NOT NULL AND "release_year" <> '')SELECT "release_year"FROM "buckets"WHERE "tail_bucket" = 1ORDER BY CAST("release_year" AS INTEGER) DESC;1{"step_index": 1, "message_index": 0, "node_name": "v2-cli:codex", "tool_name": "sqlite_query", "query": "-- template_id: tpl_m4_quantile_tail_slice\nWITH \"buckets\" AS (\n SELECT\n \"release_year\",\n NTILE(10) OVER (ORDER BY CAST(\"release_year\" AS INTEGER) DESC) AS \"tail_bucket\"\n FROM \"c17\"\n WHERE \"release_year\" IS NOT NULL AND \"release_year\" <> ''\n)\nSELECT \"release_year\"\nFROM \"buckets\"\nWHERE \"tail_bucket\" = 1\nORDER BY CAST(\"release_year\" AS INTEGER) DESC;", "result": "{\"query\": \"-- template_id: tpl_m4_quantile_tail_slice\\nWITH \\\"buckets\\\" AS (\\n SELECT\\n \\\"release_year\\\",\\n NTILE(10) OVER (ORDER BY CAST(\\\"release_year\\\" AS INTEGER) DESC) AS \\\"tail_bucket\\\"\\n FROM \\\"c17\\\"\\n WHERE \\\"release_year\\\" IS NOT NULL AND \\\"release_year\\\" <> ''\\n)\\nSELECT \\\"release_year\\\"\\nFROM \\\"buckets\\\"\\nWHERE \\\"tail_bucket\\\" = 1\\nORDER BY CAST(\\\"release_year\\\" AS INTEGER) DESC;\", \"columns\": [\"release_year\"], \"rows\": [{\"release_year\": \"2021\"}, {\"release_year\": \"2021\"}, {\"release_year\": \"2021\"}, {\"release_year\": \"2021\"}, {\"release_year\": \"2021\"}, {\"release_year\": \"2021\"}, {\"release_year\": \"2021\"}, {\"release_year\": \"2021\"}, {\"release_year\": \"2021\"}, {\"release_year\": \"2021\"}, {\"release_year\": \"2021\"}, {\"release_year\": \"2021\"}, {\"release_year\": \"2021\"}, {\"release_year\": \"2021\"}, {\"release_year\": \"2021\"}, {\"release_year\": \"2021\"}, {\"release_year\": \"2021\"}, {\"release_year\": \"2021\"}, {\"release_year\": \"2021\"}, {\"release_year\": \"2021\"}, {\"release_year\": \"2021\"}, {\"release_year\": \"2021\"}, {\"release_year\": \"2021\"}, {\"release_year\": \"2021\"}, {\"release_year\": \"2021\"}, {\"release_year\": \"2021\"}, {\"release_year\": \"2021\"}, {\"release_year\": \"2021\"}, {\"release_year\": \"2021\"}, {\"release_year\": \"2021\"}, {\"release_year\": \"2021\"}, {\"release_year\": \"2021\"}, {\"release_year\": \"2021\"}, {\"release_year\": \"2021\"}, {\"release_year\": \"2021\"}, {\"release_year\": \"2021\"}, {\"release_year\": \"2021\"}, {\"release_year\": \"2021\"}, {\"release_year\": \"2021\"}, {\"release_year\": \"2021\"}, {\"release_year\": \"2021\"}, {\"release_year\": \"2021\"}, {\"release_year\": \"2021\"}, {\"release_year\": \"2021\"}, {\"release_year\": \"2021\"}, {\"release_year\": \"2021\"}, {\"release_year\": \"2021\"}, {\"release_year\": \"2021\"}, {\"release_year\": \"2021\"}, {\"release_year\": \"2021\"}], \"row_count_returned\": 50, \"row_limit\": 50, \"truncated\": true, \"elapsed_ms\": 28.86}"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687{ "run_id": "v2_cli_20260502_081223_b", "dataset_id": "c17", "started_at": "2026-05-19T15:42:08.362667+00:00", "ended_at": "2026-05-19T15:42:24.059842+00:00", "status": "completed", "engine": "cli", "question_record": { "query_record_id": "v2q_c17_445fa932b7595a9f", "problem_id": "v2p_c17_624d2c1cd1a70702", "dataset_id": "c17", "template_id": "tpl_m4_quantile_tail_slice", "template_name": "Quantile Tail Slice", "family_id": "tail_rarity_structure", "canonical_subitem_id": "tail_set_consistency", "intended_facet_id": "low_support_extremes", "variant_semantic_role": "rare_extreme_view", "subitem_assignment_source": "planner_selected", "source_kind": "agent", "realization_mode": "agent", "gate_priority": "primary", "extended_family": false, "question": "Use template Quantile Tail Slice to probe tail_set_consistency with semantic role rare_extreme_view. Focus on measure_col=release_year.", "bindings": { "measure_col": "release_year", "top_k": 14, "top_n": 3, "num_tiles": 10, "percentile_value": 0.95, "z_threshold": 2.0, "fraction_threshold": 0.1, "baseline_multiplier": 1.5, "baseline_fraction": 0.1, "min_group_size": 5, "min_support": 5, "measure_threshold": 2019.0, "time_grain": "month", "lookback_rows": 3, "current_period_start": "'2024-01-01'", "current_period_end": "'2024-04-01'", "previous_period_start": "'2023-10-01'", "previous_period_end": "'2024-01-01'", "drift_ratio_threshold": 0.8 }, "binding_roles": [ "measure_col" ], "coverage_target_min": "5", "runtime_sql_skeleton": "WITH buckets AS (\n SELECT {measure_col},\n NTILE({num_tiles}) OVER (ORDER BY {measure_col} DESC) AS tail_bucket\n FROM {table}\n)\nSELECT {measure_col}\nFROM buckets\nWHERE tail_bucket = 1\nORDER BY {measure_col} DESC;", "notes": [ "default_facets=low_support_extremes", "template_selection_mode=rule", "problem_index_within_template=5", "sql_variant_index=1/1", "binding_index=64" ], "template_selection_mode": "rule", "selected_template_rank": 6, "problem_index_within_template": 5, "sql_variant_index": 1, "sql_variant_total": 1 }, "mode": "subitem_workload_v2", "sql_source_version": "v2", "sql_source_label": "v2_current", "generated_sql_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/c17/sql/v2q_c17_445fa932b7595a9f.sql", "usage_summary": { "dataset_id": "c17", "model": "v2-cli:codex", "run_id": "v2q_c17_445fa932b7595a9f", "api_calls": 0, "input_tokens": 14700, "cached_input_tokens": 12032, "output_tokens": 574, "total_tokens": 15274, "cost_usd": 0.0, "ai_cli_calls": 1, "estimated_input_tokens": 0, "estimated_output_tokens": 0, "estimated_total_tokens": 0, "usage_source": "ai_cli_json_usage", "cli_elapsed_ms_total": 15659.72, "sql_execution_elapsed_ms_total": 28.86, "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_445fa932b7595a9f/cli/conversation.jsonl", "note": "Executed through a local AI CLI with structured usage metadata." }}1{"timestamp": "2026-05-19T15:42:24.027750+00:00", "event_type": "ai_cli_sql_generation", "engine": "v2-cli:codex", "attempt": 1, "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", "returncode": 0, "elapsed_ms": 15659.72, "started_at": "2026-05-19T15:42:08.365638+00:00", "ended_at": "2026-05-19T15:42:24.025406+00:00", "prompt_metrics": {"chars": 9349, "bytes_utf8": 9351, "lines": 238, "estimated_tokens": null}, "response_metrics": {"chars": 585, "bytes_utf8": 585, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 14700, "cached_input_tokens": 12032, "output_tokens": 574, "reasoning_output_tokens": 411}, "stderr_preview": "", "stdout_preview": "{\"sql\":\"-- template_id: tpl_m4_quantile_tail_slice\\nWITH \\\"buckets\\\" AS (\\n SELECT\\n \\\"release_year\\\",\\n NTILE(10) OVER (ORDER BY CAST(\\\"release_year\\\" AS INTEGER) DESC) AS \\\"tail_bucket\\\"\\n FROM \\\"c17\\\"\\n WHERE \\\"release_year\\\" IS NOT NULL AND \\\"release_year\\\" <> ''\\n)\\nSELECT \\\"release_year\\\"\\nFROM \\\"buckets\\\"\\nWHERE \\\"tail_bucket\\\" = 1\\nORDER BY CAST(\\\"release_year\\\" AS INTEGER) DESC;\",\"notes\":\"Used the provided Quantile Tail Slice template with measure_col bound to release_year and num_tiles=10. CAST is applied because release_year is stored as TEXT in the schema.\"}"}1234567891011121314151617181920{ "dataset_id": "c17", "model": "v2-cli:codex", "run_id": "v2q_c17_445fa932b7595a9f", "api_calls": 0, "input_tokens": 14700, "cached_input_tokens": 12032, "output_tokens": 574, "total_tokens": 15274, "cost_usd": 0.0, "ai_cli_calls": 1, "estimated_input_tokens": 0, "estimated_output_tokens": 0, "estimated_total_tokens": 0, "usage_source": "ai_cli_json_usage", "cli_elapsed_ms_total": 15659.72, "sql_execution_elapsed_ms_total": 28.86, "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_445fa932b7595a9f/cli/conversation.jsonl", "note": "Executed through a local AI CLI with structured usage metadata."}12SQL executed successfully for: Use template Filtered Two-Dimensional Group Count to probe slice_level_consistency with semantic role count_distribution. Focus on group_col=type, group_col_2=release_year.Result preview: [{"type": "Movie", "release_year": "2020", "row_count": 34}, {"type": "TV Show", "release_year": "2018", "row_count": 28}, {"type": "Movie", "release_year": "2019", "row_count": 25}, {"type": "TV Show", "release_year": "2019", "row_count": 25}, {"type": "TV Show", "release_year": "2020", "row_count": 25}]123456789101112131415161718-- sql_source_version: v2-- sql_source_label: v2_current-- sql_source_run_id: v2_cli_20260502_081223_b-- sql_source_dataset_id: c17-- family_id: conditional_dependency_structure-- canonical_subitem_id: slice_level_consistency-- intended_facet_id: conditional_interaction_hotspots-- variant_semantic_role: count_distribution-- template_id: tpl_c2_filtered_group_count_2d-- query_record_id: v2q_c17_5d9587e3ed4fae70-- problem_id: v2p_c17_06c7c436d01bf0b2-- realization_mode: agent-- source_kind: agentSELECT "type", "release_year", COUNT(*) AS row_countFROM "c17"WHERE "rating" = 'TV-Y'GROUP BY "type", "release_year"ORDER BY row_count DESC;1{"step_index": 1, "message_index": 0, "node_name": "v2-cli:codex", "tool_name": "sqlite_query", "query": "-- template_id: tpl_c2_filtered_group_count_2d\nSELECT \"type\", \"release_year\", COUNT(*) AS row_count\nFROM \"c17\"\nWHERE \"rating\" = 'TV-Y'\nGROUP BY \"type\", \"release_year\"\nORDER BY row_count DESC;", "result": "{\"query\": \"-- template_id: tpl_c2_filtered_group_count_2d\\nSELECT \\\"type\\\", \\\"release_year\\\", COUNT(*) AS row_count\\nFROM \\\"c17\\\"\\nWHERE \\\"rating\\\" = 'TV-Y'\\nGROUP BY \\\"type\\\", \\\"release_year\\\"\\nORDER BY row_count DESC;\", \"columns\": [\"type\", \"release_year\", \"row_count\"], \"rows\": [{\"type\": \"Movie\", \"release_year\": \"2020\", \"row_count\": 34}, {\"type\": \"TV Show\", \"release_year\": \"2018\", \"row_count\": 28}, {\"type\": \"Movie\", \"release_year\": \"2019\", \"row_count\": 25}, {\"type\": \"TV Show\", \"release_year\": \"2019\", \"row_count\": 25}, {\"type\": \"TV Show\", \"release_year\": \"2020\", \"row_count\": 25}, {\"type\": \"TV Show\", \"release_year\": \"2016\", \"row_count\": 23}, {\"type\": \"TV Show\", \"release_year\": \"2021\", \"row_count\": 20}, {\"type\": \"TV Show\", \"release_year\": \"2017\", \"row_count\": 18}, {\"type\": \"Movie\", \"release_year\": \"2017\", \"row_count\": 13}, {\"type\": \"Movie\", \"release_year\": \"2018\", \"row_count\": 13}, {\"type\": \"Movie\", \"release_year\": \"2015\", \"row_count\": 10}, {\"type\": \"TV Show\", \"release_year\": \"2015\", \"row_count\": 10}, {\"type\": \"Movie\", \"release_year\": \"2016\", \"row_count\": 8}, {\"type\": \"TV Show\", \"release_year\": \"2014\", \"row_count\": 8}, {\"type\": \"Movie\", \"release_year\": \"2014\", \"row_count\": 6}, {\"type\": \"Movie\", \"release_year\": \"2021\", \"row_count\": 6}, {\"type\": \"TV Show\", \"release_year\": \"2012\", \"row_count\": 6}, {\"type\": \"Movie\", \"release_year\": \"2013\", \"row_count\": 5}, {\"type\": \"Movie\", \"release_year\": \"2011\", \"row_count\": 4}, {\"type\": \"TV Show\", \"release_year\": \"2010\", \"row_count\": 4}, {\"type\": \"TV Show\", \"release_year\": \"2011\", \"row_count\": 4}, {\"type\": \"Movie\", \"release_year\": \"2010\", \"row_count\": 2}, {\"type\": \"Movie\", \"release_year\": \"2012\", \"row_count\": 2}, {\"type\": \"Movie\", \"release_year\": \"2003\", \"row_count\": 1}, {\"type\": \"Movie\", \"release_year\": \"2007\", \"row_count\": 1}, {\"type\": \"Movie\", \"release_year\": \"2008\", \"row_count\": 1}, {\"type\": \"TV Show\", \"release_year\": \"1992\", \"row_count\": 1}, {\"type\": \"TV Show\", \"release_year\": \"1997\", \"row_count\": 1}, {\"type\": \"TV Show\", \"release_year\": \"2004\", \"row_count\": 1}, {\"type\": \"TV Show\", \"release_year\": \"2007\", \"row_count\": 1}, {\"type\": \"TV Show\", \"release_year\": \"2008\", \"row_count\": 1}], \"row_count_returned\": 31, \"row_limit\": 50, \"truncated\": false, \"elapsed_ms\": 4.24}"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293{ "run_id": "v2_cli_20260502_081223_b", "dataset_id": "c17", "started_at": "2026-05-19T15:40:40.227373+00:00", "ended_at": "2026-05-19T15:40:48.045533+00:00", "status": "completed", "engine": "cli", "question_record": { "query_record_id": "v2q_c17_5d9587e3ed4fae70", "problem_id": "v2p_c17_06c7c436d01bf0b2", "dataset_id": "c17", "template_id": "tpl_c2_filtered_group_count_2d", "template_name": "Filtered Two-Dimensional Group Count", "family_id": "conditional_dependency_structure", "canonical_subitem_id": "slice_level_consistency", "intended_facet_id": "conditional_interaction_hotspots", "variant_semantic_role": "count_distribution", "subitem_assignment_source": "planner_selected", "source_kind": "agent", "realization_mode": "agent", "gate_priority": "primary", "extended_family": false, "question": "Use template Filtered Two-Dimensional Group Count to probe slice_level_consistency with semantic role count_distribution. Focus on group_col=type, group_col_2=release_year.", "bindings": { "group_col": "type", "group_col_2": "release_year", "predicate_col": "rating", "predicate_op": "=", "predicate_value": "TV-Y", "top_k": 14, "top_n": 5, "num_tiles": 10, "percentile_value": 0.95, "z_threshold": 2.0, "fraction_threshold": 0.1, "baseline_multiplier": 1.5, "baseline_fraction": 0.1, "min_group_size": 5, "min_support": 5, "measure_threshold": 2019.0, "time_grain": "month", "lookback_rows": 3, "current_period_start": "'2024-01-01'", "current_period_end": "'2024-04-01'", "previous_period_start": "'2023-10-01'", "previous_period_end": "'2024-01-01'", "drift_ratio_threshold": 0.8 }, "binding_roles": [ "group_col", "group_col_2", "predicate_col" ], "coverage_target_min": "5", "runtime_sql_skeleton": "SELECT {group_col}, {group_col_2}, COUNT(*) AS row_count\nFROM {table}\nWHERE {predicate_col} {predicate_op} {predicate_value}\nGROUP BY {group_col}, {group_col_2}\nORDER BY row_count DESC;", "notes": [ "default_facets=conditional_interaction_hotspots", "template_selection_mode=rule", "problem_index_within_template=7", "sql_variant_index=1/1", "binding_index=54" ], "template_selection_mode": "rule", "selected_template_rank": 5, "problem_index_within_template": 7, "sql_variant_index": 1, "sql_variant_total": 1 }, "mode": "subitem_workload_v2", "sql_source_version": "v2", "sql_source_label": "v2_current", "generated_sql_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/c17/sql/v2q_c17_5d9587e3ed4fae70.sql", "usage_summary": { "dataset_id": "c17", "model": "v2-cli:codex", "run_id": "v2q_c17_5d9587e3ed4fae70", "api_calls": 0, "input_tokens": 14737, "cached_input_tokens": 13696, "output_tokens": 282, "total_tokens": 15019, "cost_usd": 0.0, "ai_cli_calls": 1, "estimated_input_tokens": 0, "estimated_output_tokens": 0, "estimated_total_tokens": 0, "usage_source": "ai_cli_json_usage", "cli_elapsed_ms_total": 7808.11, "sql_execution_elapsed_ms_total": 4.24, "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_5d9587e3ed4fae70/cli/conversation.jsonl", "note": "Executed through a local AI CLI with structured usage metadata." }}1{"timestamp": "2026-05-19T15:40:48.039032+00:00", "event_type": "ai_cli_sql_generation", "engine": "v2-cli:codex", "attempt": 1, "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", "returncode": 0, "elapsed_ms": 7808.11, "started_at": "2026-05-19T15:40:40.229614+00:00", "ended_at": "2026-05-19T15:40:48.037755+00:00", "prompt_metrics": {"chars": 9480, "bytes_utf8": 9482, "lines": 244, "estimated_tokens": null}, "response_metrics": {"chars": 370, "bytes_utf8": 370, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 14737, "cached_input_tokens": 13696, "output_tokens": 282, "reasoning_output_tokens": 177}, "stderr_preview": "", "stdout_preview": "{\"sql\":\"-- template_id: tpl_c2_filtered_group_count_2d\\nSELECT \\\"type\\\", \\\"release_year\\\", COUNT(*) AS row_count\\nFROM \\\"c17\\\"\\nWHERE \\\"rating\\\" = 'TV-Y'\\nGROUP BY \\\"type\\\", \\\"release_year\\\"\\nORDER BY row_count DESC;\",\"notes\":\"Uses the required filtered two-dimensional group count template with group_col=type, group_col_2=release_year, and predicate rating = 'TV-Y'.\"}"}1234567891011121314151617181920{ "dataset_id": "c17", "model": "v2-cli:codex", "run_id": "v2q_c17_5d9587e3ed4fae70", "api_calls": 0, "input_tokens": 14737, "cached_input_tokens": 13696, "output_tokens": 282, "total_tokens": 15019, "cost_usd": 0.0, "ai_cli_calls": 1, "estimated_input_tokens": 0, "estimated_output_tokens": 0, "estimated_total_tokens": 0, "usage_source": "ai_cli_json_usage", "cli_elapsed_ms_total": 7808.11, "sql_execution_elapsed_ms_total": 4.24, "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_5d9587e3ed4fae70/cli/conversation.jsonl", "note": "Executed through a local AI CLI with structured usage metadata."}12SQL executed successfully for: Use template Grouped Numeric Sum to probe internal_profile_stability with semantic role collapsed_target_view. Focus on group_col=duration, measure_col=release_year.Result preview: [{"duration": "1 Season", "total_measure": 3615738}, {"duration": "2 Seasons", "total_measure": 857340}, {"duration": "3 Seasons", "total_measure": 401524}, {"duration": "90 min", "total_measure": 306278}, {"duration": "97 min", "total_measure": 294045}] Results were truncated.1234567891011121314151617-- sql_source_version: v2-- sql_source_label: v2_current-- sql_source_run_id: v2_cli_20260502_081223_b-- sql_source_dataset_id: c17-- family_id: subgroup_structure-- canonical_subitem_id: internal_profile_stability-- intended_facet_id: subgroup_rank_order-- variant_semantic_role: collapsed_target_view-- template_id: tpl_h2o_group_sum-- query_record_id: v2q_c17_62d16fe52ca1c024-- problem_id: v2p_c17_69bf882dc9dd67ee-- realization_mode: agent-- source_kind: agentSELECT "duration", SUM(CAST("release_year" AS INTEGER)) AS total_measureFROM "c17"GROUP BY "duration"ORDER BY total_measure DESC;1{"step_index": 1, "message_index": 0, "node_name": "v2-cli:codex", "tool_name": "sqlite_query", "query": "-- template_id: tpl_h2o_group_sum\nSELECT \"duration\", SUM(CAST(\"release_year\" AS INTEGER)) AS total_measure\nFROM \"c17\"\nGROUP BY \"duration\"\nORDER BY total_measure DESC;", "result": "{\"query\": \"-- template_id: tpl_h2o_group_sum\\nSELECT \\\"duration\\\", SUM(CAST(\\\"release_year\\\" AS INTEGER)) AS total_measure\\nFROM \\\"c17\\\"\\nGROUP BY \\\"duration\\\"\\nORDER BY total_measure DESC;\", \"columns\": [\"duration\", \"total_measure\"], \"rows\": [{\"duration\": \"1 Season\", \"total_measure\": 3615738}, {\"duration\": \"2 Seasons\", \"total_measure\": 857340}, {\"duration\": \"3 Seasons\", \"total_measure\": 401524}, {\"duration\": \"90 min\", \"total_measure\": 306278}, {\"duration\": \"97 min\", \"total_measure\": 294045}, {\"duration\": \"93 min\", \"total_measure\": 293871}, {\"duration\": \"94 min\", \"total_measure\": 293826}, {\"duration\": \"91 min\", \"total_measure\": 290100}, {\"duration\": \"95 min\", \"total_measure\": 275915}, {\"duration\": \"96 min\", \"total_measure\": 261790}, {\"duration\": \"92 min\", \"total_measure\": 259953}, {\"duration\": \"102 min\", \"total_measure\": 245767}, {\"duration\": \"98 min\", \"total_measure\": 241676}, {\"duration\": \"99 min\", \"total_measure\": 237647}, {\"duration\": \"88 min\", \"total_measure\": 233624}, {\"duration\": \"101 min\", \"total_measure\": 233430}, {\"duration\": \"103 min\", \"total_measure\": 229449}, {\"duration\": \"106 min\", \"total_measure\": 223504}, {\"duration\": \"100 min\", \"total_measure\": 217541}, {\"duration\": \"89 min\", \"total_measure\": 213407}, {\"duration\": \"104 min\", \"total_measure\": 209265}, {\"duration\": \"86 min\", \"total_measure\": 207557}, {\"duration\": \"87 min\", \"total_measure\": 203583}, {\"duration\": \"105 min\", \"total_measure\": 203416}, {\"duration\": \"107 min\", \"total_measure\": 197496}, {\"duration\": \"110 min\", \"total_measure\": 195405}, {\"duration\": \"4 Seasons\", \"total_measure\": 191511}, {\"duration\": \"108 min\", \"total_measure\": 175019}, {\"duration\": \"116 min\", \"total_measure\": 160897}, {\"duration\": \"112 min\", \"total_measure\": 148867}, {\"duration\": \"85 min\", \"total_measure\": 146935}, {\"duration\": \"113 min\", \"total_measure\": 138992}, {\"duration\": \"109 min\", \"total_measure\": 138925}, {\"duration\": \"111 min\", \"total_measure\": 136893}, {\"duration\": \"84 min\", \"total_measure\": 134936}, {\"duration\": \"5 Seasons\", \"total_measure\": 131053}, {\"duration\": \"83 min\", \"total_measure\": 130953}, {\"duration\": \"118 min\", \"total_measure\": 130838}, {\"duration\": \"119 min\", \"total_measure\": 126817}, {\"duration\": \"81 min\", \"total_measure\": 124879}, {\"duration\": \"115 min\", \"total_measure\": 122832}, {\"duration\": \"117 min\", \"total_measure\": 122789}, {\"duration\": \"114 min\", \"total_measure\": 112730}, {\"duration\": \"120 min\", \"total_measure\": 112627}, {\"duration\": \"121 min\", \"total_measure\": 108615}, {\"duration\": \"82 min\", \"total_measure\": 104657}, {\"duration\": \"124 min\", \"total_measure\": 104608}, {\"duration\": \"127 min\", \"total_measure\": 96477}, {\"duration\": \"78 min\", \"total_measure\": 90693}, {\"duration\": \"122 min\", \"total_measure\": 90616}], \"row_count_returned\": 50, \"row_limit\": 50, \"truncated\": true, \"elapsed_ms\": 6.13}"}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889{ "run_id": "v2_cli_20260502_081223_b", "dataset_id": "c17", "started_at": "2026-05-19T15:29:27.153042+00:00", "ended_at": "2026-05-19T15:29:39.482325+00:00", "status": "completed", "engine": "cli", "question_record": { "query_record_id": "v2q_c17_62d16fe52ca1c024", "problem_id": "v2p_c17_69bf882dc9dd67ee", "dataset_id": "c17", "template_id": "tpl_h2o_group_sum", "template_name": "Grouped Numeric Sum", "family_id": "subgroup_structure", "canonical_subitem_id": "internal_profile_stability", "intended_facet_id": "subgroup_rank_order", "variant_semantic_role": "collapsed_target_view", "subitem_assignment_source": "planner_selected", "source_kind": "agent", "realization_mode": "agent", "gate_priority": "primary", "extended_family": false, "question": "Use template Grouped Numeric Sum to probe internal_profile_stability with semantic role collapsed_target_view. Focus on group_col=duration, measure_col=release_year.", "bindings": { "group_col": "duration", "measure_col": "release_year", "top_k": 18, "top_n": 7, "num_tiles": 10, "percentile_value": 0.95, "z_threshold": 2.0, "fraction_threshold": 0.05, "baseline_multiplier": 1.75, "baseline_fraction": 0.1, "min_group_size": 5, "min_support": 4, "measure_threshold": 2018.0, "time_grain": "month", "lookback_rows": 3, "current_period_start": "'2024-01-01'", "current_period_end": "'2024-04-01'", "previous_period_start": "'2023-10-01'", "previous_period_end": "'2024-01-01'", "drift_ratio_threshold": 0.8 }, "binding_roles": [ "group_col", "measure_col" ], "coverage_target_min": "5", "runtime_sql_skeleton": "SELECT {group_col}, SUM({measure_col}) AS total_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY total_measure DESC;", "notes": [ "default_facets=subgroup_distribution_shift,subgroup_rank_order,subgroup_conditional_contrast", "template_selection_mode=rule", "problem_index_within_template=4", "sql_variant_index=2/2", "binding_index=3" ], "template_selection_mode": "rule", "selected_template_rank": 1, "problem_index_within_template": 4, "sql_variant_index": 2, "sql_variant_total": 2 }, "mode": "subitem_workload_v2", "sql_source_version": "v2", "sql_source_label": "v2_current", "generated_sql_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/c17/sql/v2q_c17_62d16fe52ca1c024.sql", "usage_summary": { "dataset_id": "c17", "model": "v2-cli:codex", "run_id": "v2q_c17_62d16fe52ca1c024", "api_calls": 0, "input_tokens": 14645, "cached_input_tokens": 12032, "output_tokens": 326, "total_tokens": 14971, "cost_usd": 0.0, "ai_cli_calls": 1, "estimated_input_tokens": 0, "estimated_output_tokens": 0, "estimated_total_tokens": 0, "usage_source": "ai_cli_json_usage", "cli_elapsed_ms_total": 12318.05, "sql_execution_elapsed_ms_total": 6.13, "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_62d16fe52ca1c024/cli/conversation.jsonl", "note": "Executed through a local AI CLI with structured usage metadata." }}1{"timestamp": "2026-05-19T15:29:39.474798+00:00", "event_type": "ai_cli_sql_generation", "engine": "v2-cli:codex", "attempt": 1, "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", "returncode": 0, "elapsed_ms": 12318.05, "started_at": "2026-05-19T15:29:27.155916+00:00", "ended_at": "2026-05-19T15:29:39.474025+00:00", "prompt_metrics": {"chars": 9180, "bytes_utf8": 9182, "lines": 240, "estimated_tokens": null}, "response_metrics": {"chars": 382, "bytes_utf8": 382, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 14645, "cached_input_tokens": 12032, "output_tokens": 326, "reasoning_output_tokens": 231}, "stderr_preview": "", "stdout_preview": "{\"sql\":\"-- template_id: tpl_h2o_group_sum\\nSELECT \\\"duration\\\", SUM(CAST(\\\"release_year\\\" AS INTEGER)) AS total_measure\\nFROM \\\"c17\\\"\\nGROUP BY \\\"duration\\\"\\nORDER BY total_measure DESC;\",\"notes\":\"Used the provided grouped numeric sum template with \\\"duration\\\" as the grouping column and CAST(\\\"release_year\\\" AS INTEGER) because the schema stores release_year as TEXT in SQLite.\"}"}Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_15cc45fa409f886d/final_answer.txtAdded+1
Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_15cc45fa409f886d/generated_sql.sqlAdded+18
Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_15cc45fa409f886d/query_results.jsonlAdded+1
Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_15cc45fa409f886d/run_manifest.jsonAdded+57
Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_15cc45fa409f886d/usage_summary.jsonAdded+9
Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_2b2a8533d2f64cb5/final_answer.txtAdded+1
Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_2b2a8533d2f64cb5/generated_sql.sqlAdded+25
Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_2b2a8533d2f64cb5/query_results.jsonlAdded+1
Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_2b2a8533d2f64cb5/run_manifest.jsonAdded+57
Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_2b2a8533d2f64cb5/usage_summary.jsonAdded+9
Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_31c9a4fc73628ea3/final_answer.txtAdded+2
Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_31c9a4fc73628ea3/generated_sql.sqlAdded+18
Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_31c9a4fc73628ea3/query_results.jsonlAdded+1
Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_31c9a4fc73628ea3/run_manifest.jsonAdded+93
Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_31c9a4fc73628ea3/trace.jsonlAdded+1
Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_31c9a4fc73628ea3/usage_summary.jsonAdded+20
Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_38fdc0bc695484aa/final_answer.txtAdded+2
Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_38fdc0bc695484aa/generated_sql.sqlAdded+18
Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_38fdc0bc695484aa/query_results.jsonlAdded+1
Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_38fdc0bc695484aa/run_manifest.jsonAdded+93
Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_38fdc0bc695484aa/trace.jsonlAdded+1
Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_38fdc0bc695484aa/usage_summary.jsonAdded+20
Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_3cb596830d4aa9b2/final_answer.txtAdded+2
Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_3cb596830d4aa9b2/generated_sql.sqlAdded+30
Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_3cb596830d4aa9b2/query_results.jsonlAdded+1
Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_3cb596830d4aa9b2/run_manifest.jsonAdded+89
Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_3cb596830d4aa9b2/trace.jsonlAdded+1
Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_3cb596830d4aa9b2/usage_summary.jsonAdded+20
Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_4213daea7e63fde3/final_answer.txtAdded+1
Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_4213daea7e63fde3/generated_sql.sqlAdded+21
Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_4213daea7e63fde3/query_results.jsonlAdded+1
Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_4213daea7e63fde3/run_manifest.jsonAdded+60
Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_4213daea7e63fde3/usage_summary.jsonAdded+9
Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_445fa932b7595a9f/final_answer.txtAdded+2
Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_445fa932b7595a9f/generated_sql.sqlAdded+24
Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_445fa932b7595a9f/query_results.jsonlAdded+1
Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_445fa932b7595a9f/run_manifest.jsonAdded+87
Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_445fa932b7595a9f/trace.jsonlAdded+1
Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_445fa932b7595a9f/usage_summary.jsonAdded+20
Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_5d9587e3ed4fae70/final_answer.txtAdded+2
Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_5d9587e3ed4fae70/generated_sql.sqlAdded+18
Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_5d9587e3ed4fae70/query_results.jsonlAdded+1
Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_5d9587e3ed4fae70/run_manifest.jsonAdded+93
Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_5d9587e3ed4fae70/trace.jsonlAdded+1
Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_5d9587e3ed4fae70/usage_summary.jsonAdded+20
Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_62d16fe52ca1c024/final_answer.txtAdded+2
Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_62d16fe52ca1c024/generated_sql.sqlAdded+17
Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_62d16fe52ca1c024/query_results.jsonlAdded+1
Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_62d16fe52ca1c024/run_manifest.jsonAdded+89
Query/sql/v2/runs/v2_cli_20260502_081223_b/c17/artifacts/v2q_c17_62d16fe52ca1c024/trace.jsonlAdded+1