Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/artifacts/v2q_n16_620a591e8ffd8a02/query_results.jsonl +1 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/artifacts/v2q_n16_620a591e8ffd8a02/run_manifest.json +89 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/artifacts/v2q_n16_620a591e8ffd8a02/usage_summary.json +20 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/artifacts/v2q_n16_82e25e69082e0e68/run_manifest.json +69 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/artifacts/v2q_n16_82e25e69082e0e68/trace.jsonl +2 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/artifacts/v2q_n16_e5a5cb764d2f41a9/run_manifest.json +69 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/artifacts/v2q_n16_e5a5cb764d2f41a9/trace.jsonl +2 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_0021f5dfbee080c3.sql +69 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_06cf7c2c7a3b4e91.sql +21 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_0754ecff423f0836.sql +40 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_08817705c0b5f58c.sql +20 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_08e1ff53842a706c.sql +18 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_09cc22e51e3ce823.sql +20 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_0b730db30452939e.sql +17 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_0bc2bc172af0110b.sql +17 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_0c4230a864278f39.sql +20 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_0f407c6b5179afca.sql +17 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_10c10ba908d1de1a.sql +26 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_1648028c6095292e.sql +15 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_174a8a96df78039f.sql +64 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_1771618342c21a4c.sql +26 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_19850f66a09a8719.sql +21 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_1a7f4f74508ec2d0.sql +20 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_1ba3245ac74db2f7.sql +17 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_1cdd3abda6505ceb.sql +17 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_227fe236383aeb77.sql +17 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_2298278000d0b6f9.sql +19 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_25c1cb1192031448.sql +17 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_26ab4764498bb4d5.sql +17 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_27679dec2695a8db.sql +19 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_28caac5b6f8ab16f.sql +23 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_2ac5a27739012195.sql +26 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_2b88f53c71b93745.sql +26 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_2c7340fbc1fcf6bc.sql +19 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_2fbf3963c10acdb0.sql +18 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_305f7cbedb9062cf.sql +17 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_313c308659805f14.sql +26 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_317bf58cf406c164.sql +21 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_324a2682ca17fb5c.sql +62 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_32e7e8e04a062106.sql +59 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_3a98df6efd4d6fd9.sql +24 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_3ad24cade95e39a8.sql +19 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_3c01833eecb95c2b.sql +21 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_3c45c05a06ea8fbe.sql +17 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_3d83d9fd838ec4df.sql +18 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_3e284672c755ea61.sql +18 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_3f637702def523e3.sql +18 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_428f2144e175e284.sql +21 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_4454a69088ff069a.sql +25 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_46816bf1eca5159b.sql +23 -0
Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/artifacts/v2q_n16_620a591e8ffd8a02/query_results.jsonl
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 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 \"Class\", SUM(CAST(\"V13\" AS REAL)) AS group_value\n FROM \"n16\"\n GROUP BY \"Class\"\n), total AS (\n SELECT SUM(group_value) AS total_value\n FROM grouped\n)\nSELECT g.\"Class\", g.group_value\nFROM grouped AS g\nCROSS JOIN total AS t\nWHERE g.group_value > t.total_value * 0.1\nORDER BY g.group_value DESC;", "result": "{\"query\": \"-- template_id: tpl_tpch_relative_total_threshold\\nWITH grouped AS (\\n SELECT \\\"Class\\\", SUM(CAST(\\\"V13\\\" AS REAL)) AS group_value\\n FROM \\\"n16\\\"\\n GROUP BY \\\"Class\\\"\\n), total AS (\\n SELECT SUM(group_value) AS total_value\\n FROM grouped\\n)\\nSELECT g.\\\"Class\\\", g.group_value\\nFROM grouped AS g\\nCROSS JOIN total AS t\\nWHERE g.group_value > t.total_value * 0.1\\nORDER BY g.group_value DESC;\", \"columns\": [\"Class\", \"group_value\"], \"rows\": [{\"Class\": \"0\", \"group_value\": 53.79223800496469}], \"row_count_returned\": 1, \"row_limit\": 50, \"truncated\": false, \"elapsed_ms\": 277.29}"}
|
Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/artifacts/v2q_n16_620a591e8ffd8a02/run_manifest.json
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"run_id": "v2_cli_20260502_081223_c",
|
| 3 |
+
"dataset_id": "n16",
|
| 4 |
+
"started_at": "2026-05-19T15:46:59.811248+00:00",
|
| 5 |
+
"ended_at": "2026-05-19T15:47:08.421040+00:00",
|
| 6 |
+
"status": "completed",
|
| 7 |
+
"engine": "cli",
|
| 8 |
+
"question_record": {
|
| 9 |
+
"query_record_id": "v2q_n16_620a591e8ffd8a02",
|
| 10 |
+
"problem_id": "v2p_n16_2e7651da3aa43d3f",
|
| 11 |
+
"dataset_id": "n16",
|
| 12 |
+
"template_id": "tpl_tpch_relative_total_threshold",
|
| 13 |
+
"template_name": "Relative-to-Total Extreme Threshold",
|
| 14 |
+
"family_id": "tail_rarity_structure",
|
| 15 |
+
"canonical_subitem_id": "tail_mass_similarity",
|
| 16 |
+
"intended_facet_id": "tail_ranked_signal",
|
| 17 |
+
"variant_semantic_role": "filtered_stable_view",
|
| 18 |
+
"subitem_assignment_source": "planner_selected",
|
| 19 |
+
"source_kind": "agent",
|
| 20 |
+
"realization_mode": "agent",
|
| 21 |
+
"gate_priority": "primary",
|
| 22 |
+
"extended_family": false,
|
| 23 |
+
"question": "Use template Relative-to-Total Extreme Threshold to probe tail_mass_similarity with semantic role filtered_stable_view. Focus on group_col=Class, measure_col=V13.",
|
| 24 |
+
"bindings": {
|
| 25 |
+
"group_col": "Class",
|
| 26 |
+
"measure_col": "V13",
|
| 27 |
+
"top_k": 13,
|
| 28 |
+
"top_n": 4,
|
| 29 |
+
"num_tiles": 10,
|
| 30 |
+
"percentile_value": 0.9,
|
| 31 |
+
"z_threshold": 2.0,
|
| 32 |
+
"fraction_threshold": 0.1,
|
| 33 |
+
"baseline_multiplier": 1.5,
|
| 34 |
+
"baseline_fraction": 0.1,
|
| 35 |
+
"min_group_size": 5,
|
| 36 |
+
"min_support": 5,
|
| 37 |
+
"measure_threshold": 0.130003,
|
| 38 |
+
"time_grain": "month",
|
| 39 |
+
"lookback_rows": 3,
|
| 40 |
+
"current_period_start": "'2024-01-01'",
|
| 41 |
+
"current_period_end": "'2024-04-01'",
|
| 42 |
+
"previous_period_start": "'2023-10-01'",
|
| 43 |
+
"previous_period_end": "'2024-01-01'",
|
| 44 |
+
"drift_ratio_threshold": 0.8
|
| 45 |
+
},
|
| 46 |
+
"binding_roles": [
|
| 47 |
+
"group_col",
|
| 48 |
+
"measure_col"
|
| 49 |
+
],
|
| 50 |
+
"coverage_target_min": "5",
|
| 51 |
+
"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;",
|
| 52 |
+
"notes": [
|
| 53 |
+
"default_facets=tail_ranked_signal",
|
| 54 |
+
"template_selection_mode=rule",
|
| 55 |
+
"problem_index_within_template=2",
|
| 56 |
+
"sql_variant_index=1/2",
|
| 57 |
+
"binding_index=73"
|
| 58 |
+
],
|
| 59 |
+
"template_selection_mode": "rule",
|
| 60 |
+
"selected_template_rank": 7,
|
| 61 |
+
"problem_index_within_template": 2,
|
| 62 |
+
"sql_variant_index": 1,
|
| 63 |
+
"sql_variant_total": 2
|
| 64 |
+
},
|
| 65 |
+
"mode": "subitem_workload_v2",
|
| 66 |
+
"sql_source_version": "v2",
|
| 67 |
+
"sql_source_label": "v2_current",
|
| 68 |
+
"generated_sql_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_620a591e8ffd8a02.sql",
|
| 69 |
+
"usage_summary": {
|
| 70 |
+
"dataset_id": "n16",
|
| 71 |
+
"model": "v2-cli:codex",
|
| 72 |
+
"run_id": "v2q_n16_620a591e8ffd8a02",
|
| 73 |
+
"api_calls": 0,
|
| 74 |
+
"input_tokens": 17244,
|
| 75 |
+
"cached_input_tokens": 15744,
|
| 76 |
+
"output_tokens": 385,
|
| 77 |
+
"total_tokens": 17629,
|
| 78 |
+
"cost_usd": 0.0,
|
| 79 |
+
"ai_cli_calls": 1,
|
| 80 |
+
"estimated_input_tokens": 0,
|
| 81 |
+
"estimated_output_tokens": 0,
|
| 82 |
+
"estimated_total_tokens": 0,
|
| 83 |
+
"usage_source": "ai_cli_json_usage",
|
| 84 |
+
"cli_elapsed_ms_total": 8271.04,
|
| 85 |
+
"sql_execution_elapsed_ms_total": 277.29,
|
| 86 |
+
"conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_c/n16/artifacts/v2q_n16_620a591e8ffd8a02/cli/conversation.jsonl",
|
| 87 |
+
"note": "Executed through a local AI CLI with structured usage metadata."
|
| 88 |
+
}
|
| 89 |
+
}
|
Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/artifacts/v2q_n16_620a591e8ffd8a02/usage_summary.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dataset_id": "n16",
|
| 3 |
+
"model": "v2-cli:codex",
|
| 4 |
+
"run_id": "v2q_n16_620a591e8ffd8a02",
|
| 5 |
+
"api_calls": 0,
|
| 6 |
+
"input_tokens": 17244,
|
| 7 |
+
"cached_input_tokens": 15744,
|
| 8 |
+
"output_tokens": 385,
|
| 9 |
+
"total_tokens": 17629,
|
| 10 |
+
"cost_usd": 0.0,
|
| 11 |
+
"ai_cli_calls": 1,
|
| 12 |
+
"estimated_input_tokens": 0,
|
| 13 |
+
"estimated_output_tokens": 0,
|
| 14 |
+
"estimated_total_tokens": 0,
|
| 15 |
+
"usage_source": "ai_cli_json_usage",
|
| 16 |
+
"cli_elapsed_ms_total": 8271.04,
|
| 17 |
+
"sql_execution_elapsed_ms_total": 277.29,
|
| 18 |
+
"conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_c/n16/artifacts/v2q_n16_620a591e8ffd8a02/cli/conversation.jsonl",
|
| 19 |
+
"note": "Executed through a local AI CLI with structured usage metadata."
|
| 20 |
+
}
|
Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/artifacts/v2q_n16_82e25e69082e0e68/run_manifest.json
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"run_id": "v2_cli_20260502_081223_c",
|
| 3 |
+
"dataset_id": "n16",
|
| 4 |
+
"started_at": "2026-05-19T16:07:01.675349+00:00",
|
| 5 |
+
"ended_at": "2026-05-19T16:07:08.947182+00:00",
|
| 6 |
+
"status": "failed",
|
| 7 |
+
"engine": "cli",
|
| 8 |
+
"question_record": {
|
| 9 |
+
"query_record_id": "v2q_n16_82e25e69082e0e68",
|
| 10 |
+
"problem_id": "v2p_n16_72f6e35fb751184a",
|
| 11 |
+
"dataset_id": "n16",
|
| 12 |
+
"template_id": "tpl_tpch_thresholded_group_ranking",
|
| 13 |
+
"template_name": "Thresholded Group Ranking",
|
| 14 |
+
"family_id": "tail_rarity_structure",
|
| 15 |
+
"canonical_subitem_id": "tail_set_consistency",
|
| 16 |
+
"intended_facet_id": "low_support_extremes",
|
| 17 |
+
"variant_semantic_role": "rare_extreme_view",
|
| 18 |
+
"subitem_assignment_source": "planner_selected",
|
| 19 |
+
"source_kind": "agent",
|
| 20 |
+
"realization_mode": "agent",
|
| 21 |
+
"gate_priority": "primary",
|
| 22 |
+
"extended_family": false,
|
| 23 |
+
"question": "Use template Thresholded Group Ranking to probe tail_set_consistency with semantic role rare_extreme_view. Focus on group_col=Class, measure_col=V18.",
|
| 24 |
+
"bindings": {
|
| 25 |
+
"group_col": "Class",
|
| 26 |
+
"measure_col": "V18",
|
| 27 |
+
"top_k": 13,
|
| 28 |
+
"top_n": 5,
|
| 29 |
+
"num_tiles": 10,
|
| 30 |
+
"percentile_value": 0.95,
|
| 31 |
+
"z_threshold": 2.0,
|
| 32 |
+
"fraction_threshold": 0.1,
|
| 33 |
+
"baseline_multiplier": 1.5,
|
| 34 |
+
"baseline_fraction": 0.1,
|
| 35 |
+
"min_group_size": 5,
|
| 36 |
+
"min_support": 5,
|
| 37 |
+
"measure_threshold": 0.663909,
|
| 38 |
+
"time_grain": "month",
|
| 39 |
+
"lookback_rows": 3,
|
| 40 |
+
"current_period_start": "'2024-01-01'",
|
| 41 |
+
"current_period_end": "'2024-04-01'",
|
| 42 |
+
"previous_period_start": "'2023-10-01'",
|
| 43 |
+
"previous_period_end": "'2024-01-01'",
|
| 44 |
+
"drift_ratio_threshold": 0.8
|
| 45 |
+
},
|
| 46 |
+
"binding_roles": [
|
| 47 |
+
"group_col",
|
| 48 |
+
"measure_col"
|
| 49 |
+
],
|
| 50 |
+
"coverage_target_min": "5",
|
| 51 |
+
"runtime_sql_skeleton": "SELECT {group_col}, SUM({measure_col}) AS total_measure\nFROM {table}\nGROUP BY {group_col}\nHAVING SUM({measure_col}) > {measure_threshold}\nORDER BY total_measure DESC\nLIMIT {top_k};",
|
| 52 |
+
"notes": [
|
| 53 |
+
"default_facets=low_support_extremes",
|
| 54 |
+
"template_selection_mode=rule",
|
| 55 |
+
"problem_index_within_template=7",
|
| 56 |
+
"sql_variant_index=1/2",
|
| 57 |
+
"binding_index=138"
|
| 58 |
+
],
|
| 59 |
+
"template_selection_mode": "rule",
|
| 60 |
+
"selected_template_rank": 12,
|
| 61 |
+
"problem_index_within_template": 7,
|
| 62 |
+
"sql_variant_index": 1,
|
| 63 |
+
"sql_variant_total": 2
|
| 64 |
+
},
|
| 65 |
+
"mode": "subitem_workload_v2",
|
| 66 |
+
"sql_source_version": "v2",
|
| 67 |
+
"sql_source_label": "v2_current",
|
| 68 |
+
"error": "AI CLI command failed with exit code 1: "
|
| 69 |
+
}
|
Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/artifacts/v2q_n16_82e25e69082e0e68/trace.jsonl
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"timestamp": "2026-05-19T16:07:04.891455+00:00", "event_type": "ai_cli_sql_generation_error", "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": 1, "elapsed_ms": 3154.77, "started_at": "2026-05-19T16:07:01.735888+00:00", "ended_at": "2026-05-19T16:07:04.890689+00:00", "prompt_metrics": {"chars": 15293, "bytes_utf8": 15293, "lines": 468, "estimated_tokens": null}, "response_metrics": {"chars": 280, "bytes_utf8": 280, "lines": 4, "estimated_tokens": null}, "usage": {}, "stderr_preview": "", "stdout_preview": "{\"type\":\"thread.started\",\"thread_id\":\"019e40fd-9893-79c3-9c21-20e07126496d\"}\n{\"type\":\"turn.started\"}\n{\"type\":\"error\",\"message\":\"Quota exceeded. Check your plan and billing details.\"}\n{\"type\":\"turn.failed\",\"error\":{\"message\":\"Quota exceeded. Check your plan and billing details.\"}}", "error": "AI CLI command failed with exit code 1: "}
|
| 2 |
+
{"timestamp": "2026-05-19T16:07:08.947094+00:00", "event_type": "ai_cli_sql_generation_error", "engine": "v2-cli:codex", "attempt": 2, "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", "returncode": 1, "elapsed_ms": 3053.45, "started_at": "2026-05-19T16:07:05.892847+00:00", "ended_at": "2026-05-19T16:07:08.946337+00:00", "prompt_metrics": {"chars": 15293, "bytes_utf8": 15293, "lines": 468, "estimated_tokens": null}, "response_metrics": {"chars": 280, "bytes_utf8": 280, "lines": 4, "estimated_tokens": null}, "usage": {}, "stderr_preview": "", "stdout_preview": "{\"type\":\"thread.started\",\"thread_id\":\"019e40fd-a8a1-7003-b653-748d9b7be13f\"}\n{\"type\":\"turn.started\"}\n{\"type\":\"error\",\"message\":\"Quota exceeded. Check your plan and billing details.\"}\n{\"type\":\"turn.failed\",\"error\":{\"message\":\"Quota exceeded. Check your plan and billing details.\"}}", "error": "AI CLI command failed with exit code 1: "}
|
Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/artifacts/v2q_n16_e5a5cb764d2f41a9/run_manifest.json
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"run_id": "v2_cli_20260502_081223_c",
|
| 3 |
+
"dataset_id": "n16",
|
| 4 |
+
"started_at": "2026-05-19T16:06:16.281843+00:00",
|
| 5 |
+
"ended_at": "2026-05-19T16:06:23.365463+00:00",
|
| 6 |
+
"status": "failed",
|
| 7 |
+
"engine": "cli",
|
| 8 |
+
"question_record": {
|
| 9 |
+
"query_record_id": "v2q_n16_e5a5cb764d2f41a9",
|
| 10 |
+
"problem_id": "v2p_n16_a877008c8399dd01",
|
| 11 |
+
"dataset_id": "n16",
|
| 12 |
+
"template_id": "tpl_tpch_thresholded_group_ranking",
|
| 13 |
+
"template_name": "Thresholded Group Ranking",
|
| 14 |
+
"family_id": "tail_rarity_structure",
|
| 15 |
+
"canonical_subitem_id": "tail_mass_similarity",
|
| 16 |
+
"intended_facet_id": "tail_ranked_signal",
|
| 17 |
+
"variant_semantic_role": "rare_extreme_view",
|
| 18 |
+
"subitem_assignment_source": "planner_selected",
|
| 19 |
+
"source_kind": "agent",
|
| 20 |
+
"realization_mode": "agent",
|
| 21 |
+
"gate_priority": "primary",
|
| 22 |
+
"extended_family": false,
|
| 23 |
+
"question": "Use template Thresholded Group Ranking to probe tail_mass_similarity with semantic role rare_extreme_view. Focus on group_col=Class, measure_col=V15.",
|
| 24 |
+
"bindings": {
|
| 25 |
+
"group_col": "Class",
|
| 26 |
+
"measure_col": "V15",
|
| 27 |
+
"top_k": 15,
|
| 28 |
+
"top_n": 7,
|
| 29 |
+
"num_tiles": 10,
|
| 30 |
+
"percentile_value": 0.95,
|
| 31 |
+
"z_threshold": 2.0,
|
| 32 |
+
"fraction_threshold": 0.05,
|
| 33 |
+
"baseline_multiplier": 1.75,
|
| 34 |
+
"baseline_fraction": 0.1,
|
| 35 |
+
"min_group_size": 5,
|
| 36 |
+
"min_support": 4,
|
| 37 |
+
"measure_threshold": 0.654391,
|
| 38 |
+
"time_grain": "month",
|
| 39 |
+
"lookback_rows": 3,
|
| 40 |
+
"current_period_start": "'2024-01-01'",
|
| 41 |
+
"current_period_end": "'2024-04-01'",
|
| 42 |
+
"previous_period_start": "'2023-10-01'",
|
| 43 |
+
"previous_period_end": "'2024-01-01'",
|
| 44 |
+
"drift_ratio_threshold": 0.8
|
| 45 |
+
},
|
| 46 |
+
"binding_roles": [
|
| 47 |
+
"group_col",
|
| 48 |
+
"measure_col"
|
| 49 |
+
],
|
| 50 |
+
"coverage_target_min": "5",
|
| 51 |
+
"runtime_sql_skeleton": "SELECT {group_col}, SUM({measure_col}) AS total_measure\nFROM {table}\nGROUP BY {group_col}\nHAVING SUM({measure_col}) > {measure_threshold}\nORDER BY total_measure DESC\nLIMIT {top_k};",
|
| 52 |
+
"notes": [
|
| 53 |
+
"default_facets=tail_ranked_signal",
|
| 54 |
+
"template_selection_mode=rule",
|
| 55 |
+
"problem_index_within_template=4",
|
| 56 |
+
"sql_variant_index=2/2",
|
| 57 |
+
"binding_index=135"
|
| 58 |
+
],
|
| 59 |
+
"template_selection_mode": "rule",
|
| 60 |
+
"selected_template_rank": 12,
|
| 61 |
+
"problem_index_within_template": 4,
|
| 62 |
+
"sql_variant_index": 2,
|
| 63 |
+
"sql_variant_total": 2
|
| 64 |
+
},
|
| 65 |
+
"mode": "subitem_workload_v2",
|
| 66 |
+
"sql_source_version": "v2",
|
| 67 |
+
"sql_source_label": "v2_current",
|
| 68 |
+
"error": "AI CLI command failed with exit code 1: "
|
| 69 |
+
}
|
Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/artifacts/v2q_n16_e5a5cb764d2f41a9/trace.jsonl
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"timestamp": "2026-05-19T16:06:19.295048+00:00", "event_type": "ai_cli_sql_generation_error", "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": 1, "elapsed_ms": 2954.35, "started_at": "2026-05-19T16:06:16.339398+00:00", "ended_at": "2026-05-19T16:06:19.293781+00:00", "prompt_metrics": {"chars": 15295, "bytes_utf8": 15295, "lines": 468, "estimated_tokens": null}, "response_metrics": {"chars": 280, "bytes_utf8": 280, "lines": 4, "estimated_tokens": null}, "usage": {}, "stderr_preview": "", "stdout_preview": "{\"type\":\"thread.started\",\"thread_id\":\"019e40fc-e71e-76d0-a573-eec83cf40c32\"}\n{\"type\":\"turn.started\"}\n{\"type\":\"error\",\"message\":\"Quota exceeded. Check your plan and billing details.\"}\n{\"type\":\"turn.failed\",\"error\":{\"message\":\"Quota exceeded. Check your plan and billing details.\"}}", "error": "AI CLI command failed with exit code 1: "}
|
| 2 |
+
{"timestamp": "2026-05-19T16:06:23.365377+00:00", "event_type": "ai_cli_sql_generation_error", "engine": "v2-cli:codex", "attempt": 2, "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", "returncode": 1, "elapsed_ms": 3067.65, "started_at": "2026-05-19T16:06:20.296916+00:00", "ended_at": "2026-05-19T16:06:23.364607+00:00", "prompt_metrics": {"chars": 15295, "bytes_utf8": 15295, "lines": 468, "estimated_tokens": null}, "response_metrics": {"chars": 280, "bytes_utf8": 280, "lines": 4, "estimated_tokens": null}, "usage": {}, "stderr_preview": "", "stdout_preview": "{\"type\":\"thread.started\",\"thread_id\":\"019e40fc-f693-71d1-8c6b-c2864470fac1\"}\n{\"type\":\"turn.started\"}\n{\"type\":\"error\",\"message\":\"Quota exceeded. Check your plan and billing details.\"}\n{\"type\":\"turn.failed\",\"error\":{\"message\":\"Quota exceeded. Check your plan and billing details.\"}}", "error": "AI CLI command failed with exit code 1: "}
|
Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_0021f5dfbee080c3.sql
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_c
|
| 4 |
+
-- sql_source_dataset_id: n16
|
| 5 |
+
-- family_id: tail_rarity_structure
|
| 6 |
+
-- canonical_subitem_id: tail_concentration_consistency
|
| 7 |
+
-- intended_facet_id: rare_target_concentration
|
| 8 |
+
-- variant_semantic_role: ranked_signal_view
|
| 9 |
+
-- template_id: tpl_grouped_percentile_point
|
| 10 |
+
-- query_record_id: v2q_n16_0021f5dfbee080c3
|
| 11 |
+
-- problem_id: v2p_n16_2192f807e196e2ec
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
WITH "__base" AS (
|
| 15 |
+
SELECT
|
| 16 |
+
"Class",
|
| 17 |
+
CAST("V28" AS REAL) AS "V28_value"
|
| 18 |
+
FROM "n16"
|
| 19 |
+
WHERE NULLIF(TRIM("Class"), '') IS NOT NULL
|
| 20 |
+
AND NULLIF(TRIM("V28"), '') IS NOT NULL
|
| 21 |
+
),
|
| 22 |
+
"__ranked" AS (
|
| 23 |
+
SELECT
|
| 24 |
+
"Class",
|
| 25 |
+
"V28_value",
|
| 26 |
+
ROW_NUMBER() OVER (
|
| 27 |
+
PARTITION BY "Class"
|
| 28 |
+
ORDER BY "V28_value"
|
| 29 |
+
) AS "rn",
|
| 30 |
+
COUNT(*) OVER (
|
| 31 |
+
PARTITION BY "Class"
|
| 32 |
+
) AS "cnt"
|
| 33 |
+
FROM "__base"
|
| 34 |
+
),
|
| 35 |
+
"__params" AS (
|
| 36 |
+
SELECT DISTINCT
|
| 37 |
+
"Class",
|
| 38 |
+
(1.0 + (0.9 * ("cnt" - 1))) AS "pos",
|
| 39 |
+
CAST(1.0 + (0.9 * ("cnt" - 1)) AS INTEGER) AS "lower_rn",
|
| 40 |
+
CAST(1.0 + (0.9 * ("cnt" - 1)) AS INTEGER) + CASE
|
| 41 |
+
WHEN (1.0 + (0.9 * ("cnt" - 1))) > CAST(1.0 + (0.9 * ("cnt" - 1)) AS INTEGER) THEN 1
|
| 42 |
+
ELSE 0
|
| 43 |
+
END AS "upper_rn"
|
| 44 |
+
FROM "__ranked"
|
| 45 |
+
),
|
| 46 |
+
"__picked" AS (
|
| 47 |
+
SELECT
|
| 48 |
+
p."Class",
|
| 49 |
+
p."pos",
|
| 50 |
+
p."lower_rn",
|
| 51 |
+
p."upper_rn",
|
| 52 |
+
lr."V28_value" AS "lower_value",
|
| 53 |
+
ur."V28_value" AS "upper_value"
|
| 54 |
+
FROM "__params" AS p
|
| 55 |
+
JOIN "__ranked" AS lr
|
| 56 |
+
ON lr."Class" = p."Class"
|
| 57 |
+
AND lr."rn" = p."lower_rn"
|
| 58 |
+
JOIN "__ranked" AS ur
|
| 59 |
+
ON ur."Class" = p."Class"
|
| 60 |
+
AND ur."rn" = p."upper_rn"
|
| 61 |
+
)
|
| 62 |
+
SELECT
|
| 63 |
+
"Class",
|
| 64 |
+
CASE
|
| 65 |
+
WHEN "lower_rn" = "upper_rn" THEN "lower_value"
|
| 66 |
+
ELSE "lower_value" + ("pos" - "lower_rn") * ("upper_value" - "lower_value")
|
| 67 |
+
END AS "percentile_measure"
|
| 68 |
+
FROM "__picked"
|
| 69 |
+
ORDER BY "percentile_measure" DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_06cf7c2c7a3b4e91.sql
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_c
|
| 4 |
+
-- sql_source_dataset_id: n16
|
| 5 |
+
-- family_id: cardinality_structure
|
| 6 |
+
-- canonical_subitem_id: high_cardinality_response_stability
|
| 7 |
+
-- intended_facet_id: target_cardinality_cross_section
|
| 8 |
+
-- variant_semantic_role: focused_target_view
|
| 9 |
+
-- template_id: tpl_cardinality_high_card_response_stability
|
| 10 |
+
-- query_record_id: v2q_n16_06cf7c2c7a3b4e91
|
| 11 |
+
-- problem_id: v2p_n16_6a7801ce8d3d9633
|
| 12 |
+
-- realization_mode: deterministic
|
| 13 |
+
-- source_kind: deterministic
|
| 14 |
+
SELECT
|
| 15 |
+
"V5",
|
| 16 |
+
COUNT(*) AS support,
|
| 17 |
+
AVG("V3") AS avg_response
|
| 18 |
+
FROM "n16"
|
| 19 |
+
GROUP BY "V5"
|
| 20 |
+
HAVING COUNT(*) >= 5.0
|
| 21 |
+
ORDER BY support DESC, avg_response DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_0754ecff423f0836.sql
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_c
|
| 4 |
+
-- sql_source_dataset_id: n16
|
| 5 |
+
-- family_id: tail_rarity_structure
|
| 6 |
+
-- canonical_subitem_id: tail_concentration_consistency
|
| 7 |
+
-- intended_facet_id: rare_target_concentration
|
| 8 |
+
-- variant_semantic_role: focused_target_view
|
| 9 |
+
-- template_id: tpl_grouped_percentile_point
|
| 10 |
+
-- query_record_id: v2q_n16_0754ecff423f0836
|
| 11 |
+
-- problem_id: v2p_n16_5b633e1017171759
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
WITH "ranked" AS (
|
| 15 |
+
SELECT
|
| 16 |
+
"Class",
|
| 17 |
+
CAST("V1" AS REAL) AS "v1_value",
|
| 18 |
+
ROW_NUMBER() OVER (
|
| 19 |
+
PARTITION BY "Class"
|
| 20 |
+
ORDER BY CAST("V1" AS REAL)
|
| 21 |
+
) AS "rn",
|
| 22 |
+
COUNT(*) OVER (
|
| 23 |
+
PARTITION BY "Class"
|
| 24 |
+
) AS "cnt"
|
| 25 |
+
FROM "n16"
|
| 26 |
+
WHERE "Class" IS NOT NULL
|
| 27 |
+
AND "V1" IS NOT NULL
|
| 28 |
+
),
|
| 29 |
+
"picked" AS (
|
| 30 |
+
SELECT
|
| 31 |
+
"Class",
|
| 32 |
+
"v1_value"
|
| 33 |
+
FROM "ranked"
|
| 34 |
+
WHERE "rn" = (("cnt" * 95 + 99) / 100)
|
| 35 |
+
)
|
| 36 |
+
SELECT
|
| 37 |
+
"Class",
|
| 38 |
+
"v1_value" AS "percentile_measure"
|
| 39 |
+
FROM "picked"
|
| 40 |
+
ORDER BY "percentile_measure" DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_08817705c0b5f58c.sql
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_c
|
| 4 |
+
-- sql_source_dataset_id: n16
|
| 5 |
+
-- family_id: tail_rarity_structure
|
| 6 |
+
-- canonical_subitem_id: tail_mass_similarity
|
| 7 |
+
-- intended_facet_id: tail_ranked_signal
|
| 8 |
+
-- variant_semantic_role: count_distribution
|
| 9 |
+
-- template_id: tpl_tail_low_support_group_count_v2
|
| 10 |
+
-- query_record_id: v2q_n16_08817705c0b5f58c
|
| 11 |
+
-- problem_id: v2p_n16_9d5610049c696ed0
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
SELECT
|
| 15 |
+
"Class",
|
| 16 |
+
COUNT(*) AS support
|
| 17 |
+
FROM "n16"
|
| 18 |
+
GROUP BY "Class"
|
| 19 |
+
ORDER BY support ASC, "Class"
|
| 20 |
+
LIMIT 13;
|
Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_08e1ff53842a706c.sql
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_c
|
| 4 |
+
-- sql_source_dataset_id: n16
|
| 5 |
+
-- family_id: conditional_dependency_structure
|
| 6 |
+
-- canonical_subitem_id: dependency_strength_similarity
|
| 7 |
+
-- intended_facet_id: pairwise_conditional_dependency
|
| 8 |
+
-- variant_semantic_role: focused_target_view
|
| 9 |
+
-- template_id: tpl_m4_group_condition_rate
|
| 10 |
+
-- query_record_id: v2q_n16_08e1ff53842a706c
|
| 11 |
+
-- problem_id: v2p_n16_b7279801a5d62969
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
SELECT "Class",
|
| 15 |
+
AVG(CASE WHEN "Class" = '1' THEN 1 ELSE 0 END) AS condition_rate
|
| 16 |
+
FROM "n16"
|
| 17 |
+
GROUP BY "Class"
|
| 18 |
+
ORDER BY condition_rate DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_09cc22e51e3ce823.sql
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_c
|
| 4 |
+
-- sql_source_dataset_id: n16
|
| 5 |
+
-- family_id: tail_rarity_structure
|
| 6 |
+
-- canonical_subitem_id: tail_set_consistency
|
| 7 |
+
-- intended_facet_id: low_support_extremes
|
| 8 |
+
-- variant_semantic_role: rare_extreme_view
|
| 9 |
+
-- template_id: tpl_tail_low_support_group_count_v2
|
| 10 |
+
-- query_record_id: v2q_n16_09cc22e51e3ce823
|
| 11 |
+
-- problem_id: v2p_n16_f88cf6ed0cc26cf3
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
SELECT
|
| 15 |
+
"Class",
|
| 16 |
+
COUNT(*) AS support
|
| 17 |
+
FROM "n16"
|
| 18 |
+
GROUP BY "Class"
|
| 19 |
+
ORDER BY support ASC, "Class"
|
| 20 |
+
LIMIT 11;
|
Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_0b730db30452939e.sql
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_c
|
| 4 |
+
-- sql_source_dataset_id: n16
|
| 5 |
+
-- family_id: conditional_dependency_structure
|
| 6 |
+
-- canonical_subitem_id: slice_level_consistency
|
| 7 |
+
-- intended_facet_id: conditional_interaction_hotspots
|
| 8 |
+
-- variant_semantic_role: ranked_signal_view
|
| 9 |
+
-- template_id: tpl_m4_window_partition_avg
|
| 10 |
+
-- query_record_id: v2q_n16_0b730db30452939e
|
| 11 |
+
-- problem_id: v2p_n16_2b825da339b1790b
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
SELECT DISTINCT "Class",
|
| 15 |
+
AVG(CAST("V24" AS REAL)) OVER (PARTITION BY "Class") AS avg_measure
|
| 16 |
+
FROM "n16"
|
| 17 |
+
ORDER BY avg_measure DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_0bc2bc172af0110b.sql
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_c
|
| 4 |
+
-- sql_source_dataset_id: n16
|
| 5 |
+
-- family_id: subgroup_structure
|
| 6 |
+
-- canonical_subitem_id: subgroup_size_stability
|
| 7 |
+
-- intended_facet_id: subgroup_distribution_shift
|
| 8 |
+
-- variant_semantic_role: count_distribution
|
| 9 |
+
-- template_id: tpl_clickbench_group_count
|
| 10 |
+
-- query_record_id: v2q_n16_0bc2bc172af0110b
|
| 11 |
+
-- problem_id: v2p_n16_2d40cba77b8493a7
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
SELECT "Class", COUNT(*) AS "row_count"
|
| 15 |
+
FROM "n16"
|
| 16 |
+
GROUP BY "Class"
|
| 17 |
+
ORDER BY "row_count" DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_0c4230a864278f39.sql
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_c
|
| 4 |
+
-- sql_source_dataset_id: n16
|
| 5 |
+
-- family_id: tail_rarity_structure
|
| 6 |
+
-- canonical_subitem_id: tail_set_consistency
|
| 7 |
+
-- intended_facet_id: low_support_extremes
|
| 8 |
+
-- variant_semantic_role: rare_extreme_view
|
| 9 |
+
-- template_id: tpl_tail_low_support_group_count_v2
|
| 10 |
+
-- query_record_id: v2q_n16_0c4230a864278f39
|
| 11 |
+
-- problem_id: v2p_n16_aba15e85bc2a3eca
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
SELECT
|
| 15 |
+
"Class",
|
| 16 |
+
COUNT(*) AS support
|
| 17 |
+
FROM "n16"
|
| 18 |
+
GROUP BY "Class"
|
| 19 |
+
ORDER BY support ASC, "Class"
|
| 20 |
+
LIMIT 10;
|
Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_0f407c6b5179afca.sql
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_c
|
| 4 |
+
-- sql_source_dataset_id: n16
|
| 5 |
+
-- family_id: conditional_dependency_structure
|
| 6 |
+
-- canonical_subitem_id: direction_consistency
|
| 7 |
+
-- intended_facet_id: conditional_rate_shift
|
| 8 |
+
-- variant_semantic_role: ranked_signal_view
|
| 9 |
+
-- template_id: tpl_m4_window_partition_avg
|
| 10 |
+
-- query_record_id: v2q_n16_0f407c6b5179afca
|
| 11 |
+
-- problem_id: v2p_n16_dd683bcccfabfbad
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
SELECT DISTINCT "Class",
|
| 15 |
+
AVG(CAST("V19" AS REAL)) OVER (PARTITION BY "Class") AS avg_measure
|
| 16 |
+
FROM "n16"
|
| 17 |
+
ORDER BY avg_measure DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_10c10ba908d1de1a.sql
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_c
|
| 4 |
+
-- sql_source_dataset_id: n16
|
| 5 |
+
-- family_id: tail_rarity_structure
|
| 6 |
+
-- canonical_subitem_id: tail_mass_similarity
|
| 7 |
+
-- intended_facet_id: tail_ranked_signal
|
| 8 |
+
-- variant_semantic_role: count_distribution
|
| 9 |
+
-- template_id: tpl_tpch_relative_total_threshold
|
| 10 |
+
-- query_record_id: v2q_n16_10c10ba908d1de1a
|
| 11 |
+
-- problem_id: v2p_n16_e4decd29905d6129
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
WITH grouped AS (
|
| 15 |
+
SELECT "Class", SUM(CAST("V19" AS REAL)) AS group_value
|
| 16 |
+
FROM "n16"
|
| 17 |
+
GROUP BY "Class"
|
| 18 |
+
), total AS (
|
| 19 |
+
SELECT SUM(group_value) AS total_value
|
| 20 |
+
FROM grouped
|
| 21 |
+
)
|
| 22 |
+
SELECT g."Class", g.group_value
|
| 23 |
+
FROM grouped AS g
|
| 24 |
+
CROSS JOIN total AS t
|
| 25 |
+
WHERE g.group_value > t.total_value * 0.05
|
| 26 |
+
ORDER BY g.group_value DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_1648028c6095292e.sql
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_c
|
| 4 |
+
-- sql_source_dataset_id: n16
|
| 5 |
+
-- family_id: tail_rarity_structure
|
| 6 |
+
-- canonical_subitem_id: tail_set_consistency
|
| 7 |
+
-- intended_facet_id: low_support_extremes
|
| 8 |
+
-- variant_semantic_role: rare_extreme_view
|
| 9 |
+
-- template_id: tpl_threshold_rarity_cdf
|
| 10 |
+
-- query_record_id: v2q_n16_1648028c6095292e
|
| 11 |
+
-- problem_id: v2p_n16_d1fdaa9df12a26b4
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
SELECT AVG(CASE WHEN CAST("V18" AS REAL) <= 0.663909 THEN 1 ELSE 0 END) AS "empirical_cdf_at_threshold"
|
| 15 |
+
FROM "n16";
|
Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_174a8a96df78039f.sql
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_c
|
| 4 |
+
-- sql_source_dataset_id: n16
|
| 5 |
+
-- family_id: tail_rarity_structure
|
| 6 |
+
-- canonical_subitem_id: tail_concentration_consistency
|
| 7 |
+
-- intended_facet_id: rare_target_concentration
|
| 8 |
+
-- variant_semantic_role: focused_target_view
|
| 9 |
+
-- template_id: tpl_grouped_percentile_point
|
| 10 |
+
-- query_record_id: v2q_n16_174a8a96df78039f
|
| 11 |
+
-- problem_id: v2p_n16_234a47355da3170f
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
WITH "ordered" AS (
|
| 15 |
+
SELECT
|
| 16 |
+
"Class",
|
| 17 |
+
CAST("Time" AS REAL) AS "time_value",
|
| 18 |
+
ROW_NUMBER() OVER (
|
| 19 |
+
PARTITION BY "Class"
|
| 20 |
+
ORDER BY CAST("Time" AS REAL)
|
| 21 |
+
) AS "rn",
|
| 22 |
+
COUNT(*) OVER (
|
| 23 |
+
PARTITION BY "Class"
|
| 24 |
+
) AS "cnt"
|
| 25 |
+
FROM "n16"
|
| 26 |
+
WHERE "Class" IS NOT NULL
|
| 27 |
+
AND "Time" IS NOT NULL
|
| 28 |
+
),
|
| 29 |
+
"positions" AS (
|
| 30 |
+
SELECT DISTINCT
|
| 31 |
+
"Class",
|
| 32 |
+
(1.0 + 0.95 * ("cnt" - 1)) AS "pos",
|
| 33 |
+
CAST((1.0 + 0.95 * ("cnt" - 1)) AS INTEGER) AS "lower_rn",
|
| 34 |
+
CAST((1.0 + 0.95 * ("cnt" - 1)) AS INTEGER) + CASE
|
| 35 |
+
WHEN (1.0 + 0.95 * ("cnt" - 1)) > CAST((1.0 + 0.95 * ("cnt" - 1)) AS INTEGER) THEN 1
|
| 36 |
+
ELSE 0
|
| 37 |
+
END AS "upper_rn"
|
| 38 |
+
FROM "ordered"
|
| 39 |
+
),
|
| 40 |
+
"bounds" AS (
|
| 41 |
+
SELECT
|
| 42 |
+
p."Class",
|
| 43 |
+
p."pos",
|
| 44 |
+
p."lower_rn",
|
| 45 |
+
p."upper_rn",
|
| 46 |
+
MAX(CASE WHEN o."rn" = p."lower_rn" THEN o."time_value" END) AS "lower_value",
|
| 47 |
+
MAX(CASE WHEN o."rn" = p."upper_rn" THEN o."time_value" END) AS "upper_value"
|
| 48 |
+
FROM "positions" AS p
|
| 49 |
+
JOIN "ordered" AS o
|
| 50 |
+
ON o."Class" = p."Class"
|
| 51 |
+
GROUP BY
|
| 52 |
+
p."Class",
|
| 53 |
+
p."pos",
|
| 54 |
+
p."lower_rn",
|
| 55 |
+
p."upper_rn"
|
| 56 |
+
)
|
| 57 |
+
SELECT
|
| 58 |
+
"Class",
|
| 59 |
+
CASE
|
| 60 |
+
WHEN "lower_rn" = "upper_rn" THEN "lower_value"
|
| 61 |
+
ELSE "lower_value" + (("pos" - "lower_rn") * ("upper_value" - "lower_value"))
|
| 62 |
+
END AS "percentile_measure"
|
| 63 |
+
FROM "bounds"
|
| 64 |
+
ORDER BY "percentile_measure" DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_1771618342c21a4c.sql
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_c
|
| 4 |
+
-- sql_source_dataset_id: n16
|
| 5 |
+
-- family_id: tail_rarity_structure
|
| 6 |
+
-- canonical_subitem_id: tail_mass_similarity
|
| 7 |
+
-- intended_facet_id: tail_ranked_signal
|
| 8 |
+
-- variant_semantic_role: filtered_stable_view
|
| 9 |
+
-- template_id: tpl_tpch_relative_total_threshold
|
| 10 |
+
-- query_record_id: v2q_n16_1771618342c21a4c
|
| 11 |
+
-- problem_id: v2p_n16_2fde22851c1deb25
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
WITH grouped AS (
|
| 15 |
+
SELECT "Class", SUM(CAST("V20" AS REAL)) AS group_value
|
| 16 |
+
FROM "n16"
|
| 17 |
+
GROUP BY "Class"
|
| 18 |
+
), total AS (
|
| 19 |
+
SELECT SUM(group_value) AS total_value
|
| 20 |
+
FROM grouped
|
| 21 |
+
)
|
| 22 |
+
SELECT g."Class", g.group_value
|
| 23 |
+
FROM grouped AS g
|
| 24 |
+
CROSS JOIN total AS t
|
| 25 |
+
WHERE g.group_value > t.total_value * 0.05
|
| 26 |
+
ORDER BY g.group_value DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_19850f66a09a8719.sql
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_c
|
| 4 |
+
-- sql_source_dataset_id: n16
|
| 5 |
+
-- family_id: cardinality_structure
|
| 6 |
+
-- canonical_subitem_id: high_cardinality_response_stability
|
| 7 |
+
-- intended_facet_id: target_cardinality_cross_section
|
| 8 |
+
-- variant_semantic_role: focused_target_view
|
| 9 |
+
-- template_id: tpl_cardinality_high_card_response_stability
|
| 10 |
+
-- query_record_id: v2q_n16_19850f66a09a8719
|
| 11 |
+
-- problem_id: v2p_n16_427b936215285e15
|
| 12 |
+
-- realization_mode: deterministic
|
| 13 |
+
-- source_kind: deterministic
|
| 14 |
+
SELECT
|
| 15 |
+
"V7",
|
| 16 |
+
COUNT(*) AS support,
|
| 17 |
+
AVG("V1") AS avg_response
|
| 18 |
+
FROM "n16"
|
| 19 |
+
GROUP BY "V7"
|
| 20 |
+
HAVING COUNT(*) >= 5.0
|
| 21 |
+
ORDER BY support DESC, avg_response DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_1a7f4f74508ec2d0.sql
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_c
|
| 4 |
+
-- sql_source_dataset_id: n16
|
| 5 |
+
-- family_id: conditional_dependency_structure
|
| 6 |
+
-- canonical_subitem_id: dependency_strength_similarity
|
| 7 |
+
-- intended_facet_id: pairwise_conditional_dependency
|
| 8 |
+
-- variant_semantic_role: within_group_proportion
|
| 9 |
+
-- template_id: tpl_tpcds_within_group_share
|
| 10 |
+
-- query_record_id: v2q_n16_1a7f4f74508ec2d0
|
| 11 |
+
-- problem_id: v2p_n16_3d9faf92ec7288fe
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
SELECT "Class", "Amount",
|
| 15 |
+
SUM(CAST("V28" AS REAL)) AS total_measure,
|
| 16 |
+
SUM(CAST("V28" AS REAL)) * 100.0 / SUM(SUM(CAST("V28" AS REAL))) OVER (PARTITION BY "Class") AS share_within_group
|
| 17 |
+
FROM "n16"
|
| 18 |
+
GROUP BY "Class", "Amount"
|
| 19 |
+
ORDER BY share_within_group DESC
|
| 20 |
+
LIMIT 13;
|
Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_1ba3245ac74db2f7.sql
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_c
|
| 4 |
+
-- sql_source_dataset_id: n16
|
| 5 |
+
-- family_id: conditional_dependency_structure
|
| 6 |
+
-- canonical_subitem_id: slice_level_consistency
|
| 7 |
+
-- intended_facet_id: conditional_interaction_hotspots
|
| 8 |
+
-- variant_semantic_role: filtered_stable_view
|
| 9 |
+
-- template_id: tpl_m4_window_partition_avg
|
| 10 |
+
-- query_record_id: v2q_n16_1ba3245ac74db2f7
|
| 11 |
+
-- problem_id: v2p_n16_6f1f208a30a2bde2
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
SELECT DISTINCT "Class",
|
| 15 |
+
AVG(CAST("V24" AS REAL)) OVER (PARTITION BY "Class") AS avg_measure
|
| 16 |
+
FROM "n16"
|
| 17 |
+
ORDER BY avg_measure DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_1cdd3abda6505ceb.sql
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_c
|
| 4 |
+
-- sql_source_dataset_id: n16
|
| 5 |
+
-- family_id: subgroup_structure
|
| 6 |
+
-- canonical_subitem_id: subgroup_size_stability
|
| 7 |
+
-- intended_facet_id: subgroup_distribution_shift
|
| 8 |
+
-- variant_semantic_role: count_distribution
|
| 9 |
+
-- template_id: tpl_clickbench_group_count
|
| 10 |
+
-- query_record_id: v2q_n16_1cdd3abda6505ceb
|
| 11 |
+
-- problem_id: v2p_n16_f4f8b641ea5ae50d
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
SELECT "Class", COUNT(*) AS row_count
|
| 15 |
+
FROM "n16"
|
| 16 |
+
GROUP BY "Class"
|
| 17 |
+
ORDER BY row_count DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_227fe236383aeb77.sql
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_c
|
| 4 |
+
-- sql_source_dataset_id: n16
|
| 5 |
+
-- family_id: conditional_dependency_structure
|
| 6 |
+
-- canonical_subitem_id: direction_consistency
|
| 7 |
+
-- intended_facet_id: conditional_rate_shift
|
| 8 |
+
-- variant_semantic_role: ranked_signal_view
|
| 9 |
+
-- template_id: tpl_m4_window_partition_avg
|
| 10 |
+
-- query_record_id: v2q_n16_227fe236383aeb77
|
| 11 |
+
-- problem_id: v2p_n16_ec3282bd5a7f5083
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
SELECT DISTINCT "Class",
|
| 15 |
+
AVG(CAST("V21" AS REAL)) OVER (PARTITION BY "Class") AS avg_measure
|
| 16 |
+
FROM "n16"
|
| 17 |
+
ORDER BY avg_measure DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_2298278000d0b6f9.sql
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_c
|
| 4 |
+
-- sql_source_dataset_id: n16
|
| 5 |
+
-- family_id: conditional_dependency_structure
|
| 6 |
+
-- canonical_subitem_id: dependency_strength_similarity
|
| 7 |
+
-- intended_facet_id: pairwise_conditional_dependency
|
| 8 |
+
-- variant_semantic_role: focused_target_view
|
| 9 |
+
-- template_id: tpl_tpcds_within_group_share
|
| 10 |
+
-- query_record_id: v2q_n16_2298278000d0b6f9
|
| 11 |
+
-- problem_id: v2p_n16_0dd196fd30794779
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
SELECT "Class", "Amount",
|
| 15 |
+
SUM(CAST("V28" AS REAL)) AS total_measure,
|
| 16 |
+
SUM(CAST("V28" AS REAL)) * 100.0 / SUM(SUM(CAST("V28" AS REAL))) OVER (PARTITION BY "Class") AS share_within_group
|
| 17 |
+
FROM "n16"
|
| 18 |
+
GROUP BY "Class", "Amount"
|
| 19 |
+
ORDER BY share_within_group DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_25c1cb1192031448.sql
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_c
|
| 4 |
+
-- sql_source_dataset_id: n16
|
| 5 |
+
-- family_id: subgroup_structure
|
| 6 |
+
-- canonical_subitem_id: internal_profile_stability
|
| 7 |
+
-- intended_facet_id: subgroup_distribution_shift
|
| 8 |
+
-- variant_semantic_role: collapsed_target_view
|
| 9 |
+
-- template_id: tpl_h2o_group_sum
|
| 10 |
+
-- query_record_id: v2q_n16_25c1cb1192031448
|
| 11 |
+
-- problem_id: v2p_n16_4cff57e8ae911f25
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
SELECT "Class", SUM(CAST("V6" AS REAL)) AS total_measure
|
| 15 |
+
FROM "n16"
|
| 16 |
+
GROUP BY "Class"
|
| 17 |
+
ORDER BY total_measure DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_26ab4764498bb4d5.sql
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_c
|
| 4 |
+
-- sql_source_dataset_id: n16
|
| 5 |
+
-- family_id: subgroup_structure
|
| 6 |
+
-- canonical_subitem_id: internal_profile_stability
|
| 7 |
+
-- intended_facet_id: subgroup_rank_order
|
| 8 |
+
-- variant_semantic_role: collapsed_target_view
|
| 9 |
+
-- template_id: tpl_h2o_group_sum
|
| 10 |
+
-- query_record_id: v2q_n16_26ab4764498bb4d5
|
| 11 |
+
-- problem_id: v2p_n16_218120e69131f8bd
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
SELECT "Class", SUM(CAST("V4" AS REAL)) AS total_measure
|
| 15 |
+
FROM "n16"
|
| 16 |
+
GROUP BY "Class"
|
| 17 |
+
ORDER BY total_measure DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_27679dec2695a8db.sql
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_c
|
| 4 |
+
-- sql_source_dataset_id: n16
|
| 5 |
+
-- family_id: tail_rarity_structure
|
| 6 |
+
-- canonical_subitem_id: tail_set_consistency
|
| 7 |
+
-- intended_facet_id: low_support_extremes
|
| 8 |
+
-- variant_semantic_role: filtered_stable_view
|
| 9 |
+
-- template_id: tpl_tpch_thresholded_group_ranking
|
| 10 |
+
-- query_record_id: v2q_n16_27679dec2695a8db
|
| 11 |
+
-- problem_id: v2p_n16_3f93160e78f2a03f
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
SELECT "Class", SUM(CAST("V16" AS REAL)) AS total_measure
|
| 15 |
+
FROM "n16"
|
| 16 |
+
GROUP BY "Class"
|
| 17 |
+
HAVING SUM(CAST("V16" AS REAL)) > 0.683926
|
| 18 |
+
ORDER BY total_measure DESC
|
| 19 |
+
LIMIT 16;
|
Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_28caac5b6f8ab16f.sql
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_c
|
| 4 |
+
-- sql_source_dataset_id: n16
|
| 5 |
+
-- family_id: tail_rarity_structure
|
| 6 |
+
-- canonical_subitem_id: tail_set_consistency
|
| 7 |
+
-- intended_facet_id: low_support_extremes
|
| 8 |
+
-- variant_semantic_role: rare_extreme_view
|
| 9 |
+
-- template_id: tpl_m4_quantile_tail_slice
|
| 10 |
+
-- query_record_id: v2q_n16_28caac5b6f8ab16f
|
| 11 |
+
-- problem_id: v2p_n16_ed64826b65940b88
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
WITH buckets AS (
|
| 15 |
+
SELECT CAST("V4" AS REAL) AS "V4",
|
| 16 |
+
NTILE(10) OVER (ORDER BY CAST("V4" AS REAL) DESC) AS tail_bucket
|
| 17 |
+
FROM "n16"
|
| 18 |
+
WHERE "V4" IS NOT NULL
|
| 19 |
+
)
|
| 20 |
+
SELECT "V4"
|
| 21 |
+
FROM buckets
|
| 22 |
+
WHERE tail_bucket = 1
|
| 23 |
+
ORDER BY "V4" DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_2ac5a27739012195.sql
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_c
|
| 4 |
+
-- sql_source_dataset_id: n16
|
| 5 |
+
-- family_id: conditional_dependency_structure
|
| 6 |
+
-- canonical_subitem_id: direction_consistency
|
| 7 |
+
-- intended_facet_id: conditional_rate_shift
|
| 8 |
+
-- variant_semantic_role: contrastive_conditional_view
|
| 9 |
+
-- template_id: tpl_m4_group_ratio_two_conditions
|
| 10 |
+
-- query_record_id: v2q_n16_2ac5a27739012195
|
| 11 |
+
-- problem_id: v2p_n16_160578987361a9b4
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
WITH grouped AS (
|
| 15 |
+
SELECT
|
| 16 |
+
"Class",
|
| 17 |
+
SUM(CASE WHEN "Class" = '0' THEN 1 ELSE 0 END) AS numerator_count,
|
| 18 |
+
SUM(CASE WHEN "Class" = '1' THEN 1 ELSE 0 END) AS denominator_count
|
| 19 |
+
FROM "n16"
|
| 20 |
+
GROUP BY "Class"
|
| 21 |
+
)
|
| 22 |
+
SELECT
|
| 23 |
+
"Class",
|
| 24 |
+
CAST(numerator_count AS FLOAT) / NULLIF(denominator_count, 0) AS condition_ratio
|
| 25 |
+
FROM grouped
|
| 26 |
+
ORDER BY condition_ratio DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_2b88f53c71b93745.sql
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_c
|
| 4 |
+
-- sql_source_dataset_id: n16
|
| 5 |
+
-- family_id: tail_rarity_structure
|
| 6 |
+
-- canonical_subitem_id: tail_mass_similarity
|
| 7 |
+
-- intended_facet_id: tail_ranked_signal
|
| 8 |
+
-- variant_semantic_role: count_distribution
|
| 9 |
+
-- template_id: tpl_tpch_relative_total_threshold
|
| 10 |
+
-- query_record_id: v2q_n16_2b88f53c71b93745
|
| 11 |
+
-- problem_id: v2p_n16_d092dac641c04a1d
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
WITH grouped AS (
|
| 15 |
+
SELECT "Class", SUM(CAST("V16" AS REAL)) AS group_value
|
| 16 |
+
FROM "n16"
|
| 17 |
+
GROUP BY "Class"
|
| 18 |
+
), total AS (
|
| 19 |
+
SELECT SUM(group_value) AS total_value
|
| 20 |
+
FROM grouped
|
| 21 |
+
)
|
| 22 |
+
SELECT g."Class", g.group_value
|
| 23 |
+
FROM grouped AS g
|
| 24 |
+
CROSS JOIN total AS t
|
| 25 |
+
WHERE g.group_value > t.total_value * 0.1
|
| 26 |
+
ORDER BY g.group_value DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_2c7340fbc1fcf6bc.sql
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_c
|
| 4 |
+
-- sql_source_dataset_id: n16
|
| 5 |
+
-- family_id: conditional_dependency_structure
|
| 6 |
+
-- canonical_subitem_id: dependency_strength_similarity
|
| 7 |
+
-- intended_facet_id: pairwise_conditional_dependency
|
| 8 |
+
-- variant_semantic_role: within_group_proportion
|
| 9 |
+
-- template_id: tpl_tpcds_within_group_share
|
| 10 |
+
-- query_record_id: v2q_n16_2c7340fbc1fcf6bc
|
| 11 |
+
-- problem_id: v2p_n16_2048a10d1c6a8d07
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
SELECT "Class", "V3",
|
| 15 |
+
SUM(CAST("V2" AS REAL)) AS total_measure,
|
| 16 |
+
SUM(CAST("V2" AS REAL)) * 100.0 / SUM(SUM(CAST("V2" AS REAL))) OVER (PARTITION BY "Class") AS share_within_group
|
| 17 |
+
FROM "n16"
|
| 18 |
+
GROUP BY "Class", "V3"
|
| 19 |
+
ORDER BY share_within_group DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_2fbf3963c10acdb0.sql
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_c
|
| 4 |
+
-- sql_source_dataset_id: n16
|
| 5 |
+
-- family_id: conditional_dependency_structure
|
| 6 |
+
-- canonical_subitem_id: direction_consistency
|
| 7 |
+
-- intended_facet_id: conditional_rate_shift
|
| 8 |
+
-- variant_semantic_role: within_group_proportion
|
| 9 |
+
-- template_id: tpl_m4_group_condition_rate
|
| 10 |
+
-- query_record_id: v2q_n16_2fbf3963c10acdb0
|
| 11 |
+
-- problem_id: v2p_n16_bb57384dc00a5339
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
SELECT "Class",
|
| 15 |
+
AVG(CASE WHEN "Class" = '1' THEN 1 ELSE 0 END) AS "condition_rate"
|
| 16 |
+
FROM "n16"
|
| 17 |
+
GROUP BY "Class"
|
| 18 |
+
ORDER BY "condition_rate" DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_305f7cbedb9062cf.sql
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_c
|
| 4 |
+
-- sql_source_dataset_id: n16
|
| 5 |
+
-- family_id: subgroup_structure
|
| 6 |
+
-- canonical_subitem_id: internal_profile_stability
|
| 7 |
+
-- intended_facet_id: subgroup_rank_order
|
| 8 |
+
-- variant_semantic_role: collapsed_target_view
|
| 9 |
+
-- template_id: tpl_h2o_group_sum
|
| 10 |
+
-- query_record_id: v2q_n16_305f7cbedb9062cf
|
| 11 |
+
-- problem_id: v2p_n16_6063a2c739b9f84d
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
SELECT "Class", SUM(CAST("V6" AS REAL)) AS "total_measure"
|
| 15 |
+
FROM "n16"
|
| 16 |
+
GROUP BY "Class"
|
| 17 |
+
ORDER BY "total_measure" DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_313c308659805f14.sql
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_c
|
| 4 |
+
-- sql_source_dataset_id: n16
|
| 5 |
+
-- family_id: tail_rarity_structure
|
| 6 |
+
-- canonical_subitem_id: tail_mass_similarity
|
| 7 |
+
-- intended_facet_id: tail_ranked_signal
|
| 8 |
+
-- variant_semantic_role: count_distribution
|
| 9 |
+
-- template_id: tpl_tpch_relative_total_threshold
|
| 10 |
+
-- query_record_id: v2q_n16_313c308659805f14
|
| 11 |
+
-- problem_id: v2p_n16_4626799179ab1487
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
WITH grouped AS (
|
| 15 |
+
SELECT "Class", SUM(CAST("V20" AS REAL)) AS group_value
|
| 16 |
+
FROM "n16"
|
| 17 |
+
GROUP BY "Class"
|
| 18 |
+
), total AS (
|
| 19 |
+
SELECT SUM(group_value) AS total_value
|
| 20 |
+
FROM grouped
|
| 21 |
+
)
|
| 22 |
+
SELECT g."Class", g.group_value
|
| 23 |
+
FROM grouped AS g
|
| 24 |
+
CROSS JOIN total AS t
|
| 25 |
+
WHERE g.group_value > t.total_value * 0.1
|
| 26 |
+
ORDER BY g.group_value DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_317bf58cf406c164.sql
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_c
|
| 4 |
+
-- sql_source_dataset_id: n16
|
| 5 |
+
-- family_id: cardinality_structure
|
| 6 |
+
-- canonical_subitem_id: high_cardinality_response_stability
|
| 7 |
+
-- intended_facet_id: target_cardinality_cross_section
|
| 8 |
+
-- variant_semantic_role: focused_target_view
|
| 9 |
+
-- template_id: tpl_cardinality_high_card_response_stability
|
| 10 |
+
-- query_record_id: v2q_n16_317bf58cf406c164
|
| 11 |
+
-- problem_id: v2p_n16_ac38566adc2c2710
|
| 12 |
+
-- realization_mode: deterministic
|
| 13 |
+
-- source_kind: deterministic
|
| 14 |
+
SELECT
|
| 15 |
+
"V10",
|
| 16 |
+
COUNT(*) AS support,
|
| 17 |
+
AVG("V2") AS avg_response
|
| 18 |
+
FROM "n16"
|
| 19 |
+
GROUP BY "V10"
|
| 20 |
+
HAVING COUNT(*) >= 5.0
|
| 21 |
+
ORDER BY support DESC, avg_response DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_324a2682ca17fb5c.sql
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_c
|
| 4 |
+
-- sql_source_dataset_id: n16
|
| 5 |
+
-- family_id: tail_rarity_structure
|
| 6 |
+
-- canonical_subitem_id: tail_concentration_consistency
|
| 7 |
+
-- intended_facet_id: rare_target_concentration
|
| 8 |
+
-- variant_semantic_role: ranked_signal_view
|
| 9 |
+
-- template_id: tpl_grouped_percentile_point
|
| 10 |
+
-- query_record_id: v2q_n16_324a2682ca17fb5c
|
| 11 |
+
-- problem_id: v2p_n16_f74ce4e85a014b19
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
WITH "ordered" AS (
|
| 15 |
+
SELECT
|
| 16 |
+
"Class",
|
| 17 |
+
CAST("V1" AS REAL) AS "V1_value",
|
| 18 |
+
ROW_NUMBER() OVER (
|
| 19 |
+
PARTITION BY "Class"
|
| 20 |
+
ORDER BY CAST("V1" AS REAL)
|
| 21 |
+
) AS "rn",
|
| 22 |
+
COUNT(*) OVER (PARTITION BY "Class") AS "cnt"
|
| 23 |
+
FROM "n16"
|
| 24 |
+
WHERE "Class" IS NOT NULL
|
| 25 |
+
AND "V1" IS NOT NULL
|
| 26 |
+
),
|
| 27 |
+
"positions" AS (
|
| 28 |
+
SELECT DISTINCT
|
| 29 |
+
"Class",
|
| 30 |
+
(1.0 + ("cnt" - 1) * 0.9) AS "pos",
|
| 31 |
+
CAST(1.0 + ("cnt" - 1) * 0.9 AS INTEGER) AS "lower_rn",
|
| 32 |
+
CASE
|
| 33 |
+
WHEN (1.0 + ("cnt" - 1) * 0.9) = CAST(1.0 + ("cnt" - 1) * 0.9 AS INTEGER)
|
| 34 |
+
THEN CAST(1.0 + ("cnt" - 1) * 0.9 AS INTEGER)
|
| 35 |
+
ELSE CAST(1.0 + ("cnt" - 1) * 0.9 AS INTEGER) + 1
|
| 36 |
+
END AS "upper_rn"
|
| 37 |
+
FROM "ordered"
|
| 38 |
+
),
|
| 39 |
+
"bounds" AS (
|
| 40 |
+
SELECT
|
| 41 |
+
p."Class",
|
| 42 |
+
p."pos",
|
| 43 |
+
p."lower_rn",
|
| 44 |
+
p."upper_rn",
|
| 45 |
+
lo."V1_value" AS "lower_value",
|
| 46 |
+
hi."V1_value" AS "upper_value"
|
| 47 |
+
FROM "positions" AS p
|
| 48 |
+
JOIN "ordered" AS lo
|
| 49 |
+
ON lo."Class" = p."Class"
|
| 50 |
+
AND lo."rn" = p."lower_rn"
|
| 51 |
+
JOIN "ordered" AS hi
|
| 52 |
+
ON hi."Class" = p."Class"
|
| 53 |
+
AND hi."rn" = p."upper_rn"
|
| 54 |
+
)
|
| 55 |
+
SELECT
|
| 56 |
+
"Class",
|
| 57 |
+
CASE
|
| 58 |
+
WHEN "lower_rn" = "upper_rn" THEN "lower_value"
|
| 59 |
+
ELSE "lower_value" + ("pos" - "lower_rn") * ("upper_value" - "lower_value")
|
| 60 |
+
END AS "percentile_measure"
|
| 61 |
+
FROM "bounds"
|
| 62 |
+
ORDER BY "percentile_measure" DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_32e7e8e04a062106.sql
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_c
|
| 4 |
+
-- sql_source_dataset_id: n16
|
| 5 |
+
-- family_id: tail_rarity_structure
|
| 6 |
+
-- canonical_subitem_id: tail_concentration_consistency
|
| 7 |
+
-- intended_facet_id: rare_target_concentration
|
| 8 |
+
-- variant_semantic_role: focused_target_view
|
| 9 |
+
-- template_id: tpl_grouped_percentile_point
|
| 10 |
+
-- query_record_id: v2q_n16_32e7e8e04a062106
|
| 11 |
+
-- problem_id: v2p_n16_456f84aa75ed13af
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
WITH "ranked" AS (
|
| 15 |
+
SELECT
|
| 16 |
+
"Class",
|
| 17 |
+
CAST("V24" AS REAL) AS "measure_value",
|
| 18 |
+
ROW_NUMBER() OVER (
|
| 19 |
+
PARTITION BY "Class"
|
| 20 |
+
ORDER BY CAST("V24" AS REAL)
|
| 21 |
+
) AS "rn",
|
| 22 |
+
COUNT(*) OVER (
|
| 23 |
+
PARTITION BY "Class"
|
| 24 |
+
) AS "cnt"
|
| 25 |
+
FROM "n16"
|
| 26 |
+
WHERE "Class" IS NOT NULL
|
| 27 |
+
AND "V24" IS NOT NULL
|
| 28 |
+
),
|
| 29 |
+
"positions" AS (
|
| 30 |
+
SELECT
|
| 31 |
+
"Class",
|
| 32 |
+
"measure_value",
|
| 33 |
+
"rn",
|
| 34 |
+
"cnt",
|
| 35 |
+
(1.0 + (0.95 * ("cnt" - 1))) AS "target_rank",
|
| 36 |
+
CAST((1.0 + (0.95 * ("cnt" - 1))) AS INTEGER) AS "lower_rank",
|
| 37 |
+
CASE
|
| 38 |
+
WHEN (1.0 + (0.95 * ("cnt" - 1))) = CAST((1.0 + (0.95 * ("cnt" - 1))) AS INTEGER)
|
| 39 |
+
THEN CAST((1.0 + (0.95 * ("cnt" - 1))) AS INTEGER)
|
| 40 |
+
ELSE CAST((1.0 + (0.95 * ("cnt" - 1))) AS INTEGER) + 1
|
| 41 |
+
END AS "upper_rank"
|
| 42 |
+
FROM "ranked"
|
| 43 |
+
)
|
| 44 |
+
SELECT
|
| 45 |
+
"Class",
|
| 46 |
+
CASE
|
| 47 |
+
WHEN MAX("lower_rank") = MAX("upper_rank") THEN
|
| 48 |
+
MAX(CASE WHEN "rn" = "lower_rank" THEN "measure_value" END)
|
| 49 |
+
ELSE
|
| 50 |
+
MAX(CASE WHEN "rn" = "lower_rank" THEN "measure_value" END) +
|
| 51 |
+
(MAX("target_rank") - MAX("lower_rank")) *
|
| 52 |
+
(
|
| 53 |
+
MAX(CASE WHEN "rn" = "upper_rank" THEN "measure_value" END) -
|
| 54 |
+
MAX(CASE WHEN "rn" = "lower_rank" THEN "measure_value" END)
|
| 55 |
+
)
|
| 56 |
+
END AS "percentile_measure"
|
| 57 |
+
FROM "positions"
|
| 58 |
+
GROUP BY "Class"
|
| 59 |
+
ORDER BY "percentile_measure" DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_3a98df6efd4d6fd9.sql
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_c
|
| 4 |
+
-- sql_source_dataset_id: n16
|
| 5 |
+
-- family_id: conditional_dependency_structure
|
| 6 |
+
-- canonical_subitem_id: direction_consistency
|
| 7 |
+
-- intended_facet_id: conditional_rate_shift
|
| 8 |
+
-- variant_semantic_role: contrastive_conditional_view
|
| 9 |
+
-- template_id: tpl_m4_group_ratio_two_conditions
|
| 10 |
+
-- query_record_id: v2q_n16_3a98df6efd4d6fd9
|
| 11 |
+
-- problem_id: v2p_n16_38a69bfb2b91dfe9
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
WITH grouped AS (
|
| 15 |
+
SELECT "Class",
|
| 16 |
+
SUM(CASE WHEN "Class" = '0' THEN 1 ELSE 0 END) AS numerator_count,
|
| 17 |
+
SUM(CASE WHEN "Class" = '1' THEN 1 ELSE 0 END) AS denominator_count
|
| 18 |
+
FROM "n16"
|
| 19 |
+
GROUP BY "Class"
|
| 20 |
+
)
|
| 21 |
+
SELECT "Class",
|
| 22 |
+
CAST(numerator_count AS FLOAT) / NULLIF(denominator_count, 0) AS condition_ratio
|
| 23 |
+
FROM grouped
|
| 24 |
+
ORDER BY condition_ratio DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_3ad24cade95e39a8.sql
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_c
|
| 4 |
+
-- sql_source_dataset_id: n16
|
| 5 |
+
-- family_id: conditional_dependency_structure
|
| 6 |
+
-- canonical_subitem_id: dependency_strength_similarity
|
| 7 |
+
-- intended_facet_id: pairwise_conditional_dependency
|
| 8 |
+
-- variant_semantic_role: within_group_proportion
|
| 9 |
+
-- template_id: tpl_tpcds_within_group_share
|
| 10 |
+
-- query_record_id: v2q_n16_3ad24cade95e39a8
|
| 11 |
+
-- problem_id: v2p_n16_8fb5f160e39b5ead
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
SELECT "Class", "V25",
|
| 15 |
+
SUM(CAST("V24" AS REAL)) AS total_measure,
|
| 16 |
+
SUM(CAST("V24" AS REAL)) * 100.0 / NULLIF(SUM(SUM(CAST("V24" AS REAL))) OVER (PARTITION BY "Class"), 0) AS share_within_group
|
| 17 |
+
FROM "n16"
|
| 18 |
+
GROUP BY "Class", "V25"
|
| 19 |
+
ORDER BY share_within_group DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_3c01833eecb95c2b.sql
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_c
|
| 4 |
+
-- sql_source_dataset_id: n16
|
| 5 |
+
-- family_id: cardinality_structure
|
| 6 |
+
-- canonical_subitem_id: high_cardinality_response_stability
|
| 7 |
+
-- intended_facet_id: target_cardinality_cross_section
|
| 8 |
+
-- variant_semantic_role: focused_target_view
|
| 9 |
+
-- template_id: tpl_cardinality_high_card_response_stability
|
| 10 |
+
-- query_record_id: v2q_n16_3c01833eecb95c2b
|
| 11 |
+
-- problem_id: v2p_n16_76d59a3b63a765c6
|
| 12 |
+
-- realization_mode: deterministic
|
| 13 |
+
-- source_kind: deterministic
|
| 14 |
+
SELECT
|
| 15 |
+
"V2",
|
| 16 |
+
COUNT(*) AS support,
|
| 17 |
+
AVG("Time") AS avg_response
|
| 18 |
+
FROM "n16"
|
| 19 |
+
GROUP BY "V2"
|
| 20 |
+
HAVING COUNT(*) >= 5.0
|
| 21 |
+
ORDER BY support DESC, avg_response DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_3c45c05a06ea8fbe.sql
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_c
|
| 4 |
+
-- sql_source_dataset_id: n16
|
| 5 |
+
-- family_id: subgroup_structure
|
| 6 |
+
-- canonical_subitem_id: internal_profile_stability
|
| 7 |
+
-- intended_facet_id: subgroup_distribution_shift
|
| 8 |
+
-- variant_semantic_role: collapsed_target_view
|
| 9 |
+
-- template_id: tpl_h2o_group_sum
|
| 10 |
+
-- query_record_id: v2q_n16_3c45c05a06ea8fbe
|
| 11 |
+
-- problem_id: v2p_n16_15f024c14c67b728
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
SELECT "Class", SUM(CAST("V3" AS REAL)) AS "total_measure"
|
| 15 |
+
FROM "n16"
|
| 16 |
+
GROUP BY "Class"
|
| 17 |
+
ORDER BY "total_measure" DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_3d83d9fd838ec4df.sql
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_c
|
| 4 |
+
-- sql_source_dataset_id: n16
|
| 5 |
+
-- family_id: conditional_dependency_structure
|
| 6 |
+
-- canonical_subitem_id: dependency_strength_similarity
|
| 7 |
+
-- intended_facet_id: pairwise_conditional_dependency
|
| 8 |
+
-- variant_semantic_role: focused_target_view
|
| 9 |
+
-- template_id: tpl_m4_group_condition_rate
|
| 10 |
+
-- query_record_id: v2q_n16_3d83d9fd838ec4df
|
| 11 |
+
-- problem_id: v2p_n16_0abc0069b5426c41
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
SELECT "Class",
|
| 15 |
+
AVG(CASE WHEN "Class" = '1' THEN 1 ELSE 0 END) AS condition_rate
|
| 16 |
+
FROM "n16"
|
| 17 |
+
GROUP BY "Class"
|
| 18 |
+
ORDER BY condition_rate DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_3e284672c755ea61.sql
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_c
|
| 4 |
+
-- sql_source_dataset_id: n16
|
| 5 |
+
-- family_id: conditional_dependency_structure
|
| 6 |
+
-- canonical_subitem_id: slice_level_consistency
|
| 7 |
+
-- intended_facet_id: conditional_interaction_hotspots
|
| 8 |
+
-- variant_semantic_role: ranked_signal_view
|
| 9 |
+
-- template_id: tpl_m4_window_partition_avg
|
| 10 |
+
-- query_record_id: v2q_n16_3e284672c755ea61
|
| 11 |
+
-- problem_id: v2p_n16_254f5dbb9a943480
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
SELECT DISTINCT
|
| 15 |
+
"Class",
|
| 16 |
+
AVG(CAST("V22" AS REAL)) OVER (PARTITION BY "Class") AS avg_measure
|
| 17 |
+
FROM "n16"
|
| 18 |
+
ORDER BY avg_measure DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_3f637702def523e3.sql
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_c
|
| 4 |
+
-- sql_source_dataset_id: n16
|
| 5 |
+
-- family_id: conditional_dependency_structure
|
| 6 |
+
-- canonical_subitem_id: direction_consistency
|
| 7 |
+
-- intended_facet_id: conditional_rate_shift
|
| 8 |
+
-- variant_semantic_role: within_group_proportion
|
| 9 |
+
-- template_id: tpl_m4_group_condition_rate
|
| 10 |
+
-- query_record_id: v2q_n16_3f637702def523e3
|
| 11 |
+
-- problem_id: v2p_n16_3c11a6da6df636c6
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
SELECT "Class",
|
| 15 |
+
AVG(CASE WHEN "Class" = '1' THEN 1 ELSE 0 END) AS "condition_rate"
|
| 16 |
+
FROM "n16"
|
| 17 |
+
GROUP BY "Class"
|
| 18 |
+
ORDER BY "condition_rate" DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_428f2144e175e284.sql
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_c
|
| 4 |
+
-- sql_source_dataset_id: n16
|
| 5 |
+
-- family_id: cardinality_structure
|
| 6 |
+
-- canonical_subitem_id: high_cardinality_response_stability
|
| 7 |
+
-- intended_facet_id: target_cardinality_cross_section
|
| 8 |
+
-- variant_semantic_role: focused_target_view
|
| 9 |
+
-- template_id: tpl_cardinality_high_card_response_stability
|
| 10 |
+
-- query_record_id: v2q_n16_428f2144e175e284
|
| 11 |
+
-- problem_id: v2p_n16_d7f1015a94b13098
|
| 12 |
+
-- realization_mode: deterministic
|
| 13 |
+
-- source_kind: deterministic
|
| 14 |
+
SELECT
|
| 15 |
+
"V15",
|
| 16 |
+
COUNT(*) AS support,
|
| 17 |
+
AVG("V1") AS avg_response
|
| 18 |
+
FROM "n16"
|
| 19 |
+
GROUP BY "V15"
|
| 20 |
+
HAVING COUNT(*) >= 5.0
|
| 21 |
+
ORDER BY support DESC, avg_response DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_4454a69088ff069a.sql
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_c
|
| 4 |
+
-- sql_source_dataset_id: n16
|
| 5 |
+
-- family_id: cardinality_structure
|
| 6 |
+
-- canonical_subitem_id: support_rank_profile_consistency
|
| 7 |
+
-- intended_facet_id: support_concentration
|
| 8 |
+
-- variant_semantic_role: count_distribution
|
| 9 |
+
-- template_id: tpl_cardinality_support_rank_profile
|
| 10 |
+
-- query_record_id: v2q_n16_4454a69088ff069a
|
| 11 |
+
-- problem_id: v2p_n16_859b521330a16756
|
| 12 |
+
-- realization_mode: deterministic
|
| 13 |
+
-- source_kind: deterministic
|
| 14 |
+
WITH grouped AS (
|
| 15 |
+
SELECT "Class" AS value_label, COUNT(*) AS support
|
| 16 |
+
FROM "n16"
|
| 17 |
+
GROUP BY "Class"
|
| 18 |
+
)
|
| 19 |
+
SELECT
|
| 20 |
+
value_label,
|
| 21 |
+
support,
|
| 22 |
+
CAST(support AS FLOAT) / NULLIF(SUM(support) OVER (), 0) AS support_share,
|
| 23 |
+
ROW_NUMBER() OVER (ORDER BY support DESC, value_label) AS support_rank
|
| 24 |
+
FROM grouped
|
| 25 |
+
ORDER BY support DESC, value_label;
|
Query/sql/v2/runs/v2_cli_20260502_081223_c/n16/sql/v2q_n16_46816bf1eca5159b.sql
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_c
|
| 4 |
+
-- sql_source_dataset_id: n16
|
| 5 |
+
-- family_id: tail_rarity_structure
|
| 6 |
+
-- canonical_subitem_id: tail_set_consistency
|
| 7 |
+
-- intended_facet_id: low_support_extremes
|
| 8 |
+
-- variant_semantic_role: rare_extreme_view
|
| 9 |
+
-- template_id: tpl_m4_quantile_tail_slice
|
| 10 |
+
-- query_record_id: v2q_n16_46816bf1eca5159b
|
| 11 |
+
-- problem_id: v2p_n16_26d0451054301a9b
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
WITH buckets AS (
|
| 15 |
+
SELECT CAST("V6" AS REAL) AS "V6",
|
| 16 |
+
NTILE(10) OVER (ORDER BY CAST("V6" AS REAL) DESC) AS tail_bucket
|
| 17 |
+
FROM "n16"
|
| 18 |
+
WHERE "V6" IS NOT NULL
|
| 19 |
+
)
|
| 20 |
+
SELECT "V6"
|
| 21 |
+
FROM buckets
|
| 22 |
+
WHERE tail_bucket = 1
|
| 23 |
+
ORDER BY "V6" DESC;
|