TabQueryBench commited on
Commit
3c403bb
·
verified ·
1 Parent(s): f69cc81

Add files using upload-large-folder tool

Browse files
Files changed (20) hide show
  1. Query/sql/v2/runs/v2_cli_20260502_081223_f/m11/artifacts/v2q_m11_1f601dd0d5fa985c/run_manifest.json +69 -0
  2. Query/sql/v2/runs/v2_cli_20260502_081223_f/m11/artifacts/v2q_m11_c2884e89cfb77b7a/run_manifest.json +67 -0
  3. Query/sql/v2/runs/v2_cli_20260502_081223_f/m11/artifacts/v2q_m11_c2884e89cfb77b7a/trace.jsonl +2 -0
  4. Query/sql/v2/runs/v2_cli_20260502_081223_f/m11/sql/v2q_m11_03b0b515df75fb75.sql +28 -0
  5. Query/sql/v2/runs/v2_cli_20260502_081223_f/m11/sql/v2q_m11_0886f8dfc0f94dba.sql +17 -0
  6. Query/sql/v2/runs/v2_cli_20260502_081223_f/m11/sql/v2q_m11_1947227ce3a82949.sql +21 -0
  7. Query/sql/v2/runs/v2_cli_20260502_081223_f/m11/sql/v2q_m11_201ec94d72a839b5.sql +25 -0
  8. Query/sql/v2/runs/v2_cli_20260502_081223_f/m11/sql/v2q_m11_3a0fb25bf3202a33.sql +28 -0
  9. Query/sql/v2/runs/v2_cli_20260502_081223_f/m11/sql/v2q_m11_4316033f4a65aff0.sql +21 -0
  10. Query/sql/v2/runs/v2_cli_20260502_081223_f/m11/sql/v2q_m11_4b68c86a5e4d2994.sql +28 -0
  11. Query/sql/v2/runs/v2_cli_20260502_081223_f/m11/sql/v2q_m11_50868a8705fed4f1.sql +25 -0
  12. Query/sql/v2/runs/v2_cli_20260502_081223_f/m11/sql/v2q_m11_8cd4f96305e5b029.sql +28 -0
  13. Query/sql/v2/runs/v2_cli_20260502_081223_f/m11/sql/v2q_m11_8e9da4f4963ff27e.sql +28 -0
  14. Query/sql/v2/runs/v2_cli_20260502_081223_f/m11/sql/v2q_m11_a9bb02c9a7db70a6.sql +21 -0
  15. Query/sql/v2/runs/v2_cli_20260502_081223_f/m11/sql/v2q_m11_b34fb5f6a56223ce.sql +21 -0
  16. Query/sql/v2/runs/v2_cli_20260502_081223_f/m11/sql/v2q_m11_b982c75be9caf399.sql +21 -0
  17. Query/sql/v2/runs/v2_cli_20260502_081223_f/m11/sql/v2q_m11_cbb8cc5e8734262b.sql +17 -0
  18. Query/sql/v2/runs/v2_cli_20260502_081223_f/m11/sql/v2q_m11_d4574760301fbb65.sql +28 -0
  19. Query/sql/v2/runs/v2_cli_20260502_081223_f/m11/sql/v2q_m11_ed08c1066ee27f7e.sql +25 -0
  20. Query/sql/v2/runs/v2_cli_20260502_081223_f/m11/sql/v2q_m11_f5767a7173cccc74.sql +21 -0
