Upload Query/sql/v4 runs smoke
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_016279e05b0beb15/final_answer.txt +1 -0
- Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_016279e05b0beb15/generated_sql.sql +20 -0
- Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_016279e05b0beb15/query_results.jsonl +1 -0
- Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_016279e05b0beb15/run_manifest.json +76 -0
- Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_016279e05b0beb15/usage_summary.json +9 -0
- Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_02b69913d3879aa5/final_answer.txt +1 -0
- Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_02b69913d3879aa5/generated_sql.sql +18 -0
- Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_02b69913d3879aa5/query_results.jsonl +1 -0
- Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_02b69913d3879aa5/run_manifest.json +82 -0
- Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_02b69913d3879aa5/usage_summary.json +9 -0
- Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_02decc38441289c5/final_answer.txt +1 -0
- Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_02decc38441289c5/generated_sql.sql +19 -0
- Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_02decc38441289c5/query_results.jsonl +1 -0
- Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_02decc38441289c5/run_manifest.json +82 -0
- Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_02decc38441289c5/usage_summary.json +9 -0
- Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_034415e85fd9f3c3/final_answer.txt +1 -0
- Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_034415e85fd9f3c3/generated_sql.sql +19 -0
- Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_034415e85fd9f3c3/query_results.jsonl +1 -0
- Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_034415e85fd9f3c3/run_manifest.json +80 -0
- Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_034415e85fd9f3c3/usage_summary.json +9 -0
- Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_040cd7db47ae0614/final_answer.txt +1 -0
- Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_040cd7db47ae0614/generated_sql.sql +18 -0
- Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_040cd7db47ae0614/query_results.jsonl +1 -0
- Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_040cd7db47ae0614/run_manifest.json +81 -0
- Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_040cd7db47ae0614/usage_summary.json +9 -0
- Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_0430aead08e04f13/final_answer.txt +1 -0
- Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_0430aead08e04f13/generated_sql.sql +25 -0
- Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_0430aead08e04f13/query_results.jsonl +1 -0
- Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_0430aead08e04f13/run_manifest.json +57 -0
- Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_0430aead08e04f13/usage_summary.json +9 -0
- Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_050bb8c9612638aa/final_answer.txt +1 -0
- Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_050bb8c9612638aa/generated_sql.sql +22 -0
- Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_050bb8c9612638aa/query_results.jsonl +1 -0
- Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_050bb8c9612638aa/run_manifest.json +79 -0
- Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_050bb8c9612638aa/usage_summary.json +9 -0
- Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_0584255cfe12d3f4/final_answer.txt +1 -0
- Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_0584255cfe12d3f4/generated_sql.sql +18 -0
- Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_0584255cfe12d3f4/query_results.jsonl +1 -0
- Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_0584255cfe12d3f4/run_manifest.json +81 -0
- Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_0584255cfe12d3f4/usage_summary.json +9 -0
- Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_06a19f9d880447a9/final_answer.txt +1 -0
- Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_06a19f9d880447a9/generated_sql.sql +22 -0
- Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_06a19f9d880447a9/query_results.jsonl +1 -0
- Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_06a19f9d880447a9/run_manifest.json +79 -0
- Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_06a19f9d880447a9/usage_summary.json +9 -0
- Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_07071d372558517c/final_answer.txt +1 -0
- Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_07071d372558517c/generated_sql.sql +20 -0
- Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_07071d372558517c/query_results.jsonl +1 -0
- Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_07071d372558517c/run_manifest.json +76 -0
- Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_07071d372558517c/usage_summary.json +9 -0
Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_016279e05b0beb15/final_answer.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"row_count": null, "preview_rows": [{"persons": "2", "support": 576}, {"persons": "4", "support": 576}, {"persons": "more", "support": 576}]}
|
Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_016279e05b0beb15/generated_sql.sql
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v4
|
| 2 |
+
-- sql_source_label: v4_current
|
| 3 |
+
-- sql_source_run_id: smoke_v4_c2_template
|
| 4 |
+
-- sql_source_dataset_id: c2
|
| 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_c2_016279e05b0beb15
|
| 11 |
+
-- problem_id: v2p_c2_1f52db85db0ce714
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
SELECT
|
| 15 |
+
"persons",
|
| 16 |
+
COUNT(*) AS support
|
| 17 |
+
FROM "c2"
|
| 18 |
+
GROUP BY "persons"
|
| 19 |
+
ORDER BY support ASC, "persons"
|
| 20 |
+
LIMIT 11;
|
Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_016279e05b0beb15/query_results.jsonl
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"node_name": "v2_template", "tool_name": "sqlite_query", "query": "-- sql_source_version: v4\n-- sql_source_label: v4_current\n-- sql_source_run_id: smoke_v4_c2_template\n-- sql_source_dataset_id: c2\n-- family_id: tail_rarity_structure\n-- canonical_subitem_id: tail_set_consistency\n-- intended_facet_id: low_support_extremes\n-- variant_semantic_role: rare_extreme_view\n-- template_id: tpl_tail_low_support_group_count_v2\n-- query_record_id: v2q_c2_016279e05b0beb15\n-- problem_id: v2p_c2_1f52db85db0ce714\n-- realization_mode: agent\n-- source_kind: agent\nSELECT\n \"persons\",\n COUNT(*) AS support\nFROM \"c2\"\nGROUP BY \"persons\"\nORDER BY support ASC, \"persons\"\nLIMIT 11;", "result": "{\"query\": \"-- sql_source_version: v4\\n-- sql_source_label: v4_current\\n-- sql_source_run_id: smoke_v4_c2_template\\n-- sql_source_dataset_id: c2\\n-- family_id: tail_rarity_structure\\n-- canonical_subitem_id: tail_set_consistency\\n-- intended_facet_id: low_support_extremes\\n-- variant_semantic_role: rare_extreme_view\\n-- template_id: tpl_tail_low_support_group_count_v2\\n-- query_record_id: v2q_c2_016279e05b0beb15\\n-- problem_id: v2p_c2_1f52db85db0ce714\\n-- realization_mode: agent\\n-- source_kind: agent\\nSELECT\\n \\\"persons\\\",\\n COUNT(*) AS support\\nFROM \\\"c2\\\"\\nGROUP BY \\\"persons\\\"\\nORDER BY support ASC, \\\"persons\\\"\\nLIMIT 11;\", \"columns\": [\"persons\", \"support\"], \"rows\": [{\"persons\": \"2\", \"support\": 576}, {\"persons\": \"4\", \"support\": 576}, {\"persons\": \"more\", \"support\": 576}], \"row_count_returned\": 3, \"row_limit\": 50, \"truncated\": false, \"elapsed_ms\": 0.72}"}
|
Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_016279e05b0beb15/run_manifest.json
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"run_id": "smoke_v4_c2_template",
|
| 3 |
+
"dataset_id": "c2",
|
| 4 |
+
"started_at": "2026-05-03T11:02:16.997870+00:00",
|
| 5 |
+
"ended_at": "2026-05-03T11:02:17.000727+00:00",
|
| 6 |
+
"status": "completed",
|
| 7 |
+
"engine": "template",
|
| 8 |
+
"question_record": {
|
| 9 |
+
"query_record_id": "v2q_c2_016279e05b0beb15",
|
| 10 |
+
"problem_id": "v2p_c2_1f52db85db0ce714",
|
| 11 |
+
"dataset_id": "c2",
|
| 12 |
+
"template_id": "tpl_tail_low_support_group_count_v2",
|
| 13 |
+
"template_name": "Low-Support Group Count",
|
| 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 Low-Support Group Count to probe tail_set_consistency with semantic role rare_extreme_view. Focus on group_col=persons.",
|
| 24 |
+
"bindings": {
|
| 25 |
+
"group_col": "persons",
|
| 26 |
+
"top_k": 11,
|
| 27 |
+
"top_n": 5,
|
| 28 |
+
"num_tiles": 10,
|
| 29 |
+
"percentile_value": 0.95,
|
| 30 |
+
"z_threshold": 2.0,
|
| 31 |
+
"fraction_threshold": 0.1,
|
| 32 |
+
"baseline_multiplier": 1.5,
|
| 33 |
+
"baseline_fraction": 0.1,
|
| 34 |
+
"min_group_size": 5,
|
| 35 |
+
"min_support": 5,
|
| 36 |
+
"measure_threshold": 0.0,
|
| 37 |
+
"time_grain": "month",
|
| 38 |
+
"lookback_rows": 3,
|
| 39 |
+
"current_period_start": "'2024-01-01'",
|
| 40 |
+
"current_period_end": "'2024-04-01'",
|
| 41 |
+
"previous_period_start": "'2023-10-01'",
|
| 42 |
+
"previous_period_end": "'2024-01-01'",
|
| 43 |
+
"drift_ratio_threshold": 0.8
|
| 44 |
+
},
|
| 45 |
+
"binding_roles": [
|
| 46 |
+
"group_col"
|
| 47 |
+
],
|
| 48 |
+
"coverage_target_min": "5",
|
| 49 |
+
"runtime_sql_skeleton": "SELECT\n {group_col},\n COUNT(*) AS support\nFROM {table}\nGROUP BY {group_col}\nORDER BY support ASC, {group_col}\nLIMIT {top_k};",
|
| 50 |
+
"notes": [
|
| 51 |
+
"default_facets=low_support_extremes",
|
| 52 |
+
"template_selection_mode=rule",
|
| 53 |
+
"problem_index_within_template=7",
|
| 54 |
+
"sql_variant_index=1/2",
|
| 55 |
+
"binding_index=66"
|
| 56 |
+
],
|
| 57 |
+
"template_selection_mode": "rule",
|
| 58 |
+
"selected_template_rank": 6,
|
| 59 |
+
"problem_index_within_template": 7,
|
| 60 |
+
"sql_variant_index": 1,
|
| 61 |
+
"sql_variant_total": 2
|
| 62 |
+
},
|
| 63 |
+
"mode": "subitem_workload_v2",
|
| 64 |
+
"sql_source_version": "v2",
|
| 65 |
+
"sql_source_label": "v2_current",
|
| 66 |
+
"generated_sql_path": "D:\\dpan\\Uni\\Project\\HKUNAISS\\SQLagent\\logs\\subitem_workload_v4\\runs\\smoke_v4_c2_template\\c2\\sql\\v2q_c2_016279e05b0beb15.sql",
|
| 67 |
+
"usage_summary": {
|
| 68 |
+
"engine": "template",
|
| 69 |
+
"input_tokens": 0,
|
| 70 |
+
"cached_input_tokens": 0,
|
| 71 |
+
"output_tokens": 0,
|
| 72 |
+
"total_tokens": 0,
|
| 73 |
+
"estimated_total_tokens": 0,
|
| 74 |
+
"usage_source": "none"
|
| 75 |
+
}
|
| 76 |
+
}
|
Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_016279e05b0beb15/usage_summary.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"engine": "template",
|
| 3 |
+
"input_tokens": 0,
|
| 4 |
+
"cached_input_tokens": 0,
|
| 5 |
+
"output_tokens": 0,
|
| 6 |
+
"total_tokens": 0,
|
| 7 |
+
"estimated_total_tokens": 0,
|
| 8 |
+
"usage_source": "none"
|
| 9 |
+
}
|
Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_02b69913d3879aa5/final_answer.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"row_count": null, "preview_rows": [{"doors": "2", "lug_boot": "big", "row_count": 48}, {"doors": "2", "lug_boot": "med", "row_count": 48}, {"doors": "2", "lug_boot": "small", "row_count": 48}, {"doors": "3", "lug_boot": "big", "row_count": 48}, {"doors": "3", "lug_boot": "med", "row_count": 48}]}
|
Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_02b69913d3879aa5/generated_sql.sql
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v4
|
| 2 |
+
-- sql_source_label: v4_current
|
| 3 |
+
-- sql_source_run_id: smoke_v4_c2_template
|
| 4 |
+
-- sql_source_dataset_id: c2
|
| 5 |
+
-- family_id: conditional_dependency_structure
|
| 6 |
+
-- canonical_subitem_id: slice_level_consistency
|
| 7 |
+
-- intended_facet_id: conditional_interaction_hotspots
|
| 8 |
+
-- variant_semantic_role: count_distribution
|
| 9 |
+
-- template_id: tpl_c2_filtered_group_count_2d
|
| 10 |
+
-- query_record_id: v2q_c2_02b69913d3879aa5
|
| 11 |
+
-- problem_id: v2p_c2_b6237a1fb55c3038
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
SELECT "doors", "lug_boot", COUNT(*) AS row_count
|
| 15 |
+
FROM "c2"
|
| 16 |
+
WHERE "safety" = 'high'
|
| 17 |
+
GROUP BY "doors", "lug_boot"
|
| 18 |
+
ORDER BY row_count DESC;
|
Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_02b69913d3879aa5/query_results.jsonl
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"node_name": "v2_template", "tool_name": "sqlite_query", "query": "-- sql_source_version: v4\n-- sql_source_label: v4_current\n-- sql_source_run_id: smoke_v4_c2_template\n-- sql_source_dataset_id: c2\n-- family_id: conditional_dependency_structure\n-- canonical_subitem_id: slice_level_consistency\n-- intended_facet_id: conditional_interaction_hotspots\n-- variant_semantic_role: count_distribution\n-- template_id: tpl_c2_filtered_group_count_2d\n-- query_record_id: v2q_c2_02b69913d3879aa5\n-- problem_id: v2p_c2_b6237a1fb55c3038\n-- realization_mode: agent\n-- source_kind: agent\nSELECT \"doors\", \"lug_boot\", COUNT(*) AS row_count\nFROM \"c2\"\nWHERE \"safety\" = 'high'\nGROUP BY \"doors\", \"lug_boot\"\nORDER BY row_count DESC;", "result": "{\"query\": \"-- sql_source_version: v4\\n-- sql_source_label: v4_current\\n-- sql_source_run_id: smoke_v4_c2_template\\n-- sql_source_dataset_id: c2\\n-- family_id: conditional_dependency_structure\\n-- canonical_subitem_id: slice_level_consistency\\n-- intended_facet_id: conditional_interaction_hotspots\\n-- variant_semantic_role: count_distribution\\n-- template_id: tpl_c2_filtered_group_count_2d\\n-- query_record_id: v2q_c2_02b69913d3879aa5\\n-- problem_id: v2p_c2_b6237a1fb55c3038\\n-- realization_mode: agent\\n-- source_kind: agent\\nSELECT \\\"doors\\\", \\\"lug_boot\\\", COUNT(*) AS row_count\\nFROM \\\"c2\\\"\\nWHERE \\\"safety\\\" = 'high'\\nGROUP BY \\\"doors\\\", \\\"lug_boot\\\"\\nORDER BY row_count DESC;\", \"columns\": [\"doors\", \"lug_boot\", \"row_count\"], \"rows\": [{\"doors\": \"2\", \"lug_boot\": \"big\", \"row_count\": 48}, {\"doors\": \"2\", \"lug_boot\": \"med\", \"row_count\": 48}, {\"doors\": \"2\", \"lug_boot\": \"small\", \"row_count\": 48}, {\"doors\": \"3\", \"lug_boot\": \"big\", \"row_count\": 48}, {\"doors\": \"3\", \"lug_boot\": \"med\", \"row_count\": 48}, {\"doors\": \"3\", \"lug_boot\": \"small\", \"row_count\": 48}, {\"doors\": \"4\", \"lug_boot\": \"big\", \"row_count\": 48}, {\"doors\": \"4\", \"lug_boot\": \"med\", \"row_count\": 48}, {\"doors\": \"4\", \"lug_boot\": \"small\", \"row_count\": 48}, {\"doors\": \"5more\", \"lug_boot\": \"big\", \"row_count\": 48}, {\"doors\": \"5more\", \"lug_boot\": \"med\", \"row_count\": 48}, {\"doors\": \"5more\", \"lug_boot\": \"small\", \"row_count\": 48}], \"row_count_returned\": 12, \"row_limit\": 50, \"truncated\": false, \"elapsed_ms\": 0.7}"}
|
Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_02b69913d3879aa5/run_manifest.json
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"run_id": "smoke_v4_c2_template",
|
| 3 |
+
"dataset_id": "c2",
|
| 4 |
+
"started_at": "2026-05-03T11:02:16.938816+00:00",
|
| 5 |
+
"ended_at": "2026-05-03T11:02:16.941117+00:00",
|
| 6 |
+
"status": "completed",
|
| 7 |
+
"engine": "template",
|
| 8 |
+
"question_record": {
|
| 9 |
+
"query_record_id": "v2q_c2_02b69913d3879aa5",
|
| 10 |
+
"problem_id": "v2p_c2_b6237a1fb55c3038",
|
| 11 |
+
"dataset_id": "c2",
|
| 12 |
+
"template_id": "tpl_c2_filtered_group_count_2d",
|
| 13 |
+
"template_name": "Filtered Two-Dimensional Group Count",
|
| 14 |
+
"family_id": "conditional_dependency_structure",
|
| 15 |
+
"canonical_subitem_id": "slice_level_consistency",
|
| 16 |
+
"intended_facet_id": "conditional_interaction_hotspots",
|
| 17 |
+
"variant_semantic_role": "count_distribution",
|
| 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 Filtered Two-Dimensional Group Count to probe slice_level_consistency with semantic role count_distribution. Focus on group_col=doors, group_col_2=lug_boot.",
|
| 24 |
+
"bindings": {
|
| 25 |
+
"group_col": "doors",
|
| 26 |
+
"group_col_2": "lug_boot",
|
| 27 |
+
"predicate_col": "safety",
|
| 28 |
+
"predicate_op": "=",
|
| 29 |
+
"predicate_value": "high",
|
| 30 |
+
"top_k": 14,
|
| 31 |
+
"top_n": 5,
|
| 32 |
+
"num_tiles": 10,
|
| 33 |
+
"percentile_value": 0.95,
|
| 34 |
+
"z_threshold": 2.0,
|
| 35 |
+
"fraction_threshold": 0.1,
|
| 36 |
+
"baseline_multiplier": 1.5,
|
| 37 |
+
"baseline_fraction": 0.1,
|
| 38 |
+
"min_group_size": 5,
|
| 39 |
+
"min_support": 5,
|
| 40 |
+
"measure_threshold": 0.0,
|
| 41 |
+
"time_grain": "month",
|
| 42 |
+
"lookback_rows": 3,
|
| 43 |
+
"current_period_start": "'2024-01-01'",
|
| 44 |
+
"current_period_end": "'2024-04-01'",
|
| 45 |
+
"previous_period_start": "'2023-10-01'",
|
| 46 |
+
"previous_period_end": "'2024-01-01'",
|
| 47 |
+
"drift_ratio_threshold": 0.8
|
| 48 |
+
},
|
| 49 |
+
"binding_roles": [
|
| 50 |
+
"group_col",
|
| 51 |
+
"group_col_2",
|
| 52 |
+
"predicate_col"
|
| 53 |
+
],
|
| 54 |
+
"coverage_target_min": "5",
|
| 55 |
+
"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;",
|
| 56 |
+
"notes": [
|
| 57 |
+
"default_facets=conditional_interaction_hotspots",
|
| 58 |
+
"template_selection_mode=rule",
|
| 59 |
+
"problem_index_within_template=7",
|
| 60 |
+
"sql_variant_index=1/1",
|
| 61 |
+
"binding_index=54"
|
| 62 |
+
],
|
| 63 |
+
"template_selection_mode": "rule",
|
| 64 |
+
"selected_template_rank": 5,
|
| 65 |
+
"problem_index_within_template": 7,
|
| 66 |
+
"sql_variant_index": 1,
|
| 67 |
+
"sql_variant_total": 1
|
| 68 |
+
},
|
| 69 |
+
"mode": "subitem_workload_v2",
|
| 70 |
+
"sql_source_version": "v2",
|
| 71 |
+
"sql_source_label": "v2_current",
|
| 72 |
+
"generated_sql_path": "D:\\dpan\\Uni\\Project\\HKUNAISS\\SQLagent\\logs\\subitem_workload_v4\\runs\\smoke_v4_c2_template\\c2\\sql\\v2q_c2_02b69913d3879aa5.sql",
|
| 73 |
+
"usage_summary": {
|
| 74 |
+
"engine": "template",
|
| 75 |
+
"input_tokens": 0,
|
| 76 |
+
"cached_input_tokens": 0,
|
| 77 |
+
"output_tokens": 0,
|
| 78 |
+
"total_tokens": 0,
|
| 79 |
+
"estimated_total_tokens": 0,
|
| 80 |
+
"usage_source": "none"
|
| 81 |
+
}
|
| 82 |
+
}
|
Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_02b69913d3879aa5/usage_summary.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"engine": "template",
|
| 3 |
+
"input_tokens": 0,
|
| 4 |
+
"cached_input_tokens": 0,
|
| 5 |
+
"output_tokens": 0,
|
| 6 |
+
"total_tokens": 0,
|
| 7 |
+
"estimated_total_tokens": 0,
|
| 8 |
+
"usage_source": "none"
|
| 9 |
+
}
|
Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_02decc38441289c5/final_answer.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"row_count": null, "preview_rows": [{"buying": "vhigh", "distinct_entities": 1}, {"buying": "med", "distinct_entities": 1}, {"buying": "low", "distinct_entities": 1}, {"buying": "high", "distinct_entities": 1}]}
|
Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_02decc38441289c5/generated_sql.sql
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v4
|
| 2 |
+
-- sql_source_label: v4_current
|
| 3 |
+
-- sql_source_run_id: smoke_v4_c2_template
|
| 4 |
+
-- sql_source_dataset_id: c2
|
| 5 |
+
-- family_id: subgroup_structure
|
| 6 |
+
-- canonical_subitem_id: internal_profile_stability
|
| 7 |
+
-- intended_facet_id: subgroup_distribution_shift
|
| 8 |
+
-- variant_semantic_role: ranked_signal_view
|
| 9 |
+
-- template_id: tpl_clickbench_filtered_distinct_topk
|
| 10 |
+
-- query_record_id: v2q_c2_02decc38441289c5
|
| 11 |
+
-- problem_id: v2p_c2_c8c9a469c1fefb21
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
SELECT "buying", COUNT(DISTINCT "buying") AS distinct_entities
|
| 15 |
+
FROM "c2"
|
| 16 |
+
WHERE "lug_boot" = 'big'
|
| 17 |
+
GROUP BY "buying"
|
| 18 |
+
ORDER BY distinct_entities DESC
|
| 19 |
+
LIMIT 15;
|
Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_02decc38441289c5/query_results.jsonl
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"node_name": "v2_template", "tool_name": "sqlite_query", "query": "-- sql_source_version: v4\n-- sql_source_label: v4_current\n-- sql_source_run_id: smoke_v4_c2_template\n-- sql_source_dataset_id: c2\n-- family_id: subgroup_structure\n-- canonical_subitem_id: internal_profile_stability\n-- intended_facet_id: subgroup_distribution_shift\n-- variant_semantic_role: ranked_signal_view\n-- template_id: tpl_clickbench_filtered_distinct_topk\n-- query_record_id: v2q_c2_02decc38441289c5\n-- problem_id: v2p_c2_c8c9a469c1fefb21\n-- realization_mode: agent\n-- source_kind: agent\nSELECT \"buying\", COUNT(DISTINCT \"buying\") AS distinct_entities\nFROM \"c2\"\nWHERE \"lug_boot\" = 'big'\nGROUP BY \"buying\"\nORDER BY distinct_entities DESC\nLIMIT 15;", "result": "{\"query\": \"-- sql_source_version: v4\\n-- sql_source_label: v4_current\\n-- sql_source_run_id: smoke_v4_c2_template\\n-- sql_source_dataset_id: c2\\n-- family_id: subgroup_structure\\n-- canonical_subitem_id: internal_profile_stability\\n-- intended_facet_id: subgroup_distribution_shift\\n-- variant_semantic_role: ranked_signal_view\\n-- template_id: tpl_clickbench_filtered_distinct_topk\\n-- query_record_id: v2q_c2_02decc38441289c5\\n-- problem_id: v2p_c2_c8c9a469c1fefb21\\n-- realization_mode: agent\\n-- source_kind: agent\\nSELECT \\\"buying\\\", COUNT(DISTINCT \\\"buying\\\") AS distinct_entities\\nFROM \\\"c2\\\"\\nWHERE \\\"lug_boot\\\" = 'big'\\nGROUP BY \\\"buying\\\"\\nORDER BY distinct_entities DESC\\nLIMIT 15;\", \"columns\": [\"buying\", \"distinct_entities\"], \"rows\": [{\"buying\": \"vhigh\", \"distinct_entities\": 1}, {\"buying\": \"med\", \"distinct_entities\": 1}, {\"buying\": \"low\", \"distinct_entities\": 1}, {\"buying\": \"high\", \"distinct_entities\": 1}], \"row_count_returned\": 4, \"row_limit\": 50, \"truncated\": false, \"elapsed_ms\": 0.6}"}
|
Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_02decc38441289c5/run_manifest.json
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"run_id": "smoke_v4_c2_template",
|
| 3 |
+
"dataset_id": "c2",
|
| 4 |
+
"started_at": "2026-05-03T11:02:17.391300+00:00",
|
| 5 |
+
"ended_at": "2026-05-03T11:02:17.393511+00:00",
|
| 6 |
+
"status": "completed",
|
| 7 |
+
"engine": "template",
|
| 8 |
+
"question_record": {
|
| 9 |
+
"query_record_id": "v2q_c2_02decc38441289c5",
|
| 10 |
+
"problem_id": "v2p_c2_c8c9a469c1fefb21",
|
| 11 |
+
"dataset_id": "c2",
|
| 12 |
+
"template_id": "tpl_clickbench_filtered_distinct_topk",
|
| 13 |
+
"template_name": "Filtered Top-k Distinct Coverage",
|
| 14 |
+
"family_id": "subgroup_structure",
|
| 15 |
+
"canonical_subitem_id": "internal_profile_stability",
|
| 16 |
+
"intended_facet_id": "subgroup_distribution_shift",
|
| 17 |
+
"variant_semantic_role": "ranked_signal_view",
|
| 18 |
+
"subitem_assignment_source": "planner_selected",
|
| 19 |
+
"source_kind": "agent",
|
| 20 |
+
"realization_mode": "agent",
|
| 21 |
+
"gate_priority": "support",
|
| 22 |
+
"extended_family": false,
|
| 23 |
+
"question": "Use template Filtered Top-k Distinct Coverage to probe internal_profile_stability with semantic role ranked_signal_view. Focus on group_col=buying.",
|
| 24 |
+
"bindings": {
|
| 25 |
+
"group_col": "buying",
|
| 26 |
+
"predicate_col": "lug_boot",
|
| 27 |
+
"predicate_op": "=",
|
| 28 |
+
"predicate_value": "big",
|
| 29 |
+
"entity_col": "buying",
|
| 30 |
+
"top_k": 15,
|
| 31 |
+
"top_n": 4,
|
| 32 |
+
"num_tiles": 10,
|
| 33 |
+
"percentile_value": 0.9,
|
| 34 |
+
"z_threshold": 2.0,
|
| 35 |
+
"fraction_threshold": 0.05,
|
| 36 |
+
"baseline_multiplier": 1.75,
|
| 37 |
+
"baseline_fraction": 0.1,
|
| 38 |
+
"min_group_size": 5,
|
| 39 |
+
"min_support": 4,
|
| 40 |
+
"measure_threshold": 0.0,
|
| 41 |
+
"time_grain": "month",
|
| 42 |
+
"lookback_rows": 3,
|
| 43 |
+
"current_period_start": "'2024-01-01'",
|
| 44 |
+
"current_period_end": "'2024-04-01'",
|
| 45 |
+
"previous_period_start": "'2023-10-01'",
|
| 46 |
+
"previous_period_end": "'2024-01-01'",
|
| 47 |
+
"drift_ratio_threshold": 0.8
|
| 48 |
+
},
|
| 49 |
+
"binding_roles": [
|
| 50 |
+
"group_col",
|
| 51 |
+
"entity_col",
|
| 52 |
+
"predicate_col"
|
| 53 |
+
],
|
| 54 |
+
"coverage_target_min": "5",
|
| 55 |
+
"runtime_sql_skeleton": "SELECT {group_col}, COUNT(DISTINCT {entity_col}) AS distinct_entities\nFROM {table}\nWHERE {predicate_col} {predicate_op} {predicate_value}\nGROUP BY {group_col}\nORDER BY distinct_entities DESC\nLIMIT {top_k};",
|
| 56 |
+
"notes": [
|
| 57 |
+
"default_facets=subgroup_distribution_shift,subgroup_rank_order,subgroup_conditional_contrast",
|
| 58 |
+
"template_selection_mode=rule",
|
| 59 |
+
"problem_index_within_template=9",
|
| 60 |
+
"sql_variant_index=2/2",
|
| 61 |
+
"binding_index=140"
|
| 62 |
+
],
|
| 63 |
+
"template_selection_mode": "rule",
|
| 64 |
+
"selected_template_rank": 12,
|
| 65 |
+
"problem_index_within_template": 9,
|
| 66 |
+
"sql_variant_index": 2,
|
| 67 |
+
"sql_variant_total": 2
|
| 68 |
+
},
|
| 69 |
+
"mode": "subitem_workload_v2",
|
| 70 |
+
"sql_source_version": "v2",
|
| 71 |
+
"sql_source_label": "v2_current",
|
| 72 |
+
"generated_sql_path": "D:\\dpan\\Uni\\Project\\HKUNAISS\\SQLagent\\logs\\subitem_workload_v4\\runs\\smoke_v4_c2_template\\c2\\sql\\v2q_c2_02decc38441289c5.sql",
|
| 73 |
+
"usage_summary": {
|
| 74 |
+
"engine": "template",
|
| 75 |
+
"input_tokens": 0,
|
| 76 |
+
"cached_input_tokens": 0,
|
| 77 |
+
"output_tokens": 0,
|
| 78 |
+
"total_tokens": 0,
|
| 79 |
+
"estimated_total_tokens": 0,
|
| 80 |
+
"usage_source": "none"
|
| 81 |
+
}
|
| 82 |
+
}
|
Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_02decc38441289c5/usage_summary.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"engine": "template",
|
| 3 |
+
"input_tokens": 0,
|
| 4 |
+
"cached_input_tokens": 0,
|
| 5 |
+
"output_tokens": 0,
|
| 6 |
+
"total_tokens": 0,
|
| 7 |
+
"estimated_total_tokens": 0,
|
| 8 |
+
"usage_source": "none"
|
| 9 |
+
}
|
Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_034415e85fd9f3c3/final_answer.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"row_count": null, "preview_rows": [{"class": "vgood", "support": 65}]}
|
Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_034415e85fd9f3c3/generated_sql.sql
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v4
|
| 2 |
+
-- sql_source_label: v4_current
|
| 3 |
+
-- sql_source_run_id: smoke_v4_c2_template
|
| 4 |
+
-- sql_source_dataset_id: c2
|
| 5 |
+
-- family_id: subgroup_structure
|
| 6 |
+
-- canonical_subitem_id: subgroup_size_stability
|
| 7 |
+
-- intended_facet_id: subgroup_distribution_shift
|
| 8 |
+
-- variant_semantic_role: filtered_stable_view
|
| 9 |
+
-- template_id: tpl_clickbench_filtered_topk_group_count
|
| 10 |
+
-- query_record_id: v2q_c2_034415e85fd9f3c3
|
| 11 |
+
-- problem_id: v2p_c2_fc2a7ae511e09230
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
SELECT "class", COUNT(*) AS support
|
| 15 |
+
FROM "c2"
|
| 16 |
+
WHERE "class" = 'vgood'
|
| 17 |
+
GROUP BY "class"
|
| 18 |
+
ORDER BY support DESC
|
| 19 |
+
LIMIT 11;
|
Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_034415e85fd9f3c3/query_results.jsonl
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"node_name": "v2_template", "tool_name": "sqlite_query", "query": "-- sql_source_version: v4\n-- sql_source_label: v4_current\n-- sql_source_run_id: smoke_v4_c2_template\n-- sql_source_dataset_id: c2\n-- family_id: subgroup_structure\n-- canonical_subitem_id: subgroup_size_stability\n-- intended_facet_id: subgroup_distribution_shift\n-- variant_semantic_role: filtered_stable_view\n-- template_id: tpl_clickbench_filtered_topk_group_count\n-- query_record_id: v2q_c2_034415e85fd9f3c3\n-- problem_id: v2p_c2_fc2a7ae511e09230\n-- realization_mode: agent\n-- source_kind: agent\nSELECT \"class\", COUNT(*) AS support\nFROM \"c2\"\nWHERE \"class\" = 'vgood'\nGROUP BY \"class\"\nORDER BY support DESC\nLIMIT 11;", "result": "{\"query\": \"-- sql_source_version: v4\\n-- sql_source_label: v4_current\\n-- sql_source_run_id: smoke_v4_c2_template\\n-- sql_source_dataset_id: c2\\n-- family_id: subgroup_structure\\n-- canonical_subitem_id: subgroup_size_stability\\n-- intended_facet_id: subgroup_distribution_shift\\n-- variant_semantic_role: filtered_stable_view\\n-- template_id: tpl_clickbench_filtered_topk_group_count\\n-- query_record_id: v2q_c2_034415e85fd9f3c3\\n-- problem_id: v2p_c2_fc2a7ae511e09230\\n-- realization_mode: agent\\n-- source_kind: agent\\nSELECT \\\"class\\\", COUNT(*) AS support\\nFROM \\\"c2\\\"\\nWHERE \\\"class\\\" = 'vgood'\\nGROUP BY \\\"class\\\"\\nORDER BY support DESC\\nLIMIT 11;\", \"columns\": [\"class\", \"support\"], \"rows\": [{\"class\": \"vgood\", \"support\": 65}], \"row_count_returned\": 1, \"row_limit\": 50, \"truncated\": false, \"elapsed_ms\": 0.46}"}
|
Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_034415e85fd9f3c3/run_manifest.json
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"run_id": "smoke_v4_c2_template",
|
| 3 |
+
"dataset_id": "c2",
|
| 4 |
+
"started_at": "2026-05-03T11:02:17.267888+00:00",
|
| 5 |
+
"ended_at": "2026-05-03T11:02:17.270611+00:00",
|
| 6 |
+
"status": "completed",
|
| 7 |
+
"engine": "template",
|
| 8 |
+
"question_record": {
|
| 9 |
+
"query_record_id": "v2q_c2_034415e85fd9f3c3",
|
| 10 |
+
"problem_id": "v2p_c2_fc2a7ae511e09230",
|
| 11 |
+
"dataset_id": "c2",
|
| 12 |
+
"template_id": "tpl_clickbench_filtered_topk_group_count",
|
| 13 |
+
"template_name": "Filtered Top-k Group Count",
|
| 14 |
+
"family_id": "subgroup_structure",
|
| 15 |
+
"canonical_subitem_id": "subgroup_size_stability",
|
| 16 |
+
"intended_facet_id": "subgroup_distribution_shift",
|
| 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 Filtered Top-k Group Count to probe subgroup_size_stability with semantic role filtered_stable_view. Focus on group_col=class.",
|
| 24 |
+
"bindings": {
|
| 25 |
+
"group_col": "class",
|
| 26 |
+
"predicate_col": "class",
|
| 27 |
+
"predicate_op": "=",
|
| 28 |
+
"predicate_value": "vgood",
|
| 29 |
+
"top_k": 11,
|
| 30 |
+
"top_n": 6,
|
| 31 |
+
"num_tiles": 10,
|
| 32 |
+
"percentile_value": 0.9,
|
| 33 |
+
"z_threshold": 2.0,
|
| 34 |
+
"fraction_threshold": 0.1,
|
| 35 |
+
"baseline_multiplier": 1.5,
|
| 36 |
+
"baseline_fraction": 0.1,
|
| 37 |
+
"min_group_size": 5,
|
| 38 |
+
"min_support": 5,
|
| 39 |
+
"measure_threshold": 0.0,
|
| 40 |
+
"time_grain": "month",
|
| 41 |
+
"lookback_rows": 3,
|
| 42 |
+
"current_period_start": "'2024-01-01'",
|
| 43 |
+
"current_period_end": "'2024-04-01'",
|
| 44 |
+
"previous_period_start": "'2023-10-01'",
|
| 45 |
+
"previous_period_end": "'2024-01-01'",
|
| 46 |
+
"drift_ratio_threshold": 0.8
|
| 47 |
+
},
|
| 48 |
+
"binding_roles": [
|
| 49 |
+
"group_col",
|
| 50 |
+
"predicate_col"
|
| 51 |
+
],
|
| 52 |
+
"coverage_target_min": "5",
|
| 53 |
+
"runtime_sql_skeleton": "SELECT {group_col}, COUNT(*) AS support\nFROM {table}\nWHERE {predicate_col} {predicate_op} {predicate_value}\nGROUP BY {group_col}\nORDER BY support DESC\nLIMIT {top_k};",
|
| 54 |
+
"notes": [
|
| 55 |
+
"default_facets=subgroup_distribution_shift",
|
| 56 |
+
"template_selection_mode=rule",
|
| 57 |
+
"problem_index_within_template=4",
|
| 58 |
+
"sql_variant_index=1/2",
|
| 59 |
+
"binding_index=111"
|
| 60 |
+
],
|
| 61 |
+
"template_selection_mode": "rule",
|
| 62 |
+
"selected_template_rank": 10,
|
| 63 |
+
"problem_index_within_template": 4,
|
| 64 |
+
"sql_variant_index": 1,
|
| 65 |
+
"sql_variant_total": 2
|
| 66 |
+
},
|
| 67 |
+
"mode": "subitem_workload_v2",
|
| 68 |
+
"sql_source_version": "v2",
|
| 69 |
+
"sql_source_label": "v2_current",
|
| 70 |
+
"generated_sql_path": "D:\\dpan\\Uni\\Project\\HKUNAISS\\SQLagent\\logs\\subitem_workload_v4\\runs\\smoke_v4_c2_template\\c2\\sql\\v2q_c2_034415e85fd9f3c3.sql",
|
| 71 |
+
"usage_summary": {
|
| 72 |
+
"engine": "template",
|
| 73 |
+
"input_tokens": 0,
|
| 74 |
+
"cached_input_tokens": 0,
|
| 75 |
+
"output_tokens": 0,
|
| 76 |
+
"total_tokens": 0,
|
| 77 |
+
"estimated_total_tokens": 0,
|
| 78 |
+
"usage_source": "none"
|
| 79 |
+
}
|
| 80 |
+
}
|
Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_034415e85fd9f3c3/usage_summary.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"engine": "template",
|
| 3 |
+
"input_tokens": 0,
|
| 4 |
+
"cached_input_tokens": 0,
|
| 5 |
+
"output_tokens": 0,
|
| 6 |
+
"total_tokens": 0,
|
| 7 |
+
"estimated_total_tokens": 0,
|
| 8 |
+
"usage_source": "none"
|
| 9 |
+
}
|
Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_040cd7db47ae0614/final_answer.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"row_count": null, "preview_rows": [{"doors": "2", "lug_boot": "small", "target_rate": 0.875}, {"doors": "2", "lug_boot": "med", "target_rate": 0.75}, {"doors": "3", "lug_boot": "small", "target_rate": 0.75}, {"doors": "4", "lug_boot": "small", "target_rate": 0.75}, {"doors": "5more", "lug_boot": "small", "target_rate": 0.75}]}
|
Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_040cd7db47ae0614/generated_sql.sql
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v4
|
| 2 |
+
-- sql_source_label: v4_current
|
| 3 |
+
-- sql_source_run_id: smoke_v4_c2_template
|
| 4 |
+
-- sql_source_dataset_id: c2
|
| 5 |
+
-- family_id: conditional_dependency_structure
|
| 6 |
+
-- canonical_subitem_id: dependency_strength_similarity
|
| 7 |
+
-- intended_facet_id: pairwise_conditional_dependency
|
| 8 |
+
-- variant_semantic_role: ranked_signal_view
|
| 9 |
+
-- template_id: tpl_c2_two_dim_target_rate
|
| 10 |
+
-- query_record_id: v2q_c2_040cd7db47ae0614
|
| 11 |
+
-- problem_id: v2p_c2_d2e1e08465ea67da
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
SELECT "doors", "lug_boot",
|
| 15 |
+
AVG(CASE WHEN "class" = 'unacc' THEN 1 ELSE 0 END) AS target_rate
|
| 16 |
+
FROM "c2"
|
| 17 |
+
GROUP BY "doors", "lug_boot"
|
| 18 |
+
ORDER BY target_rate DESC;
|
Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_040cd7db47ae0614/query_results.jsonl
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"node_name": "v2_template", "tool_name": "sqlite_query", "query": "-- sql_source_version: v4\n-- sql_source_label: v4_current\n-- sql_source_run_id: smoke_v4_c2_template\n-- sql_source_dataset_id: c2\n-- family_id: conditional_dependency_structure\n-- canonical_subitem_id: dependency_strength_similarity\n-- intended_facet_id: pairwise_conditional_dependency\n-- variant_semantic_role: ranked_signal_view\n-- template_id: tpl_c2_two_dim_target_rate\n-- query_record_id: v2q_c2_040cd7db47ae0614\n-- problem_id: v2p_c2_d2e1e08465ea67da\n-- realization_mode: agent\n-- source_kind: agent\nSELECT \"doors\", \"lug_boot\",\n AVG(CASE WHEN \"class\" = 'unacc' THEN 1 ELSE 0 END) AS target_rate\nFROM \"c2\"\nGROUP BY \"doors\", \"lug_boot\"\nORDER BY target_rate DESC;", "result": "{\"query\": \"-- sql_source_version: v4\\n-- sql_source_label: v4_current\\n-- sql_source_run_id: smoke_v4_c2_template\\n-- sql_source_dataset_id: c2\\n-- family_id: conditional_dependency_structure\\n-- canonical_subitem_id: dependency_strength_similarity\\n-- intended_facet_id: pairwise_conditional_dependency\\n-- variant_semantic_role: ranked_signal_view\\n-- template_id: tpl_c2_two_dim_target_rate\\n-- query_record_id: v2q_c2_040cd7db47ae0614\\n-- problem_id: v2p_c2_d2e1e08465ea67da\\n-- realization_mode: agent\\n-- source_kind: agent\\nSELECT \\\"doors\\\", \\\"lug_boot\\\",\\n AVG(CASE WHEN \\\"class\\\" = 'unacc' THEN 1 ELSE 0 END) AS target_rate\\nFROM \\\"c2\\\"\\nGROUP BY \\\"doors\\\", \\\"lug_boot\\\"\\nORDER BY target_rate DESC;\", \"columns\": [\"doors\", \"lug_boot\", \"target_rate\"], \"rows\": [{\"doors\": \"2\", \"lug_boot\": \"small\", \"target_rate\": 0.875}, {\"doors\": \"2\", \"lug_boot\": \"med\", \"target_rate\": 0.75}, {\"doors\": \"3\", \"lug_boot\": \"small\", \"target_rate\": 0.75}, {\"doors\": \"4\", \"lug_boot\": \"small\", \"target_rate\": 0.75}, {\"doors\": \"5more\", \"lug_boot\": \"small\", \"target_rate\": 0.75}, {\"doors\": \"3\", \"lug_boot\": \"med\", \"target_rate\": 0.6944444444444444}, {\"doors\": \"2\", \"lug_boot\": \"big\", \"target_rate\": 0.6388888888888888}, {\"doors\": \"3\", \"lug_boot\": \"big\", \"target_rate\": 0.6388888888888888}, {\"doors\": \"4\", \"lug_boot\": \"big\", \"target_rate\": 0.6388888888888888}, {\"doors\": \"4\", \"lug_boot\": \"med\", \"target_rate\": 0.6388888888888888}, {\"doors\": \"5more\", \"lug_boot\": \"big\", \"target_rate\": 0.6388888888888888}, {\"doors\": \"5more\", \"lug_boot\": \"med\", \"target_rate\": 0.6388888888888888}], \"row_count_returned\": 12, \"row_limit\": 50, \"truncated\": false, \"elapsed_ms\": 1.09}"}
|
Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_040cd7db47ae0614/run_manifest.json
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"run_id": "smoke_v4_c2_template",
|
| 3 |
+
"dataset_id": "c2",
|
| 4 |
+
"started_at": "2026-05-03T11:02:17.153980+00:00",
|
| 5 |
+
"ended_at": "2026-05-03T11:02:17.157154+00:00",
|
| 6 |
+
"status": "completed",
|
| 7 |
+
"engine": "template",
|
| 8 |
+
"question_record": {
|
| 9 |
+
"query_record_id": "v2q_c2_040cd7db47ae0614",
|
| 10 |
+
"problem_id": "v2p_c2_d2e1e08465ea67da",
|
| 11 |
+
"dataset_id": "c2",
|
| 12 |
+
"template_id": "tpl_c2_two_dim_target_rate",
|
| 13 |
+
"template_name": "Two-Axis Target Rate Surface",
|
| 14 |
+
"family_id": "conditional_dependency_structure",
|
| 15 |
+
"canonical_subitem_id": "dependency_strength_similarity",
|
| 16 |
+
"intended_facet_id": "pairwise_conditional_dependency",
|
| 17 |
+
"variant_semantic_role": "ranked_signal_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 Two-Axis Target Rate Surface to probe dependency_strength_similarity with semantic role ranked_signal_view. Focus on group_col=doors, group_col_2=lug_boot, target_col=class.",
|
| 24 |
+
"bindings": {
|
| 25 |
+
"group_col": "doors",
|
| 26 |
+
"group_col_2": "lug_boot",
|
| 27 |
+
"target_col": "class",
|
| 28 |
+
"target_value": "unacc",
|
| 29 |
+
"top_k": 16,
|
| 30 |
+
"top_n": 4,
|
| 31 |
+
"num_tiles": 10,
|
| 32 |
+
"percentile_value": 0.9,
|
| 33 |
+
"z_threshold": 2.0,
|
| 34 |
+
"fraction_threshold": 0.05,
|
| 35 |
+
"baseline_multiplier": 1.75,
|
| 36 |
+
"baseline_fraction": 0.1,
|
| 37 |
+
"min_group_size": 5,
|
| 38 |
+
"min_support": 4,
|
| 39 |
+
"measure_threshold": 0.0,
|
| 40 |
+
"time_grain": "month",
|
| 41 |
+
"lookback_rows": 3,
|
| 42 |
+
"current_period_start": "'2024-01-01'",
|
| 43 |
+
"current_period_end": "'2024-04-01'",
|
| 44 |
+
"previous_period_start": "'2023-10-01'",
|
| 45 |
+
"previous_period_end": "'2024-01-01'",
|
| 46 |
+
"drift_ratio_threshold": 0.8
|
| 47 |
+
},
|
| 48 |
+
"binding_roles": [
|
| 49 |
+
"group_col",
|
| 50 |
+
"group_col_2",
|
| 51 |
+
"target_col"
|
| 52 |
+
],
|
| 53 |
+
"coverage_target_min": "5",
|
| 54 |
+
"runtime_sql_skeleton": "SELECT {group_col}, {group_col_2},\n AVG(CASE WHEN {target_col} = {target_value} THEN 1 ELSE 0 END) AS target_rate\nFROM {table}\nGROUP BY {group_col}, {group_col_2}\nORDER BY target_rate DESC;",
|
| 55 |
+
"notes": [
|
| 56 |
+
"default_facets=pairwise_conditional_dependency",
|
| 57 |
+
"template_selection_mode=rule",
|
| 58 |
+
"problem_index_within_template=1",
|
| 59 |
+
"sql_variant_index=2/2",
|
| 60 |
+
"binding_index=96"
|
| 61 |
+
],
|
| 62 |
+
"template_selection_mode": "rule",
|
| 63 |
+
"selected_template_rank": 9,
|
| 64 |
+
"problem_index_within_template": 1,
|
| 65 |
+
"sql_variant_index": 2,
|
| 66 |
+
"sql_variant_total": 2
|
| 67 |
+
},
|
| 68 |
+
"mode": "subitem_workload_v2",
|
| 69 |
+
"sql_source_version": "v2",
|
| 70 |
+
"sql_source_label": "v2_current",
|
| 71 |
+
"generated_sql_path": "D:\\dpan\\Uni\\Project\\HKUNAISS\\SQLagent\\logs\\subitem_workload_v4\\runs\\smoke_v4_c2_template\\c2\\sql\\v2q_c2_040cd7db47ae0614.sql",
|
| 72 |
+
"usage_summary": {
|
| 73 |
+
"engine": "template",
|
| 74 |
+
"input_tokens": 0,
|
| 75 |
+
"cached_input_tokens": 0,
|
| 76 |
+
"output_tokens": 0,
|
| 77 |
+
"total_tokens": 0,
|
| 78 |
+
"estimated_total_tokens": 0,
|
| 79 |
+
"usage_source": "none"
|
| 80 |
+
}
|
| 81 |
+
}
|
Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_040cd7db47ae0614/usage_summary.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"engine": "template",
|
| 3 |
+
"input_tokens": 0,
|
| 4 |
+
"cached_input_tokens": 0,
|
| 5 |
+
"output_tokens": 0,
|
| 6 |
+
"total_tokens": 0,
|
| 7 |
+
"estimated_total_tokens": 0,
|
| 8 |
+
"usage_source": "none"
|
| 9 |
+
}
|
Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_0430aead08e04f13/final_answer.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"row_count": null, "preview_rows": [{"value_label": "2", "support": 432, "support_share": 0.25, "support_rank": 1}, {"value_label": "3", "support": 432, "support_share": 0.25, "support_rank": 2}, {"value_label": "4", "support": 432, "support_share": 0.25, "support_rank": 3}, {"value_label": "5more", "support": 432, "support_share": 0.25, "support_rank": 4}]}
|
Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_0430aead08e04f13/generated_sql.sql
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v4
|
| 2 |
+
-- sql_source_label: v4_current
|
| 3 |
+
-- sql_source_run_id: smoke_v4_c2_template
|
| 4 |
+
-- sql_source_dataset_id: c2
|
| 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_c2_0430aead08e04f13
|
| 11 |
+
-- problem_id: v2p_c2_5de4caad69c46dd7
|
| 12 |
+
-- realization_mode: deterministic
|
| 13 |
+
-- source_kind: deterministic
|
| 14 |
+
WITH grouped AS (
|
| 15 |
+
SELECT "doors" AS value_label, COUNT(*) AS support
|
| 16 |
+
FROM "c2"
|
| 17 |
+
GROUP BY "doors"
|
| 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/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_0430aead08e04f13/query_results.jsonl
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"node_name": "v2_template", "tool_name": "sqlite_query", "query": "-- sql_source_version: v4\n-- sql_source_label: v4_current\n-- sql_source_run_id: smoke_v4_c2_template\n-- sql_source_dataset_id: c2\n-- family_id: cardinality_structure\n-- canonical_subitem_id: support_rank_profile_consistency\n-- intended_facet_id: support_concentration\n-- variant_semantic_role: count_distribution\n-- template_id: tpl_cardinality_support_rank_profile\n-- query_record_id: v2q_c2_0430aead08e04f13\n-- problem_id: v2p_c2_5de4caad69c46dd7\n-- realization_mode: deterministic\n-- source_kind: deterministic\nWITH grouped AS (\n SELECT \"doors\" AS value_label, COUNT(*) AS support\n FROM \"c2\"\n GROUP BY \"doors\"\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: v4\\n-- sql_source_label: v4_current\\n-- sql_source_run_id: smoke_v4_c2_template\\n-- sql_source_dataset_id: c2\\n-- family_id: cardinality_structure\\n-- canonical_subitem_id: support_rank_profile_consistency\\n-- intended_facet_id: support_concentration\\n-- variant_semantic_role: count_distribution\\n-- template_id: tpl_cardinality_support_rank_profile\\n-- query_record_id: v2q_c2_0430aead08e04f13\\n-- problem_id: v2p_c2_5de4caad69c46dd7\\n-- realization_mode: deterministic\\n-- source_kind: deterministic\\nWITH grouped AS (\\n SELECT \\\"doors\\\" AS value_label, COUNT(*) AS support\\n FROM \\\"c2\\\"\\n GROUP BY \\\"doors\\\"\\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\": \"2\", \"support\": 432, \"support_share\": 0.25, \"support_rank\": 1}, {\"value_label\": \"3\", \"support\": 432, \"support_share\": 0.25, \"support_rank\": 2}, {\"value_label\": \"4\", \"support\": 432, \"support_share\": 0.25, \"support_rank\": 3}, {\"value_label\": \"5more\", \"support\": 432, \"support_share\": 0.25, \"support_rank\": 4}], \"row_count_returned\": 4, \"row_limit\": 50, \"truncated\": false, \"elapsed_ms\": 1.13}"}
|
Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_0430aead08e04f13/run_manifest.json
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"run_id": "smoke_v4_c2_template",
|
| 3 |
+
"dataset_id": "c2",
|
| 4 |
+
"started_at": "2026-05-03T11:02:17.433372+00:00",
|
| 5 |
+
"ended_at": "2026-05-03T11:02:17.436329+00:00",
|
| 6 |
+
"status": "completed",
|
| 7 |
+
"engine": "template",
|
| 8 |
+
"question_record": {
|
| 9 |
+
"query_record_id": "v2q_c2_0430aead08e04f13",
|
| 10 |
+
"problem_id": "v2p_c2_5de4caad69c46dd7",
|
| 11 |
+
"dataset_id": "c2",
|
| 12 |
+
"template_id": "tpl_cardinality_support_rank_profile",
|
| 13 |
+
"template_name": "Cardinality Support Rank Profile",
|
| 14 |
+
"family_id": "cardinality_structure",
|
| 15 |
+
"canonical_subitem_id": "support_rank_profile_consistency",
|
| 16 |
+
"intended_facet_id": "support_concentration",
|
| 17 |
+
"variant_semantic_role": "count_distribution",
|
| 18 |
+
"subitem_assignment_source": "template_fixed",
|
| 19 |
+
"source_kind": "deterministic",
|
| 20 |
+
"realization_mode": "deterministic",
|
| 21 |
+
"gate_priority": "deterministic",
|
| 22 |
+
"extended_family": true,
|
| 23 |
+
"question": "Use template Cardinality Support Rank Profile to probe support_rank_profile_consistency with semantic role count_distribution. Focus on group_col=doors.",
|
| 24 |
+
"bindings": {
|
| 25 |
+
"group_col": "doors"
|
| 26 |
+
},
|
| 27 |
+
"binding_roles": [
|
| 28 |
+
"group_col"
|
| 29 |
+
],
|
| 30 |
+
"coverage_target_min": "enumerate_all_applicable",
|
| 31 |
+
"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;",
|
| 32 |
+
"notes": [
|
| 33 |
+
"default_facets=support_concentration,value_imbalance_profile",
|
| 34 |
+
"template_selection_mode=deterministic",
|
| 35 |
+
"problem_index_within_template=3",
|
| 36 |
+
"sql_variant_index=1/1"
|
| 37 |
+
],
|
| 38 |
+
"template_selection_mode": "deterministic",
|
| 39 |
+
"selected_template_rank": 0,
|
| 40 |
+
"problem_index_within_template": 3,
|
| 41 |
+
"sql_variant_index": 1,
|
| 42 |
+
"sql_variant_total": 1
|
| 43 |
+
},
|
| 44 |
+
"mode": "subitem_workload_v2",
|
| 45 |
+
"sql_source_version": "v2",
|
| 46 |
+
"sql_source_label": "v2_current",
|
| 47 |
+
"generated_sql_path": "D:\\dpan\\Uni\\Project\\HKUNAISS\\SQLagent\\logs\\subitem_workload_v4\\runs\\smoke_v4_c2_template\\c2\\sql\\v2q_c2_0430aead08e04f13.sql",
|
| 48 |
+
"usage_summary": {
|
| 49 |
+
"engine": "template",
|
| 50 |
+
"input_tokens": 0,
|
| 51 |
+
"cached_input_tokens": 0,
|
| 52 |
+
"output_tokens": 0,
|
| 53 |
+
"total_tokens": 0,
|
| 54 |
+
"estimated_total_tokens": 0,
|
| 55 |
+
"usage_source": "none"
|
| 56 |
+
}
|
| 57 |
+
}
|
Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_0430aead08e04f13/usage_summary.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"engine": "template",
|
| 3 |
+
"input_tokens": 0,
|
| 4 |
+
"cached_input_tokens": 0,
|
| 5 |
+
"output_tokens": 0,
|
| 6 |
+
"total_tokens": 0,
|
| 7 |
+
"estimated_total_tokens": 0,
|
| 8 |
+
"usage_source": "none"
|
| 9 |
+
}
|
Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_050bb8c9612638aa/final_answer.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"row_count": null, "preview_rows": [{"lug_boot": "small", "support": 576, "focus_rate": 0.78125}, {"lug_boot": "med", "support": 576, "focus_rate": 0.6805555555555556}, {"lug_boot": "big", "support": 576, "focus_rate": 0.6388888888888888}]}
|
Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_050bb8c9612638aa/generated_sql.sql
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v4
|
| 2 |
+
-- sql_source_label: v4_current
|
| 3 |
+
-- sql_source_run_id: smoke_v4_c2_template
|
| 4 |
+
-- sql_source_dataset_id: c2
|
| 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_tail_target_rate_extremes_v2
|
| 10 |
+
-- query_record_id: v2q_c2_050bb8c9612638aa
|
| 11 |
+
-- problem_id: v2p_c2_c13c0d5c605d28a9
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
SELECT
|
| 15 |
+
"lug_boot",
|
| 16 |
+
COUNT(*) AS support,
|
| 17 |
+
AVG(CASE WHEN "class" = 'unacc' THEN 1 ELSE 0 END) AS focus_rate
|
| 18 |
+
FROM "c2"
|
| 19 |
+
GROUP BY "lug_boot"
|
| 20 |
+
HAVING COUNT(*) >= 4.0
|
| 21 |
+
ORDER BY focus_rate DESC, support ASC
|
| 22 |
+
LIMIT 18;
|
Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_050bb8c9612638aa/query_results.jsonl
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"node_name": "v2_template", "tool_name": "sqlite_query", "query": "-- sql_source_version: v4\n-- sql_source_label: v4_current\n-- sql_source_run_id: smoke_v4_c2_template\n-- sql_source_dataset_id: c2\n-- family_id: tail_rarity_structure\n-- canonical_subitem_id: tail_concentration_consistency\n-- intended_facet_id: rare_target_concentration\n-- variant_semantic_role: ranked_signal_view\n-- template_id: tpl_tail_target_rate_extremes_v2\n-- query_record_id: v2q_c2_050bb8c9612638aa\n-- problem_id: v2p_c2_c13c0d5c605d28a9\n-- realization_mode: agent\n-- source_kind: agent\nSELECT\n \"lug_boot\",\n COUNT(*) AS support,\n AVG(CASE WHEN \"class\" = 'unacc' THEN 1 ELSE 0 END) AS focus_rate\nFROM \"c2\"\nGROUP BY \"lug_boot\"\nHAVING COUNT(*) >= 4.0\nORDER BY focus_rate DESC, support ASC\nLIMIT 18;", "result": "{\"query\": \"-- sql_source_version: v4\\n-- sql_source_label: v4_current\\n-- sql_source_run_id: smoke_v4_c2_template\\n-- sql_source_dataset_id: c2\\n-- family_id: tail_rarity_structure\\n-- canonical_subitem_id: tail_concentration_consistency\\n-- intended_facet_id: rare_target_concentration\\n-- variant_semantic_role: ranked_signal_view\\n-- template_id: tpl_tail_target_rate_extremes_v2\\n-- query_record_id: v2q_c2_050bb8c9612638aa\\n-- problem_id: v2p_c2_c13c0d5c605d28a9\\n-- realization_mode: agent\\n-- source_kind: agent\\nSELECT\\n \\\"lug_boot\\\",\\n COUNT(*) AS support,\\n AVG(CASE WHEN \\\"class\\\" = 'unacc' THEN 1 ELSE 0 END) AS focus_rate\\nFROM \\\"c2\\\"\\nGROUP BY \\\"lug_boot\\\"\\nHAVING COUNT(*) >= 4.0\\nORDER BY focus_rate DESC, support ASC\\nLIMIT 18;\", \"columns\": [\"lug_boot\", \"support\", \"focus_rate\"], \"rows\": [{\"lug_boot\": \"small\", \"support\": 576, \"focus_rate\": 0.78125}, {\"lug_boot\": \"med\", \"support\": 576, \"focus_rate\": 0.6805555555555556}, {\"lug_boot\": \"big\", \"support\": 576, \"focus_rate\": 0.6388888888888888}], \"row_count_returned\": 3, \"row_limit\": 50, \"truncated\": false, \"elapsed_ms\": 0.8}"}
|
Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_050bb8c9612638aa/run_manifest.json
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"run_id": "smoke_v4_c2_template",
|
| 3 |
+
"dataset_id": "c2",
|
| 4 |
+
"started_at": "2026-05-03T11:02:17.104148+00:00",
|
| 5 |
+
"ended_at": "2026-05-03T11:02:17.106775+00:00",
|
| 6 |
+
"status": "completed",
|
| 7 |
+
"engine": "template",
|
| 8 |
+
"question_record": {
|
| 9 |
+
"query_record_id": "v2q_c2_050bb8c9612638aa",
|
| 10 |
+
"problem_id": "v2p_c2_c13c0d5c605d28a9",
|
| 11 |
+
"dataset_id": "c2",
|
| 12 |
+
"template_id": "tpl_tail_target_rate_extremes_v2",
|
| 13 |
+
"template_name": "Tail Target-Rate Extremes",
|
| 14 |
+
"family_id": "tail_rarity_structure",
|
| 15 |
+
"canonical_subitem_id": "tail_concentration_consistency",
|
| 16 |
+
"intended_facet_id": "rare_target_concentration",
|
| 17 |
+
"variant_semantic_role": "ranked_signal_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 Tail Target-Rate Extremes to probe tail_concentration_consistency with semantic role ranked_signal_view. Focus on group_col=lug_boot, target_col=class.",
|
| 24 |
+
"bindings": {
|
| 25 |
+
"group_col": "lug_boot",
|
| 26 |
+
"target_col": "class",
|
| 27 |
+
"target_value": "unacc",
|
| 28 |
+
"top_k": 18,
|
| 29 |
+
"top_n": 4,
|
| 30 |
+
"num_tiles": 10,
|
| 31 |
+
"percentile_value": 0.9,
|
| 32 |
+
"z_threshold": 2.0,
|
| 33 |
+
"fraction_threshold": 0.05,
|
| 34 |
+
"baseline_multiplier": 1.75,
|
| 35 |
+
"baseline_fraction": 0.1,
|
| 36 |
+
"min_group_size": 5,
|
| 37 |
+
"min_support": 4,
|
| 38 |
+
"measure_threshold": 0.0,
|
| 39 |
+
"time_grain": "month",
|
| 40 |
+
"lookback_rows": 3,
|
| 41 |
+
"current_period_start": "'2024-01-01'",
|
| 42 |
+
"current_period_end": "'2024-04-01'",
|
| 43 |
+
"previous_period_start": "'2023-10-01'",
|
| 44 |
+
"previous_period_end": "'2024-01-01'",
|
| 45 |
+
"drift_ratio_threshold": 0.8
|
| 46 |
+
},
|
| 47 |
+
"binding_roles": [
|
| 48 |
+
"group_col",
|
| 49 |
+
"target_col"
|
| 50 |
+
],
|
| 51 |
+
"coverage_target_min": "5",
|
| 52 |
+
"runtime_sql_skeleton": "SELECT\n {group_col},\n COUNT(*) AS support,\n AVG(CASE WHEN {target_col} = {target_value} THEN 1 ELSE 0 END) AS focus_rate\nFROM {table}\nGROUP BY {group_col}\nHAVING COUNT(*) >= {min_support}\nORDER BY focus_rate DESC, support ASC\nLIMIT {top_k};",
|
| 53 |
+
"notes": [
|
| 54 |
+
"default_facets=rare_target_concentration",
|
| 55 |
+
"template_selection_mode=rule",
|
| 56 |
+
"problem_index_within_template=5",
|
| 57 |
+
"sql_variant_index=2/2",
|
| 58 |
+
"binding_index=88"
|
| 59 |
+
],
|
| 60 |
+
"template_selection_mode": "rule",
|
| 61 |
+
"selected_template_rank": 8,
|
| 62 |
+
"problem_index_within_template": 5,
|
| 63 |
+
"sql_variant_index": 2,
|
| 64 |
+
"sql_variant_total": 2
|
| 65 |
+
},
|
| 66 |
+
"mode": "subitem_workload_v2",
|
| 67 |
+
"sql_source_version": "v2",
|
| 68 |
+
"sql_source_label": "v2_current",
|
| 69 |
+
"generated_sql_path": "D:\\dpan\\Uni\\Project\\HKUNAISS\\SQLagent\\logs\\subitem_workload_v4\\runs\\smoke_v4_c2_template\\c2\\sql\\v2q_c2_050bb8c9612638aa.sql",
|
| 70 |
+
"usage_summary": {
|
| 71 |
+
"engine": "template",
|
| 72 |
+
"input_tokens": 0,
|
| 73 |
+
"cached_input_tokens": 0,
|
| 74 |
+
"output_tokens": 0,
|
| 75 |
+
"total_tokens": 0,
|
| 76 |
+
"estimated_total_tokens": 0,
|
| 77 |
+
"usage_source": "none"
|
| 78 |
+
}
|
| 79 |
+
}
|
Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_050bb8c9612638aa/usage_summary.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"engine": "template",
|
| 3 |
+
"input_tokens": 0,
|
| 4 |
+
"cached_input_tokens": 0,
|
| 5 |
+
"output_tokens": 0,
|
| 6 |
+
"total_tokens": 0,
|
| 7 |
+
"estimated_total_tokens": 0,
|
| 8 |
+
"usage_source": "none"
|
| 9 |
+
}
|
Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_0584255cfe12d3f4/final_answer.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"row_count": null, "preview_rows": [{"safety": "high", "class": "unacc", "target_rate": 1.0}, {"safety": "low", "class": "unacc", "target_rate": 1.0}, {"safety": "med", "class": "unacc", "target_rate": 1.0}, {"safety": "high", "class": "acc", "target_rate": 0.0}, {"safety": "high", "class": "good", "target_rate": 0.0}]}
|
Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_0584255cfe12d3f4/generated_sql.sql
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v4
|
| 2 |
+
-- sql_source_label: v4_current
|
| 3 |
+
-- sql_source_run_id: smoke_v4_c2_template
|
| 4 |
+
-- sql_source_dataset_id: c2
|
| 5 |
+
-- family_id: conditional_dependency_structure
|
| 6 |
+
-- canonical_subitem_id: dependency_strength_similarity
|
| 7 |
+
-- intended_facet_id: pairwise_conditional_dependency
|
| 8 |
+
-- variant_semantic_role: ranked_signal_view
|
| 9 |
+
-- template_id: tpl_c2_two_dim_target_rate
|
| 10 |
+
-- query_record_id: v2q_c2_0584255cfe12d3f4
|
| 11 |
+
-- problem_id: v2p_c2_b17411bd0d202f2e
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
SELECT "safety", "class",
|
| 15 |
+
AVG(CASE WHEN "class" = 'unacc' THEN 1 ELSE 0 END) AS target_rate
|
| 16 |
+
FROM "c2"
|
| 17 |
+
GROUP BY "safety", "class"
|
| 18 |
+
ORDER BY target_rate DESC;
|
Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_0584255cfe12d3f4/query_results.jsonl
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"node_name": "v2_template", "tool_name": "sqlite_query", "query": "-- sql_source_version: v4\n-- sql_source_label: v4_current\n-- sql_source_run_id: smoke_v4_c2_template\n-- sql_source_dataset_id: c2\n-- family_id: conditional_dependency_structure\n-- canonical_subitem_id: dependency_strength_similarity\n-- intended_facet_id: pairwise_conditional_dependency\n-- variant_semantic_role: ranked_signal_view\n-- template_id: tpl_c2_two_dim_target_rate\n-- query_record_id: v2q_c2_0584255cfe12d3f4\n-- problem_id: v2p_c2_b17411bd0d202f2e\n-- realization_mode: agent\n-- source_kind: agent\nSELECT \"safety\", \"class\",\n AVG(CASE WHEN \"class\" = 'unacc' THEN 1 ELSE 0 END) AS target_rate\nFROM \"c2\"\nGROUP BY \"safety\", \"class\"\nORDER BY target_rate DESC;", "result": "{\"query\": \"-- sql_source_version: v4\\n-- sql_source_label: v4_current\\n-- sql_source_run_id: smoke_v4_c2_template\\n-- sql_source_dataset_id: c2\\n-- family_id: conditional_dependency_structure\\n-- canonical_subitem_id: dependency_strength_similarity\\n-- intended_facet_id: pairwise_conditional_dependency\\n-- variant_semantic_role: ranked_signal_view\\n-- template_id: tpl_c2_two_dim_target_rate\\n-- query_record_id: v2q_c2_0584255cfe12d3f4\\n-- problem_id: v2p_c2_b17411bd0d202f2e\\n-- realization_mode: agent\\n-- source_kind: agent\\nSELECT \\\"safety\\\", \\\"class\\\",\\n AVG(CASE WHEN \\\"class\\\" = 'unacc' THEN 1 ELSE 0 END) AS target_rate\\nFROM \\\"c2\\\"\\nGROUP BY \\\"safety\\\", \\\"class\\\"\\nORDER BY target_rate DESC;\", \"columns\": [\"safety\", \"class\", \"target_rate\"], \"rows\": [{\"safety\": \"high\", \"class\": \"unacc\", \"target_rate\": 1.0}, {\"safety\": \"low\", \"class\": \"unacc\", \"target_rate\": 1.0}, {\"safety\": \"med\", \"class\": \"unacc\", \"target_rate\": 1.0}, {\"safety\": \"high\", \"class\": \"acc\", \"target_rate\": 0.0}, {\"safety\": \"high\", \"class\": \"good\", \"target_rate\": 0.0}, {\"safety\": \"high\", \"class\": \"vgood\", \"target_rate\": 0.0}, {\"safety\": \"med\", \"class\": \"acc\", \"target_rate\": 0.0}, {\"safety\": \"med\", \"class\": \"good\", \"target_rate\": 0.0}], \"row_count_returned\": 8, \"row_limit\": 50, \"truncated\": false, \"elapsed_ms\": 1.2}"}
|
Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_0584255cfe12d3f4/run_manifest.json
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"run_id": "smoke_v4_c2_template",
|
| 3 |
+
"dataset_id": "c2",
|
| 4 |
+
"started_at": "2026-05-03T11:02:17.227618+00:00",
|
| 5 |
+
"ended_at": "2026-05-03T11:02:17.231204+00:00",
|
| 6 |
+
"status": "completed",
|
| 7 |
+
"engine": "template",
|
| 8 |
+
"question_record": {
|
| 9 |
+
"query_record_id": "v2q_c2_0584255cfe12d3f4",
|
| 10 |
+
"problem_id": "v2p_c2_b17411bd0d202f2e",
|
| 11 |
+
"dataset_id": "c2",
|
| 12 |
+
"template_id": "tpl_c2_two_dim_target_rate",
|
| 13 |
+
"template_name": "Two-Axis Target Rate Surface",
|
| 14 |
+
"family_id": "conditional_dependency_structure",
|
| 15 |
+
"canonical_subitem_id": "dependency_strength_similarity",
|
| 16 |
+
"intended_facet_id": "pairwise_conditional_dependency",
|
| 17 |
+
"variant_semantic_role": "ranked_signal_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 Two-Axis Target Rate Surface to probe dependency_strength_similarity with semantic role ranked_signal_view. Focus on group_col=safety, group_col_2=class, target_col=class.",
|
| 24 |
+
"bindings": {
|
| 25 |
+
"group_col": "safety",
|
| 26 |
+
"group_col_2": "class",
|
| 27 |
+
"target_col": "class",
|
| 28 |
+
"target_value": "unacc",
|
| 29 |
+
"top_k": 19,
|
| 30 |
+
"top_n": 4,
|
| 31 |
+
"num_tiles": 10,
|
| 32 |
+
"percentile_value": 0.9,
|
| 33 |
+
"z_threshold": 2.0,
|
| 34 |
+
"fraction_threshold": 0.05,
|
| 35 |
+
"baseline_multiplier": 1.75,
|
| 36 |
+
"baseline_fraction": 0.1,
|
| 37 |
+
"min_group_size": 5,
|
| 38 |
+
"min_support": 4,
|
| 39 |
+
"measure_threshold": 0.0,
|
| 40 |
+
"time_grain": "month",
|
| 41 |
+
"lookback_rows": 3,
|
| 42 |
+
"current_period_start": "'2024-01-01'",
|
| 43 |
+
"current_period_end": "'2024-04-01'",
|
| 44 |
+
"previous_period_start": "'2023-10-01'",
|
| 45 |
+
"previous_period_end": "'2024-01-01'",
|
| 46 |
+
"drift_ratio_threshold": 0.8
|
| 47 |
+
},
|
| 48 |
+
"binding_roles": [
|
| 49 |
+
"group_col",
|
| 50 |
+
"group_col_2",
|
| 51 |
+
"target_col"
|
| 52 |
+
],
|
| 53 |
+
"coverage_target_min": "5",
|
| 54 |
+
"runtime_sql_skeleton": "SELECT {group_col}, {group_col_2},\n AVG(CASE WHEN {target_col} = {target_value} THEN 1 ELSE 0 END) AS target_rate\nFROM {table}\nGROUP BY {group_col}, {group_col_2}\nORDER BY target_rate DESC;",
|
| 55 |
+
"notes": [
|
| 56 |
+
"default_facets=pairwise_conditional_dependency",
|
| 57 |
+
"template_selection_mode=rule",
|
| 58 |
+
"problem_index_within_template=9",
|
| 59 |
+
"sql_variant_index=2/2",
|
| 60 |
+
"binding_index=104"
|
| 61 |
+
],
|
| 62 |
+
"template_selection_mode": "rule",
|
| 63 |
+
"selected_template_rank": 9,
|
| 64 |
+
"problem_index_within_template": 9,
|
| 65 |
+
"sql_variant_index": 2,
|
| 66 |
+
"sql_variant_total": 2
|
| 67 |
+
},
|
| 68 |
+
"mode": "subitem_workload_v2",
|
| 69 |
+
"sql_source_version": "v2",
|
| 70 |
+
"sql_source_label": "v2_current",
|
| 71 |
+
"generated_sql_path": "D:\\dpan\\Uni\\Project\\HKUNAISS\\SQLagent\\logs\\subitem_workload_v4\\runs\\smoke_v4_c2_template\\c2\\sql\\v2q_c2_0584255cfe12d3f4.sql",
|
| 72 |
+
"usage_summary": {
|
| 73 |
+
"engine": "template",
|
| 74 |
+
"input_tokens": 0,
|
| 75 |
+
"cached_input_tokens": 0,
|
| 76 |
+
"output_tokens": 0,
|
| 77 |
+
"total_tokens": 0,
|
| 78 |
+
"estimated_total_tokens": 0,
|
| 79 |
+
"usage_source": "none"
|
| 80 |
+
}
|
| 81 |
+
}
|
Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_0584255cfe12d3f4/usage_summary.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"engine": "template",
|
| 3 |
+
"input_tokens": 0,
|
| 4 |
+
"cached_input_tokens": 0,
|
| 5 |
+
"output_tokens": 0,
|
| 6 |
+
"total_tokens": 0,
|
| 7 |
+
"estimated_total_tokens": 0,
|
| 8 |
+
"usage_source": "none"
|
| 9 |
+
}
|
Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_06a19f9d880447a9/final_answer.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"row_count": null, "preview_rows": [{"maint": "med", "support": 432, "focus_rate": 0.2662037037037037}, {"maint": "high", "support": 432, "focus_rate": 0.24305555555555555}, {"maint": "low", "support": 432, "focus_rate": 0.21296296296296297}, {"maint": "vhigh", "support": 432, "focus_rate": 0.16666666666666666}]}
|
Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_06a19f9d880447a9/generated_sql.sql
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v4
|
| 2 |
+
-- sql_source_label: v4_current
|
| 3 |
+
-- sql_source_run_id: smoke_v4_c2_template
|
| 4 |
+
-- sql_source_dataset_id: c2
|
| 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_tail_target_rate_extremes_v2
|
| 10 |
+
-- query_record_id: v2q_c2_06a19f9d880447a9
|
| 11 |
+
-- problem_id: v2p_c2_aeb4931266300854
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
SELECT
|
| 15 |
+
"maint",
|
| 16 |
+
COUNT(*) AS support,
|
| 17 |
+
AVG(CASE WHEN "class" = 'acc' THEN 1 ELSE 0 END) AS focus_rate
|
| 18 |
+
FROM "c2"
|
| 19 |
+
GROUP BY "maint"
|
| 20 |
+
HAVING COUNT(*) >= 5.0
|
| 21 |
+
ORDER BY focus_rate DESC, support ASC
|
| 22 |
+
LIMIT 10;
|
Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_06a19f9d880447a9/query_results.jsonl
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"node_name": "v2_template", "tool_name": "sqlite_query", "query": "-- sql_source_version: v4\n-- sql_source_label: v4_current\n-- sql_source_run_id: smoke_v4_c2_template\n-- sql_source_dataset_id: c2\n-- family_id: tail_rarity_structure\n-- canonical_subitem_id: tail_concentration_consistency\n-- intended_facet_id: rare_target_concentration\n-- variant_semantic_role: ranked_signal_view\n-- template_id: tpl_tail_target_rate_extremes_v2\n-- query_record_id: v2q_c2_06a19f9d880447a9\n-- problem_id: v2p_c2_aeb4931266300854\n-- realization_mode: agent\n-- source_kind: agent\nSELECT\n \"maint\",\n COUNT(*) AS support,\n AVG(CASE WHEN \"class\" = 'acc' THEN 1 ELSE 0 END) AS focus_rate\nFROM \"c2\"\nGROUP BY \"maint\"\nHAVING COUNT(*) >= 5.0\nORDER BY focus_rate DESC, support ASC\nLIMIT 10;", "result": "{\"query\": \"-- sql_source_version: v4\\n-- sql_source_label: v4_current\\n-- sql_source_run_id: smoke_v4_c2_template\\n-- sql_source_dataset_id: c2\\n-- family_id: tail_rarity_structure\\n-- canonical_subitem_id: tail_concentration_consistency\\n-- intended_facet_id: rare_target_concentration\\n-- variant_semantic_role: ranked_signal_view\\n-- template_id: tpl_tail_target_rate_extremes_v2\\n-- query_record_id: v2q_c2_06a19f9d880447a9\\n-- problem_id: v2p_c2_aeb4931266300854\\n-- realization_mode: agent\\n-- source_kind: agent\\nSELECT\\n \\\"maint\\\",\\n COUNT(*) AS support,\\n AVG(CASE WHEN \\\"class\\\" = 'acc' THEN 1 ELSE 0 END) AS focus_rate\\nFROM \\\"c2\\\"\\nGROUP BY \\\"maint\\\"\\nHAVING COUNT(*) >= 5.0\\nORDER BY focus_rate DESC, support ASC\\nLIMIT 10;\", \"columns\": [\"maint\", \"support\", \"focus_rate\"], \"rows\": [{\"maint\": \"med\", \"support\": 432, \"focus_rate\": 0.2662037037037037}, {\"maint\": \"high\", \"support\": 432, \"focus_rate\": 0.24305555555555555}, {\"maint\": \"low\", \"support\": 432, \"focus_rate\": 0.21296296296296297}, {\"maint\": \"vhigh\", \"support\": 432, \"focus_rate\": 0.16666666666666666}], \"row_count_returned\": 4, \"row_limit\": 50, \"truncated\": false, \"elapsed_ms\": 0.91}"}
|
Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_06a19f9d880447a9/run_manifest.json
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"run_id": "smoke_v4_c2_template",
|
| 3 |
+
"dataset_id": "c2",
|
| 4 |
+
"started_at": "2026-05-03T11:02:17.073892+00:00",
|
| 5 |
+
"ended_at": "2026-05-03T11:02:17.077133+00:00",
|
| 6 |
+
"status": "completed",
|
| 7 |
+
"engine": "template",
|
| 8 |
+
"question_record": {
|
| 9 |
+
"query_record_id": "v2q_c2_06a19f9d880447a9",
|
| 10 |
+
"problem_id": "v2p_c2_aeb4931266300854",
|
| 11 |
+
"dataset_id": "c2",
|
| 12 |
+
"template_id": "tpl_tail_target_rate_extremes_v2",
|
| 13 |
+
"template_name": "Tail Target-Rate Extremes",
|
| 14 |
+
"family_id": "tail_rarity_structure",
|
| 15 |
+
"canonical_subitem_id": "tail_concentration_consistency",
|
| 16 |
+
"intended_facet_id": "rare_target_concentration",
|
| 17 |
+
"variant_semantic_role": "ranked_signal_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 Tail Target-Rate Extremes to probe tail_concentration_consistency with semantic role ranked_signal_view. Focus on group_col=maint, target_col=class.",
|
| 24 |
+
"bindings": {
|
| 25 |
+
"group_col": "maint",
|
| 26 |
+
"target_col": "class",
|
| 27 |
+
"target_value": "acc",
|
| 28 |
+
"top_k": 10,
|
| 29 |
+
"top_n": 4,
|
| 30 |
+
"num_tiles": 10,
|
| 31 |
+
"percentile_value": 0.9,
|
| 32 |
+
"z_threshold": 2.0,
|
| 33 |
+
"fraction_threshold": 0.1,
|
| 34 |
+
"baseline_multiplier": 1.5,
|
| 35 |
+
"baseline_fraction": 0.1,
|
| 36 |
+
"min_group_size": 5,
|
| 37 |
+
"min_support": 5,
|
| 38 |
+
"measure_threshold": 0.0,
|
| 39 |
+
"time_grain": "month",
|
| 40 |
+
"lookback_rows": 3,
|
| 41 |
+
"current_period_start": "'2024-01-01'",
|
| 42 |
+
"current_period_end": "'2024-04-01'",
|
| 43 |
+
"previous_period_start": "'2023-10-01'",
|
| 44 |
+
"previous_period_end": "'2024-01-01'",
|
| 45 |
+
"drift_ratio_threshold": 0.8
|
| 46 |
+
},
|
| 47 |
+
"binding_roles": [
|
| 48 |
+
"group_col",
|
| 49 |
+
"target_col"
|
| 50 |
+
],
|
| 51 |
+
"coverage_target_min": "5",
|
| 52 |
+
"runtime_sql_skeleton": "SELECT\n {group_col},\n COUNT(*) AS support,\n AVG(CASE WHEN {target_col} = {target_value} THEN 1 ELSE 0 END) AS focus_rate\nFROM {table}\nGROUP BY {group_col}\nHAVING COUNT(*) >= {min_support}\nORDER BY focus_rate DESC, support ASC\nLIMIT {top_k};",
|
| 53 |
+
"notes": [
|
| 54 |
+
"default_facets=rare_target_concentration",
|
| 55 |
+
"template_selection_mode=rule",
|
| 56 |
+
"problem_index_within_template=2",
|
| 57 |
+
"sql_variant_index=1/2",
|
| 58 |
+
"binding_index=85"
|
| 59 |
+
],
|
| 60 |
+
"template_selection_mode": "rule",
|
| 61 |
+
"selected_template_rank": 8,
|
| 62 |
+
"problem_index_within_template": 2,
|
| 63 |
+
"sql_variant_index": 1,
|
| 64 |
+
"sql_variant_total": 2
|
| 65 |
+
},
|
| 66 |
+
"mode": "subitem_workload_v2",
|
| 67 |
+
"sql_source_version": "v2",
|
| 68 |
+
"sql_source_label": "v2_current",
|
| 69 |
+
"generated_sql_path": "D:\\dpan\\Uni\\Project\\HKUNAISS\\SQLagent\\logs\\subitem_workload_v4\\runs\\smoke_v4_c2_template\\c2\\sql\\v2q_c2_06a19f9d880447a9.sql",
|
| 70 |
+
"usage_summary": {
|
| 71 |
+
"engine": "template",
|
| 72 |
+
"input_tokens": 0,
|
| 73 |
+
"cached_input_tokens": 0,
|
| 74 |
+
"output_tokens": 0,
|
| 75 |
+
"total_tokens": 0,
|
| 76 |
+
"estimated_total_tokens": 0,
|
| 77 |
+
"usage_source": "none"
|
| 78 |
+
}
|
| 79 |
+
}
|
Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_06a19f9d880447a9/usage_summary.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"engine": "template",
|
| 3 |
+
"input_tokens": 0,
|
| 4 |
+
"cached_input_tokens": 0,
|
| 5 |
+
"output_tokens": 0,
|
| 6 |
+
"total_tokens": 0,
|
| 7 |
+
"estimated_total_tokens": 0,
|
| 8 |
+
"usage_source": "none"
|
| 9 |
+
}
|
Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_07071d372558517c/final_answer.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"row_count": null, "preview_rows": [{"class": "vgood", "support": 65}, {"class": "good", "support": 69}, {"class": "acc", "support": 384}, {"class": "unacc", "support": 1210}]}
|
Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_07071d372558517c/generated_sql.sql
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v4
|
| 2 |
+
-- sql_source_label: v4_current
|
| 3 |
+
-- sql_source_run_id: smoke_v4_c2_template
|
| 4 |
+
-- sql_source_dataset_id: c2
|
| 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_c2_07071d372558517c
|
| 11 |
+
-- problem_id: v2p_c2_6bb4aaba2c78c396
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
SELECT
|
| 15 |
+
"class",
|
| 16 |
+
COUNT(*) AS support
|
| 17 |
+
FROM "c2"
|
| 18 |
+
GROUP BY "class"
|
| 19 |
+
ORDER BY support ASC, "class"
|
| 20 |
+
LIMIT 12;
|
Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_07071d372558517c/query_results.jsonl
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"node_name": "v2_template", "tool_name": "sqlite_query", "query": "-- sql_source_version: v4\n-- sql_source_label: v4_current\n-- sql_source_run_id: smoke_v4_c2_template\n-- sql_source_dataset_id: c2\n-- family_id: tail_rarity_structure\n-- canonical_subitem_id: tail_set_consistency\n-- intended_facet_id: low_support_extremes\n-- variant_semantic_role: rare_extreme_view\n-- template_id: tpl_tail_low_support_group_count_v2\n-- query_record_id: v2q_c2_07071d372558517c\n-- problem_id: v2p_c2_6bb4aaba2c78c396\n-- realization_mode: agent\n-- source_kind: agent\nSELECT\n \"class\",\n COUNT(*) AS support\nFROM \"c2\"\nGROUP BY \"class\"\nORDER BY support ASC, \"class\"\nLIMIT 12;", "result": "{\"query\": \"-- sql_source_version: v4\\n-- sql_source_label: v4_current\\n-- sql_source_run_id: smoke_v4_c2_template\\n-- sql_source_dataset_id: c2\\n-- family_id: tail_rarity_structure\\n-- canonical_subitem_id: tail_set_consistency\\n-- intended_facet_id: low_support_extremes\\n-- variant_semantic_role: rare_extreme_view\\n-- template_id: tpl_tail_low_support_group_count_v2\\n-- query_record_id: v2q_c2_07071d372558517c\\n-- problem_id: v2p_c2_6bb4aaba2c78c396\\n-- realization_mode: agent\\n-- source_kind: agent\\nSELECT\\n \\\"class\\\",\\n COUNT(*) AS support\\nFROM \\\"c2\\\"\\nGROUP BY \\\"class\\\"\\nORDER BY support ASC, \\\"class\\\"\\nLIMIT 12;\", \"columns\": [\"class\", \"support\"], \"rows\": [{\"class\": \"vgood\", \"support\": 65}, {\"class\": \"good\", \"support\": 69}, {\"class\": \"acc\", \"support\": 384}, {\"class\": \"unacc\", \"support\": 1210}], \"row_count_returned\": 4, \"row_limit\": 50, \"truncated\": false, \"elapsed_ms\": 0.68}"}
|
Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_07071d372558517c/run_manifest.json
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"run_id": "smoke_v4_c2_template",
|
| 3 |
+
"dataset_id": "c2",
|
| 4 |
+
"started_at": "2026-05-03T11:02:16.966127+00:00",
|
| 5 |
+
"ended_at": "2026-05-03T11:02:16.968524+00:00",
|
| 6 |
+
"status": "completed",
|
| 7 |
+
"engine": "template",
|
| 8 |
+
"question_record": {
|
| 9 |
+
"query_record_id": "v2q_c2_07071d372558517c",
|
| 10 |
+
"problem_id": "v2p_c2_6bb4aaba2c78c396",
|
| 11 |
+
"dataset_id": "c2",
|
| 12 |
+
"template_id": "tpl_tail_low_support_group_count_v2",
|
| 13 |
+
"template_name": "Low-Support Group Count",
|
| 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 Low-Support Group Count to probe tail_set_consistency with semantic role rare_extreme_view. Focus on group_col=class.",
|
| 24 |
+
"bindings": {
|
| 25 |
+
"group_col": "class",
|
| 26 |
+
"top_k": 12,
|
| 27 |
+
"top_n": 5,
|
| 28 |
+
"num_tiles": 10,
|
| 29 |
+
"percentile_value": 0.95,
|
| 30 |
+
"z_threshold": 2.0,
|
| 31 |
+
"fraction_threshold": 0.1,
|
| 32 |
+
"baseline_multiplier": 1.5,
|
| 33 |
+
"baseline_fraction": 0.1,
|
| 34 |
+
"min_group_size": 5,
|
| 35 |
+
"min_support": 5,
|
| 36 |
+
"measure_threshold": 0.0,
|
| 37 |
+
"time_grain": "month",
|
| 38 |
+
"lookback_rows": 3,
|
| 39 |
+
"current_period_start": "'2024-01-01'",
|
| 40 |
+
"current_period_end": "'2024-04-01'",
|
| 41 |
+
"previous_period_start": "'2023-10-01'",
|
| 42 |
+
"previous_period_end": "'2024-01-01'",
|
| 43 |
+
"drift_ratio_threshold": 0.8
|
| 44 |
+
},
|
| 45 |
+
"binding_roles": [
|
| 46 |
+
"group_col"
|
| 47 |
+
],
|
| 48 |
+
"coverage_target_min": "5",
|
| 49 |
+
"runtime_sql_skeleton": "SELECT\n {group_col},\n COUNT(*) AS support\nFROM {table}\nGROUP BY {group_col}\nORDER BY support ASC, {group_col}\nLIMIT {top_k};",
|
| 50 |
+
"notes": [
|
| 51 |
+
"default_facets=low_support_extremes",
|
| 52 |
+
"template_selection_mode=rule",
|
| 53 |
+
"problem_index_within_template=3",
|
| 54 |
+
"sql_variant_index=1/2",
|
| 55 |
+
"binding_index=62"
|
| 56 |
+
],
|
| 57 |
+
"template_selection_mode": "rule",
|
| 58 |
+
"selected_template_rank": 6,
|
| 59 |
+
"problem_index_within_template": 3,
|
| 60 |
+
"sql_variant_index": 1,
|
| 61 |
+
"sql_variant_total": 2
|
| 62 |
+
},
|
| 63 |
+
"mode": "subitem_workload_v2",
|
| 64 |
+
"sql_source_version": "v2",
|
| 65 |
+
"sql_source_label": "v2_current",
|
| 66 |
+
"generated_sql_path": "D:\\dpan\\Uni\\Project\\HKUNAISS\\SQLagent\\logs\\subitem_workload_v4\\runs\\smoke_v4_c2_template\\c2\\sql\\v2q_c2_07071d372558517c.sql",
|
| 67 |
+
"usage_summary": {
|
| 68 |
+
"engine": "template",
|
| 69 |
+
"input_tokens": 0,
|
| 70 |
+
"cached_input_tokens": 0,
|
| 71 |
+
"output_tokens": 0,
|
| 72 |
+
"total_tokens": 0,
|
| 73 |
+
"estimated_total_tokens": 0,
|
| 74 |
+
"usage_source": "none"
|
| 75 |
+
}
|
| 76 |
+
}
|
Query/sql/v4/runs/smoke_v4_c2_template/c2/artifacts/v2q_c2_07071d372558517c/usage_summary.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"engine": "template",
|
| 3 |
+
"input_tokens": 0,
|
| 4 |
+
"cached_input_tokens": 0,
|
| 5 |
+
"output_tokens": 0,
|
| 6 |
+
"total_tokens": 0,
|
| 7 |
+
"estimated_total_tokens": 0,
|
| 8 |
+
"usage_source": "none"
|
| 9 |
+
}
|