Query/sql/v2/runs/v2_cli_20260502_081223_f/m11/artifacts/v2q_m11_1f601dd0d5fa985c/run_manifest.json ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "run_id": "v2_cli_20260502_081223_f",
3
+ "dataset_id": "m11",
4
+ "started_at": "2026-05-19T16:31:33.329947+00:00",
5
+ "ended_at": "2026-05-19T16:31:41.220350+00:00",
6
+ "status": "failed",
7
+ "engine": "cli",
8
+ "question_record": {
9
+ "query_record_id": "v2q_m11_1f601dd0d5fa985c",
10
+ "problem_id": "v2p_m11_3bcfad6bafd0d5cc",
11
+ "dataset_id": "m11",
12
+ "template_id": "tpl_m4_window_partition_avg",
13
+ "template_name": "Window Partition Average",
14
+ "family_id": "conditional_dependency_structure",
15
+ "canonical_subitem_id": "slice_level_consistency",
16
+ "intended_facet_id": "conditional_interaction_hotspots",
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 Window Partition Average to probe slice_level_consistency with semantic role filtered_stable_view. Focus on group_col=Vintage, measure_col=id.",
24
+ "bindings": {
25
+ "group_col": "Vintage",
26
+ "measure_col": "id",
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": 340589.0,
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 DISTINCT {group_col},\n AVG({measure_col}) OVER (PARTITION BY {group_col}) AS avg_measure\nFROM {table}\nORDER BY avg_measure DESC;",
52
+ "notes": [
53
+ "default_facets=conditional_interaction_hotspots",
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_f/m11/artifacts/v2q_m11_c2884e89cfb77b7a/run_manifest.json ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "run_id": "v2_cli_20260502_081223_f",
3
+ "dataset_id": "m11",
4
+ "started_at": "2026-05-19T16:28:56.783282+00:00",
5
+ "ended_at": "2026-05-19T16:29:04.628819+00:00",
6
+ "status": "failed",
7
+ "engine": "cli",
8
+ "question_record": {
9
+ "query_record_id": "v2q_m11_c2884e89cfb77b7a",
10
+ "problem_id": "v2p_m11_46489f2dc1a494a1",
11
+ "dataset_id": "m11",
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=Previously_Insured.",
24
+ "bindings": {
25
+ "group_col": "Previously_Insured",
26
+ "top_k": 14,
27
+ "top_n": 3,
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": 152.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=5",
54
+ "sql_variant_index=1/2",
55
+ "binding_index=124"
56
+ ],
57
+ "template_selection_mode": "rule",
58
+ "selected_template_rank": 11,
59
+ "problem_index_within_template": 5,
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
+ "error": "AI CLI command failed with exit code 1: "
67
+ }
Query/sql/v2/runs/v2_cli_20260502_081223_f/m11/artifacts/v2q_m11_c2884e89cfb77b7a/trace.jsonl ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ {"timestamp": "2026-05-19T16:28:59.887757+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": 3086.34, "started_at": "2026-05-19T16:28:56.800371+00:00", "ended_at": "2026-05-19T16:28:59.886747+00:00", "prompt_metrics": {"chars": 7800, "bytes_utf8": 7800, "lines": 238, "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\":\"019e4111-a9f6-74e3-bbdd-30be814ecadd\"}\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:29:04.628670+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": 3737.89, "started_at": "2026-05-19T16:29:00.889454+00:00", "ended_at": "2026-05-19T16:29:04.627407+00:00", "prompt_metrics": {"chars": 7800, "bytes_utf8": 7800, "lines": 238, "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\":\"019e4111-b9f0-7222-b1d8-7d47fc8fdc1c\"}\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_f/m11/sql/v2q_m11_03b0b515df75fb75.sql ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- sql_source_version: v2
2
+ -- sql_source_label: v2_current
3
+ -- sql_source_run_id: v2_cli_20260502_081223_f
4
+ -- sql_source_dataset_id: m11
5
+ -- family_id: cardinality_structure
6
+ -- canonical_subitem_id: support_rank_profile_consistency
7
+ -- intended_facet_id: value_imbalance_profile
8
+ -- variant_semantic_role: ranked_signal_view
9
+ -- template_id: tpl_cardinality_distinct_share_profile
10
+ -- query_record_id: v2q_m11_03b0b515df75fb75
11
+ -- problem_id: v2p_m11_7548eadd90f2e5de
12
+ -- realization_mode: deterministic
13
+ -- source_kind: deterministic
14
+ WITH grouped AS (
15
+ SELECT "Vehicle_Age" AS value_label, COUNT(*) AS support
16
+ FROM "m11"
17
+ GROUP BY "Vehicle_Age"
18
+ ), ranked AS (
19
+ SELECT
20
+ value_label,
21
+ support,
22
+ CAST(support AS FLOAT) / NULLIF(SUM(support) OVER (), 0) AS support_share,
23
+ SUM(support) OVER (ORDER BY support DESC, value_label ROWS UNBOUNDED PRECEDING) AS cumulative_support
24
+ FROM grouped
25
+ )
26
+ SELECT *
27
+ FROM ranked
28
+ ORDER BY support DESC, value_label;
Query/sql/v2/runs/v2_cli_20260502_081223_f/m11/sql/v2q_m11_0886f8dfc0f94dba.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_f
4
+ -- sql_source_dataset_id: m11
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_m11_0886f8dfc0f94dba
11
+ -- problem_id: v2p_m11_d5e2768d6d41b599
12
+ -- realization_mode: agent
13
+ -- source_kind: agent
14
+ SELECT "Region_Code", SUM(CAST("Annual_Premium" AS REAL)) AS "total_measure"
15
+ FROM "m11"
16
+ GROUP BY "Region_Code"
17
+ ORDER BY "total_measure" DESC;
Query/sql/v2/runs/v2_cli_20260502_081223_f/m11/sql/v2q_m11_1947227ce3a82949.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_f
4
+ -- sql_source_dataset_id: m11
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_m11_1947227ce3a82949
11
+ -- problem_id: v2p_m11_5b28305883c1ae26
12
+ -- realization_mode: deterministic
13
+ -- source_kind: deterministic
14
+ SELECT
15
+ "Annual_Premium",
16
+ COUNT(*) AS support,
17
+ AVG("Age") AS avg_response
18
+ FROM "m11"
19
+ GROUP BY "Annual_Premium"
20
+ HAVING COUNT(*) >= 5.0
21
+ ORDER BY support DESC, avg_response DESC;
Query/sql/v2/runs/v2_cli_20260502_081223_f/m11/sql/v2q_m11_201ec94d72a839b5.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_f
4
+ -- sql_source_dataset_id: m11
5
+ -- family_id: cardinality_structure
6
+ -- canonical_subitem_id: support_rank_profile_consistency
7
+ -- intended_facet_id: value_imbalance_profile
8
+ -- variant_semantic_role: count_distribution
9
+ -- template_id: tpl_cardinality_support_rank_profile
10
+ -- query_record_id: v2q_m11_201ec94d72a839b5
11
+ -- problem_id: v2p_m11_798529f6d01ad142
12
+ -- realization_mode: deterministic
13
+ -- source_kind: deterministic
14
+ WITH grouped AS (
15
+ SELECT "Age" AS value_label, COUNT(*) AS support
16
+ FROM "m11"
17
+ GROUP BY "Age"
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_f/m11/sql/v2q_m11_3a0fb25bf3202a33.sql ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- sql_source_version: v2
2
+ -- sql_source_label: v2_current
3
+ -- sql_source_run_id: v2_cli_20260502_081223_f
4
+ -- sql_source_dataset_id: m11
5
+ -- family_id: cardinality_structure
6
+ -- canonical_subitem_id: support_rank_profile_consistency
7
+ -- intended_facet_id: value_imbalance_profile
8
+ -- variant_semantic_role: ranked_signal_view
9
+ -- template_id: tpl_cardinality_distinct_share_profile
10
+ -- query_record_id: v2q_m11_3a0fb25bf3202a33
11
+ -- problem_id: v2p_m11_9d27c1433cee1697
12
+ -- realization_mode: deterministic
13
+ -- source_kind: deterministic
14
+ WITH grouped AS (
15
+ SELECT "Policy_Sales_Channel" AS value_label, COUNT(*) AS support
16
+ FROM "m11"
17
+ GROUP BY "Policy_Sales_Channel"
18
+ ), ranked AS (
19
+ SELECT
20
+ value_label,
21
+ support,
22
+ CAST(support AS FLOAT) / NULLIF(SUM(support) OVER (), 0) AS support_share,
23
+ SUM(support) OVER (ORDER BY support DESC, value_label ROWS UNBOUNDED PRECEDING) AS cumulative_support
24
+ FROM grouped
25
+ )
26
+ SELECT *
27
+ FROM ranked
28
+ ORDER BY support DESC, value_label;
Query/sql/v2/runs/v2_cli_20260502_081223_f/m11/sql/v2q_m11_4316033f4a65aff0.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_f
4
+ -- sql_source_dataset_id: m11
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_m11_4316033f4a65aff0
11
+ -- problem_id: v2p_m11_80066d5c261ce091
12
+ -- realization_mode: deterministic
13
+ -- source_kind: deterministic
14
+ SELECT
15
+ "Region_Code",
16
+ COUNT(*) AS support,
17
+ AVG("Annual_Premium") AS avg_response
18
+ FROM "m11"
19
+ GROUP BY "Region_Code"
20
+ HAVING COUNT(*) >= 5.0
21
+ ORDER BY support DESC, avg_response DESC;
Query/sql/v2/runs/v2_cli_20260502_081223_f/m11/sql/v2q_m11_4b68c86a5e4d2994.sql ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- sql_source_version: v2
2
+ -- sql_source_label: v2_current
3
+ -- sql_source_run_id: v2_cli_20260502_081223_f
4
+ -- sql_source_dataset_id: m11
5
+ -- family_id: cardinality_structure
6
+ -- canonical_subitem_id: support_rank_profile_consistency
7
+ -- intended_facet_id: support_concentration
8
+ -- variant_semantic_role: ranked_signal_view
9
+ -- template_id: tpl_cardinality_distinct_share_profile
10
+ -- query_record_id: v2q_m11_4b68c86a5e4d2994
11
+ -- problem_id: v2p_m11_4de9a0022390a9ce
12
+ -- realization_mode: deterministic
13
+ -- source_kind: deterministic
14
+ WITH grouped AS (
15
+ SELECT "Driving_License" AS value_label, COUNT(*) AS support
16
+ FROM "m11"
17
+ GROUP BY "Driving_License"
18
+ ), ranked AS (
19
+ SELECT
20
+ value_label,
21
+ support,
22
+ CAST(support AS FLOAT) / NULLIF(SUM(support) OVER (), 0) AS support_share,
23
+ SUM(support) OVER (ORDER BY support DESC, value_label ROWS UNBOUNDED PRECEDING) AS cumulative_support
24
+ FROM grouped
25
+ )
26
+ SELECT *
27
+ FROM ranked
28
+ ORDER BY support DESC, value_label;
Query/sql/v2/runs/v2_cli_20260502_081223_f/m11/sql/v2q_m11_50868a8705fed4f1.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_f
4
+ -- sql_source_dataset_id: m11
5
+ -- family_id: cardinality_structure
6
+ -- canonical_subitem_id: support_rank_profile_consistency
7
+ -- intended_facet_id: value_imbalance_profile
8
+ -- variant_semantic_role: count_distribution
9
+ -- template_id: tpl_cardinality_support_rank_profile
10
+ -- query_record_id: v2q_m11_50868a8705fed4f1
11
+ -- problem_id: v2p_m11_dbf68defed0ac945
12
+ -- realization_mode: deterministic
13
+ -- source_kind: deterministic
14
+ WITH grouped AS (
15
+ SELECT "Response" AS value_label, COUNT(*) AS support
16
+ FROM "m11"
17
+ GROUP BY "Response"
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_f/m11/sql/v2q_m11_8cd4f96305e5b029.sql ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- sql_source_version: v2
2
+ -- sql_source_label: v2_current
3
+ -- sql_source_run_id: v2_cli_20260502_081223_f
4
+ -- sql_source_dataset_id: m11
5
+ -- family_id: cardinality_structure
6
+ -- canonical_subitem_id: support_rank_profile_consistency
7
+ -- intended_facet_id: support_concentration
8
+ -- variant_semantic_role: ranked_signal_view
9
+ -- template_id: tpl_cardinality_distinct_share_profile
10
+ -- query_record_id: v2q_m11_8cd4f96305e5b029
11
+ -- problem_id: v2p_m11_3255ee0b781a5b9a
12
+ -- realization_mode: deterministic
13
+ -- source_kind: deterministic
14
+ WITH grouped AS (
15
+ SELECT "Gender" AS value_label, COUNT(*) AS support
16
+ FROM "m11"
17
+ GROUP BY "Gender"
18
+ ), ranked AS (
19
+ SELECT
20
+ value_label,
21
+ support,
22
+ CAST(support AS FLOAT) / NULLIF(SUM(support) OVER (), 0) AS support_share,
23
+ SUM(support) OVER (ORDER BY support DESC, value_label ROWS UNBOUNDED PRECEDING) AS cumulative_support
24
+ FROM grouped
25
+ )
26
+ SELECT *
27
+ FROM ranked
28
+ ORDER BY support DESC, value_label;
Query/sql/v2/runs/v2_cli_20260502_081223_f/m11/sql/v2q_m11_8e9da4f4963ff27e.sql ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- sql_source_version: v2
2
+ -- sql_source_label: v2_current
3
+ -- sql_source_run_id: v2_cli_20260502_081223_f
4
+ -- sql_source_dataset_id: m11
5
+ -- family_id: cardinality_structure
6
+ -- canonical_subitem_id: support_rank_profile_consistency
7
+ -- intended_facet_id: value_imbalance_profile
8
+ -- variant_semantic_role: ranked_signal_view
9
+ -- template_id: tpl_cardinality_distinct_share_profile
10
+ -- query_record_id: v2q_m11_8e9da4f4963ff27e
11
+ -- problem_id: v2p_m11_48ef6741442bf9fa
12
+ -- realization_mode: deterministic
13
+ -- source_kind: deterministic
14
+ WITH grouped AS (
15
+ SELECT "Region_Code" AS value_label, COUNT(*) AS support
16
+ FROM "m11"
17
+ GROUP BY "Region_Code"
18
+ ), ranked AS (
19
+ SELECT
20
+ value_label,
21
+ support,
22
+ CAST(support AS FLOAT) / NULLIF(SUM(support) OVER (), 0) AS support_share,
23
+ SUM(support) OVER (ORDER BY support DESC, value_label ROWS UNBOUNDED PRECEDING) AS cumulative_support
24
+ FROM grouped
25
+ )
26
+ SELECT *
27
+ FROM ranked
28
+ ORDER BY support DESC, value_label;
Query/sql/v2/runs/v2_cli_20260502_081223_f/m11/sql/v2q_m11_a9bb02c9a7db70a6.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_f
4
+ -- sql_source_dataset_id: m11
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_m11_a9bb02c9a7db70a6
11
+ -- problem_id: v2p_m11_fa2b28c9c9a614f0
12
+ -- realization_mode: deterministic
13
+ -- source_kind: deterministic
14
+ SELECT
15
+ "Age",
16
+ COUNT(*) AS support,
17
+ AVG("id") AS avg_response
18
+ FROM "m11"
19
+ GROUP BY "Age"
20
+ HAVING COUNT(*) >= 5.0
21
+ ORDER BY support DESC, avg_response DESC;
Query/sql/v2/runs/v2_cli_20260502_081223_f/m11/sql/v2q_m11_b34fb5f6a56223ce.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_f
4
+ -- sql_source_dataset_id: m11
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_m11_b34fb5f6a56223ce
11
+ -- problem_id: v2p_m11_5ef6319f194dc5a0
12
+ -- realization_mode: deterministic
13
+ -- source_kind: deterministic
14
+ SELECT
15
+ "id",
16
+ COUNT(*) AS support,
17
+ AVG("Age") AS avg_response
18
+ FROM "m11"
19
+ GROUP BY "id"
20
+ HAVING COUNT(*) >= 5.0
21
+ ORDER BY support DESC, avg_response DESC;
Query/sql/v2/runs/v2_cli_20260502_081223_f/m11/sql/v2q_m11_b982c75be9caf399.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_f
4
+ -- sql_source_dataset_id: m11
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_m11_b982c75be9caf399
11
+ -- problem_id: v2p_m11_625b0a88bf813880
12
+ -- realization_mode: deterministic
13
+ -- source_kind: deterministic
14
+ SELECT
15
+ "id",
16
+ COUNT(*) AS support,
17
+ AVG("Region_Code") AS avg_response
18
+ FROM "m11"
19
+ GROUP BY "id"
20
+ HAVING COUNT(*) >= 5.0
21
+ ORDER BY support DESC, avg_response DESC;
Query/sql/v2/runs/v2_cli_20260502_081223_f/m11/sql/v2q_m11_cbb8cc5e8734262b.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_f
4
+ -- sql_source_dataset_id: m11
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_m11_cbb8cc5e8734262b
11
+ -- problem_id: v2p_m11_c155d2425653c42b
12
+ -- realization_mode: agent
13
+ -- source_kind: agent
14
+ SELECT "Gender", SUM(CAST("id" AS NUMERIC)) AS "total_measure"
15
+ FROM "m11"
16
+ GROUP BY "Gender"
17
+ ORDER BY "total_measure" DESC;
Query/sql/v2/runs/v2_cli_20260502_081223_f/m11/sql/v2q_m11_d4574760301fbb65.sql ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- sql_source_version: v2
2
+ -- sql_source_label: v2_current
3
+ -- sql_source_run_id: v2_cli_20260502_081223_f
4
+ -- sql_source_dataset_id: m11
5
+ -- family_id: cardinality_structure
6
+ -- canonical_subitem_id: support_rank_profile_consistency
7
+ -- intended_facet_id: support_concentration
8
+ -- variant_semantic_role: ranked_signal_view
9
+ -- template_id: tpl_cardinality_distinct_share_profile
10
+ -- query_record_id: v2q_m11_d4574760301fbb65
11
+ -- problem_id: v2p_m11_d47a73b5081e8f1a
12
+ -- realization_mode: deterministic
13
+ -- source_kind: deterministic
14
+ WITH grouped AS (
15
+ SELECT "Previously_Insured" AS value_label, COUNT(*) AS support
16
+ FROM "m11"
17
+ GROUP BY "Previously_Insured"
18
+ ), ranked AS (
19
+ SELECT
20
+ value_label,
21
+ support,
22
+ CAST(support AS FLOAT) / NULLIF(SUM(support) OVER (), 0) AS support_share,
23
+ SUM(support) OVER (ORDER BY support DESC, value_label ROWS UNBOUNDED PRECEDING) AS cumulative_support
24
+ FROM grouped
25
+ )
26
+ SELECT *
27
+ FROM ranked
28
+ ORDER BY support DESC, value_label;
Query/sql/v2/runs/v2_cli_20260502_081223_f/m11/sql/v2q_m11_ed08c1066ee27f7e.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_f
4
+ -- sql_source_dataset_id: m11
5
+ -- family_id: cardinality_structure
6
+ -- canonical_subitem_id: support_rank_profile_consistency
7
+ -- intended_facet_id: value_imbalance_profile
8
+ -- variant_semantic_role: count_distribution
9
+ -- template_id: tpl_cardinality_support_rank_profile
10
+ -- query_record_id: v2q_m11_ed08c1066ee27f7e
11
+ -- problem_id: v2p_m11_8631cdfb10aa5f54
12
+ -- realization_mode: deterministic
13
+ -- source_kind: deterministic
14
+ WITH grouped AS (
15
+ SELECT "Region_Code" AS value_label, COUNT(*) AS support
16
+ FROM "m11"
17
+ GROUP BY "Region_Code"
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_f/m11/sql/v2q_m11_f5767a7173cccc74.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_f
4
+ -- sql_source_dataset_id: m11
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_m11_f5767a7173cccc74
11
+ -- problem_id: v2p_m11_ab2a0697ec1389bd
12
+ -- realization_mode: deterministic
13
+ -- source_kind: deterministic
14
+ SELECT
15
+ "Vintage",
16
+ COUNT(*) AS support,
17
+ AVG("id") AS avg_response
18
+ FROM "m11"
19
+ GROUP BY "Vintage"
20
+ HAVING COUNT(*) >= 5.0
21
+ ORDER BY support DESC, avg_response DESC;